| Index: chrome/browser/profiles/profile_manager.cc
|
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
|
| index 7c799bbd62f4c237b101e9d712054ccfe77315cf..a05ab60853c30933c176eaf04a34a976c583b396 100644
|
| --- a/chrome/browser/profiles/profile_manager.cc
|
| +++ b/chrome/browser/profiles/profile_manager.cc
|
| @@ -498,14 +498,16 @@ void ProfileManager::AddProfileToCache(Profile* profile) {
|
| if (cache.GetIndexOfProfileWithPath(profile->GetPath()) != std::string::npos)
|
| return;
|
|
|
| + string16 username = UTF8ToUTF16(profile->GetPrefs()->GetString(
|
| + prefs::kGoogleServicesUsername));
|
| +
|
| if (profile->GetPath() == GetDefaultProfileDir(cache.GetUserDataDir())) {
|
| cache.AddProfileToCache(
|
| profile->GetPath(),
|
| - l10n_util::GetStringUTF16(IDS_DEFAULT_PROFILE_NAME), 0);
|
| + l10n_util::GetStringUTF16(IDS_DEFAULT_PROFILE_NAME), username, 0);
|
| } else {
|
| cache.AddProfileToCache(
|
| - profile->GetPath(),
|
| - cache.ChooseNameForNewProfile(),
|
| + profile->GetPath(), cache.ChooseNameForNewProfile(), username,
|
| cache.ChooseAvatarIconIndexForNewProfile());
|
| }
|
| }
|
|
|