Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(960)

Unified Diff: content/browser/browser_child_process_host_impl.cc

Issue 11103028: Logging: pass logging related cmd line options to utility process (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove extra empty line Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c10d82db87ce1ea69bd6fb3460678b2bf087d8d8 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,20 @@ 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));
child_process_.reset(new ChildProcessLauncher(
#if defined(OS_WIN)
« no previous file with comments | « AUTHORS ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698