Index: third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h |
diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h |
index 33e25ce242533b113a65da21acc0ebe23800287b..87c593d9b057ed101af27d6b26b04bdc11582516 100644 |
--- a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h |
+++ b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.h |
@@ -28,11 +28,11 @@ |
#include "platform/heap/Handle.h" |
#include "platform/weborigin/KURL.h" |
-#include "wtf/PtrUtil.h" |
+#include "wtf/OwnPtr.h" |
+#include "wtf/PassOwnPtr.h" |
#include "wtf/Vector.h" |
#include "wtf/text/TextPosition.h" |
#include "wtf/text/WTFString.h" |
-#include <memory> |
namespace blink { |
@@ -43,9 +43,9 @@ class XSSInfo { |
USING_FAST_MALLOC(XSSInfo); |
WTF_MAKE_NONCOPYABLE(XSSInfo); |
public: |
- static std::unique_ptr<XSSInfo> create(const String& originalURL, bool didBlockEntirePage, bool didSendXSSProtectionHeader, bool didSendCSPHeader) |
+ static PassOwnPtr<XSSInfo> create(const String& originalURL, bool didBlockEntirePage, bool didSendXSSProtectionHeader, bool didSendCSPHeader) |
{ |
- return wrapUnique(new XSSInfo(originalURL, didBlockEntirePage, didSendXSSProtectionHeader, didSendCSPHeader)); |
+ return adoptPtr(new XSSInfo(originalURL, didBlockEntirePage, didSendXSSProtectionHeader, didSendCSPHeader)); |
} |
String buildConsoleError() const; |
@@ -84,7 +84,7 @@ private: |
KURL m_reportURL; |
}; |
-typedef Vector<std::unique_ptr<XSSInfo>> XSSInfoStream; |
+typedef Vector<OwnPtr<XSSInfo>> XSSInfoStream; |
} // namespace blink |