Index: third_party/WebKit/Source/wtf/text/TextEncoding.cpp |
diff --git a/third_party/WebKit/Source/wtf/text/TextEncoding.cpp b/third_party/WebKit/Source/wtf/text/TextEncoding.cpp |
index 31cdfb837a5e0ab2912ffeba39668483914622f4..f3f231d4680504cc21ee9ab25d0c0a813a9b1ee6 100644 |
--- a/third_party/WebKit/Source/wtf/text/TextEncoding.cpp |
+++ b/third_party/WebKit/Source/wtf/text/TextEncoding.cpp |
@@ -27,12 +27,12 @@ |
#include "wtf/text/TextEncoding.h" |
+#include "wtf/OwnPtr.h" |
#include "wtf/StdLibExtras.h" |
#include "wtf/Threading.h" |
#include "wtf/text/CString.h" |
#include "wtf/text/TextEncodingRegistry.h" |
#include "wtf/text/WTFString.h" |
-#include <memory> |
namespace WTF { |
@@ -74,7 +74,7 @@ CString TextEncoding::encode(const String& string, UnencodableHandling handling) |
if (string.isEmpty()) |
return ""; |
- std::unique_ptr<TextCodec> textCodec = newTextCodec(*this); |
+ OwnPtr<TextCodec> textCodec = newTextCodec(*this); |
CString encodedString; |
if (string.is8Bit()) |
encodedString = textCodec->encode(string.characters8(), string.length(), handling); |