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

Unified Diff: chrome/browser/managed_mode/managed_user_service_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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/managed_mode/managed_user_service_factory.cc
diff --git a/chrome/browser/managed_mode/managed_user_service_factory.cc b/chrome/browser/managed_mode/managed_user_service_factory.cc
index 2f401fa5143a193b3c9bf9edadf5ae1a320b6923..0e613d5b05fa9d72a5c7f1c5579e0d2248edd498 100644
--- a/chrome/browser/managed_mode/managed_user_service_factory.cc
+++ b/chrome/browser/managed_mode/managed_user_service_factory.cc
@@ -13,7 +13,7 @@
// static
ManagedUserService* ManagedUserServiceFactory::GetForProfile(Profile* profile) {
return static_cast<ManagedUserService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -22,14 +22,15 @@ ManagedUserServiceFactory* ManagedUserServiceFactory::GetInstance() {
}
// static
-ProfileKeyedService* ManagedUserServiceFactory::BuildInstanceFor(
+BrowserContextKeyedService* ManagedUserServiceFactory::BuildInstanceFor(
Profile* profile) {
return new ManagedUserService(profile);
}
ManagedUserServiceFactory::ManagedUserServiceFactory()
- : ProfileKeyedServiceFactory("ManagedUserService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "ManagedUserService",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(extensions::ExtensionSystemFactory::GetInstance());
}
@@ -40,7 +41,7 @@ content::BrowserContext* ManagedUserServiceFactory::GetBrowserContextToUse(
return chrome::GetBrowserContextRedirectedInIncognito(context);
}
-ProfileKeyedService* ManagedUserServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* ManagedUserServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return BuildInstanceFor(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698