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

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

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.h
diff --git a/chrome/browser/extensions/extension_system_factory.h b/chrome/browser/extensions/extension_system_factory.h
index 048df12f94149920e6e5d70f6cc230a6855e8525..280db7ae73b55750b03e42145f8a9adc0dba7f2e 100644
--- a/chrome/browser/extensions/extension_system_factory.h
+++ b/chrome/browser/extensions/extension_system_factory.h
@@ -9,15 +9,15 @@
#include "chrome/browser/extensions/extension_system.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
+class BrowserContextKeyedService;
class Profile;
-class ProfileKeyedService;
namespace extensions {
class ExtensionSystem;
-// ProfileKeyedServiceFactory for ExtensionSystemImpl::Shared.
+// BrowserContextKeyedServiceFactory for ExtensionSystemImpl::Shared.
// Should not be used except by ExtensionSystem(Factory).
-class ExtensionSystemSharedFactory : public ProfileKeyedServiceFactory {
+class ExtensionSystemSharedFactory : public BrowserContextKeyedServiceFactory {
public:
static ExtensionSystemImpl::Shared* GetForProfile(
Profile* profile);
@@ -30,16 +30,16 @@ class ExtensionSystemSharedFactory : public ProfileKeyedServiceFactory {
ExtensionSystemSharedFactory();
virtual ~ExtensionSystemSharedFactory();
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
};
-// ProfileKeyedServiceFactory for ExtensionSystem.
-class ExtensionSystemFactory : public ProfileKeyedServiceFactory {
+// BrowserContextKeyedServiceFactory for ExtensionSystem.
+class ExtensionSystemFactory : public BrowserContextKeyedServiceFactory {
public:
- // ProfileKeyedServiceFactory implementation:
+ // BrowserContextKeyedServiceFactory implementation:
static ExtensionSystem* GetForProfile(Profile* profile);
static ExtensionSystemFactory* GetInstance();
@@ -50,11 +50,11 @@ class ExtensionSystemFactory : public ProfileKeyedServiceFactory {
ExtensionSystemFactory();
virtual ~ExtensionSystemFactory();
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
- virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
+ virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698