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

Issue 1392653002: Add functionality to prune old crash reports from the database. (Closed)

Created:
5 years, 2 months ago by Robert Sesek
Modified:
5 years, 2 months ago
Reviewers:
Mark Mentovai, scottmg
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 62

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Additional comments #

Total comments: 10

Patch Set 4 : Round up to 1k #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+643 lines, -3 lines) Patch
M client/client.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M client/client_test.gyp View 1 2 chunks +2 lines, -0 lines 0 comments Download
M client/crash_report_database.h View 1 chunk +7 lines, -0 lines 0 comments Download
M client/crash_report_database_mac.mm View 1 2 chunks +21 lines, -0 lines 0 comments Download
M client/crash_report_database_test.cc View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
M client/crash_report_database_win.cc View 1 2 3 4 5 chunks +48 lines, -3 lines 0 comments Download
A client/prune_crash_reports.h View 1 2 3 1 chunk +146 lines, -0 lines 0 comments Download
A client/prune_crash_reports.cc View 1 2 3 4 1 chunk +132 lines, -0 lines 0 comments Download
A client/prune_crash_reports_test.cc View 1 2 3 1 chunk +236 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
Robert Sesek
I don't have a Windows box to work on, so this isn't tested there. But ...
5 years, 2 months ago (2015-10-06 22:12:21 UTC) #1
scottmg
I didn't look at the code, but with the below fixed the tests pass on ...
5 years, 2 months ago (2015-10-06 22:22:07 UTC) #3
scottmg
https://codereview.chromium.org/1392653002/diff/1/client/prune_crash_reports_test.cc File client/prune_crash_reports_test.cc (right): https://codereview.chromium.org/1392653002/diff/1/client/prune_crash_reports_test.cc#newcode243 client/prune_crash_reports_test.cc:243: return arc4random() % rand_max; On 2015/10/06 22:22:07, scottmg wrote: ...
5 years, 2 months ago (2015-10-06 22:35:29 UTC) #4
Mark Mentovai
https://codereview.chromium.org/1392653002/diff/1/client/crash_report_database_mac.mm File client/crash_report_database_mac.mm (right): https://codereview.chromium.org/1392653002/diff/1/client/crash_report_database_mac.mm#newcode492 client/crash_report_database_mac.mm:492: lock.reset(); What’s the thinking behind releasing the lock *before* ...
5 years, 2 months ago (2015-10-07 03:54:28 UTC) #5
Robert Sesek
Thanks for testing this on Windows, Scott! https://codereview.chromium.org/1392653002/diff/1/client/crash_report_database_mac.mm File client/crash_report_database_mac.mm (right): https://codereview.chromium.org/1392653002/diff/1/client/crash_report_database_mac.mm#newcode492 client/crash_report_database_mac.mm:492: lock.reset(); On ...
5 years, 2 months ago (2015-10-07 16:24:35 UTC) #6
Mark Mentovai
https://codereview.chromium.org/1392653002/diff/1/client/crash_report_database_mac.mm File client/crash_report_database_mac.mm (right): https://codereview.chromium.org/1392653002/diff/1/client/crash_report_database_mac.mm#newcode492 client/crash_report_database_mac.mm:492: lock.reset(); Robert Sesek wrote: > I didn't expect to ...
5 years, 2 months ago (2015-10-07 16:40:13 UTC) #7
Robert Sesek
https://codereview.chromium.org/1392653002/diff/1/client/prune_crash_reports.cc File client/prune_crash_reports.cc (right): https://codereview.chromium.org/1392653002/diff/1/client/prune_crash_reports.cc#newcode31 client/prune_crash_reports.cc:31: status = database->GetPendingReports(&temp); On 2015/10/07 16:40:13, Mark Mentovai wrote: ...
5 years, 2 months ago (2015-10-07 17:16:29 UTC) #8
Mark Mentovai
LGTM https://codereview.chromium.org/1392653002/diff/40001/client/crash_report_database_win.cc File client/crash_report_database_win.cc (right): https://codereview.chromium.org/1392653002/diff/40001/client/crash_report_database_win.cc#newcode1 client/crash_report_database_win.cc:1: // Copyright 2015 The Crashpad Authors. All rights ...
5 years, 2 months ago (2015-10-07 19:13:05 UTC) #9
Robert Sesek
https://codereview.chromium.org/1392653002/diff/40001/client/crash_report_database_win.cc File client/crash_report_database_win.cc (right): https://codereview.chromium.org/1392653002/diff/40001/client/crash_report_database_win.cc#newcode1 client/crash_report_database_win.cc:1: // Copyright 2015 The Crashpad Authors. All rights reserved. ...
5 years, 2 months ago (2015-10-07 20:34:52 UTC) #11
Robert Sesek
FYI built + tested on Win10
5 years, 2 months ago (2015-10-07 20:36:21 UTC) #12
Mark Mentovai
LGTM https://codereview.chromium.org/1392653002/diff/40001/client/prune_crash_reports.cc File client/prune_crash_reports.cc (right): https://codereview.chromium.org/1392653002/diff/40001/client/prune_crash_reports.cc#newcode71 client/prune_crash_reports.cc:71: const time_t kSecondsInDay = 60 * 60 * ...
5 years, 2 months ago (2015-10-07 20:58:24 UTC) #13
Robert Sesek
https://codereview.chromium.org/1392653002/diff/80001/client/prune_crash_reports.cc File client/prune_crash_reports.cc (right): https://codereview.chromium.org/1392653002/diff/80001/client/prune_crash_reports.cc#newcode61 client/prune_crash_reports.cc:61: } On 2015/10/07 20:58:23, Mark Mentovai wrote: > Lose ...
5 years, 2 months ago (2015-10-07 21:01:34 UTC) #14
Robert Sesek
5 years, 2 months ago (2015-10-07 21:02:12 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 (id:100001) manually as
f32ca63a91d9db18cc9751dd42ca015534d24afb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698