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

Unified Diff: chrome/browser/ui/views/browser_actions_container.cc

Issue 6354021: Disable context menu for page_action and infobars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk version fixed Created 9 years, 11 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/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/browser_actions_container.cc b/chrome/browser/ui/views/browser_actions_container.cc
index 61024de1345ccce3e24ad6c6f57825146a1bf251..f99babfe067bdc145979975ca4a47eb60d90aab9 100644
--- a/chrome/browser/ui/views/browser_actions_container.cc
+++ b/chrome/browser/ui/views/browser_actions_container.cc
@@ -251,9 +251,7 @@ void BrowserActionButton::OnMouseExited(const views::MouseEvent& e) {
void BrowserActionButton::ShowContextMenu(const gfx::Point& p,
bool is_mouse_gesture) {
- // There is nothing in context menu that has sense to show for
- // component extensions so just ignore the request.
- if (extension()->location() == Extension::COMPONENT)
+ if (!extension()->ShowConfigureContextMenus())
return;
showing_context_menu_ = true;

Powered by Google App Engine
This is Rietveld 408576698