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

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

Issue 9968076: Remove Inspect Popup command from browser actions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Views compile failure Created 8 years, 8 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/extension_context_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_context_menu_model.h
diff --git a/chrome/browser/extensions/extension_context_menu_model.h b/chrome/browser/extensions/extension_context_menu_model.h
index a42b58c9e4e8c2576b8cb26e40410305212779f2..93a793dc8ad340d5d4adfba557a5ad843fd0cfa7 100644
--- a/chrome/browser/extensions/extension_context_menu_model.h
+++ b/chrome/browser/extensions/extension_context_menu_model.h
@@ -24,24 +24,8 @@ class ExtensionContextMenuModel
public ui::SimpleMenuModel::Delegate,
public ExtensionUninstallDialog::Delegate {
public:
- // Delegate to handle showing an ExtensionAction popup.
- class PopupDelegate {
- public:
- // Called when the user selects the menu item which requests that the
- // popup be shown and inspected.
- virtual void InspectPopup(ExtensionAction* action) = 0;
-
- protected:
- virtual ~PopupDelegate() {}
- };
-
- // Creates a menu model for the given extension action. If
- // prefs::kExtensionsUIDeveloperMode is enabled then a menu item
- // will be shown for "Inspect Popup" which, when selected, will cause
- // ShowPopupForDevToolsWindow() to be called on |delegate|.
- ExtensionContextMenuModel(const Extension* extension,
- Browser* browser,
- PopupDelegate* delegate);
+ // Creates a menu model for the given extension action.
+ ExtensionContextMenuModel(const Extension* extension, Browser* browser);
virtual ~ExtensionContextMenuModel();
// SimpleMenuModel::Delegate overrides.
@@ -73,9 +57,6 @@ class ExtensionContextMenuModel
Profile* profile_;
- // The delegate which handles the 'inspect popup' menu command (or NULL).
- PopupDelegate* delegate_;
-
// Keeps track of the extension uninstall dialog.
scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_;
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/extension_context_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698