| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/crash_upload_list_crashpad.h" | 5 #include "chrome/browser/crash_upload_list_crashpad.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/threading/sequenced_worker_pool.h" | 9 #include "base/threading/sequenced_worker_pool.h" |
| 8 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "build/build_config.h" |
| 9 #include "chrome/common/chrome_constants.h" | 12 #include "chrome/common/chrome_constants.h" |
| 10 #include "components/crash/content/app/crashpad.h" | 13 #include "components/crash/content/app/crashpad.h" |
| 11 | 14 |
| 12 namespace { | 15 namespace { |
| 13 | 16 |
| 14 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 15 typedef void (*GetUploadedReportsPointer)( | 18 typedef void (*GetUploadedReportsPointer)( |
| 16 const crash_reporter::UploadedReport** reports, | 19 const crash_reporter::UploadedReport** reports, |
| 17 size_t* report_count); | 20 size_t* report_count); |
| 18 | 21 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 61 |
| 59 ClearUploads(); | 62 ClearUploads(); |
| 60 for (const crash_reporter::UploadedReport& uploaded_report : | 63 for (const crash_reporter::UploadedReport& uploaded_report : |
| 61 uploaded_reports) { | 64 uploaded_reports) { |
| 62 AppendUploadInfo( | 65 AppendUploadInfo( |
| 63 UploadInfo(uploaded_report.remote_id, | 66 UploadInfo(uploaded_report.remote_id, |
| 64 base::Time::FromTimeT(uploaded_report.creation_time), | 67 base::Time::FromTimeT(uploaded_report.creation_time), |
| 65 uploaded_report.local_id, base::Time())); | 68 uploaded_report.local_id, base::Time())); |
| 66 } | 69 } |
| 67 } | 70 } |
| OLD | NEW |