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

Unified Diff: chrome/browser/ui/views/task_manager_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
Index: chrome/browser/ui/views/task_manager_view.cc
diff --git a/chrome/browser/ui/views/task_manager_view.cc b/chrome/browser/ui/views/task_manager_view.cc
index 0e722e8ecd1db3b11531718b0c3aa953836c0f85..333c97b48024897f671cae46f414e77d4612bc31 100644
--- a/chrome/browser/ui/views/task_manager_view.cc
+++ b/chrome/browser/ui/views/task_manager_view.cc
@@ -268,9 +268,8 @@ void TaskManagerView::ShowContextMenuForView(views::View* source,
l10n_util::GetStringUTF16(table_column.id));
}
- menu_runner_.reset(new views::MenuRunner(
- menu_model_.get(),
- views::MenuRunner::CONTEXT_MENU | views::MenuRunner::ASYNC));
+ menu_runner_.reset(new views::MenuRunner(menu_model_.get(),
+ views::MenuRunner::CONTEXT_MENU));
menu_runner_->RunMenuAt(GetWidget(), nullptr, gfx::Rect(point, gfx::Size()),
views::MENU_ANCHOR_TOPLEFT, source_type);
« no previous file with comments | « chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc ('k') | chrome/browser/ui/views/toolbar/app_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698