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

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

Issue 1508053003: Show the callstack that a nontransferable message pipe was first used if it's erroneously sent later (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove frame fix Created 5 years 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') | mojo/runner/desktop/main_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/desktop/launcher_process.cc
diff --git a/mojo/runner/desktop/launcher_process.cc b/mojo/runner/desktop/launcher_process.cc
index b55953c32e4d2bc330868b7a5931371c2f7b7466..735466139d08264f0b09204c2042550d77b2978d 100644
--- a/mojo/runner/desktop/launcher_process.cc
+++ b/mojo/runner/desktop/launcher_process.cc
@@ -11,6 +11,7 @@
#include "base/base_switches.h"
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/debug/stack_trace.h"
#include "base/files/file_util.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
@@ -24,6 +25,9 @@ namespace mojo {
namespace runner {
int LauncherProcessMain(const GURL& mojo_url, const base::Closure& callback) {
+#if !defined(OFFICIAL_BUILD)
+ base::debug::EnableInProcessStackDumping();
+#endif
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
if (!command_line->HasSwitch(switches::kMojoSingleProcess) &&
!command_line->HasSwitch("gtest_list_tests"))
« no previous file with comments | « mojo/runner/android/main.cc ('k') | mojo/runner/desktop/main_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698