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

Unified Diff: components/upload_list/upload_list.cc

Issue 2330573002: Show crash report size in crashes UI for Android. (Closed)
Patch Set: Add a copy constructor Created 4 years, 3 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 | « components/upload_list/upload_list.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/upload_list/upload_list.cc
diff --git a/components/upload_list/upload_list.cc b/components/upload_list/upload_list.cc
index 6922be55215f2605f5d9c07052157f512fb6e906..b08d38f0d7ef0324570159425b9bba8315f3a4b2 100644
--- a/components/upload_list/upload_list.cc
+++ b/components/upload_list/upload_list.cc
@@ -28,10 +28,27 @@ UploadList::UploadInfo::UploadInfo(const std::string& upload_id,
capture_time(capture_time),
state(state) {}
+UploadList::UploadInfo::UploadInfo(const std::string& local_id,
+ const base::Time& capture_time,
+ State state,
+ const base::string16& file_size)
+ : local_id(local_id),
+ capture_time(capture_time),
+ state(state),
+ file_size(file_size) {}
+
UploadList::UploadInfo::UploadInfo(const std::string& upload_id,
const base::Time& upload_time)
: upload_id(upload_id), upload_time(upload_time), state(State::Uploaded) {}
+UploadList::UploadInfo::UploadInfo(const UploadInfo& upload_info)
+ : upload_id(upload_info.upload_id),
+ upload_time(upload_info.upload_time),
+ local_id(upload_info.local_id),
+ capture_time(upload_info.capture_time),
+ state(upload_info.state),
+ file_size(upload_info.file_size) {}
+
UploadList::UploadInfo::~UploadInfo() {}
UploadList::UploadList(
« no previous file with comments | « components/upload_list/upload_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698