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

Unified Diff: chrome/browser/ui/views/location_bar/page_action_image_view.cc

Issue 9968076: Remove Inspect Popup command from browser actions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Woopsies Created 8 years, 9 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: chrome/browser/ui/views/location_bar/page_action_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_image_view.cc b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
index 163ddd8c5dfb27479c02a3e8f8a7132ed39773c3..8fb99f2694730e5e5899ba97143b92d1eae61d1e 100644
--- a/chrome/browser/ui/views/location_bar/page_action_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
@@ -161,7 +161,7 @@ void PageActionImageView::ShowContextMenu(const gfx::Point& p,
return;
scoped_refptr<ExtensionContextMenuModel> context_menu_model(
- new ExtensionContextMenuModel(extension, browser_, this));
+ new ExtensionContextMenuModel(extension, browser_));
views::MenuModelAdapter menu_model_adapter(context_menu_model.get());
menu_runner_.reset(new views::MenuRunner(menu_model_adapter.CreateMenu()));
gfx::Point screen_loc;
@@ -258,11 +258,6 @@ void PageActionImageView::UpdateVisibility(WebContents* contents,
SetVisible(true);
}
-void PageActionImageView::InspectPopup(ExtensionAction* action) {
- ExecuteAction(1, // Left-click.
- true); // |inspect_with_devtools|.
-}
-
void PageActionImageView::OnWidgetClosing(views::Widget* widget) {
DCHECK_EQ(popup_->GetWidget(), widget);
popup_->GetWidget()->RemoveObserver(this);

Powered by Google App Engine
This is Rietveld 408576698