| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index f23f18542f51ede9de4c8bd49ec8c346e414c4a1..0e10280a9a1066c49f12dae1006f08739174576a 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -378,12 +378,6 @@ Profile* CreatePrimaryProfile(const content::MainFunctionParams& parameters,
|
| 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);
|
|
|
|
|