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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecReplacement.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/TextCodecReplacement.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp b/third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp
index 274bae84f4de735630f41c05d70acbedc4f9194f..47dc54a534075fcafe9b436ab1f4017d47af0a5d 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp
@@ -4,9 +4,10 @@
#include "wtf/text/TextCodecReplacement.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/text/CharacterNames.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace WTF {
@@ -30,9 +31,9 @@ void TextCodecReplacement::registerEncodingNames(EncodingNameRegistrar registrar
registrar("iso-2022-kr", "replacement");
}
-static PassOwnPtr<TextCodec> newStreamingTextDecoderReplacement(const TextEncoding&, const void*)
+static std::unique_ptr<TextCodec> newStreamingTextDecoderReplacement(const TextEncoding&, const void*)
{
- return adoptPtr(new TextCodecReplacement);
+ return wrapUnique(new TextCodecReplacement);
}
void TextCodecReplacement::registerCodecs(TextCodecRegistrar registrar)

Powered by Google App Engine
This is Rietveld 408576698