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

Unified Diff: chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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_factory.cc
diff --git a/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc b/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc
index 932ad04d2b66fd192a7f31ab95361c89b7543a53..e47db38b8bf80b79bd97a47f2b6e7ce20ec682b0 100644
--- a/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc
+++ b/chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc
@@ -53,15 +53,15 @@ scoped_ptr<UserCloudPolicyManager>
new policy::UserCloudPolicyManager(profile, store.Pass()));
}
-void UserCloudPolicyManagerFactory::ProfileShutdown(Profile* profile) {
- UserCloudPolicyManager* manager = GetManagerForProfile(profile);
+void UserCloudPolicyManagerFactory::ProfileShutdown(content::BrowserContext* profile) {
+ UserCloudPolicyManager* manager = GetManagerForProfile(reinterpret_cast<Profile*>(profile));
if (manager)
manager->Shutdown();
}
-void UserCloudPolicyManagerFactory::SetEmptyTestingFactory(Profile* profile) {}
+void UserCloudPolicyManagerFactory::SetEmptyTestingFactory(content::BrowserContext* profile) {}
-void UserCloudPolicyManagerFactory::CreateServiceNow(Profile* profile) {}
+void UserCloudPolicyManagerFactory::CreateServiceNow(content::BrowserContext* profile) {}
void UserCloudPolicyManagerFactory::Register(Profile* profile,
UserCloudPolicyManager* instance) {

Powered by Google App Engine
This is Rietveld 408576698