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

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

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/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 642da2313bc415a5fc18d3b572f522029bc4ebb8..ff59c5b2223f18189e40c86c1994c33d245b2571 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -66,6 +66,10 @@
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#endif
+#if defined(ENABLE_CONFIGURATION_POLICY) && !defined(OS_CHROMEOS)
+#include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h"
+#endif
+
using content::BrowserThread;
using content::DownloadManagerDelegate;
using content::HostZoomMap;
@@ -96,6 +100,11 @@ OffTheRecordProfileImpl::OffTheRecordProfileImpl(Profile* real_profile)
}
void OffTheRecordProfileImpl::Init() {
+#if defined(ENABLE_CONFIGURATION_POLICY) && !defined(OS_CHROMEOS)
+ policy::UserCloudPolicyManagerFactory::RegisterForOffTheRecordProfile(
+ this->GetOriginalProfile(), this);
+#endif
Joao da Silva 2013/11/04 09:53:38 Document why this is needed.
pneubeck (no reviews) 2013/11/04 12:38:50 Done.
+
BrowserContextDependencyManager::GetInstance()->CreateBrowserContextServices(
this);

Powered by Google App Engine
This is Rietveld 408576698