From ebd55c1147cd4c6bdd81810f989b39906e0ec2f9 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 8 Oct 2019 16:35:28 -0700 Subject: [PATCH] fix: fix crash in crashReporter.getUploadedReports (#20428) --- shell/common/crash_reporter/crash_reporter_crashpad.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/common/crash_reporter/crash_reporter_crashpad.cc b/shell/common/crash_reporter/crash_reporter_crashpad.cc index 3c82ccf4535..95c07165be2 100644 --- a/shell/common/crash_reporter/crash_reporter_crashpad.cc +++ b/shell/common/crash_reporter/crash_reporter_crashpad.cc @@ -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;