summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/app/content_main_runner.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 58dc14b..4d76ab1 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -530,6 +530,12 @@ static void ReleaseFreeMemoryThunk() {
SetContentClient(&empty_content_client_);
ContentClientInitializer::Set(process_type, delegate_);
+#if defined(OS_WIN)
+ // Route stdio to parent console (if any) or create one.
+ if (command_line.HasSwitch(switches::kEnableLogging))
+ base::RouteStdioToConsole();
+#endif
+
// Enable startup tracing asap to avoid early TRACE_EVENT calls being
// ignored.
if (command_line.HasSwitch(switches::kTraceStartup)) {