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

Unified Diff: android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc

Issue 2694083004: Fix minidump-generation for debug builds. (Closed)
Patch Set: Add back leak-annotations. Created 3 years, 10 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 | « android_webview/common/crash_reporter/OWNERS ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc
diff --git a/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc b/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc
index 6d5e33d9cbd2ca38a284b92b4fd5be291420e158..44c3b7cc8712b30377f5f9987edb08ba33059bbc 100644
--- a/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc
+++ b/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc
@@ -168,20 +168,23 @@ void EnableCrashReporter(const std::string& process_type, int crash_signal_fd) {
client->set_crash_signal_fd(crash_signal_fd);
}
::crash_reporter::SetCrashReporterClient(client);
- breakpad::SetShouldSanitizeDumps(true);
+ breakpad::SanitizationInfo sanitization_info;
+ sanitization_info.should_sanitize_dumps = true;
#if !defined(COMPONENT_BUILD)
- breakpad::SetSkipDumpIfPrincipalMappingNotReferenced(
- reinterpret_cast<uintptr_t>(&EnableCrashReporter));
-#endif
+ sanitization_info.skip_dump_if_principal_mapping_not_referenced = true;
+ sanitization_info.address_within_principal_mapping =
+ reinterpret_cast<uintptr_t>(&EnableCrashReporter);
+#endif // defined(COMPONENT_BUILD)
bool is_browser_process =
process_type.empty() ||
process_type == breakpad::kWebViewSingleProcessType ||
process_type == breakpad::kBrowserProcessType;
if (is_browser_process) {
- breakpad::InitCrashReporter("");
+ breakpad::InitCrashReporter("", sanitization_info);
} else {
- breakpad::InitNonBrowserCrashReporterForAndroid(process_type);
+ breakpad::InitNonBrowserCrashReporterForAndroid(process_type,
+ sanitization_info);
}
g_enabled = true;
}
« no previous file with comments | « android_webview/common/crash_reporter/OWNERS ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698