Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 0acee1080e69f874536f21a8d9029a67d5ec0dfa..a6acee278f5f3b413b2992494fb2e9a9b63a29d4 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -1511,6 +1511,14 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches( |
arraysize(kIpcFuzzerSwitches)); |
#endif |
+#if defined(OS_CHROMEOS) |
+ // On Chrome OS need to pass primary user homedir (in multi-profiles session). |
+ base::FilePath homedir; |
+ PathService::Get(base::DIR_HOME, &homedir); |
+ command_line->AppendSwitchASCII(chromeos::switches::kHomedir, |
+ homedir.value().c_str()); |
+#endif |
+ |
if (process_type == switches::kRendererProcess) { |
#if defined(OS_CHROMEOS) |
const std::string& login_profile = |