Commit 47ada20f authored by noms@chromium.org's avatar noms@chromium.org

[Profiles] Always use the placeholder avatar when creating new profiles.

This is to make the pre-new-avatar-menu world consistent with the
post-new-avatar-menu world.

BUG=NONE

Review URL: https://codereview.chromium.org/466733003

Cr-Commit-Position: refs/heads/master@{#289037}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289037 0039d316-1c4b-4281-b951-d872f2087c98
parent ce0e60d9
...@@ -777,11 +777,9 @@ void ProfileManager::InitProfileUserPrefs(Profile* profile) { ...@@ -777,11 +777,9 @@ void ProfileManager::InitProfileUserPrefs(Profile* profile) {
cache.GetSupervisedUserIdOfProfileAtIndex(profile_cache_index); cache.GetSupervisedUserIdOfProfileAtIndex(profile_cache_index);
} else if (profile->GetPath() == } else if (profile->GetPath() ==
profiles::GetDefaultProfileDir(cache.GetUserDataDir())) { profiles::GetDefaultProfileDir(cache.GetUserDataDir())) {
// The --new-avatar-menu flag no longer uses the "First User" name, // The --new-avatar-menu flag no longer uses the "First User" name.
// and should assign the default avatar icon to all new profiles.
bool is_new_avatar_menu = switches::IsNewAvatarMenu(); bool is_new_avatar_menu = switches::IsNewAvatarMenu();
avatar_index = is_new_avatar_menu ? avatar_index = profiles::GetPlaceholderAvatarIndex();
profiles::GetPlaceholderAvatarIndex() : 0;
profile_name = is_new_avatar_menu ? profile_name = is_new_avatar_menu ?
base::UTF16ToUTF8(cache.ChooseNameForNewProfile(avatar_index)) : base::UTF16ToUTF8(cache.ChooseNameForNewProfile(avatar_index)) :
l10n_util::GetStringUTF8(IDS_DEFAULT_PROFILE_NAME); l10n_util::GetStringUTF8(IDS_DEFAULT_PROFILE_NAME);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment