Index: third_party/crashpad/crashpad/handler/handler_main.cc |
diff --git a/third_party/crashpad/crashpad/handler/handler_main.cc b/third_party/crashpad/crashpad/handler/handler_main.cc |
index 16b89d017b9d3264581066e96f9e29cd69915d4e..d27010e697238ff18769af25e7f069a16708eba1 100644 |
--- a/third_party/crashpad/crashpad/handler/handler_main.cc |
+++ b/third_party/crashpad/crashpad/handler/handler_main.cc |
@@ -32,7 +32,9 @@ |
#include "build/build_config.h" |
#include "client/crash_report_database.h" |
#include "client/crashpad_client.h" |
+#include "client/prune_crash_reports.h" |
#include "handler/crash_report_upload_thread.h" |
+#include "handler/prune_crash_reports_thread.h" |
#include "tools/tool_support.h" |
#include "util/file/file_io.h" |
#include "util/stdlib/map_insert.h" |
@@ -373,12 +375,17 @@ int HandlerMain(int argc, char* argv[]) { |
CrashReportUploadThread upload_thread(database.get(), options.url); |
upload_thread.Start(); |
+ PruneCrashReportThread prune_thread(database.get(), |
+ PruneCondition::GetDefault()); |
+ prune_thread.Start(); |
+ |
CrashReportExceptionHandler exception_handler( |
database.get(), &upload_thread, &options.annotations); |
exception_handler_server.Run(&exception_handler); |
upload_thread.Stop(); |
+ prune_thread.Stop(); |
return EXIT_SUCCESS; |
} |