Chromium Code Reviews| Index: chrome/browser/profiles/profile_window.cc |
| diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc |
| index a3ac27a70f610762a51ad61f7ef7e50c3f69eb7f..518868648b84caa1cf320ede2ca1c0d147c01649 100644 |
| --- a/chrome/browser/profiles/profile_window.cc |
| +++ b/chrome/browser/profiles/profile_window.cc |
| @@ -8,6 +8,7 @@ |
| #include "base/files/file_path.h" |
| #include "base/prefs/pref_service.h" |
| #include "base/strings/string_number_conversions.h" |
| +#include "base/strings/utf_string_conversions.h" |
| #include "chrome/browser/browser_process.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/browser/profiles/profile_manager.h" |
| @@ -220,9 +221,14 @@ void SwitchToGuestProfile(chrome::HostDesktopType desktop_type, |
| void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type, |
| ProfileSwitchingDoneCallback callback, |
| ProfileMetrics::ProfileAdd metric) { |
| + ProfileInfoCache& cache = |
| + g_browser_process->profile_manager()->GetProfileInfoCache(); |
| + |
| ProfileManager::CreateMultiProfileAsync( |
| - base::string16(), |
| - base::string16(), |
| + cache.ChooseNameForNewProfile( |
|
noms (inactive)
2014/03/27 20:19:32
make a variable that stores the result of GetPlace
Mike Lerman
2014/04/02 17:46:25
Done.
|
| + ProfileInfoCache::GetPlaceholderAvatarIndex()), |
| + base::UTF8ToUTF16(ProfileInfoCache::GetDefaultAvatarIconUrl( |
| + ProfileInfoCache::GetPlaceholderAvatarIndex())), |
| base::Bind(&OpenBrowserWindowForProfile, |
| callback, |
| true, |