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

Unified Diff: chrome/browser/extensions/extension_system_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/extensions/extension_system_factory.cc
diff --git a/chrome/browser/extensions/extension_system_factory.cc b/chrome/browser/extensions/extension_system_factory.cc
index a29c9696bbe909c7ac5f93472a18ebd77d03264d..da11d75e7a85dfcca16620e9e4c51c30d2646786 100644
--- a/chrome/browser/extensions/extension_system_factory.cc
+++ b/chrome/browser/extensions/extension_system_factory.cc
@@ -21,7 +21,7 @@ namespace extensions {
ExtensionSystemImpl::Shared*
ExtensionSystemSharedFactory::GetForProfile(Profile* profile) {
return static_cast<ExtensionSystemImpl::Shared*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -30,9 +30,9 @@ ExtensionSystemSharedFactory* ExtensionSystemSharedFactory::GetInstance() {
}
ExtensionSystemSharedFactory::ExtensionSystemSharedFactory()
- : ProfileKeyedServiceFactory(
+ : BrowserContextKeyedServiceFactory(
"ExtensionSystemShared",
- ProfileDependencyManager::GetInstance()) {
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(ExtensionPrefsFactory::GetInstance());
DependsOn(GlobalErrorServiceFactory::GetInstance());
#if defined(ENABLE_THEMES)
@@ -44,7 +44,8 @@ ExtensionSystemSharedFactory::ExtensionSystemSharedFactory()
ExtensionSystemSharedFactory::~ExtensionSystemSharedFactory() {
}
-ProfileKeyedService* ExtensionSystemSharedFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+ExtensionSystemSharedFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new ExtensionSystemImpl::Shared(static_cast<Profile*>(profile));
}
@@ -59,7 +60,7 @@ content::BrowserContext* ExtensionSystemSharedFactory::GetBrowserContextToUse(
// static
ExtensionSystem* ExtensionSystemFactory::GetForProfile(Profile* profile) {
return static_cast<ExtensionSystem*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -68,16 +69,16 @@ ExtensionSystemFactory* ExtensionSystemFactory::GetInstance() {
}
ExtensionSystemFactory::ExtensionSystemFactory()
- : ProfileKeyedServiceFactory(
+ : BrowserContextKeyedServiceFactory(
"ExtensionSystem",
- ProfileDependencyManager::GetInstance()) {
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(ExtensionSystemSharedFactory::GetInstance());
}
ExtensionSystemFactory::~ExtensionSystemFactory() {
}
-ProfileKeyedService* ExtensionSystemFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* ExtensionSystemFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new ExtensionSystemImpl(static_cast<Profile*>(profile));
}
@@ -87,7 +88,7 @@ content::BrowserContext* ExtensionSystemFactory::GetBrowserContextToUse(
return chrome::GetBrowserContextOwnInstanceInIncognito(context);
}
-bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() const {
+bool ExtensionSystemFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698