Index: cc/base/completion_event.h |
diff --git a/cc/base/completion_event.h b/cc/base/completion_event.h |
index 96ccf5417de9d42c48ba6e28d5c56066fa1d9f62..6bae765dd20e2173065bccab670afd2618547a95 100644 |
--- a/cc/base/completion_event.h |
+++ b/cc/base/completion_event.h |
@@ -19,21 +19,21 @@ class CompletionEvent { |
public: |
CompletionEvent() |
: event_(false /* manual_reset */, false /* initially_signaled */) { |
-#if DCHECK_IS_ON |
+#if DCHECK_IS_ON() |
waited_ = false; |
signaled_ = false; |
#endif |
} |
~CompletionEvent() { |
-#if DCHECK_IS_ON |
+#if DCHECK_IS_ON() |
DCHECK(waited_); |
DCHECK(signaled_); |
#endif |
} |
void Wait() { |
-#if DCHECK_IS_ON |
+#if DCHECK_IS_ON() |
DCHECK(!waited_); |
waited_ = true; |
#endif |
@@ -42,7 +42,7 @@ class CompletionEvent { |
} |
void Signal() { |
-#if DCHECK_IS_ON |
+#if DCHECK_IS_ON() |
DCHECK(!signaled_); |
signaled_ = true; |
#endif |
@@ -51,7 +51,7 @@ class CompletionEvent { |
private: |
base::WaitableEvent event_; |
-#if DCHECK_IS_ON |
+#if DCHECK_IS_ON() |
// Used to assert that Wait() and Signal() are each called exactly once. |
bool waited_; |
bool signaled_; |