Index: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
index 67246bb31ccc7b708d0ab4798c200ebf109ed85e..c5583aafa9e1155235c33310a748b7977c23e2d7 100644 |
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
@@ -4,6 +4,7 @@ |
#include "core/frame/csp/CSPDirectiveList.h" |
+#include "bindings/core/v8/SourceLocation.h" |
#include "core/dom/Document.h" |
#include "core/dom/SecurityContext.h" |
#include "core/dom/SpaceSplitString.h" |
@@ -91,7 +92,7 @@ void CSPDirectiveList::reportViolationWithFrame(const String& directiveText, con |
void CSPDirectiveList::reportViolationWithLocation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const KURL& blockedURL, const String& contextURL, const WTF::OrdinalNumber& contextLine) const |
{ |
String message = m_reportOnly ? "[Report Only] " + consoleMessage : consoleMessage; |
- m_policy->logToConsole(ConsoleMessage::createWithCallStack(SecurityMessageSource, ErrorMessageLevel, message, contextURL, contextLine.oneBasedInt(), 0)); |
+ m_policy->logToConsole(ConsoleMessage::create(SecurityMessageSource, ErrorMessageLevel, message, SourceLocation::capture(contextURL, contextLine.oneBasedInt(), 0))); |
m_policy->reportViolation(directiveText, effectiveDirective, message, blockedURL, m_reportEndpoints, m_header, ContentSecurityPolicy::InlineViolation); |
} |