Index: third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp |
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp b/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp |
index ebe9d02023f6eb2189c7fa0504e2dbd5eff1e2e7..94f89b24637c2f846e74379b153d2a4ff074036e 100644 |
--- a/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp |
+++ b/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp |
@@ -25,11 +25,12 @@ |
#include "wtf/text/TextCodecLatin1.h" |
-#include "wtf/PassOwnPtr.h" |
+#include "wtf/PtrUtil.h" |
#include "wtf/text/CString.h" |
#include "wtf/text/StringBuffer.h" |
#include "wtf/text/TextCodecASCIIFastPath.h" |
#include "wtf/text/WTFString.h" |
+#include <memory> |
namespace WTF { |
@@ -90,9 +91,9 @@ void TextCodecLatin1::registerEncodingNames(EncodingNameRegistrar registrar) |
registrar("x-cp1252", "windows-1252"); |
} |
-static PassOwnPtr<TextCodec> newStreamingTextDecoderWindowsLatin1(const TextEncoding&, const void*) |
+static std::unique_ptr<TextCodec> newStreamingTextDecoderWindowsLatin1(const TextEncoding&, const void*) |
{ |
- return adoptPtr(new TextCodecLatin1); |
+ return wrapUnique(new TextCodecLatin1); |
} |
void TextCodecLatin1::registerCodecs(TextCodecRegistrar registrar) |