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

Unified Diff: mojo/runner/desktop/main.cc

Issue 1317333003: Moves initialization of exception handler registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add include Created 5 years, 4 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 | « mojo/runner/android/main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/desktop/main.cc
diff --git a/mojo/runner/desktop/main.cc b/mojo/runner/desktop/main.cc
index 1764c3f110008845807b793be043b98fdb7c5e87..93c2376394cd41037920bc5285ad7e30b989ccd9 100644
--- a/mojo/runner/desktop/main.cc
+++ b/mojo/runner/desktop/main.cc
@@ -4,6 +4,9 @@
#include "base/at_exit.h"
#include "base/command_line.h"
+#include "base/debug/stack_trace.h"
+#include "base/process/launch.h"
+#include "build/build_config.h"
#include "mojo/runner/child_process.h"
#include "mojo/runner/desktop/launcher_process.h"
#include "mojo/runner/init.h"
@@ -17,6 +20,14 @@ int main(int argc, char** argv) {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
+
+#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();
« no previous file with comments | « mojo/runner/android/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698