Chromium Code Reviews| Index: content/browser/browser_child_process_host_impl.cc |
| diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc |
| index 6c7dd9c902389025f625c0d9a9f9d4594e379cb3..8473795aed991b6bd7eb52a75c39aed632cfc53e 100644 |
| --- a/content/browser/browser_child_process_host_impl.cc |
| +++ b/content/browser/browser_child_process_host_impl.cc |
| @@ -4,6 +4,7 @@ |
| #include "content/browser/browser_child_process_host_impl.h" |
| +#include "base/base_switches.h" |
| #include "base/bind.h" |
| #include "base/command_line.h" |
| #include "base/file_path.h" |
| @@ -121,10 +122,21 @@ void BrowserChildProcessHostImpl::Launch( |
| content::GetContentClient()->browser()->AppendExtraCommandLineSwitches( |
| cmd_line, data_.id); |
| + const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); |
| + static const char* kForwardSwitches[] = { |
| #if defined(OS_POSIX) |
| - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChildCleanExit)) |
| - cmd_line->AppendSwitch(switches::kChildCleanExit); |
| + switches::kChildCleanExit, |
| #endif |
| + switches::kDisableLogging, |
| + switches::kEnableDCHECK, |
| + switches::kEnableLogging, |
| + switches::kLoggingLevel, |
| + switches::kV, |
| + switches::kVModule, |
| + }; |
| + cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, |
| + arraysize(kForwardSwitches)); |
| + |
|
jam
2012/10/17 15:19:41
nit: extra line
|
| child_process_.reset(new ChildProcessLauncher( |
| #if defined(OS_WIN) |