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

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

Issue 2751483005: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/html/parser/ (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/html/parser/ Created 3 years, 9 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/XSSAuditorDelegate.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
index a3b9458c22853e3e13cc23e9a94bd75a67988f5a..1a92a77d02ed48aa75753cf3d750c73ef1cd5363 100644
--- a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
+++ b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
@@ -71,8 +71,8 @@ bool XSSInfo::isSafeToSendToAnotherThread() const {
XSSAuditorDelegate::XSSAuditorDelegate(Document* document)
: m_document(document), m_didSendNotifications(false) {
- ASSERT(isMainThread());
- ASSERT(m_document);
+ DCHECK(isMainThread());
+ DCHECK(m_document);
}
DEFINE_TRACE(XSSAuditorDelegate) {
@@ -81,7 +81,7 @@ DEFINE_TRACE(XSSAuditorDelegate) {
PassRefPtr<EncodedFormData> XSSAuditorDelegate::generateViolationReport(
const XSSInfo& xssInfo) {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
FrameLoader& frameLoader = m_document->frame()->loader();
String httpBody;
@@ -102,7 +102,7 @@ PassRefPtr<EncodedFormData> XSSAuditorDelegate::generateViolationReport(
}
void XSSAuditorDelegate::didBlockScript(const XSSInfo& xssInfo) {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
UseCounter::count(m_document, xssInfo.m_didBlockEntirePage
? UseCounter::XSSAuditorBlockedEntirePage

Powered by Google App Engine
This is Rietveld 408576698