| 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..1d2aa74665b68747b59724e4ec020836d1971289 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(
|
|
|