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

Unified Diff: chrome/browser/extensions/menu_manager_factory.h

Issue 64953004: Split extensions::MenuManager instance out from ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Explicit nit Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/extensions/menu_manager.cc ('k') | chrome/browser/extensions/menu_manager_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/menu_manager_factory.h
diff --git a/chrome/browser/extensions/extension_toolbar_model_factory.h b/chrome/browser/extensions/menu_manager_factory.h
similarity index 55%
copy from chrome/browser/extensions/extension_toolbar_model_factory.h
copy to chrome/browser/extensions/menu_manager_factory.h
index 29884be1320e4877465a5a5ceba4d9803c74da3a..6811151ed386f54787ed7499acdbf0fb25880643 100644
--- a/chrome/browser/extensions/extension_toolbar_model_factory.h
+++ b/chrome/browser/extensions/menu_manager_factory.h
@@ -2,27 +2,29 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLBAR_MODEL_FACTORY_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLBAR_MODEL_FACTORY_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_MENU_MANAGER_FACTORY_H_
+#define CHROME_BROWSER_EXTENSIONS_MENU_MANAGER_FACTORY_H_
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
-class ExtensionToolbarModel;
class Profile;
-class ExtensionToolbarModelFactory : public BrowserContextKeyedServiceFactory {
+namespace extensions {
+class MenuManager;
+
+class MenuManagerFactory : public BrowserContextKeyedServiceFactory {
public:
- static ExtensionToolbarModel* GetForProfile(Profile* profile);
+ static MenuManager* GetForProfile(Profile* profile);
- static ExtensionToolbarModelFactory* GetInstance();
+ static MenuManagerFactory* GetInstance();
private:
- friend struct DefaultSingletonTraits<ExtensionToolbarModelFactory>;
+ friend struct DefaultSingletonTraits<MenuManagerFactory>;
- ExtensionToolbarModelFactory();
- virtual ~ExtensionToolbarModelFactory();
+ MenuManagerFactory();
+ virtual ~MenuManagerFactory();
virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
@@ -32,4 +34,6 @@ class ExtensionToolbarModelFactory : public BrowserContextKeyedServiceFactory {
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TOOLBAR_MODEL_FACTORY_H_
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_MENU_MANAGER_FACTORY_H_
« no previous file with comments | « chrome/browser/extensions/menu_manager.cc ('k') | chrome/browser/extensions/menu_manager_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698