Index: third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp |
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp b/third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp |
index 8438bf294b03b605d0add6138a0595a24ba302c8..164befcb0b9d938464ce275cf4d7ca909fc2dd1a 100644 |
--- a/third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp |
+++ b/third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp |
@@ -25,11 +25,12 @@ |
#include "wtf/text/TextCodecUserDefined.h" |
-#include "wtf/PassOwnPtr.h" |
+#include "wtf/PtrUtil.h" |
#include "wtf/text/CString.h" |
#include "wtf/text/StringBuffer.h" |
#include "wtf/text/StringBuilder.h" |
#include "wtf/text/WTFString.h" |
+#include <memory> |
namespace WTF { |
@@ -38,9 +39,9 @@ void TextCodecUserDefined::registerEncodingNames(EncodingNameRegistrar registrar |
registrar("x-user-defined", "x-user-defined"); |
} |
-static PassOwnPtr<TextCodec> newStreamingTextDecoderUserDefined(const TextEncoding&, const void*) |
+static std::unique_ptr<TextCodec> newStreamingTextDecoderUserDefined(const TextEncoding&, const void*) |
{ |
- return adoptPtr(new TextCodecUserDefined); |
+ return wrapUnique(new TextCodecUserDefined); |
} |
void TextCodecUserDefined::registerCodecs(TextCodecRegistrar registrar) |