Chromium Code Reviews| 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); |