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

Unified Diff: handler/handler_main.cc

Issue 1534503002: Create the PruneCrashReportsThread in the handler. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@worker-thread
Patch Set: Address comments 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
« no previous file with comments | « handler/handler.gyp ('k') | handler/prune_crash_reports_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: handler/handler_main.cc
diff --git a/handler/handler_main.cc b/handler/handler_main.cc
index 7ad13f6ff0107ee3016fb024323e100b5156b378..19d0da7a8fb68726bc262a3292d07e1330bee974 100644
--- a/handler/handler_main.cc
+++ b/handler/handler_main.cc
@@ -31,8 +31,10 @@
#include "build/build_config.h"
#include "client/crash_report_database.h"
#include "client/crashpad_client.h"
+#include "client/prune_crash_reports.h"
#include "tools/tool_support.h"
#include "handler/crash_report_upload_thread.h"
+#include "handler/prune_crash_reports_thread.h"
#include "util/file/file_io.h"
#include "util/stdlib/map_insert.h"
#include "util/stdlib/string_number_conversion.h"
@@ -372,12 +374,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;
}
« no previous file with comments | « handler/handler.gyp ('k') | handler/prune_crash_reports_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698