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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecICU.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
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodec.h ('k') | third_party/WebKit/Source/wtf/text/TextCodecICU.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/TextCodecICU.h
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecICU.h b/third_party/WebKit/Source/wtf/text/TextCodecICU.h
index 9b11005626912daaf218a48b06c217ec49560741..9b34d647c12eaeaa55a42ec1fcdfd05767adcecb 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecICU.h
+++ b/third_party/WebKit/Source/wtf/text/TextCodecICU.h
@@ -29,6 +29,7 @@
#include "wtf/text/TextCodec.h"
#include "wtf/text/TextEncoding.h"
+#include <memory>
#include <unicode/utypes.h>
typedef struct UConverter UConverter;
@@ -46,7 +47,7 @@ public:
private:
TextCodecICU(const TextEncoding&);
- 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/TextCodec.h ('k') | third_party/WebKit/Source/wtf/text/TextCodecICU.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698