| Index: third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp b/third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp
|
| index 274bae84f4de735630f41c05d70acbedc4f9194f..47dc54a534075fcafe9b436ab1f4017d47af0a5d 100644
|
| --- a/third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp
|
| @@ -4,9 +4,10 @@
|
|
|
| #include "wtf/text/TextCodecReplacement.h"
|
|
|
| -#include "wtf/PassOwnPtr.h"
|
| +#include "wtf/PtrUtil.h"
|
| #include "wtf/text/CharacterNames.h"
|
| #include "wtf/text/WTFString.h"
|
| +#include <memory>
|
|
|
| namespace WTF {
|
|
|
| @@ -30,9 +31,9 @@ void TextCodecReplacement::registerEncodingNames(EncodingNameRegistrar registrar
|
| registrar("iso-2022-kr", "replacement");
|
| }
|
|
|
| -static PassOwnPtr<TextCodec> newStreamingTextDecoderReplacement(const TextEncoding&, const void*)
|
| +static std::unique_ptr<TextCodec> newStreamingTextDecoderReplacement(const TextEncoding&, const void*)
|
| {
|
| - return adoptPtr(new TextCodecReplacement);
|
| + return wrapUnique(new TextCodecReplacement);
|
| }
|
|
|
| void TextCodecReplacement::registerCodecs(TextCodecRegistrar registrar)
|
|
|