| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ | 5 #ifndef CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ |
| 6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ | 6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 ~ProfilePolicyConnector() override; | 30 ~ProfilePolicyConnector() override; |
| 31 | 31 |
| 32 // If |force_immediate_load| then disk caches will be loaded synchronously. | 32 // If |force_immediate_load| then disk caches will be loaded synchronously. |
| 33 void Init(bool force_immediate_load, | 33 void Init(bool force_immediate_load, |
| 34 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
| 35 const user_manager::User* user, | 35 const user_manager::User* user, |
| 36 #endif | 36 #endif |
| 37 SchemaRegistry* schema_registry, | 37 SchemaRegistry* schema_registry, |
| 38 CloudPolicyManager* user_cloud_policy_manager); | 38 CloudPolicyManager* user_cloud_policy_manager); |
| 39 | 39 |
| 40 void InitForTesting(scoped_ptr<PolicyService> service); | 40 void InitForTesting(scoped_ptr<PolicyService> service, |
| 41 CloudPolicyManager* user_cloud_policy_manager); |
| 41 | 42 |
| 42 // KeyedService: | 43 // KeyedService: |
| 43 void Shutdown() override; | 44 void Shutdown() override; |
| 44 | 45 |
| 45 // This is never NULL. | 46 // This is never NULL. |
| 46 PolicyService* policy_service() const { return policy_service_.get(); } | 47 PolicyService* policy_service() const { return policy_service_.get(); } |
| 47 | 48 |
| 48 // Returns true if this Profile is under cloud policy management. | 49 // Returns true if this Profile is under cloud policy management. |
| 49 bool IsManaged() const; | 50 bool IsManaged() const; |
| 50 | 51 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 74 #endif // defined(ENABLE_CONFIGURATION_POLICY) | 75 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
| 75 | 76 |
| 76 scoped_ptr<PolicyService> policy_service_; | 77 scoped_ptr<PolicyService> policy_service_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector); | 79 DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnector); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace policy | 82 } // namespace policy |
| 82 | 83 |
| 83 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ | 84 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ |
| OLD | NEW |