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

Unified Diff: third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.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/navigatorcontentutils/NavigatorContentUtils.cpp
diff --git a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
index f078654bf4ced475fa36c0bcdba70a9c60361c2c..384e7fbeafcf1315cdf2e3824f73ed85ba4acb17 100644
--- a/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
+++ b/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
@@ -147,7 +147,7 @@ void NavigatorContentUtils::registerProtocolHandler(
return;
Document* document = navigator.GetFrame()->GetDocument();
- ASSERT(document);
+ DCHECK(document);
if (!VerifyCustomHandlerURL(*document, url, exception_state))
return;
@@ -195,7 +195,7 @@ String NavigatorContentUtils::isProtocolHandlerRegistered(
return declined;
Document* document = navigator.GetFrame()->GetDocument();
- ASSERT(document);
+ DCHECK(document);
if (document->IsContextDestroyed())
return declined;
@@ -220,7 +220,7 @@ void NavigatorContentUtils::unregisterProtocolHandler(
return;
Document* document = navigator.GetFrame()->GetDocument();
- ASSERT(document);
+ DCHECK(document);
if (!VerifyCustomHandlerURL(*document, url, exception_state))
return;

Powered by Google App Engine
This is Rietveld 408576698