Index: device/power_save_blocker/power_save_blocker_mac.cc |
diff --git a/device/power_save_blocker/power_save_blocker_mac.cc b/device/power_save_blocker/power_save_blocker_mac.cc |
index 792ca6c4a75a2bb4f759e2b77907b8cada588987..4ce6c1871c3c2d493ef09c797193a701b17aaafa 100644 |
--- a/device/power_save_blocker/power_save_blocker_mac.cc |
+++ b/device/power_save_blocker/power_save_blocker_mac.cc |
@@ -8,6 +8,7 @@ |
#include "base/bind.h" |
#include "base/lazy_instance.h" |
+#include "base/logging.h" |
#include "base/mac/scoped_cftyperef.h" |
#include "base/single_thread_task_runner.h" |
#include "base/strings/sys_string_conversions.h" |
@@ -24,7 +25,7 @@ namespace { |
// . |
struct PowerSaveBlockerLazyInstanceTraits { |
static const bool kRegisterOnExit = false; |
-#ifndef NDEBUG |
+#if DCHECK_IS_ON() |
static const bool kAllowedToAccessOnNonjoinableThread = true; |
#endif |