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

Unified Diff: components/crash/core/browser/crashes_ui_util.cc

Issue 2601853002: Revert of Fixed a bug where chrome crash omits crash time stamp after it's sent. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/crash/core/browser/resources/crashes.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | components/crash/core/browser/resources/crashes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698