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

Issue 4199005: Fixed subtle difference in behavior between DCHECK and DCHECK_EQ et al. (Closed)

Created:
10 years, 1 month ago by akalin
Modified:
9 years, 7 months ago
Reviewers:
brettw, wtc
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Fixed subtle difference in behavior between DCHECK and DCHECK_EQ et al. BUG=58998 TEST=New unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64650

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed wtc's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -14 lines) Patch
M base/logging.h View 1 5 chunks +15 lines, -9 lines 0 comments Download
M base/logging_unittest.cc View 1 2 chunks +44 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
akalin
+wtc for review
10 years, 1 month ago (2010-10-29 00:32:01 UTC) #1
wtc
brettw: please review this CL as the owner of base/logging.h. akalin: thanks for writing the ...
10 years, 1 month ago (2010-10-29 20:55:35 UTC) #2
akalin
http://codereview.chromium.org/4199005/diff/1/2 File base/logging.h (right): http://codereview.chromium.org/4199005/diff/1/2#newcode528 base/logging.h:528: #define DLOG_IS_ON(severity) (LOG_IS_ON(severity)) On 2010/10/29 20:55:35, wtc wrote: > ...
10 years, 1 month ago (2010-11-01 17:55:42 UTC) #3
brettw
What about DLOG_IF(FATAL). Is this controlled by the same thing as DCHECK in release modes?
10 years, 1 month ago (2010-11-01 18:10:15 UTC) #4
wtc
LGTM. Please wait for brettw's review before checking this in. Thanks!
10 years, 1 month ago (2010-11-01 18:30:46 UTC) #5
akalin
On Mon, Nov 1, 2010 at 12:10 PM, <brettw@chromium.org> wrote: > What about DLOG_IF(FATAL). Is ...
10 years, 1 month ago (2010-11-01 18:36:33 UTC) #6
brettw
This is confusing since DCHECK is the same as DLOG_IF(FATAL), but I guess it doesn't ...
10 years, 1 month ago (2010-11-01 19:29:01 UTC) #7
akalin
10 years, 1 month ago (2010-11-01 19:49:00 UTC) #8
On 2010/11/01 19:29:01, brettw wrote:
> This is confusing since DCHECK is the same as DLOG_IF(FATAL), but I guess it
> doesn't need to hold up this patch. LGTM

Yeah, I have mixed feelings about the difference in behavior, but that's always
been around.

Submitting.

Powered by Google App Engine
This is Rietveld 408576698