OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/crash_upload_list_mac.h" | |
6 | |
7 #include "base/threading/sequenced_worker_pool.h" | |
8 #include "base/time/time.h" | |
9 #include "components/crash/content/app/crashpad_mac.h" | |
10 | |
11 CrashUploadListMac::CrashUploadListMac( | |
12 Delegate* delegate, | |
13 const base::FilePath& upload_log_path, | |
14 const scoped_refptr<base::SequencedWorkerPool>& worker_pool) | |
15 : CrashUploadList(delegate, upload_log_path, worker_pool) { | |
16 } | |
17 | |
18 CrashUploadListMac::~CrashUploadListMac() { | |
19 } | |
20 | |
21 void CrashUploadListMac::LoadUploadList() { | |
22 std::vector<crash_reporter::UploadedReport> uploaded_reports; | |
23 crash_reporter::GetUploadedReports(&uploaded_reports); | |
24 | |
25 ClearUploads(); | |
26 for (const crash_reporter::UploadedReport& uploaded_report : | |
27 uploaded_reports) { | |
28 AppendUploadInfo( | |
29 UploadInfo(uploaded_report.remote_id, | |
30 base::Time::FromTimeT(uploaded_report.creation_time), | |
31 uploaded_report.local_id, | |
32 base::Time())); | |
33 } | |
34 } | |
OLD | NEW |