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

Unified Diff: handler/mac/crash_report_exception_handler.cc

Issue 918743002: handler: Add crash report upload. Almost (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback 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
« no previous file with comments | « handler/mac/crash_report_exception_handler.h ('k') | handler/mac/crash_report_upload_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2f497c6bfec29ad41337a9590eed6fb9b4125b1e..ec23e3017e6e04dbeb465ea836bccb2f55ca76a1 100644
--- a/handler/mac/crash_report_exception_handler.cc
+++ b/handler/mac/crash_report_exception_handler.cc
@@ -58,8 +58,10 @@ class CallErrorWritingCrashReport {
} // namespace
CrashReportExceptionHandler::CrashReportExceptionHandler(
- CrashReportDatabase* database)
- : database_(database) {
+ CrashReportDatabase* database,
+ CrashReportUploadThread* upload_thread)
+ : database_(database),
+ upload_thread_(upload_thread) {
}
CrashReportExceptionHandler::~CrashReportExceptionHandler() {
@@ -132,6 +134,8 @@ kern_return_t CrashReportExceptionHandler::CatchMachException(
return KERN_FAILURE;
}
+ upload_thread_->ReportPending();
+
return ExcServerSuccessfulReturnValue(behavior, false);
}
« no previous file with comments | « handler/mac/crash_report_exception_handler.h ('k') | handler/mac/crash_report_upload_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698