| Index: third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp b/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp
|
| index bc4f0ed74e35c936f915023482b3b7d98ab0103a..865d67cc3b59c822c5c0197a83331407676de871 100644
|
| --- a/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp
|
| @@ -25,10 +25,12 @@
|
|
|
| #include "wtf/text/TextCodecUTF8.h"
|
|
|
| +#include "wtf/PtrUtil.h"
|
| #include "wtf/text/CString.h"
|
| #include "wtf/text/CharacterNames.h"
|
| #include "wtf/text/StringBuffer.h"
|
| #include "wtf/text/TextCodecASCIIFastPath.h"
|
| +#include <memory>
|
|
|
| namespace WTF {
|
|
|
| @@ -36,9 +38,9 @@ using namespace WTF::Unicode;
|
|
|
| const int nonCharacter = -1;
|
|
|
| -PassOwnPtr<TextCodec> TextCodecUTF8::create(const TextEncoding&, const void*)
|
| +std::unique_ptr<TextCodec> TextCodecUTF8::create(const TextEncoding&, const void*)
|
| {
|
| - return adoptPtr(new TextCodecUTF8);
|
| + return wrapUnique(new TextCodecUTF8);
|
| }
|
|
|
| void TextCodecUTF8::registerEncodingNames(EncodingNameRegistrar registrar)
|
|
|