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

Unified Diff: ui/message_center/views/message_view_context_menu_controller.cc

Issue 2790773002: Cleanup MenuRunner API (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « ui/app_list/views/search_result_view.cc ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_view_context_menu_controller.cc
diff --git a/ui/message_center/views/message_view_context_menu_controller.cc b/ui/message_center/views/message_view_context_menu_controller.cc
index c7a5fed758430b7a6b8bbd8533659192277116b5..1e020be22f4bd209b092a5a4cebea83c4a46dbe4 100644
--- a/ui/message_center/views/message_view_context_menu_controller.cc
+++ b/ui/message_center/views/message_view_context_menu_controller.cc
@@ -38,9 +38,8 @@ void MessageViewContextMenuController::ShowContextMenuForView(
base::Bind(&MessageViewContextMenuController::OnMenuClosed,
base::Unretained(this))));
- menu_runner_.reset(new views::MenuRunner(
- menu_model_adapter_->CreateMenu(),
- views::MenuRunner::HAS_MNEMONICS | views::MenuRunner::ASYNC));
+ menu_runner_.reset(new views::MenuRunner(menu_model_adapter_->CreateMenu(),
+ views::MenuRunner::HAS_MNEMONICS));
menu_runner_->RunMenuAt(source->GetWidget()->GetTopLevelWidget(), NULL,
gfx::Rect(point, gfx::Size()),
« no previous file with comments | « ui/app_list/views/search_result_view.cc ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698