summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-20 05:31:45 +0000
committersail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-20 05:31:45 +0000
commite8611d50612d6b0061b4350c3196ddcdfbf078c8 (patch)
tree57bac20b61d313a797f431df4c92378c22b11bf4
parenta0c2692681197fb3aad2ef0158e7cada36fd6658 (diff)
downloadchromium_src-e8611d50612d6b0061b4350c3196ddcdfbf078c8.zip
chromium_src-e8611d50612d6b0061b4350c3196ddcdfbf078c8.tar.gz
chromium_src-e8611d50612d6b0061b4350c3196ddcdfbf078c8.tar.bz2
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
-rw-r--r--chrome/browser/ui/profile_menu_model.cc7
-rw-r--r--chrome/browser/ui/profile_menu_model.h1
2 files changed, 0 insertions, 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