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

Issue 6469070: More DCHECK() updates. A mixture of _EQ and _GE. (Closed)

Created:
9 years, 10 months ago by KushalP
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, jshin+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

More DCHECK() updates. A mixture of _EQ and _GE. Bug=58409 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76343

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updating to use compile-time assert #

Patch Set 3 : Updating to follow EXPECTED, ACTUAL pattern on DCHECK_EQ() #

Total comments: 2

Patch Set 4 : Updating pickle.h order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -28 lines) Patch
M base/event_recorder.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/i18n/bidi_line_iterator.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/message_pump_libevent.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/message_pump_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/pickle.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/platform_file_posix.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M base/shared_memory_posix.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M base/shared_memory_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/synchronization/condition_variable_posix.cc View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M base/synchronization/waitable_event_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/threading/thread_local_storage_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/tracked_objects.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/win/scoped_bstr.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/win/scoped_comptr.h View 3 chunks +3 lines, -3 lines 0 comments Download
M base/win/scoped_variant.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Mohamed Mansour
LGTM, I will let William see if he likes this approach. I believe he does.
9 years, 10 months ago (2011-02-19 20:38:08 UTC) #1
KushalP
Can this be tested on the tryservers then? (please) On 2011/02/19 20:38:08, Mohamed Mansour wrote: ...
9 years, 10 months ago (2011-02-21 18:32:08 UTC) #2
Mohamed Mansour
Okay, already did :) Results will be emailed to: kushi.p@gmail.com Patch 'master#27b9fa' sent to try ...
9 years, 10 months ago (2011-02-21 19:13:17 UTC) #3
willchan no longer on Chromium
LGTM http://codereview.chromium.org/6469070/diff/1/base/platform_file_posix.cc File base/platform_file_posix.cc (right): http://codereview.chromium.org/6469070/diff/1/base/platform_file_posix.cc#newcode68 base/platform_file_posix.cc:68: DCHECK_EQ(O_RDONLY, 0U); Strange. O_RDONLY is a constant. Why ...
9 years, 10 months ago (2011-02-21 23:17:20 UTC) #4
KushalP
http://codereview.chromium.org/6469070/diff/1/base/platform_file_posix.cc File base/platform_file_posix.cc (right): http://codereview.chromium.org/6469070/diff/1/base/platform_file_posix.cc#newcode68 base/platform_file_posix.cc:68: DCHECK_EQ(O_RDONLY, 0U); Sure, I'll look into it. Isn't the ...
9 years, 10 months ago (2011-02-22 00:57:28 UTC) #5
willchan no longer on Chromium
On Feb 21, 2011 4:57 PM, <kushi.p@gmail.com> wrote: > > > http://codereview.chromium.org/6469070/diff/1/base/platform_file_posix.cc > File base/platform_file_posix.cc ...
9 years, 10 months ago (2011-02-22 01:45:22 UTC) #6
KushalP
Have updated, with a new patch set On 2011/02/22 01:45:22, willchan wrote: > On Feb ...
9 years, 10 months ago (2011-02-22 13:13:18 UTC) #7
willchan no longer on Chromium
LGTM
9 years, 10 months ago (2011-02-22 19:54:59 UTC) #8
KushalP
I've updated the patchset to follow the EXPECTED, ACTUAL pattern as pkasting stated in the ...
9 years, 10 months ago (2011-02-27 23:57:49 UTC) #9
willchan no longer on Chromium
mhm: can you land this? On Sun, Feb 27, 2011 at 3:57 PM, <kushi.p@gmail.com> wrote: ...
9 years, 9 months ago (2011-02-28 21:35:22 UTC) #10
Peter Kasting
Kinda makes me sad that all the "== NULL" checks are being replaced by "!", ...
9 years, 9 months ago (2011-02-28 21:42:13 UTC) #11
KushalP
> Kinda makes me sad that all the "== NULL" checks are being replaced by ...
9 years, 9 months ago (2011-02-28 21:54:06 UTC) #12
Peter Kasting
On 2011/02/28 21:54:06, KushalP wrote: > > Kinda makes me sad that all the "== ...
9 years, 9 months ago (2011-02-28 21:55:37 UTC) #13
willchan no longer on Chromium
On Mon, Feb 28, 2011 at 1:54 PM, <kushi.p@gmail.com> wrote: >> Kinda makes me sad ...
9 years, 9 months ago (2011-02-28 21:56:43 UTC) #14
Mohamed Mansour
On 2011/02/28 21:35:22, willchan wrote: > mhm: can you land this? > willchan: yes I ...
9 years, 9 months ago (2011-02-28 22:59:30 UTC) #15
willchan no longer on Chromium
9 years, 9 months ago (2011-02-28 23:01:06 UTC) #16
LGTM as is. I don't think the == NULL vs ! is important enough to add
to the style guide. I'd LGTM'd either way.

On Mon, Feb 28, 2011 at 2:59 PM,  <mhm@chromium.org> wrote:
> On 2011/02/28 21:35:22, willchan wrote:
>>
>> mhm: can you land this?
>
>
> willchan: yes I can land this, do we still want it, or we would rather have
> the
> "== NULL" and make it a style rule for Chrome. I am free right now, so lgtm
> it
> if you want this style.
>
>
> http://codereview.chromium.org/6469070/
>

Powered by Google App Engine
This is Rietveld 408576698