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

Unified Diff: third_party/WebKit/Source/platform/Timer.cpp

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/Timer.cpp
diff --git a/third_party/WebKit/Source/platform/Timer.cpp b/third_party/WebKit/Source/platform/Timer.cpp
index 30b6b0484f10a827026cf7e9b186b39c65ced66a..5f543f0ff20b03ce8cc185ce618eac90807408cd 100644
--- a/third_party/WebKit/Source/platform/Timer.cpp
+++ b/third_party/WebKit/Source/platform/Timer.cpp
@@ -48,7 +48,7 @@ TimerBase::TimerBase(RefPtr<WebTaskRunner> web_task_runner)
thread_(CurrentThread()),
#endif
weak_ptr_factory_(this) {
- ASSERT(web_task_runner_);
+ DCHECK(web_task_runner_);
}
TimerBase::~TimerBase() {
@@ -78,7 +78,7 @@ void TimerBase::Stop() {
}
double TimerBase::NextFireInterval() const {
- ASSERT(IsActive());
+ DCHECK(IsActive());
double current = TimerMonotonicallyIncreasingTime();
if (next_fire_time_ < current)
return 0;

Powered by Google App Engine
This is Rietveld 408576698