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

Unified Diff: third_party/crashpad/crashpad/handler/handler_main.cc

Issue 1568553002: Update Crashpad to 54048cfd78af0a54cf4a2d2ecfb83881f5c54590 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OWN Created 4 years, 11 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698