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

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

Issue 2694083004: Fix minidump-generation for debug builds. (Closed)
Patch Set: Only declare + use SanitizationInfo on Android. 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
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 3cf45d6bdcb69101d98746613194c90e6bc661b5..70bbdc7f2ea4f3f1fe04259e8b7b7560dce31bef 100644
--- a/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc
+++ b/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc
@@ -156,20 +156,25 @@ 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);
-#if !defined(COMPONENT_BUILD)
- breakpad::SetSkipDumpIfPrincipalMappingNotReferenced(
- reinterpret_cast<uintptr_t>(&EnableCrashReporter));
-#endif
+ breakpad::SanitizationInfo sanitizationInfo;
Robert Sesek 2017/02/15 17:38:43 naming: sanitization_info
gsennton 2017/02/15 18:10:17 Done.
+ sanitizationInfo.should_sanitize_dumps = true;
+#if defined(COMPONENT_BUILD)
+ sanitizationInfo.skip_dump_if_principal_mapping_not_referenced = false;
+#else
+ sanitizationInfo.skip_dump_if_principal_mapping_not_referenced = true;
+ sanitizationInfo.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("", sanitizationInfo);
} else {
- breakpad::InitNonBrowserCrashReporterForAndroid(process_type);
+ breakpad::InitNonBrowserCrashReporterForAndroid(process_type,
+ sanitizationInfo);
}
g_enabled = true;
}
« no previous file with comments | « no previous file | android_webview/common/crash_reporter/crash_keys.cc » ('j') | components/crash/content/app/breakpad_linux.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698