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

Unified Diff: chrome/browser/feedback/system_logs/log_sources/crash_ids_source.cc

Issue 2557983002: Use the correct crash report time (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/feedback/system_logs/log_sources/crash_ids_source.cc
diff --git a/chrome/browser/feedback/system_logs/log_sources/crash_ids_source.cc b/chrome/browser/feedback/system_logs/log_sources/crash_ids_source.cc
index 69adc339b6a18c96afc2f03f77efa533ddf3cb48..cad5edd8c0d338acbf9d176b8bbc58a0cf384b28 100644
--- a/chrome/browser/feedback/system_logs/log_sources/crash_ids_source.cc
+++ b/chrome/browser/feedback/system_logs/log_sources/crash_ids_source.cc
@@ -58,7 +58,11 @@ void CrashIdsSource::OnUploadListAvailable() {
// The feedback server expects the crash IDs to be a comma-separated list.
for (const auto& crash_info : crashes) {
- if (now - crash_info.capture_time < kOneHourTimeDelta) {
+ const base::Time& report_time =
+ crash_info.state == UploadList::UploadInfo::State::Uploaded
+ ? crash_info.upload_time
+ : crash_info.capture_time;
+ if (now - report_time < kOneHourTimeDelta) {
const std::string& crash_id = crash_info.upload_id;
crash_ids_list_.append(crash_ids_list_.empty() ? crash_id
: ", " + crash_id);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698