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..229968ee5cbecb6efe366e4db4eefbd3ab9a176e 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,6 +122,19 @@ void BrowserChildProcessHostImpl::Launch( |
| content::GetContentClient()->browser()->AppendExtraCommandLineSwitches( |
| cmd_line, data_.id); |
| + const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); |
| + static const char* kForwardSwitches[] = { |
|
piman
2012/10/17 06:10:25
nit: can you add:
#if defined(OS_POSIX)
switch
qiankun
2012/10/17 09:47:37
Done.
|
| + switches::kDisableLogging, |
| + switches::kEnableDCHECK, |
| + switches::kEnableLogging, |
| + switches::kLoggingLevel, |
| + switches::kV, |
| + switches::kVModule, |
| + }; |
| + cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, |
| + arraysize(kForwardSwitches)); |
| + |
| + |
| #if defined(OS_POSIX) |
| if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChildCleanExit)) |
| cmd_line->AppendSwitch(switches::kChildCleanExit); |