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

Unified Diff: ui/app_list/views/app_list_menu_views.cc

Issue 390183002: MacViews: Move menu run types parameter to constructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_menu_views.cc
diff --git a/ui/app_list/views/app_list_menu_views.cc b/ui/app_list/views/app_list_menu_views.cc
index a920bdbb073e40062f0098b891b006abbfc3057c..0dc76cf31a69ccd4bb5036818a59551ed5132575 100644
--- a/ui/app_list/views/app_list_menu_views.cc
+++ b/ui/app_list/views/app_list_menu_views.cc
@@ -23,7 +23,7 @@ AppListMenuViews::AppListMenuViews(AppListViewDelegate* delegate)
: AppListMenu(delegate) {
menu_delegate_.reset(new views::MenuModelAdapter(menu_model()));
menu_ = new MenuItemView(menu_delegate_.get());
- menu_runner_.reset(new views::MenuRunner(menu_));
+ menu_runner_.reset(new views::MenuRunner(menu_, 0));
menu_delegate_->BuildMenu(menu_);
}
@@ -35,8 +35,7 @@ void AppListMenuViews::RunMenuAt(views::MenuButton* button,
button,
gfx::Rect(point, gfx::Size()),
views::MENU_ANCHOR_TOPRIGHT,
- ui::MENU_SOURCE_NONE,
- 0));
+ ui::MENU_SOURCE_NONE));
}
void AppListMenuViews::Cancel() {
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698