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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentWriter.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/loader/DocumentWriter.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentWriter.cpp b/third_party/WebKit/Source/core/loader/DocumentWriter.cpp
index 7d1ae8257b156824af8f9b49229373375660c0fc..2fc35336d55e361d5ddec8e9d123594ec6d40ec4 100644
--- a/third_party/WebKit/Source/core/loader/DocumentWriter.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentWriter.cpp
@@ -84,7 +84,7 @@ void DocumentWriter::appendReplacingData(const String& source)
void DocumentWriter::addData(const char* bytes, size_t length)
{
- ASSERT(m_parser);
+ DCHECK(m_parser);
if (m_parser->needsDecoder() && 0 < length) {
std::unique_ptr<TextResourceDecoder> decoder = m_decoderBuilder.buildFor(m_document);
m_parser->setDecoder(std::move(decoder));
@@ -95,7 +95,7 @@ void DocumentWriter::addData(const char* bytes, size_t length)
void DocumentWriter::end()
{
- ASSERT(m_document);
+ DCHECK(m_document);
if (!m_parser)
return;
@@ -112,7 +112,7 @@ void DocumentWriter::end()
void DocumentWriter::setDocumentWasLoadedAsPartOfNavigation()
{
- ASSERT(m_parser && !m_parser->isStopped());
+ DCHECK(m_parser && !m_parser->isStopped());
m_parser->setDocumentWasLoadedAsPartOfNavigation();
}

Powered by Google App Engine
This is Rietveld 408576698