From e8611d50612d6b0061b4350c3196ddcdfbf078c8 Mon Sep 17 00:00:00 2001 From: "sail@chromium.org" Date: Wed, 20 Jul 2011 05:31:45 +0000 Subject: Multi-Profiles: Remove delete profile command from avatar menu BUG=None TEST=None Review URL: http://codereview.chromium.org/7453007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93167 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/profile_menu_model.cc | 7 ------- chrome/browser/ui/profile_menu_model.h | 1 - 2 files changed, 8 deletions(-) diff --git a/chrome/browser/ui/profile_menu_model.cc b/chrome/browser/ui/profile_menu_model.cc index 5c348b08..3f2074f 100644 --- a/chrome/browser/ui/profile_menu_model.cc +++ b/chrome/browser/ui/profile_menu_model.cc @@ -163,9 +163,6 @@ ProfileMenuModel::ProfileMenuModel(Browser* browser) AddItem(COMMAND_CREATE_NEW_PROFILE, l10n_util::GetStringFUTF16( IDS_PROFILES_CREATE_NEW_PROFILE_OPTION, short_product_name)); } - - AddItemWithStringId(COMMAND_DELETE_PROFILE, - IDS_PROFILES_DELETE_PROFILE); } ProfileMenuModel::~ProfileMenuModel() { @@ -200,10 +197,6 @@ void ProfileMenuModel::ExecuteCommand(int command_id) { case COMMAND_CREATE_NEW_PROFILE: ProfileManager::CreateMultiProfileAsync(); break; - case COMMAND_DELETE_PROFILE: - g_browser_process->profile_manager()->ScheduleProfileForDeletion( - browser_->profile()->GetPath()); - break; default: NOTREACHED(); break; diff --git a/chrome/browser/ui/profile_menu_model.h b/chrome/browser/ui/profile_menu_model.h index 376a68c..47c3d6c 100644 --- a/chrome/browser/ui/profile_menu_model.h +++ b/chrome/browser/ui/profile_menu_model.h @@ -18,7 +18,6 @@ class ProfileMenuModel : public ui::SimpleMenuModel, COMMAND_PROFILE_NAME, COMMAND_CHOOSE_AVATAR_ICON, COMMAND_CUSTOMIZE_PROFILE, - COMMAND_DELETE_PROFILE, COMMAND_CREATE_NEW_PROFILE, COMMAND_SWITCH_PROFILE_MENU, // The profiles submenu contains a menu item for each profile. For the i'th -- cgit v1.1