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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.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/ServiceWorkerError.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
index aba7a34ef7633b15c54ad7957e8082e64e9a0f45..d06c4b0a90736e1c8632abc5a141693e433c89da 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp
@@ -122,7 +122,7 @@ ExceptionParams GetExceptionParams(const WebServiceWorkerError& web_error) {
DOMException* ServiceWorkerError::Take(ScriptPromiseResolver*,
const WebServiceWorkerError& web_error) {
ExceptionParams params = GetExceptionParams(web_error);
- ASSERT(params.code != kUnknownError);
+ DCHECK_NE(params.code, kUnknownError);
return DOMException::Create(params.code, params.message);
}

Powered by Google App Engine
This is Rietveld 408576698