diff options
author | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 01:29:12 +0000 |
---|---|---|
committer | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 01:29:12 +0000 |
commit | 3bba958a050be8ddc6cc6fbae33e2ea94b310935 (patch) | |
tree | e5d5c76638b38fbe4a0c1b295277742bedf25137 /chrome/browser/zygote_host_linux.cc | |
parent | 132c8565a63ad57d680b6b8d9beaa28786a46ea8 (diff) | |
download | chromium_src-3bba958a050be8ddc6cc6fbae33e2ea94b310935.zip chromium_src-3bba958a050be8ddc6cc6fbae33e2ea94b310935.tar.gz chromium_src-3bba958a050be8ddc6cc6fbae33e2ea94b310935.tar.bz2 |
Linux: forward --log-level from the browser to the zygote.
BUG=none
TEST=pass --log-level=0 on startup, the setting will now be used in the renderers
Review URL: http://codereview.chromium.org/159881
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22455 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/zygote_host_linux.cc')
-rw-r--r-- | chrome/browser/zygote_host_linux.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/zygote_host_linux.cc b/chrome/browser/zygote_host_linux.cc index 9f9e4aa..627d62b 100644 --- a/chrome/browser/zygote_host_linux.cc +++ b/chrome/browser/zygote_host_linux.cc @@ -64,9 +64,22 @@ ZygoteHost::ZygoteHost() { browser_command_line.GetSwitchValue(switches::kZygoteCmdPrefix); cmd_line.PrependWrapper(prefix); } + // Append any switches from the browser process that need to be forwarded on + // to the zygote/renderers. if (browser_command_line.HasSwitch(switches::kAllowSandboxDebugging)) { cmd_line.AppendSwitch(switches::kAllowSandboxDebugging); } + if (browser_command_line.HasSwitch(switches::kLoggingLevel)) { + cmd_line.AppendSwitchWithValue(switches::kLoggingLevel, + browser_command_line.GetSwitchValue( + switches::kLoggingLevel)); + } + if (browser_command_line.HasSwitch(switches::kEnableLogging)) { + // Append with value to support --enable-logging=stderr. + cmd_line.AppendSwitchWithValue(switches::kEnableLogging, + browser_command_line.GetSwitchValue( + switches::kEnableLogging)); + } const char* sandbox_binary = NULL; struct stat st; |