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

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.cc

Issue 331993009: MacViews: Run native Cocoa context menus to support Services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add VIEWS_EXPORT for unit test access Created 6 years, 5 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/infobars/infobar_view.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
index afc93d256d41af2d957ea3574912f9fb1c12bfeb..313c1feaa06de1b37e3715c7811d8e6a82ca6493 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -307,11 +307,14 @@ void InfoBarView::RunMenuAt(ui::MenuModel* menu_model,
DCHECK(owner()); // We'd better not open any menus while we're closing.
gfx::Point screen_point;
views::View::ConvertPointToScreen(button, &screen_point);
- menu_runner_.reset(new views::MenuRunner(menu_model));
+ menu_runner_.reset(
+ new views::MenuRunner(menu_model, views::MenuRunner::HAS_MNEMONICS));
// Ignore the result since we don't need to handle a deleted menu specially.
- ignore_result(menu_runner_->RunMenuAt(
- GetWidget(), button, gfx::Rect(screen_point, button->size()), anchor,
- ui::MENU_SOURCE_NONE, views::MenuRunner::HAS_MNEMONICS));
+ ignore_result(menu_runner_->RunMenuAt(GetWidget(),
+ button,
+ gfx::Rect(screen_point, button->size()),
+ anchor,
+ ui::MENU_SOURCE_NONE));
}
// static

Powered by Google App Engine
This is Rietveld 408576698