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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.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/ServiceWorkerRegistration.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
index d25cec8e9cefa017f222d834790c951ec84244c2..7513bbb092d5bb791ce7f32f702d52be504ab967 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
@@ -71,7 +71,7 @@ ServiceWorkerRegistration* ServiceWorkerRegistration::GetOrCreate(
ServiceWorkerRegistration* existing_registration =
static_cast<ServiceWorkerRegistration*>(handle->Registration()->Proxy());
if (existing_registration) {
- ASSERT(existing_registration->GetExecutionContext() == execution_context);
+ DCHECK_EQ(existing_registration->GetExecutionContext(), execution_context);
return existing_registration;
}

Powered by Google App Engine
This is Rietveld 408576698