Skip to content

Commit

Permalink
[Mojo] ApplicationRunnerChromium should dump stacks in debug
Browse files Browse the repository at this point in the history
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}
  • Loading branch information
abarth authored and Commit bot committed Oct 16, 2014
1 parent e850894 commit 72a65e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mojo/application/application_runner_chromium.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 72a65e4

Please sign in to comment.