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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

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
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 9060fb7db06bec2e75419f45410566b9cef49c62..e858a2b8eba1d8c8f0e1742238ab1c0a690e7959 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -103,7 +103,7 @@ void OffTheRecordProfileImpl::Init() {
#if defined(ENABLE_CONFIGURATION_POLICY) && !defined(OS_CHROMEOS)
// Because UserCloudPolicyManager is in a component, it cannot access
// GetOriginalProfile. Instead, we have to inject this relation here.
- policy::UserCloudPolicyManagerFactory::RegisterForOffTheRecordProfile(
+ policy::UserCloudPolicyManagerFactory::RegisterForOffTheRecordBrowserContext(
this->GetOriginalProfile(), this);
#endif
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698