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

Issue 2550403002: Make ifdefs consistent in WebKit/Source/wtf/ . (Closed)

Created:
4 years ago by Alexander Alekseev
Modified:
4 years ago
Reviewers:
Yuta Kitamura
CC:
chromium-reviews, blink-reviews, blink-reviews-wtf_chromium.org, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ifdefs consistent in WebKit/Source/wtf/ . This CL addresses a few problems with #ifdefs: 1) DCHECK requires the presence of variables used in it even if DCHECK_IS_ON() evaluates to 0. Therefore, if debug variable is defined only when DCHECK_IS_ON() is true, its usage must be guarded the same way. 2) If debug method in base class is defined only when DCHECK_IS_ON() is true, its descendants must be guarded with the same check. BUG=666660 Committed: https://crrev.com/ac4ace1275f955ff70420065fa35e0ed565281b3 Cr-Commit-Position: refs/heads/master@{#437501}

Patch Set 1 #

Patch Set 2 : Fixed comment. #

Total comments: 2

Patch Set 3 : Update after review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M third_party/WebKit/Source/wtf/StdLibExtras.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
Alexander Alekseev
Please review.
4 years ago (2016-12-06 08:30:57 UTC) #4
Yuta Kitamura
https://codereview.chromium.org/2550403002/diff/20001/third_party/WebKit/Source/wtf/StdLibExtras.h File third_party/WebKit/Source/wtf/StdLibExtras.h (right): https://codereview.chromium.org/2550403002/diff/20001/third_party/WebKit/Source/wtf/StdLibExtras.h#newcode53 third_party/WebKit/Source/wtf/StdLibExtras.h:53: #if DCHECK_IS_ON() We are already within DCHECK_IS_ON block. Why ...
4 years ago (2016-12-06 09:22:02 UTC) #5
Alexander Alekseev
https://codereview.chromium.org/2550403002/diff/20001/third_party/WebKit/Source/wtf/StdLibExtras.h File third_party/WebKit/Source/wtf/StdLibExtras.h (right): https://codereview.chromium.org/2550403002/diff/20001/third_party/WebKit/Source/wtf/StdLibExtras.h#newcode53 third_party/WebKit/Source/wtf/StdLibExtras.h:53: #if DCHECK_IS_ON() On 2016/12/06 09:22:02, Yuta Kitamura wrote: > ...
4 years ago (2016-12-06 09:51:02 UTC) #6
Yuta Kitamura
lgtm
4 years ago (2016-12-09 07:42:28 UTC) #11
Alexander Alekseev
Thank you!
4 years ago (2016-12-09 07:43:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2550403002/20002
4 years ago (2016-12-09 07:43:25 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:20002)
4 years ago (2016-12-09 09:23:51 UTC) #16
commit-bot: I haz the power
4 years ago (2016-12-09 09:25:50 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ac4ace1275f955ff70420065fa35e0ed565281b3
Cr-Commit-Position: refs/heads/master@{#437501}

Powered by Google App Engine
This is Rietveld 408576698