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

Unified Diff: ash/root_window_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 | « no previous file | ash/shelf/shelf_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index d10013eaf5064b1cfaaee16548da263b45533b3b..63286ffb6a3ced8f598ecc5428f54c54ed352ec7 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -707,12 +707,10 @@ void RootWindowController::ShowContextMenu(const gfx::Point& location_in_screen,
return;
menu_runner_ = base::MakeUnique<views::MenuRunner>(
- menu_model_adapter_->CreateMenu(),
- views::MenuRunner::CONTEXT_MENU | views::MenuRunner::ASYNC);
- ignore_result(
- menu_runner_->RunMenuAt(wallpaper_widget_controller()->widget(), nullptr,
- gfx::Rect(location_in_screen, gfx::Size()),
- views::MENU_ANCHOR_TOPLEFT, source_type));
+ menu_model_adapter_->CreateMenu(), views::MenuRunner::CONTEXT_MENU);
+ menu_runner_->RunMenuAt(wallpaper_widget_controller()->widget(), nullptr,
+ gfx::Rect(location_in_screen, gfx::Size()),
+ views::MENU_ANCHOR_TOPLEFT, source_type);
}
void RootWindowController::UpdateAfterLoginStatusChange(LoginStatus status) {
« no previous file with comments | « no previous file | ash/shelf/shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698