summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 22:41:41 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 22:41:41 +0000
commit69d8ae7da06eab2931623489bfc1ade67dd13af9 (patch)
treee75def1d6eb9caed2258073ac8eb3c8081251916 /chrome/browser
parentaef8d5ae72f5da1a2668d9c2bac4596d4c6f0266 (diff)
downloadchromium_src-69d8ae7da06eab2931623489bfc1ade67dd13af9.zip
chromium_src-69d8ae7da06eab2931623489bfc1ade67dd13af9.tar.gz
chromium_src-69d8ae7da06eab2931623489bfc1ade67dd13af9.tar.bz2
Linux: Pass --user-data-dir to the Zygote. (Reland r41369 now that the directory creation race has been fixed.)
BUG=none TEST=On Linux, "chrome --enable-logging --user-data-dir=/tmp/foobar" writes renderer logs to chrome_debug.log in /tmp/foobar rather than in $XDG_CONFIG_HOME. TBR=evan Original review: http://codereview.chromium.org/885003 Review URL: http://codereview.chromium.org/1060002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41891 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/zygote_host_linux.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/zygote_host_linux.cc b/chrome/browser/zygote_host_linux.cc
index 3b6a160..96506bb 100644
--- a/chrome/browser/zygote_host_linux.cc
+++ b/chrome/browser/zygote_host_linux.cc
@@ -97,6 +97,12 @@ void ZygoteHost::Init(const std::string& sandbox_cmd) {
browser_command_line.GetSwitchValueASCII(
switches::kEnableLogging));
}
+ if (browser_command_line.HasSwitch(switches::kUserDataDir)) {
+ // Append with value so logs go to the right file.
+ cmd_line.AppendSwitchWithValue(switches::kUserDataDir,
+ browser_command_line.GetSwitchValueASCII(
+ switches::kUserDataDir));
+ }
if (browser_command_line.HasSwitch(switches::kEnableSeccompSandbox)) {
cmd_line.AppendSwitch(switches::kEnableSeccompSandbox);
}