Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Unified Diff: third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h

Issue 2846303002: Replace ASSERT with DCHECK in platform/ (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
};
« no previous file with comments | « third_party/WebKit/Source/platform/DragImageTest.cpp ('k') | third_party/WebKit/Source/platform/Language.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698