Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: chrome/browser/policy/device_management_policy_provider.h

Issue 4960003: Don't register gmail users at the device management server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698