Index: components/crash/core/browser/crashes_ui_util.cc |
diff --git a/components/crash/core/browser/crashes_ui_util.cc b/components/crash/core/browser/crashes_ui_util.cc |
index 1a6b4f2b96d0c5d14a7f648b34d67f034e3e5572..c83361c0de9fac0a99d21bc0f72af315a6819a7e 100644 |
--- a/components/crash/core/browser/crashes_ui_util.cc |
+++ b/components/crash/core/browser/crashes_ui_util.cc |
@@ -69,11 +69,12 @@ |
std::unique_ptr<base::DictionaryValue> crash(new base::DictionaryValue()); |
crash->SetString("id", info.upload_id); |
if (info.state == UploadList::UploadInfo::State::Uploaded) { |
- crash->SetString("upload_time", |
+ crash->SetString("time", |
base::TimeFormatFriendlyDateAndTime(info.upload_time)); |
+ } else { |
+ crash->SetString("time", |
+ base::TimeFormatFriendlyDateAndTime(info.capture_time)); |
} |
- crash->SetString("time", |
- base::TimeFormatFriendlyDateAndTime(info.capture_time)); |
crash->SetString("local_id", info.local_id); |
crash->SetString("state", UploadInfoStateAsString(info.state)); |
crash->SetString("file_size", info.file_size); |