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); |