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

Unified Diff: chrome/browser/views/infobars/extension_infobar.cc

Issue 1001002: Initial support for inspecting extension popups. (Closed)
Patch Set: pre submit Created 10 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
« no previous file with comments | « chrome/browser/views/extensions/extension_popup.cc ('k') | chrome/browser/views/location_bar_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/infobars/extension_infobar.cc
diff --git a/chrome/browser/views/infobars/extension_infobar.cc b/chrome/browser/views/infobars/extension_infobar.cc
index 70f3f7ffc04afd04a38445b881dfac7257568dda..9303aff8d2c137a1c0f0e268785319972c2990e3 100644
--- a/chrome/browser/views/infobars/extension_infobar.cc
+++ b/chrome/browser/views/infobars/extension_infobar.cc
@@ -89,10 +89,14 @@ void ExtensionInfoBar::Layout() {
}
void ExtensionInfoBar::RunMenu(View* source, const gfx::Point& pt) {
- if (!options_menu_contents_.get()) {
+ if (!options_menu_contents_.get())
options_menu_contents_.reset(new ExtensionActionContextMenuModel(
- delegate_->extension_host()->extension()));
- }
+ delegate_->extension_host()->extension(),
+ // Do not include "Inspect Popup" in menu:
+ NULL, // ExtensionAction
+ NULL, // PrefService
+ NULL)); // ExtensionActionContextMenuModel::MenuDelegate
+
options_menu_menu_.reset(new views::Menu2(options_menu_contents_.get()));
options_menu_menu_->RunMenuAt(pt, views::Menu2::ALIGN_TOPLEFT);
}
« no previous file with comments | « chrome/browser/views/extensions/extension_popup.cc ('k') | chrome/browser/views/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698