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

Unified Diff: chrome/browser/ui/views/action_box_menu.cc

Issue 11088037: Revert 160886 - Added MenuConfig setter to MenuItemView, updated rest of the code to use set MenuCo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | « chrome/browser/ui/views/action_box_menu.h ('k') | ui/views/controls/menu/menu_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/action_box_menu.cc
===================================================================
--- chrome/browser/ui/views/action_box_menu.cc (revision 160892)
+++ chrome/browser/ui/views/action_box_menu.cc (working copy)
@@ -12,7 +12,6 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/views/bubble/bubble_border.h"
#include "ui/views/controls/button/menu_button.h"
-#include "ui/views/controls/menu/menu_config.h"
#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/view.h"
@@ -53,12 +52,6 @@
model_(model.Pass()) {
views::MenuItemView* menu = new views::MenuItemView(this);
menu->set_has_icons(true);
-
- views::MenuConfig* menu_config = new views::MenuConfig();
- CustomizeMenu(menu_config);
- // |menu| will own MenuConfig
- menu->set_menu_config(menu_config);
-
menu_runner_.reset(new views::MenuRunner(menu));
}
@@ -150,7 +143,3 @@
}
}
}
-
-void ActionBoxMenu::CustomizeMenu(views::MenuConfig* menu_config) {
- // TODO(yefim): add menu customization here.
-}
« no previous file with comments | « chrome/browser/ui/views/action_box_menu.h ('k') | ui/views/controls/menu/menu_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698