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

Unified Diff: chrome/browser/policy/cloud/user_cloud_policy_manager.h

Issue 44083005: policy: Remove UserCloudPolicyManagerFactory's dependency on Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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/cloud/user_cloud_policy_manager.h
diff --git a/chrome/browser/policy/cloud/user_cloud_policy_manager.h b/chrome/browser/policy/cloud/user_cloud_policy_manager.h
index 1a37ce6094631c643785a3ba461d51dcabc2d1ed..750a000c61efa59d207c1a4c47339f204c4bb514 100644
--- a/chrome/browser/policy/cloud/user_cloud_policy_manager.h
+++ b/chrome/browser/policy/cloud/user_cloud_policy_manager.h
@@ -15,12 +15,15 @@
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
class PrefService;
-class Profile;
namespace base {
class SequencedTaskRunner;
}
+namespace content {
+class BrowserContext;
+}
+
namespace net {
class URLRequestContextGetter;
}
@@ -38,7 +41,7 @@ class UserCloudPolicyManager : public CloudPolicyManager,
public:
// |task_runner| is the runner for policy refresh tasks.
UserCloudPolicyManager(
- Profile* profile,
+ content::BrowserContext* context,
scoped_ptr<UserCloudPolicyStore> store,
scoped_ptr<CloudExternalDataManager> external_data_manager,
const scoped_refptr<base::SequencedTaskRunner>& task_runner);
@@ -73,8 +76,8 @@ class UserCloudPolicyManager : public CloudPolicyManager,
DeviceManagementService* device_management_service);
private:
- // The profile this instance belongs to.
- Profile* profile_;
+ // The context this instance belongs to.
+ content::BrowserContext* context_;
// Typed pointer to the store owned by UserCloudPolicyManager. Note that
// CloudPolicyManager only keeps a plain CloudPolicyStore pointer.

Powered by Google App Engine
This is Rietveld 408576698