Chromium Code Reviews| Index: chrome/browser/ui/profile_menu_model.h |
| diff --git a/chrome/browser/ui/profile_menu_model.h b/chrome/browser/ui/profile_menu_model.h |
| index c1f4f6228749e951d7d1e77c64f6b56773d0ed21..bbb7071fb5767688b526b14d9d7e5b4e3554e4d9 100644 |
| --- a/chrome/browser/ui/profile_menu_model.h |
| +++ b/chrome/browser/ui/profile_menu_model.h |
| @@ -13,16 +13,24 @@ |
| // Menu for the multi-profile button displayed on the browser frame when the |
| // user is in a multi-profile-enabled account. Stub for now. TODO(mirandac): |
| // enable and fill in as part of multi-profile work. |
| -class ProfileMenuModel : public ui::SimpleMenuModel { |
| +class ProfileMenuModel : public ui::SimpleMenuModel, |
| + public ui::SimpleMenuModel::Delegate { |
| public: |
| + explicit ProfileMenuModel(); |
|
sky
2011/05/23 14:44:38
nit: no explicit
|
| + virtual ~ProfileMenuModel(); |
| + |
| + // ui::SimpleMenuModel::Delegate implementation |
| + 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; |
| + virtual void ExecuteCommand(int command_id) OVERRIDE; |
| + |
| + private: |
| enum { |
| COMMAND_CREATE_NEW_PROFILE, |
| }; |
| - explicit ProfileMenuModel(ui::SimpleMenuModel::Delegate* delegate); |
| - virtual ~ProfileMenuModel(); |
| - |
| - private: |
| DISALLOW_COPY_AND_ASSIGN(ProfileMenuModel); |
| }; |