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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.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/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 907ce14d332146a76e1d9902e6331a7285701cd7..3d1434ed71bd02bcbb23d25b6a3417656fb1fa3f 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -1682,11 +1682,6 @@ void LocationBarViewGtk::EnabledStateChangedForCommand(int id, bool enabled) {
UpdateChromeToMobileIcon();
}
-void LocationBarViewGtk::PageActionViewGtk::InspectPopup(
- ExtensionAction* action) {
- ShowPopup(true);
-}
-
bool LocationBarViewGtk::PageActionViewGtk::ShowPopup(bool devtools) {
if (!page_action_->HasPopup(current_tab_id_))
return false;
@@ -1764,7 +1759,7 @@ gboolean LocationBarViewGtk::PageActionViewGtk::OnButtonPressed(
if (extension->ShowConfigureContextMenus()) {
context_menu_model_ =
- new ExtensionContextMenuModel(extension, owner_->browser_, this);
+ new ExtensionContextMenuModel(extension, owner_->browser_);
context_menu_.reset(
new MenuGtk(NULL, context_menu_model_.get()));
context_menu_->PopupForWidget(sender, event->button, event->time);

Powered by Google App Engine
This is Rietveld 408576698