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

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

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/TextCodecLatin1.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp b/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp
index ebe9d02023f6eb2189c7fa0504e2dbd5eff1e2e7..94f89b24637c2f846e74379b153d2a4ff074036e 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp
@@ -25,11 +25,12 @@
#include "wtf/text/TextCodecLatin1.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/text/CString.h"
#include "wtf/text/StringBuffer.h"
#include "wtf/text/TextCodecASCIIFastPath.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace WTF {
@@ -90,9 +91,9 @@ void TextCodecLatin1::registerEncodingNames(EncodingNameRegistrar registrar)
registrar("x-cp1252", "windows-1252");
}
-static PassOwnPtr<TextCodec> newStreamingTextDecoderWindowsLatin1(const TextEncoding&, const void*)
+static std::unique_ptr<TextCodec> newStreamingTextDecoderWindowsLatin1(const TextEncoding&, const void*)
{
- return adoptPtr(new TextCodecLatin1);
+ return wrapUnique(new TextCodecLatin1);
}
void TextCodecLatin1::registerCodecs(TextCodecRegistrar registrar)
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecICU.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698