Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5310)

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 466733003: [Profiles] Always use the placeholder avatar when creating new profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index fc818cd57480c6cbd4abac60cfae5f04d5ae1898..322f52b1d892c88f37be6d75951ee36ed7af52e6 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -777,11 +777,9 @@ void ProfileManager::InitProfileUserPrefs(Profile* profile) {
cache.GetSupervisedUserIdOfProfileAtIndex(profile_cache_index);
} else if (profile->GetPath() ==
profiles::GetDefaultProfileDir(cache.GetUserDataDir())) {
- // The --new-avatar-menu flag no longer uses the "First User" name,
- // and should assign the default avatar icon to all new profiles.
+ // The --new-avatar-menu flag no longer uses the "First User" name.
bool is_new_avatar_menu = switches::IsNewAvatarMenu();
- avatar_index = is_new_avatar_menu ?
- profiles::GetPlaceholderAvatarIndex() : 0;
+ avatar_index = profiles::GetPlaceholderAvatarIndex();
profile_name = is_new_avatar_menu ?
base::UTF16ToUTF8(cache.ChooseNameForNewProfile(avatar_index)) :
l10n_util::GetStringUTF8(IDS_DEFAULT_PROFILE_NAME);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698