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

Issue 21216: Change the behavior of --enable-dcheck from crashing (Closed)

Created:
11 years, 10 months ago by huanr
Modified:
9 years ago
Reviewers:
Nicolas Sylvain, wtc
CC:
chromium-reviews_googlegroups.com, sky, Peter Kasting
Visibility:
Public.

Description

Change the behavior of --enable-dcheck in release build from crashing to logging the failure and continuing. In addition, - In interactive mode, we will display a message box so the user can either click OK and continue or attach a debugger. - If Chrome is running in test environment, it has the option to overide the default behavior and suppress the error dialog. To support this, a new severity level ERROR_REPORT is added. In addition, DFATAL is now mapped to ERROR_REPORT instead of ERROR. The only usage of DFATAL is in ssl_client_socket_nss.cc. Add wtc for code review. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9633

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -15 lines) Patch
M base/logging.h View 1 6 chunks +33 lines, -13 lines 4 comments Download
M base/logging.cc View 2 5 chunks +23 lines, -2 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
huanr
11 years, 10 months ago (2009-02-10 18:34:24 UTC) #1
Nicolas Sylvain
http://codereview.chromium.org/21216/diff/1/2 File base/logging.h (right): http://codereview.chromium.org/21216/diff/1/2#newcode398 Line 398: LOG_IF(ERROR, !(condition)) << "Check failed: " #condition ". ...
11 years, 10 months ago (2009-02-10 18:45:38 UTC) #2
Nicolas Sylvain
Looks like I was crazy. The message box was disabled in revision 4844 by brettw, ...
11 years, 10 months ago (2009-02-11 18:27:57 UTC) #3
huanr
wtc, you only need to review whether the change of DFATAL mapping is reasonable.
11 years, 10 months ago (2009-02-11 23:32:51 UTC) #4
huanr
The change with its description has been updated. Nicolas, can you take another look?
11 years, 10 months ago (2009-02-11 23:34:18 UTC) #5
Nicolas Sylvain
quick question: Are you going to set a log report handler in your case? Nicolas ...
11 years, 10 months ago (2009-02-12 00:15:17 UTC) #6
Nicolas Sylvain
LGTM
11 years, 10 months ago (2009-02-12 00:40:26 UTC) #7
wtc
11 years, 10 months ago (2009-02-19 01:32:03 UTC) #8
Huan,

I didn't notice this code review until today.  Sorry.
It looks good to me.  Not sure why I have anything to
say about the DFATAL mapping.

I have some suggested fixes for nits below.  Since logging.h
is included by a lot of files, I'm not sure if it's worth
fixing these nits.

http://codereview.chromium.org/21216/diff/2001/3002
File base/logging.cc (right):

http://codereview.chromium.org/21216/diff/2001/3002#newcode94
Line 94: // An report handler override specified by the client to be called
instead of
Nit: add a blank line above this line.

http://codereview.chromium.org/21216/diff/2001/3001
File base/logging.h (right):

http://codereview.chromium.org/21216/diff/2001/3001#newcode86
Line 86: // Note the special severity of ERROR_REPORT only available/relevant in
normal
Nit: add "is" before "available/relevant".

http://codereview.chromium.org/21216/diff/2001/3001#newcode87
Line 87: // mode, which displays error dialog without terminating the program.
There is
Nit: add "an" before "error dialog".

http://codereview.chromium.org/21216/diff/2001/3001#newcode159
Line 159: // The default handler shows a dialog box and then terminate the
process,
Nit: "terminate" => "terminates"

http://codereview.chromium.org/21216/diff/2001/3001#newcode164
Line 164: // Sets the Log Report Handler that will be used to notify of check
failures
Nit: add a blank line above this line.

Powered by Google App Engine
This is Rietveld 408576698