Chromium Code Reviews| Index: base/threading/thread_restrictions.h |
| diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h |
| index 0f3ad30e4ee3928bfe6813354bfda776e14c916e..1ffcf0ef87edd2b8ba63194c6c6af238498be400 100644 |
| --- a/base/threading/thread_restrictions.h |
| +++ b/base/threading/thread_restrictions.h |
| @@ -6,10 +6,11 @@ |
| #define BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| #include "base/base_export.h" |
| +#include "base/logging.h" |
| #include "base/macros.h" |
| // See comment at top of thread_checker.h |
| -#if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) |
| +#if DCHECK_IS_ON() |
| #define ENABLE_THREAD_RESTRICTIONS 1 |
|
danakj
2016/07/19 20:17:02
dittos?
gab
2016/07/20 02:43:58
This one was used across the codebase, switched to
|
| #else |
| #define ENABLE_THREAD_RESTRICTIONS 0 |