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

Side by Side Diff: chrome/browser/crash_upload_list_crashpad.cc

Issue 1476193002: Revert of Crashpad Windows: Use the Crashpad client instead of Breakpad on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/crash_upload_list_crashpad.h ('k') | chrome/browser/crash_upload_list_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_crashpad.h"
6
7 #include "base/threading/sequenced_worker_pool.h"
8 #include "base/time/time.h"
9 #include "components/crash/content/app/crashpad.h"
10
11 CrashUploadListCrashpad::CrashUploadListCrashpad(
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 CrashUploadListCrashpad::~CrashUploadListCrashpad() {}
18
19 void CrashUploadListCrashpad::LoadUploadList() {
20 std::vector<crash_reporter::UploadedReport> uploaded_reports;
21 crash_reporter::GetUploadedReports(&uploaded_reports);
22
23 ClearUploads();
24 for (const crash_reporter::UploadedReport& uploaded_report :
25 uploaded_reports) {
26 AppendUploadInfo(
27 UploadInfo(uploaded_report.remote_id,
28 base::Time::FromTimeT(uploaded_report.creation_time),
29 uploaded_report.local_id, base::Time()));
30 }
31 }
OLDNEW
« no previous file with comments | « chrome/browser/crash_upload_list_crashpad.h ('k') | chrome/browser/crash_upload_list_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698