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

Unified Diff: content/browser/utility_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: align function parameters 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/utility_process_host_impl.cc
diff --git a/content/browser/utility_process_host_impl.cc b/content/browser/utility_process_host_impl.cc
index 82c3c5330ebc931c9f1a4a1c9dc816d8bca9692d..30e54536db7fca7dc8eac186cbb6efefd1c11fbf 100644
--- a/content/browser/utility_process_host_impl.cc
+++ b/content/browser/utility_process_host_impl.cc
@@ -4,6 +4,7 @@
#include "content/browser/utility_process_host_impl.h"
+#include "base/base_switches.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
@@ -165,6 +166,14 @@ bool UtilityProcessHostImpl::StartProcess() {
cmd_line->AppendSwitchPath(switches::kUtilityProcessAllowedDir, exposed_dir_);
#endif
+ static const char* kForwardSwitches[] = {
+ switches::kEnableLogging, // Support, e.g., --enable-logging=stderr
piman 2012/10/12 17:00:33 nit: I don't think this comment adds anything. Ple
+ switches::kV,
+ switches::kVModule,
+ };
piman 2012/10/12 17:00:33 Could you move the flags handling above into here,
+ cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches,
+ arraysize(kForwardSwitches));
+
bool use_zygote = false;
#if defined(OS_LINUX)
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698