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

Unified Diff: ui/app_list/views/search_result_tile_item_view.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/app_list_item_view.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_result_tile_item_view.cc
diff --git a/ui/app_list/views/search_result_tile_item_view.cc b/ui/app_list/views/search_result_tile_item_view.cc
index 579cf1c036a6b9202d87c440abb2e3ddeee6857a..c823af33b17db7568041619801f751f4f515caa9 100644
--- a/ui/app_list/views/search_result_tile_item_view.cc
+++ b/ui/app_list/views/search_result_tile_item_view.cc
@@ -100,8 +100,8 @@ void SearchResultTileItemView::ShowContextMenuForView(
if (!selected())
result_container_->ClearSelectedIndex();
- context_menu_runner_.reset(new views::MenuRunner(
- menu_model, views::MenuRunner::HAS_MNEMONICS | views::MenuRunner::ASYNC));
+ context_menu_runner_.reset(
+ new views::MenuRunner(menu_model, views::MenuRunner::HAS_MNEMONICS));
context_menu_runner_->RunMenuAt(GetWidget(), nullptr,
gfx::Rect(point, gfx::Size()),
views::MENU_ANCHOR_TOPLEFT, source_type);
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698