fix: fix crash in crashReporter.getUploadedReports (#20428)

This commit is contained in:
Jeremy Apthorp 2019-10-08 16:35:28 -07:00 committed by GitHub
parent 2ce90f8806
commit ebd55c1147
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ CrashReporterCrashpad::GetUploadedReports(const base::FilePath& crashes_dir) {
auto sort_by_time = [](const UploadReportResult& a,
const UploadReportResult& b) {
return a.first >= b.first;
return a.first > b.first;
};
std::sort(uploaded_reports.begin(), uploaded_reports.end(), sort_by_time);
return uploaded_reports;