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

Unified Diff: handler/mac/crash_report_exception_handler.cc

Issue 982613002: handler: Add report upload (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 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: handler/mac/crash_report_exception_handler.cc
diff --git a/handler/mac/crash_report_exception_handler.cc b/handler/mac/crash_report_exception_handler.cc
index ec23e3017e6e04dbeb465ea836bccb2f55ca76a1..cae2ad0febcbba0bd5e71feebec402c2b2216915 100644
--- a/handler/mac/crash_report_exception_handler.cc
+++ b/handler/mac/crash_report_exception_handler.cc
@@ -59,9 +59,11 @@ class CallErrorWritingCrashReport {
CrashReportExceptionHandler::CrashReportExceptionHandler(
CrashReportDatabase* database,
- CrashReportUploadThread* upload_thread)
+ CrashReportUploadThread* upload_thread,
+ const std::map<std::string, std::string>& process_annotations)
: database_(database),
- upload_thread_(upload_thread) {
+ upload_thread_(upload_thread),
+ process_annotations_(process_annotations) {
}
CrashReportExceptionHandler::~CrashReportExceptionHandler() {
@@ -108,6 +110,8 @@ kern_return_t CrashReportExceptionHandler::CatchMachException(
return KERN_FAILURE;
}
+ process_snapshot.SetAnnotationsSimpleMap(process_annotations_);
+
CrashReportDatabase::NewReport* new_report;
CrashReportDatabase::OperationStatus database_status =
database_->PrepareNewCrashReport(&new_report);

Powered by Google App Engine
This is Rietveld 408576698