diff options
author | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-20 23:52:24 +0000 |
---|---|---|
committer | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-20 23:52:24 +0000 |
commit | 102bbfbaef1f52dfc770c51e39af24e14d2665dd (patch) | |
tree | 95281c8bb747972ab16a2c6db62d41c039d460be /content | |
parent | ab17025f9e68b3e4ac6156e5b668e5bfba7901fc (diff) | |
download | chromium_src-102bbfbaef1f52dfc770c51e39af24e14d2665dd.zip chromium_src-102bbfbaef1f52dfc770c51e39af24e14d2665dd.tar.gz chromium_src-102bbfbaef1f52dfc770c51e39af24e14d2665dd.tar.bz2 |
Make printf and LOG output to cmd console for Windows
BUG=142722
Review URL: https://chromiumcodereview.appspot.com/10832309
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152432 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/app/content_main_runner.cc | 6 |
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)) { |