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

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_model.h

Issue 7328005: Multi-Profile: Move multi-profile commands from wrench menu to avatar menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: chrome/browser/ui/toolbar/wrench_menu_model.h
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.h b/chrome/browser/ui/toolbar/wrench_menu_model.h
index 48622fc67df0e03d0513d301fb7837f5cf6432d7..5f824bec75604e5962250522804faf586ebdd696 100644
--- a/chrome/browser/ui/toolbar/wrench_menu_model.h
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.h
@@ -82,36 +82,6 @@ class BookmarkSubMenuModel : public ui::SimpleMenuModel {
DISALLOW_COPY_AND_ASSIGN(BookmarkSubMenuModel);
};
-class ProfilesSubMenuModel : public ui::SimpleMenuModel,
- public ui::SimpleMenuModel::Delegate {
- public:
- ProfilesSubMenuModel(ui::SimpleMenuModel::Delegate* delegate,
- Browser* browser);
-
- virtual void ExecuteCommand(int command_id) OVERRIDE;
- virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
- virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
- virtual bool GetAcceleratorForCommandId(
- int command_id,
- ui::Accelerator* accelerator) OVERRIDE;
-
- private:
- enum {
- // The profiles submenu contains a menu item for each profile. For
- // the i'th profile the command ID is COMMAND_SWITCH_TO_PROFILE + i.
- // If the profile matches the profile of the wrench button's browser
- // then the menu item is checked.
- COMMAND_SWITCH_TO_PROFILE,
- };
-
- void Build();
-
- Browser* browser_; // weak
- ui::SimpleMenuModel::Delegate* delegate_; // weak
-
- DISALLOW_COPY_AND_ASSIGN(ProfilesSubMenuModel);
-};
-
// A menu model that builds the contents of the wrench menu.
class WrenchMenuModel : public ui::SimpleMenuModel,
public ui::SimpleMenuModel::Delegate,
@@ -187,9 +157,6 @@ class WrenchMenuModel : public ui::SimpleMenuModel,
// Bookmark submenu.
scoped_ptr<BookmarkSubMenuModel> bookmark_sub_menu_model_;
- // Profiles submenu.
- scoped_ptr<ProfilesSubMenuModel> profiles_sub_menu_model_;
-
ui::AcceleratorProvider* provider_; // weak
Browser* browser_; // weak

Powered by Google App Engine
This is Rietveld 408576698