Use DCHECK_IS_ON() instead of !NDEBUG for debug logic (issue #1961)

This commit is contained in:
Marshall Greenblatt
2016-09-01 14:24:30 +03:00
parent ad1619dbd7
commit 5068b50b48
278 changed files with 320 additions and 525 deletions

View File

@@ -6,11 +6,11 @@
// is functionally a wrapper around the LockImpl class, so the only
// real intelligence in the class is in the debugging logic.
#if !defined(NDEBUG)
#include "include/base/cef_lock.h"
#include "include/base/cef_logging.h"
#if DCHECK_IS_ON()
namespace base {
namespace cef_internal {
@@ -43,4 +43,4 @@ void Lock::CheckUnheldAndMark() {
} // namespace cef_internal
} // namespace base
#endif // NDEBUG
#endif // DCHECK_IS_ON()