summaryrefslogtreecommitdiffstats
path: root/mojo/application
diff options
context:
space:
mode:
authorabarth <abarth@chromium.org>2014-10-16 12:47:56 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-16 19:52:33 +0000
commit72a65e46a0ae1000662856838179f3ee46a2b6c1 (patch)
tree151fd63f063958392bb1f1770eae14c0ebc4690a /mojo/application
parente850894b42be7e4fb5df75392ccb79e18ccffe01 (diff)
downloadchromium_src-72a65e46a0ae1000662856838179f3ee46a2b6c1.zip
chromium_src-72a65e46a0ae1000662856838179f3ee46a2b6c1.tar.gz
chromium_src-72a65e46a0ae1000662856838179f3ee46a2b6c1.tar.bz2
[Mojo] ApplicationRunnerChromium should dump stacks in debug
This behavior matches what we do in renderer_main.cc. R=jamesr@chromium.org Review URL: https://codereview.chromium.org/658113003 Cr-Commit-Position: refs/heads/master@{#299961}
Diffstat (limited to 'mojo/application')
-rw-r--r--mojo/application/application_runner_chromium.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/mojo/application/application_runner_chromium.cc b/mojo/application/application_runner_chromium.cc
index fa139c7..e49b8e2 100644
--- a/mojo/application/application_runner_chromium.cc
+++ b/mojo/application/application_runner_chromium.cc
@@ -6,6 +6,7 @@
#include "base/at_exit.h"
#include "base/command_line.h"
+#include "base/debug/stack_trace.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "mojo/common/message_pump_mojo.h"
@@ -45,6 +46,10 @@ MojoResult ApplicationRunnerChromium::Run(MojoHandle shell_handle) {
base::AtExitManager at_exit;
#endif
+#ifndef NDEBUG
+ base::debug::EnableInProcessStackDumping();
+#endif
+
{
scoped_ptr<base::MessageLoop> loop;
if (message_loop_type_ == base::MessageLoop::TYPE_CUSTOM)