Skip to content

Commit

Permalink
Multi-Profiles: Remove delete profile command from avatar menu
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sail@chromium.org committed Jul 20, 2011
1 parent a0c2692 commit e8611d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions chrome/browser/ui/profile_menu_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/ui/profile_menu_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8611d5

Please sign in to comment.