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

Unified Diff: chrome/browser/ui/views/translate/translate_bubble_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/translate/translate_bubble_view.cc
diff --git a/chrome/browser/ui/views/translate/translate_bubble_view.cc b/chrome/browser/ui/views/translate/translate_bubble_view.cc
index 7c6d8c650b947256c5ca24b0f6ccf89bfee496c4..5febd678af0e7795af8d5ff26ef457aa049429be 100644
--- a/chrome/browser/ui/views/translate/translate_bubble_view.cc
+++ b/chrome/browser/ui/views/translate/translate_bubble_view.cc
@@ -281,8 +281,8 @@ void TranslateBubbleView::OnMenuButtonClicked(views::MenuButton* source,
DenialMenuItem::NEVER_TRANSLATE_SITE,
IDS_TRANSLATE_BUBBLE_NEVER_TRANSLATE_SITE);
- denial_menu_runner_.reset(new views::MenuRunner(denial_menu_model_.get(),
- views::MenuRunner::ASYNC));
+ denial_menu_runner_.reset(
+ new views::MenuRunner(denial_menu_model_.get(), 0));
}
gfx::Rect screen_bounds = source->GetBoundsInScreen();
denial_menu_runner_->RunMenuAt(source->GetWidget(), source, screen_bounds,
« no previous file with comments | « chrome/browser/ui/views/toolbar/toolbar_button.cc ('k') | components/renderer_context_menu/views/toolkit_delegate_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698