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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry_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/custom_handlers/protocol_handler_registry_factory.h
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_factory.h b/chrome/browser/custom_handlers/protocol_handler_registry_factory.h
index 05cd6c914d03a0a268abdd7e62c6640f30a6a882..14f97c6f9483af5e2eba9480d1c7f1740c90f556 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry_factory.h
+++ b/chrome/browser/custom_handlers/protocol_handler_registry_factory.h
@@ -16,7 +16,8 @@ template <typename T> struct DefaultSingletonTraits;
// Singleton that owns all ProtocolHandlerRegistrys and associates them with
// Profiles. Listens for the Profile's destruction notification and cleans up
// the associated ProtocolHandlerRegistry.
-class ProtocolHandlerRegistryFactory : public ProfileKeyedServiceFactory {
+class ProtocolHandlerRegistryFactory
+ : public BrowserContextKeyedServiceFactory {
public:
// Returns the singleton instance of the ProtocolHandlerRegistryFactory.
static ProtocolHandlerRegistryFactory* GetInstance();
@@ -26,8 +27,8 @@ class ProtocolHandlerRegistryFactory : public ProfileKeyedServiceFactory {
static ProtocolHandlerRegistry* GetForProfile(Profile* profile);
protected:
- // ProfileKeyedServiceFactory implementation.
- virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
+ // BrowserContextKeyedServiceFactory implementation.
+ virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
@@ -38,8 +39,8 @@ class ProtocolHandlerRegistryFactory : public ProfileKeyedServiceFactory {
ProtocolHandlerRegistryFactory();
virtual ~ProtocolHandlerRegistryFactory();
- // ProfileKeyedServiceFactory implementation.
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory implementation.
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistryFactory);

Powered by Google App Engine
This is Rietveld 408576698