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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp

Issue 2318283002: DCHECK that the document url is valid in HTMLPreloadScanner (Closed)
Patch Set: fix unit test Created 4 years, 3 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/core/html/parser/HTMLPreloadScanner.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
index 509ada508bc91f09185715b23e193a561e30e1dc..d46092c33e8a4fbd48ecd06f295b20dadaba6fb4 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
@@ -503,8 +503,9 @@ TokenPreloadScanner::TokenPreloadScanner(const KURL& documentURL, std::unique_pt
, m_mediaValues(MediaValuesCached::create(mediaValuesCachedData))
, m_didRewind(false)
{
- ASSERT(m_documentParameters.get());
- ASSERT(m_mediaValues.get());
+ DCHECK(m_documentParameters.get());
+ DCHECK(m_mediaValues.get());
+ DCHECK(documentURL.isValid());
m_cssScanner.setReferrerPolicy(m_documentParameters->referrerPolicy);
}

Powered by Google App Engine
This is Rietveld 408576698