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

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

Issue 1001103002: Crashpad! (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sign crashpad_handler Created 5 years, 9 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 unified diff | Download patch
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_mac.h"
6
7 #include "base/time/time.h"
8 #include "components/crash/app/crashpad_mac.h"
9
10 CrashUploadListMac::CrashUploadListMac(Delegate* delegate,
11 const base::FilePath& upload_log_path)
12 : CrashUploadList(delegate, upload_log_path) {
13 }
14
15 CrashUploadListMac::~CrashUploadListMac() {
16 }
17
18 void CrashUploadListMac::LoadUploadList() {
19 std::vector<crash_reporter::UploadedReport> uploaded_reports;
20 crash_reporter::GetUploadedReports(&uploaded_reports);
21
22 ClearUploads();
23 for (const crash_reporter::UploadedReport& uploaded_report :
24 uploaded_reports) {
25 AppendUploadInfo(
26 UploadInfo(uploaded_report.remote_id,
27 base::Time::FromTimeT(uploaded_report.creation_time),
28 uploaded_report.local_id));
29 }
30 }
OLDNEW
« no previous file with comments | « chrome/browser/crash_upload_list_mac.h ('k') | chrome/browser/google/google_update_settings_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698