Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / custom_handlers / protocol_handler_registry_factory.h
index 63b02b3..2002de3 100644 (file)
@@ -23,25 +23,26 @@ class ProtocolHandlerRegistryFactory
   static ProtocolHandlerRegistryFactory* GetInstance();
 
   // Returns the ProtocolHandlerRegistry that provides intent registration for
-  // |profile|. Ownership stays with this factory object.
-  static ProtocolHandlerRegistry* GetForProfile(Profile* profile);
+  // |context|. Ownership stays with this factory object.
+  static ProtocolHandlerRegistry* GetForBrowserContext(
+      content::BrowserContext* context);
 
  protected:
   // BrowserContextKeyedServiceFactory implementation.
-  virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
-  virtual content::BrowserContext* GetBrowserContextToUse(
-      content::BrowserContext* context) const OVERRIDE;
-  virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
+  bool ServiceIsCreatedWithBrowserContext() const override;
+  content::BrowserContext* GetBrowserContextToUse(
+      content::BrowserContext* context) const override;
+  bool ServiceIsNULLWhileTesting() const override;
 
  private:
   friend struct DefaultSingletonTraits<ProtocolHandlerRegistryFactory>;
 
   ProtocolHandlerRegistryFactory();
-  virtual ~ProtocolHandlerRegistryFactory();
+  ~ProtocolHandlerRegistryFactory() override;
 
   // BrowserContextKeyedServiceFactory implementation.
-  virtual KeyedService* BuildServiceInstanceFor(
-      content::BrowserContext* profile) const OVERRIDE;
+  KeyedService* BuildServiceInstanceFor(
+      content::BrowserContext* profile) const override;
 
   DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistryFactory);
 };