Index: handler/crash_report_upload_thread.cc |
diff --git a/handler/crash_report_upload_thread.cc b/handler/crash_report_upload_thread.cc |
index d1429445017b396c103bd3603b30e551fdfa3789..c84facb2e9459cdb55baa72e06a8e312a36099c0 100644 |
--- a/handler/crash_report_upload_thread.cc |
+++ b/handler/crash_report_upload_thread.cc |
@@ -139,12 +139,12 @@ class CallRecordUploadAttempt { |
CrashReportUploadThread::CrashReportUploadThread(CrashReportDatabase* database, |
const std::string& url) |
: url_(url), |
- database_(database), |
// Check for pending reports every 15 minutes, even in the absence of a |
// signal from the handler thread. This allows for failed uploads to be |
// retried periodically, and for pending reports written by other |
// processes to be recognized. |
- thread_(15 * 60, this) { |
+ thread_(15 * 60, this), |
+ database_(database) { |
} |
CrashReportUploadThread::~CrashReportUploadThread() { |