| Index: chrome/browser/policy/device_management_policy_provider.h
|
| diff --git a/chrome/browser/policy/device_management_policy_provider.h b/chrome/browser/policy/device_management_policy_provider.h
|
| index d91e22bbd8fcf98d130dfc01dbd88b15db42fa7e..c91849ea4fca0dab7ff8317af02279963bf1596c 100644
|
| --- a/chrome/browser/policy/device_management_policy_provider.h
|
| +++ b/chrome/browser/policy/device_management_policy_provider.h
|
| @@ -18,6 +18,7 @@
|
| #include "chrome/common/notification_registrar.h"
|
| #include "chrome/common/notification_source.h"
|
|
|
| +class Profile;
|
| class TokenService;
|
|
|
| namespace policy {
|
| @@ -37,8 +38,7 @@ class DeviceManagementPolicyProvider
|
| public:
|
| DeviceManagementPolicyProvider(const PolicyDefinitionList* policy_list,
|
| DeviceManagementBackend* backend,
|
| - TokenService* token_service,
|
| - const FilePath& storage_dir);
|
| + Profile* profile);
|
|
|
| virtual ~DeviceManagementPolicyProvider();
|
|
|
| @@ -64,6 +64,14 @@ class DeviceManagementPolicyProvider
|
| void Shutdown();
|
|
|
| private:
|
| + friend class DeviceManagementPolicyProviderTest;
|
| +
|
| + // Used only in tests.
|
| + DeviceManagementPolicyProvider(const PolicyDefinitionList* policy_list,
|
| + DeviceManagementBackend* backend,
|
| + Profile* profile,
|
| + DeviceTokenFetcher* token_fetcher);
|
| +
|
| class InitializeAfterIOThreadExistsTask;
|
|
|
| // Called by constructors to perform shared initialization. Initialization
|
| @@ -94,7 +102,7 @@ class DeviceManagementPolicyProvider
|
| const FilePath& user_data_dir);
|
|
|
| scoped_ptr<DeviceManagementBackend> backend_;
|
| - TokenService* token_service_; // weak
|
| + Profile* profile_; // weak
|
| scoped_ptr<DeviceManagementPolicyCache> cache_;
|
| scoped_refptr<DeviceTokenFetcher> token_fetcher_;
|
| NotificationRegistrar registrar_;
|
|
|