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

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

Issue 2862963003: Replace ASSERT with DCHECK in modules/ (Closed)
Patch Set: NOTREACHED instead of DCHECK(false) 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/RespondWithObserver.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp b/third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp
index 2ec1b57e49091ab3f7ded17de280a3f6fed55580..19c6f1e08ef61c7205c778839766f4f0eaeecca5 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp
@@ -44,7 +44,7 @@ class RespondWithObserver::ThenFunction final : public ScriptFunction {
resolve_type_(type) {}
ScriptValue Call(ScriptValue value) override {
- ASSERT(observer_);
+ DCHECK(observer_);
ASSERT(resolve_type_ == kFulfilled || resolve_type_ == kRejected);
if (resolve_type_ == kRejected) {
observer_->ResponseWasRejected(
@@ -76,7 +76,7 @@ void RespondWithObserver::WillDispatchEvent() {
void RespondWithObserver::DidDispatchEvent(
DispatchEventResult dispatch_result) {
- ASSERT(GetExecutionContext());
+ DCHECK(GetExecutionContext());
if (state_ != kInitial)
return;

Powered by Google App Engine
This is Rietveld 408576698