android_webview: don't suppress debuggerd crash handling.
WebView was incorrectly suppressing debuggerd crash handling after
breakpad microdumps were triggered on all user builds of android, as the
process type was not empty as expected for the Chrome browser process.
This went unnoticed as the normal behaviour was still in place for
userdebug/eng builds. Fix by also treating "webview" process type as a
browser process in the crash component.
Review URL: https://codereview.chromium.org/1105293003
diff --git a/components/crash/app/breakpad_linux.cc b/components/crash/app/breakpad_linux.cc
index c6fef0d..03ce34b 100644
@@ -730,11 +730,12 @@
VLOG(1) << "Enabling microdumps crash handler (process_type:"
<< process_type << ")";
+ bool is_browser_process = process_type.empty() || process_type == "webview";
g_microdump = new ExceptionHandler(
true, // Install handlers.
-1); // Server file descriptor. -1 for in-process.