Index: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp |
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp |
index 643530e9612c7c16b671f47f1cecc9dfaef22e18..3f0944bfd518d812cbb647b17197fdace7db1d23 100644 |
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp |
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp |
@@ -60,11 +60,9 @@ |
#include "public/platform/Platform.h" |
#include "public/platform/WebAddressSpace.h" |
#include "public/platform/WebURLRequest.h" |
-#include "wtf/PtrUtil.h" |
#include "wtf/StringHasher.h" |
#include "wtf/text/StringBuilder.h" |
#include "wtf/text/StringUTF8Adaptor.h" |
-#include <memory> |
namespace blink { |
@@ -345,9 +343,9 @@ void ContentSecurityPolicy::setOverrideURLForSelf(const KURL& url) |
m_selfSource = new CSPSource(this, m_selfProtocol, origin->host(), origin->port(), String(), CSPSource::NoWildcard, CSPSource::NoWildcard); |
} |
-std::unique_ptr<Vector<CSPHeaderAndType>> ContentSecurityPolicy::headers() const |
+PassOwnPtr<Vector<CSPHeaderAndType>> ContentSecurityPolicy::headers() const |
{ |
- std::unique_ptr<Vector<CSPHeaderAndType>> headers = wrapUnique(new Vector<CSPHeaderAndType>); |
+ OwnPtr<Vector<CSPHeaderAndType>> headers = adoptPtr(new Vector<CSPHeaderAndType>); |
for (const auto& policy : m_policies) { |
CSPHeaderAndType headerAndType(policy->header(), policy->headerType()); |
headers->append(headerAndType); |
@@ -810,7 +808,7 @@ static void gatherSecurityPolicyViolationEventData(SecurityPolicyViolationEventI |
if (!SecurityOrigin::isSecure(document->url()) && document->loader()) |
init.setStatusCode(document->loader()->response().httpStatusCode()); |
- std::unique_ptr<SourceLocation> location = SourceLocation::capture(document); |
+ OwnPtr<SourceLocation> location = SourceLocation::capture(document); |
if (location->lineNumber()) { |
KURL source = KURL(ParsedURLString, location->url()); |
init.setSourceFile(stripURLForUseInReport(document, source, redirectStatus)); |