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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp

Issue 2879773002: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules (Closed)
Patch Set: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules 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/modules/serviceworkers/WaitUntilObserver.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp b/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp
index 0b386a967d629a4791789bac2fa34c01e977ba16..d8056ae69e40194bdf9fdb55b9627aaf8768753c 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp
@@ -63,7 +63,7 @@ class WaitUntilObserver::ThenFunction final : public ScriptFunction {
ScriptValue Call(ScriptValue value) override {
DCHECK(observer_);
- ASSERT(resolve_type_ == kFulfilled || resolve_type_ == kRejected);
+ DCHECK(resolve_type_ == kFulfilled || resolve_type_ == kRejected);
if (resolve_type_ == kRejected) {
observer_->OnPromiseRejected();
value =
@@ -158,7 +158,7 @@ void WaitUntilObserver::IncrementPendingActivity() {
}
void WaitUntilObserver::DecrementPendingActivity() {
- ASSERT(pending_activity_ > 0);
+ DCHECK_GT(pending_activity_, 0);
if (!execution_context_ ||
(event_dispatch_state_ != EventDispatchState::kFailed &&
--pending_activity_))

Powered by Google App Engine
This is Rietveld 408576698