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); |