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

Unified Diff: third_party/WebKit/Source/core/frame/SuspendableTimer.cpp

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/frame/SuspendableTimer.cpp
diff --git a/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp b/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
index 02ec32cd23c9ec50d953dd488d47febec0cdb73f..e62a2bfd5f5de7a559d5bd4ebd5a84b5e2c3b548 100644
--- a/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
+++ b/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
@@ -62,7 +62,7 @@ void SuspendableTimer::Suspend() {
#endif
if (IsActive()) {
next_fire_interval_ = NextFireInterval();
- ASSERT(next_fire_interval_ >= 0.0);
+ DCHECK_GE(next_fire_interval_, 0.0);
repeat_interval_ = RepeatInterval();
TimerBase::Stop();
}

Powered by Google App Engine
This is Rietveld 408576698