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

Issue 1395653002: crashpad_database_util: Don’t create a database unless explicitly asked (Closed)

Created:
5 years, 2 months ago by Mark Mentovai
Modified:
5 years, 2 months ago
Reviewers:
Robert Sesek, 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

crashpad_database_util: Don’t create a database unless explicitly asked I’ve accidentally created Crashpad databases when running crashpad_database_util by mistyping the argument to --database. Typical users of crashpad_database_util probably don’t want the database to be created. This adds a new --create option to crashpad_database_util that is required to get it to create a database. If not present, a database will not be created if it does not already exist. TEST=crashpad_client_test CrashReportDatabaseTest.* R=rsesek@chromium.org, scottmg@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/553a6434759973788b1913be2457b94aace528a1

Patch Set 1 #

Total comments: 3

Patch Set 2 : InitializeWithoutCreating() #

Total comments: 4

Patch Set 3 : databse → database #

Patch Set 4 : clang-format #

Patch Set 5 : For checkin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -86 lines) Patch
M client/crash_report_database.h View 1 2 3 4 1 chunk +22 lines, -2 lines 0 comments Download
M client/crash_report_database_mac.mm View 1 2 3 4 7 chunks +48 lines, -28 lines 0 comments Download
M client/crash_report_database_test.cc View 1 2 3 4 12 chunks +31 lines, -22 lines 0 comments Download
M client/crash_report_database_win.cc View 1 2 3 4 5 chunks +45 lines, -19 lines 0 comments Download
M handler/main.cc View 1 2 chunks +3 lines, -9 lines 0 comments Download
M tools/crashpad_database_util.ad View 1 chunk +5 lines, -2 lines 0 comments Download
M tools/crashpad_database_util.cc View 1 6 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Mark Mentovai
https://codereview.chromium.org/1395653002/diff/1/client/crash_report_database.h File client/crash_report_database.h (right): https://codereview.chromium.org/1395653002/diff/1/client/crash_report_database.h#newcode181 client/crash_report_database.h:181: bool create); This interface is the one thing I’m ...
5 years, 2 months ago (2015-10-07 18:45:58 UTC) #2
scottmg
lgtm https://codereview.chromium.org/1395653002/diff/1/client/crash_report_database.h File client/crash_report_database.h (right): https://codereview.chromium.org/1395653002/diff/1/client/crash_report_database.h#newcode181 client/crash_report_database.h:181: bool create); On 2015/10/07 18:45:58, Mark Mentovai wrote: ...
5 years, 2 months ago (2015-10-07 19:16:30 UTC) #3
Robert Sesek
I agree that this should be split into a separate ::Create()
5 years, 2 months ago (2015-10-07 19:26:38 UTC) #4
Mark Mentovai
Updated. I left the behavior of Initialize() alone (it can create a database, which is ...
5 years, 2 months ago (2015-10-07 20:44:15 UTC) #5
scottmg
lgtm https://codereview.chromium.org/1395653002/diff/20001/client/crash_report_database_win.cc File client/crash_report_database_win.cc (right): https://codereview.chromium.org/1395653002/diff/20001/client/crash_report_database_win.cc#newcode565 client/crash_report_database_win.cc:565: // Ensure the databse directory exists. 'database' if ...
5 years, 2 months ago (2015-10-07 20:58:18 UTC) #6
Mark Mentovai
https://codereview.chromium.org/1395653002/diff/20001/client/crash_report_database_win.cc File client/crash_report_database_win.cc (right): https://codereview.chromium.org/1395653002/diff/20001/client/crash_report_database_win.cc#newcode565 client/crash_report_database_win.cc:565: // Ensure the databse directory exists. scottmg wrote: > ...
5 years, 2 months ago (2015-10-07 21:03:34 UTC) #7
Robert Sesek
LGTM https://codereview.chromium.org/1395653002/diff/20001/client/crash_report_database_win.cc File client/crash_report_database_win.cc (right): https://codereview.chromium.org/1395653002/diff/20001/client/crash_report_database_win.cc#newcode773 client/crash_report_database_win.cc:773: ? database_win.Pass() : scoped_ptr<CrashReportDatabaseWin>(); nit: shouldn't ? go ...
5 years, 2 months ago (2015-10-07 21:04:33 UTC) #8
Mark Mentovai
https://codereview.chromium.org/1395653002/diff/20001/client/crash_report_database_win.cc File client/crash_report_database_win.cc (right): https://codereview.chromium.org/1395653002/diff/20001/client/crash_report_database_win.cc#newcode773 client/crash_report_database_win.cc:773: ? database_win.Pass() : scoped_ptr<CrashReportDatabaseWin>(); Robert Sesek wrote: > nit: ...
5 years, 2 months ago (2015-10-07 21:07:10 UTC) #9
Mark Mentovai
5 years, 2 months ago (2015-10-08 17:10:06 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
553a6434759973788b1913be2457b94aace528a1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698