Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / menu_manager_factory.h
index 72c64d9..7dee9b7 100644 (file)
@@ -9,17 +9,22 @@
 #include "base/memory/singleton.h"
 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
 
-class Profile;
+namespace content {
+class BrowserContext;
+}
 
 namespace extensions {
 class MenuManager;
 
 class MenuManagerFactory : public BrowserContextKeyedServiceFactory {
  public:
-  static MenuManager* GetForProfile(Profile* profile);
+  static MenuManager* GetForBrowserContext(content::BrowserContext* context);
 
   static MenuManagerFactory* GetInstance();
 
+  static KeyedService* BuildServiceInstanceForTesting(
+      content::BrowserContext* context);
+
  private:
   friend struct DefaultSingletonTraits<MenuManagerFactory>;
 
@@ -27,7 +32,7 @@ class MenuManagerFactory : public BrowserContextKeyedServiceFactory {
   virtual ~MenuManagerFactory();
 
   virtual KeyedService* BuildServiceInstanceFor(
-      content::BrowserContext* profile) const OVERRIDE;
+      content::BrowserContext* context) const OVERRIDE;
   virtual content::BrowserContext* GetBrowserContextToUse(
       content::BrowserContext* context) const OVERRIDE;
   virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;