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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceObserver.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/timing/PerformanceObserver.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp b/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
index 57e44d09f7102cb5961d853b639e9b9d079d4a02..35f4c461b96d7ac9df152e8143652941b019b4a9 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
@@ -20,7 +20,7 @@ PerformanceObserver* PerformanceObserver::Create(
ExecutionContext* execution_context,
PerformanceBase* performance,
PerformanceObserverCallback* callback) {
- ASSERT(IsMainThread());
+ DCHECK(IsMainThread());
return new PerformanceObserver(execution_context, performance, callback);
}
@@ -70,7 +70,7 @@ void PerformanceObserver::disconnect() {
}
void PerformanceObserver::EnqueuePerformanceEntry(PerformanceEntry& entry) {
- ASSERT(IsMainThread());
+ DCHECK(IsMainThread());
performance_entries_.push_back(&entry);
if (performance_)
performance_->ActivateObserver(*this);
@@ -81,7 +81,7 @@ bool PerformanceObserver::ShouldBeSuspended() const {
}
void PerformanceObserver::Deliver() {
- ASSERT(!ShouldBeSuspended());
+ DCHECK(!ShouldBeSuspended());
if (performance_entries_.IsEmpty())
return;

Powered by Google App Engine
This is Rietveld 408576698