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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/crash_upload_list_mac.cc
diff --git a/chrome/browser/crash_upload_list_mac.cc b/chrome/browser/crash_upload_list_mac.cc
new file mode 100644
index 0000000000000000000000000000000000000000..98d9b7a6925b3f87b471cb95224a29899699200e
--- /dev/null
+++ b/chrome/browser/crash_upload_list_mac.cc
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/crash_upload_list_mac.h"
+
+#include "base/time/time.h"
+#include "components/crash/app/crashpad_mac.h"
+
+CrashUploadListMac::CrashUploadListMac(Delegate* delegate,
+ const base::FilePath& upload_log_path)
+ : CrashUploadList(delegate, upload_log_path) {
+}
+
+CrashUploadListMac::~CrashUploadListMac() {
+}
+
+void CrashUploadListMac::LoadUploadList() {
+ std::vector<crash_reporter::UploadedReport> uploaded_reports;
+ crash_reporter::GetUploadedReports(&uploaded_reports);
+
+ ClearUploads();
+ for (const crash_reporter::UploadedReport& uploaded_report :
+ uploaded_reports) {
+ AppendUploadInfo(
+ UploadInfo(uploaded_report.remote_id,
+ base::Time::FromTimeT(uploaded_report.creation_time),
+ uploaded_report.local_id));
+ }
+}
« 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