forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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}
- Loading branch information
wez
authored and
Commit bot
committed
Mar 13, 2017
1 parent
2fb4f2c
commit 8ccfd32
Showing
5 changed files
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters