| 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
|
|
|