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

Unified Diff: components/crash/app/breakpad_linux.cc

Issue 1105293003: android_webview: don't suppress debuggerd crash handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/app/breakpad_linux.cc
diff --git a/components/crash/app/breakpad_linux.cc b/components/crash/app/breakpad_linux.cc
index c6fef0da0c0b48a23bfb26ae35e00043f167aa3b..03ce34b1089d0baf441b940ed65a8212ee20b7d6 100644
--- a/components/crash/app/breakpad_linux.cc
+++ b/components/crash/app/breakpad_linux.cc
@@ -730,11 +730,12 @@ void InitMicrodumpCrashHandlerIfNecessary(const std::string& process_type) {
VLOG(1) << "Enabling microdumps crash handler (process_type:"
<< process_type << ")";
DCHECK(!g_microdump);
+ bool is_browser_process = process_type.empty() || process_type == "webview";
g_microdump = new ExceptionHandler(
MinidumpDescriptor(MinidumpDescriptor::kMicrodumpOnConsole),
NULL,
MicrodumpCrashDone,
- reinterpret_cast<void*>(process_type.empty()),
+ reinterpret_cast<void*>(is_browser_process),
true, // Install handlers.
-1); // Server file descriptor. -1 for in-process.
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698