Index: content/child/child_io_surface_manager_mac.h |
diff --git a/content/child/child_io_surface_manager_mac.h b/content/child/child_io_surface_manager_mac.h |
index fea9214a69a7f202d0c83ff7fd87901558a11558..6be793554e71c3074cd609ce9d42397d4cc2bf7c 100644 |
--- a/content/child/child_io_surface_manager_mac.h |
+++ b/content/child/child_io_surface_manager_mac.h |
@@ -38,7 +38,7 @@ class CONTENT_EXPORT ChildIOSurfaceManager : public IOSurfaceManager { |
// Set the token used when communicating with the Mach service. |
void set_token(const IOSurfaceManagerToken& token) { |
token_ = token; |
-#if !defined(NDEBUG) |
+#if DCHECK_IS_ON() |
set_token_thread_id_ = base::PlatformThread::CurrentRef(); |
#endif |
set_token_event_.Signal(); |
@@ -52,7 +52,7 @@ class CONTENT_EXPORT ChildIOSurfaceManager : public IOSurfaceManager { |
base::mac::ScopedMachSendRight service_port_; |
IOSurfaceManagerToken token_; |
-#if !defined(NDEBUG) |
+#if DCHECK_IS_ON() |
base::PlatformThreadRef set_token_thread_id_; |
#endif |
base::WaitableEvent set_token_event_; |