Chromium Code Reviews| Index: mojo/runner/desktop/main.cc |
| diff --git a/mojo/runner/desktop/main.cc b/mojo/runner/desktop/main.cc |
| index 1764c3f110008845807b793be043b98fdb7c5e87..9f1a5b083fb5510929cb98d04f62b15f4819fa01 100644 |
| --- a/mojo/runner/desktop/main.cc |
| +++ b/mojo/runner/desktop/main.cc |
| @@ -4,6 +4,7 @@ |
| #include "base/at_exit.h" |
| #include "base/command_line.h" |
| +#include "base/debug/stack_trace.h" |
| #include "mojo/runner/child_process.h" |
| #include "mojo/runner/desktop/launcher_process.h" |
| #include "mojo/runner/init.h" |
| @@ -17,6 +18,14 @@ int main(int argc, char** argv) { |
| const base::CommandLine& command_line = |
| *base::CommandLine::ForCurrentProcess(); |
| + |
|
yzshen1
2015/08/28 19:43:22
Please consider including build/build_config.h.
sky
2015/08/28 19:53:01
Done.
|
| +#if !defined(OFFICIAL_BUILD) |
| + base::debug::EnableInProcessStackDumping(); |
| +#if defined(OS_WIN) |
| + base::RouteStdioToConsole(false); |
| +#endif |
| +#endif |
| + |
| if (command_line.HasSwitch(switches::kChildProcess)) |
| return mojo::runner::ChildProcessMain(); |