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

Unified Diff: mojo/runner/host/child_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/desktop/main_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/host/child_process.cc
diff --git a/mojo/runner/host/child_process.cc b/mojo/runner/host/child_process.cc
index a9f07bb7325962ca892211b4eef03ea942d08ebd..07c574a0573edac704e2b172b6d4c0b0cf668764 100644
--- a/mojo/runner/host/child_process.cc
+++ b/mojo/runner/host/child_process.cc
@@ -361,15 +361,14 @@ int ChildProcessMain() {
base::i18n::InitializeICU();
if (app_library)
CallLibraryEarlyInitialization(app_library);
-#if defined(OS_LINUX) && !defined(OS_ANDROID)
- if (command_line.HasSwitch(switches::kEnableSandbox)) {
#if !defined(OFFICIAL_BUILD)
- // Initialize stack dumping just before initializing sandbox to make
- // sure symbol names in all loaded libraries will be cached.
- base::debug::EnableInProcessStackDumping();
+ // Initialize stack dumping just before initializing sandbox to make
+ // sure symbol names in all loaded libraries will be cached.
+ base::debug::EnableInProcessStackDumping();
#endif
+#if defined(OS_LINUX) && !defined(OS_ANDROID)
+ if (command_line.HasSwitch(switches::kEnableSandbox))
sandbox = InitializeSandbox();
- }
#endif
embedder::ScopedPlatformHandle platform_channel =
« no previous file with comments | « mojo/runner/desktop/main_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698