DescriptionReplace 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 #
Messages
Total messages: 24 (13 generated)
|