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

Issue 1392953002: Don’t log an error when creating a new crash report database (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

Don’t log an error when creating a new crash report database Previously, any attempt to create a new crash report database would result in this message being logged: [p:t:yyyymmdd,hhmmss.uuuuuu:ERROR file_io.cc:30] read: expected 40, observed 0 This would be the first thing that a developer embedding Crashpad into their application would see after getting everything right. It doesn’t exactly seem like everything’s right with that being logged. It would also be the first thing that a user would see on stderr or in logs upon launching a Crashpad-enabled application, which also seems kind of dodgy. The crash report database settings creation logic is restructured to avoid logging this error when definitely creating a new database, while retaining all other error logging. BUG=crashpad:63 TEST=crashpad_database_util --database $new_db --show-client-id (should not show any errors) R=rsesek@chromium.org, scottmg@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/0884d4d3a8c283a0f9711494e39dd6c5c4a6c1b0

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review comments #

Total comments: 2

Patch Set 3 : Add missing be #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -28 lines) Patch
M client/settings.h View 1 2 5 chunks +25 lines, -7 lines 0 comments Download
M client/settings.cc View 11 chunks +75 lines, -21 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Mark Mentovai
5 years, 2 months ago (2015-10-07 16:17:29 UTC) #2
scottmg
lgtm https://codereview.chromium.org/1392953002/diff/1/client/settings.h File client/settings.h (right): https://codereview.chromium.org/1392953002/diff/1/client/settings.h#newcode146 client/settings.h:146: // file. Maybe add a comment here that ...
5 years, 2 months ago (2015-10-07 17:28:33 UTC) #3
Robert Sesek
LGTM https://codereview.chromium.org/1392953002/diff/1/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/1392953002/diff/1/client/settings.cc#newcode166 client/settings.cc:166: DCHECK(mode != FileWriteMode::kTruncateOrCreate); DCHECK_NE ?
5 years, 2 months ago (2015-10-07 17:35:51 UTC) #4
Mark Mentovai
https://codereview.chromium.org/1392953002/diff/1/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/1392953002/diff/1/client/settings.cc#newcode166 client/settings.cc:166: DCHECK(mode != FileWriteMode::kTruncateOrCreate); Robert Sesek wrote: > DCHECK_NE ? ...
5 years, 2 months ago (2015-10-07 17:50:09 UTC) #5
scottmg
lgtm https://codereview.chromium.org/1392953002/diff/20001/client/settings.h File client/settings.h (right): https://codereview.chromium.org/1392953002/diff/20001/client/settings.h#newcode143 client/settings.h:143: // |handle| must the result of OpenForReading() or ...
5 years, 2 months ago (2015-10-07 17:54:27 UTC) #6
Mark Mentovai
https://codereview.chromium.org/1392953002/diff/20001/client/settings.h File client/settings.h (right): https://codereview.chromium.org/1392953002/diff/20001/client/settings.h#newcode143 client/settings.h:143: // |handle| must the result of OpenForReading() or OpenForReadingAndWriting(). ...
5 years, 2 months ago (2015-10-07 18:04:27 UTC) #7
Mark Mentovai
5 years, 2 months ago (2015-10-07 20:20:34 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
0884d4d3a8c283a0f9711494e39dd6c5c4a6c1b0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698