Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1178)

Unified Diff: third_party/WebKit/Source/wtf/text/TextEncoding.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp ('k') | third_party/WebKit/Source/wtf/text/TextEncodingRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698