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

Unified Diff: chrome/browser/extensions/extension_system_factory.cc

Issue 137753016: ExtensionSystem cleanup part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps Created 6 years, 10 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 b8e851d1ec30257bc2b43c74617921573dd919be..14485894227486109c8eab24f09cf17dea4efe8e 100644
--- a/chrome/browser/extensions/extension_system_factory.cc
+++ b/chrome/browser/extensions/extension_system_factory.cc
@@ -73,15 +73,11 @@ ExtensionSystemFactory* ExtensionSystemFactory::GetInstance() {
}
ExtensionSystemFactory::ExtensionSystemFactory()
- : BrowserContextKeyedServiceFactory(
- "ExtensionSystem",
- BrowserContextDependencyManager::GetInstance()) {
+ : ExtensionSystemProvider("ExtensionSystem",
+ BrowserContextDependencyManager::GetInstance()) {
DCHECK(ExtensionsBrowserClient::Get())
<< "ExtensionSystemFactory must be initialized after BrowserProcess";
- std::vector<BrowserContextKeyedServiceFactory*> dependencies =
- ExtensionsBrowserClient::Get()->GetExtensionSystemDependencies();
- for (size_t i = 0; i < dependencies.size(); ++i)
- DependsOn(dependencies[i]);
+ DependsOn(ExtensionSystemSharedFactory::GetInstance());
}
ExtensionSystemFactory::~ExtensionSystemFactory() {
@@ -89,7 +85,7 @@ ExtensionSystemFactory::~ExtensionSystemFactory() {
BrowserContextKeyedService* ExtensionSystemFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
- return ExtensionsBrowserClient::Get()->CreateExtensionSystem(context);
+ return new ExtensionSystemImpl(static_cast<Profile*>(context));
}
content::BrowserContext* ExtensionSystemFactory::GetBrowserContextToUse(

Powered by Google App Engine
This is Rietveld 408576698