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

Unified Diff: mash/browser/browser.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: mash/browser/browser.cc
diff --git a/mash/browser/browser.cc b/mash/browser/browser.cc
index a88fbd2d64e0dd6df427b5de03a39f83a5433d41..ecc5f9f2f5e576f2a49cb73af163fa42d00685dc 100644
--- a/mash/browser/browser.cc
+++ b/mash/browser/browser.cc
@@ -438,12 +438,11 @@ class NavButton : public views::LabelButton {
model_.get(),
base::Bind(&NavButton::OnMenuClosed, base::Unretained(this))));
menu_model_adapter_->set_triggerable_event_flags(triggerable_event_flags());
- menu_runner_.reset(new views::MenuRunner(
- menu_model_adapter_->CreateMenu(),
- views::MenuRunner::HAS_MNEMONICS | views::MenuRunner::ASYNC));
- ignore_result(menu_runner_->RunMenuAt(
- GetWidget(), nullptr, gfx::Rect(menu_position, gfx::Size(0, 0)),
- views::MENU_ANCHOR_TOPLEFT, source_type));
+ menu_runner_.reset(new views::MenuRunner(menu_model_adapter_->CreateMenu(),
+ views::MenuRunner::HAS_MNEMONICS));
+ menu_runner_->RunMenuAt(GetWidget(), nullptr,
+ gfx::Rect(menu_position, gfx::Size(0, 0)),
+ views::MENU_ANCHOR_TOPLEFT, source_type);
}
void OnMenuClosed() {

Powered by Google App Engine
This is Rietveld 408576698