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

Issue 2731823002: Replace use of logging::DEBUG_MODE with DCHECK_IS_ON(). (Closed)

Created:
3 years, 9 months ago by Wez
Modified:
3 years, 9 months ago
CC:
chromium-reviews, sync-reviews_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace use of logging::DEBUG_MODE with DCHECK_IS_ON(). DEBUG_MODE was originally provided to allow code of the form: if (DEBUG_MODE) { ... } rather than preprocessor conditional (i.e. #ifdef _DEBUG), while still ensuring that the condition was static at compile-time, allowing the affected code to be trivially optimized-out. The function-like macro DCHECK_IS_ON(), added to simplify conditional compilation of DCHECK-related code when DCHECK_ALWAYS_ON was added, can now be used safely for both preprocessor and C++ conditionals in place of DEBUG_MODE. Review-Url: https://codereview.chromium.org/2731823002 Cr-Commit-Position: refs/heads/master@{#456519} Committed: https://chromium.googlesource.com/chromium/src/+/8ccfd32a69c3e1c2ad8ca5f3b8f806796854ad52

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -16 lines) Patch
M base/logging.h View 1 chunk +0 lines, -7 lines 0 comments Download
M base/logging_unittest.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M components/sync/base/logging.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/engine_impl/traffic_logger.cc View 1 chunk +1 line, -1 line 0 comments Download
M crypto/openssl_util.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (13 generated)
Wez
PTAL :)
3 years, 9 months ago (2017-03-12 00:14:09 UTC) #3
dcheng
This seems relatively straightforward to me, but is there any historical context on why this ...
3 years, 9 months ago (2017-03-12 02:36:39 UTC) #8
dcheng
(If there is, it'd be nice to include it in the CL description. Other than ...
3 years, 9 months ago (2017-03-12 02:37:18 UTC) #9
Wez
DEBUG_MODE was in there since base/logging.h was first landed (see https://chromium.googlesource.com/chromium/src/+/d7cae12696b96500c05dd2d430f6238922c20c96/base/logging.h#292 ). My guess would ...
3 years, 9 months ago (2017-03-12 21:59:48 UTC) #10
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/2731823002/1
3 years, 9 months ago (2017-03-12 22:25:18 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/383613)
3 years, 9 months ago (2017-03-12 22:31:46 UTC) #15
Wez
rsleevi: crypto/ plz zea: components/sync/ plz
3 years, 9 months ago (2017-03-12 23:05:24 UTC) #17
Ryan Sleevi
lgtm
3 years, 9 months ago (2017-03-13 13:35:06 UTC) #18
Nicolas Zea
lgtm
3 years, 9 months ago (2017-03-13 19:48:40 UTC) #19
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/2731823002/1
3 years, 9 months ago (2017-03-13 20:18:12 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 22:55:15 UTC) #24
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/8ccfd32a69c3e1c2ad8ca5f3b8f8...

Powered by Google App Engine
This is Rietveld 408576698