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

Unified Diff: trunk/src/chrome/browser/ui/views/browser_action_view.cc

Issue 13565004: Revert 192525 "Context menu on views must show on mouse down for..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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
Index: trunk/src/chrome/browser/ui/views/browser_action_view.cc
===================================================================
--- trunk/src/chrome/browser/ui/views/browser_action_view.cc (revision 192531)
+++ trunk/src/chrome/browser/ui/views/browser_action_view.cc (working copy)
@@ -314,12 +314,10 @@
TextButton::OnMousePressed(event);
}
- if (!views::View::ShouldShowContextMenuOnMousePress()) {
- // See comments in MenuButton::Activate() as to why this is needed.
- SetMouseHandler(NULL);
+ // See comments in MenuButton::Activate() as to why this is needed.
+ SetMouseHandler(NULL);
- ShowContextMenu(gfx::Point(), true);
- }
+ ShowContextMenu(gfx::Point(), true);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698