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

Unified Diff: chrome/browser/extensions/api/profile_keyed_api_factory.h

Issue 148083014: ExtensionSystem cleanup part 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac 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/api/profile_keyed_api_factory.h
diff --git a/chrome/browser/extensions/api/profile_keyed_api_factory.h b/chrome/browser/extensions/api/profile_keyed_api_factory.h
index 25eda6758ba5ec30e2d227c3d6be0ad3ede322c0..7a5f3ab4b5b1c55a1a743dfe41d7b2151d0c9b4b 100644
--- a/chrome/browser/extensions/api/profile_keyed_api_factory.h
+++ b/chrome/browser/extensions/api/profile_keyed_api_factory.h
@@ -5,12 +5,13 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_PROFILE_KEYED_API_FACTORY_H_
#define CHROME_BROWSER_EXTENSIONS_API_PROFILE_KEYED_API_FACTORY_H_
-#include "chrome/browser/extensions/extension_system_factory.h"
#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
+#include "extensions/browser/extension_system_provider.h"
+#include "extensions/browser/extensions_browser_client.h"
namespace extensions {
@@ -72,11 +73,11 @@ class ProfileKeyedAPIFactory : public BrowserContextKeyedServiceFactory {
// Then in the cc file (or inline in the header), define it, e.g.:
// template <>
// ProfileKeyedAPIFactory<PushMessagingAPI>::DeclareFactoryDependencies() {
- // DependsOn(ExtensionSystemFactory::GetInstance());
+ // DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
// DependsOn(ProfileSyncServiceFactory::GetInstance());
// }
void DeclareFactoryDependencies() {
- DependsOn(ExtensionSystemFactory::GetInstance());
+ DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
}
ProfileKeyedAPIFactory()

Powered by Google App Engine
This is Rietveld 408576698