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

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

Powered by Google App Engine
This is Rietveld 408576698