Index: third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h |
diff --git a/third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h b/third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h |
index 5638fa9facc34169e74c1bf8c3565685cbc5225b..6a384841390864e158f294d75ada75c55d2dd4ac 100644 |
--- a/third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h |
+++ b/third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h |
@@ -20,13 +20,13 @@ class EventDispatchForbiddenScope { |
public: |
EventDispatchForbiddenScope() { |
- ASSERT(IsMainThread()); |
+ DCHECK(IsMainThread()); |
++count_; |
} |
~EventDispatchForbiddenScope() { |
- ASSERT(IsMainThread()); |
- ASSERT(count_); |
+ DCHECK(IsMainThread()); |
+ DCHECK(count_); |
--count_; |
} |
@@ -40,9 +40,9 @@ class EventDispatchForbiddenScope { |
STACK_ALLOCATED(); |
public: |
- AllowUserAgentEvents() : change_(&count_, 0) { ASSERT(IsMainThread()); } |
+ AllowUserAgentEvents() : change_(&count_, 0) { DCHECK(IsMainThread()); } |
- ~AllowUserAgentEvents() { ASSERT(!count_); } |
+ ~AllowUserAgentEvents() { DCHECK(!count_); } |
AutoReset<unsigned> change_; |
}; |