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

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

Issue 52343002: policy: Register OffTheRecordProfile at UserCloudPolicyManagerFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months 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 537163e7f4af8c4c76585257d54ecba1276b023d..8ebb81f0c2be287eaee54003c50d2d0f9d843bef 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,
Joao da Silva 2013/11/04 09:53:38 Shouldn't this come in https://codereview.chromium
pneubeck (no reviews) 2013/11/04 12:38:50 Done.
scoped_ptr<UserCloudPolicyStore> store,
scoped_ptr<CloudExternalDataManager> external_data_manager,
const scoped_refptr<base::SequencedTaskRunner>& task_runner);
@@ -71,8 +74,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