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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecUTF8.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/TextCodecUTF8.h
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF8.h b/third_party/WebKit/Source/wtf/text/TextCodecUTF8.h
index feb5682a77ed860c088fa11c6f2d1ce8ef45ec16..5f943dd9eb13ca51362c357f0197b90926d5a991 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecUTF8.h
+++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF8.h
@@ -27,6 +27,7 @@
#define TextCodecUTF8_h
#include "wtf/text/TextCodec.h"
+#include <memory>
namespace WTF {
@@ -39,7 +40,7 @@ protected:
TextCodecUTF8() : m_partialSequenceSize(0) { }
private:
- static PassOwnPtr<TextCodec> create(const TextEncoding&, const void*);
+ static std::unique_ptr<TextCodec> create(const TextEncoding&, const void*);
String decode(const char*, size_t length, FlushBehavior, bool stopOnError, bool& sawError) override;
CString encode(const UChar*, size_t length, UnencodableHandling) override;
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698