Index: chrome/browser/extensions/menu_manager_factory.cc |
diff --git a/chrome/browser/extensions/menu_manager_factory.cc b/chrome/browser/extensions/menu_manager_factory.cc |
index 60fa844d99f4afbecae48e7d9fa0bf3086edc5fa..33c3f74f075f097b2fac455e659abce66039196e 100644 |
--- a/chrome/browser/extensions/menu_manager_factory.cc |
+++ b/chrome/browser/extensions/menu_manager_factory.cc |
@@ -25,6 +25,12 @@ MenuManagerFactory* MenuManagerFactory::GetInstance() { |
return Singleton<MenuManagerFactory>::get(); |
} |
+// static |
+KeyedService* MenuManagerFactory::BuildServiceInstanceForTesting( |
+ content::BrowserContext* context) { |
+ return GetInstance()->BuildServiceInstanceFor(context); |
+} |
+ |
MenuManagerFactory::MenuManagerFactory() |
: BrowserContextKeyedServiceFactory( |
"MenuManager", |
@@ -37,9 +43,7 @@ MenuManagerFactory::~MenuManagerFactory() {} |
KeyedService* MenuManagerFactory::BuildServiceInstanceFor( |
content::BrowserContext* context) const { |
Profile* profile = Profile::FromBrowserContext(context); |
- return new MenuManager( |
- profile, |
- ExtensionSystem::Get(profile)->state_store()); |
+ return new MenuManager(profile, ExtensionSystem::Get(profile)->state_store()); |
} |
content::BrowserContext* MenuManagerFactory::GetBrowserContextToUse( |