Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index 29c609377b1b103a0aeeca07979069a302300032..4a02401a503c1e75daec9c1fe0280094db2a9147 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); |