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

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

Issue 2858963002: Replace ASSERT with DCHECK in core/ (Closed)
Patch Set: WorkerBackingThread 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 f1ceee2646cae2b09b31448589be9552eeb0381d..02ec32cd23c9ec50d953dd488d47febec0cdb73f 100644
--- a/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
+++ b/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
@@ -57,7 +57,7 @@ void SuspendableTimer::ContextDestroyed(ExecutionContext*) {
void SuspendableTimer::Suspend() {
#if DCHECK_IS_ON()
- ASSERT(!suspended_);
+ DCHECK(!suspended_);
suspended_ = true;
#endif
if (IsActive()) {
@@ -70,7 +70,7 @@ void SuspendableTimer::Suspend() {
void SuspendableTimer::Resume() {
#if DCHECK_IS_ON()
- ASSERT(suspended_);
+ DCHECK(suspended_);
suspended_ = false;
#endif
if (next_fire_interval_ >= 0.0) {
« no previous file with comments | « third_party/WebKit/Source/core/frame/SmartClip.cpp ('k') | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698