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

Unified Diff: chrome/browser/ui/views/page_info/permission_selector_row.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/page_info/permission_selector_row.cc
diff --git a/chrome/browser/ui/views/page_info/permission_selector_row.cc b/chrome/browser/ui/views/page_info/permission_selector_row.cc
index 8a30dcad005a349d11ab7f01e6f714ad576991e1..c07a3b85cc89ccbfd2dd37d7a061d6023d3c2dfe 100644
--- a/chrome/browser/ui/views/page_info/permission_selector_row.cc
+++ b/chrome/browser/ui/views/page_info/permission_selector_row.cc
@@ -109,9 +109,8 @@ void PermissionMenuButton::OnNativeThemeChanged(const ui::NativeTheme* theme) {
void PermissionMenuButton::OnMenuButtonClicked(views::MenuButton* source,
const gfx::Point& point,
const ui::Event* event) {
- menu_runner_.reset(new views::MenuRunner(
- menu_model_,
- views::MenuRunner::HAS_MNEMONICS | views::MenuRunner::ASYNC));
+ menu_runner_.reset(
+ new views::MenuRunner(menu_model_, views::MenuRunner::HAS_MNEMONICS));
gfx::Point p(point);
p.Offset(is_rtl_display_ ? source->width() : -source->width(), 0);

Powered by Google App Engine
This is Rietveld 408576698