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

Unified Diff: third_party/WebKit/Source/core/fetch/XSLStyleSheetResource.cpp

Issue 2327643003: Replace ASSERT*() with DCHECK*() in core/fetch/ and core/loader/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ASSERT_UNUSED 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/fetch/XSLStyleSheetResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/XSLStyleSheetResource.cpp b/third_party/WebKit/Source/core/fetch/XSLStyleSheetResource.cpp
index 2780db6b620df9904969aa272693332bfe83de2d..d45449c6b94852f264d8bf95227ffafb6bf4f29f 100644
--- a/third_party/WebKit/Source/core/fetch/XSLStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/XSLStyleSheetResource.cpp
@@ -59,7 +59,7 @@ XSLStyleSheetResource* XSLStyleSheetResource::fetchSynchronously(FetchRequest& r
XSLStyleSheetResource* XSLStyleSheetResource::fetch(FetchRequest& request, ResourceFetcher* fetcher)
{
- ASSERT(RuntimeEnabledFeatures::xsltEnabled());
+ DCHECK(RuntimeEnabledFeatures::xsltEnabled());
applyXSLRequestProperties(request.mutableResourceRequest());
return toXSLStyleSheetResource(fetcher->requestResource(request, XSLStyleSheetResourceFactory()));
}
@@ -71,7 +71,7 @@ XSLStyleSheetResource::XSLStyleSheetResource(const ResourceRequest& resourceRequ
void XSLStyleSheetResource::didAddClient(ResourceClient* c)
{
- ASSERT(StyleSheetResourceClient::isExpectedType(c));
+ DCHECK(StyleSheetResourceClient::isExpectedType(c));
Resource::didAddClient(c);
if (!isLoading())
static_cast<StyleSheetResourceClient*>(c)->setXSLStyleSheet(resourceRequest().url(), response().url(), m_sheet);

Powered by Google App Engine
This is Rietveld 408576698