Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: trunk/src/chrome/browser/extensions/menu_manager_factory.cc

Issue 455023002: Revert 288418 "Extend contextMenus API to support browser/page a..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/extensions/menu_manager_factory.cc
===================================================================
--- trunk/src/chrome/browser/extensions/menu_manager_factory.cc (revision 288421)
+++ trunk/src/chrome/browser/extensions/menu_manager_factory.cc (working copy)
@@ -25,12 +25,6 @@
return Singleton<MenuManagerFactory>::get();
}
-// static
-KeyedService* MenuManagerFactory::BuildServiceInstanceForTesting(
- content::BrowserContext* context) {
- return GetInstance()->BuildServiceInstanceFor(context);
-}
-
MenuManagerFactory::MenuManagerFactory()
: BrowserContextKeyedServiceFactory(
"MenuManager",
@@ -43,7 +37,9 @@
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(

Powered by Google App Engine
This is Rietveld 408576698