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

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: rebase 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
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d5f68bf60d6e8d57637c45774675238c73e7e4c7..4cad0d4c5d6bfbfb57831905956697dca8230f92 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
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698