Index: third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp |
index ad5e3d8dcf417fbf1da0c6940ec18cb1e8d2e718..b3f567577cc9323c14c4c6648a2ffe1436bb7d93 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp |
@@ -30,6 +30,7 @@ |
#include "core/html/parser/HTMLParserOptions.h" |
#include "core/html/parser/HTMLToken.h" |
#include "core/html/parser/XSSAuditorDelegate.h" |
+#include <memory> |
namespace blink { |
@@ -51,7 +52,7 @@ void HTMLViewSourceParser::pumpTokenizer() |
return; |
m_sourceTracker.end(m_input.current(), m_tokenizer.get(), m_token); |
- OwnPtr<XSSInfo> xssInfo = m_xssAuditor.filterToken(FilterTokenRequest(m_token, m_sourceTracker, m_tokenizer->shouldAllowCDATA())); |
+ std::unique_ptr<XSSInfo> xssInfo = m_xssAuditor.filterToken(FilterTokenRequest(m_token, m_sourceTracker, m_tokenizer->shouldAllowCDATA())); |
HTMLViewSourceDocument::SourceAnnotation annotation = xssInfo ? HTMLViewSourceDocument::AnnotateSourceAsXSS : HTMLViewSourceDocument::AnnotateSourceAsSafe; |
document()->addSource(m_sourceTracker.sourceForToken(m_token), m_token, annotation); |