Chromium Code Reviews| Index: base/threading/non_thread_safe.h |
| diff --git a/base/threading/non_thread_safe.h b/base/threading/non_thread_safe.h |
| index d41c08608c96a12d17c7a4d0da40d52607f81854..46d85e40162d3152efeb451f30b0fdaaa3d47736 100644 |
| --- a/base/threading/non_thread_safe.h |
| +++ b/base/threading/non_thread_safe.h |
| @@ -10,9 +10,10 @@ |
| // There is a specific macro to do it: NON_EXPORTED_BASE(), defined in |
| // compiler_specific.h |
| #include "base/compiler_specific.h" |
| +#include "base/logging.h" |
| // See comment at top of thread_checker.h |
| -#if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) |
| +#if DCHECK_IS_ON() |
| #define ENABLE_NON_THREAD_SAFE 1 |
|
danakj
2016/07/19 20:17:01
Same question, why not just DCHECK_IS_ON() instead
gab
2016/07/20 02:43:58
Done.
|
| #else |
| #define ENABLE_NON_THREAD_SAFE 0 |