Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index 2d9576fb4caba2f4d4921c29a121a83c2f2ab12c..a0ad674599136715295772db7ad3e334b2084eb6 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -423,8 +423,14 @@ Profile* CreateProfile(const MainFunctionParams& parameters, |
parsed_command_line.GetSwitchValueASCII( |
switches::kProfileDirectory)); |
} |
+#if defined(OS_CHROMEOS) |
+ // TODO(ivankr): http://crbug.com/83792 |
+ profile = g_browser_process->profile_manager()->GetDefaultProfile( |
+ user_data_dir); |
+#else |
profile = g_browser_process->profile_manager()->GetLastUsedProfile( |
user_data_dir); |
+#endif |
if (profile) |
return profile; |