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

Unified Diff: ui/app_list/views/search_result_view.cc

Issue 2272023002: Turn AppList context menus Async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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_tile_item_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_result_view.cc
diff --git a/ui/app_list/views/search_result_view.cc b/ui/app_list/views/search_result_view.cc
index 43412a52e5f7fb5fe2df7b3fd4b1cdc02dc452a2..c4354c9dcfd81b629f6e800a6c1f59d6981600a6 100644
--- a/ui/app_list/views/search_result_view.cc
+++ b/ui/app_list/views/search_result_view.cc
@@ -411,15 +411,11 @@ void SearchResultView::ShowContextMenuForView(views::View* source,
if (!menu_model)
return;
- context_menu_runner_.reset(
- new views::MenuRunner(menu_model, views::MenuRunner::HAS_MNEMONICS));
- if (context_menu_runner_->RunMenuAt(GetWidget(),
- NULL,
- gfx::Rect(point, gfx::Size()),
- views::MENU_ANCHOR_TOPLEFT,
- source_type) ==
- views::MenuRunner::MENU_DELETED)
- return;
+ context_menu_runner_.reset(new views::MenuRunner(
+ menu_model, views::MenuRunner::HAS_MNEMONICS | views::MenuRunner::ASYNC));
+ context_menu_runner_->RunMenuAt(GetWidget(), NULL,
+ gfx::Rect(point, gfx::Size()),
+ views::MENU_ANCHOR_TOPLEFT, source_type);
}
} // namespace app_list
« no previous file with comments | « ui/app_list/views/search_result_tile_item_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698