| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 68ca846aac6ff574c20619110c15c973aa39e224..d167fcd9b2f3af4ce95b896f5a34d51103e872ca 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -342,6 +342,13 @@ Profile* CreatePrimaryProfile(const content::MainFunctionParams& parameters,
|
| #else
|
| base::FilePath profile_path =
|
| GetStartupProfilePath(user_data_dir, parsed_command_line);
|
| +
|
| + // Without NewAvatarMenu, replace guest with any existing profile.
|
| + if (!switches::IsNewAvatarMenu() &&
|
| + profile_path == ProfileManager::GetGuestProfilePath()) {
|
| + profile_path = g_browser_process->profile_manager()->GetProfileInfoCache().
|
| + GetPathOfProfileAtIndex(0);
|
| + }
|
| profile = g_browser_process->profile_manager()->GetProfile(
|
| profile_path);
|
|
|
|
|