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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollStateCallback.h

Issue 2883353002: Replace ASSERT with DCHECK_LE/GE/GT/LT/NE as appropriate (Closed)
Patch Set: DCHECK in BluetoothCharacteristicProperties.cpp Created 3 years, 7 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/core/page/scrolling/ScrollStateCallback.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollStateCallback.h b/third_party/WebKit/Source/core/page/scrolling/ScrollStateCallback.h
index 352c59683aa0db2f0503fec8128d86e178f46c52..8cedc5ed24a221a65f26361bee6f237aa228bb5f 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollStateCallback.h
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollStateCallback.h
@@ -25,7 +25,7 @@ class ScrollStateCallback
virtual void handleEvent(ScrollState*) = 0;
void SetNativeScrollBehavior(WebNativeScrollBehavior native_scroll_behavior) {
- ASSERT(static_cast<int>(native_scroll_behavior) < 3);
+ DCHECK_LT(static_cast<int>(native_scroll_behavior), 3);
native_scroll_behavior_ = native_scroll_behavior;
}

Powered by Google App Engine
This is Rietveld 408576698