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

Unified Diff: chrome/browser/ui/views/frame/browser_frame.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/frame/browser_frame.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame.cc b/chrome/browser/ui/views/frame/browser_frame.cc
index 0df995091cf21e7923dac9a47c1854443689468a..14d7bbf8f3d0b2bb8c849ce6c81fd94e732f2c81 100644
--- a/chrome/browser/ui/views/frame/browser_frame.cc
+++ b/chrome/browser/ui/views/frame/browser_frame.cc
@@ -250,8 +250,7 @@ void BrowserFrame::ShowContextMenuForView(views::View* source,
if (hit_test == HTCAPTION || hit_test == HTNOWHERE) {
menu_runner_.reset(new views::MenuRunner(
GetSystemMenuModel(),
- views::MenuRunner::HAS_MNEMONICS | views::MenuRunner::CONTEXT_MENU |
- views::MenuRunner::ASYNC,
+ views::MenuRunner::HAS_MNEMONICS | views::MenuRunner::CONTEXT_MENU,
base::Bind(&BrowserFrame::OnMenuClosed, base::Unretained(this))));
menu_runner_->RunMenuAt(source->GetWidget(), nullptr,
gfx::Rect(p, gfx::Size(0, 0)),

Powered by Google App Engine
This is Rietveld 408576698