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

Unified Diff: Source/modules/encoding/TextEncoder.cpp

Issue 157623002: Revert of Move encoding module to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | « Source/modules/encoding/TextEncoder.h ('k') | Source/modules/encoding/TextEncoder.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encoding/TextEncoder.cpp
diff --git a/Source/modules/encoding/TextEncoder.cpp b/Source/modules/encoding/TextEncoder.cpp
index 255ede39336e4b4ab0894c7f6cc78afbdb80baf5..1a26de62da91172943bc0777b555554af6340709 100644
--- a/Source/modules/encoding/TextEncoder.cpp
+++ b/Source/modules/encoding/TextEncoder.cpp
@@ -39,9 +39,7 @@
namespace WebCore {
-DEFINE_GC_INFO(TextEncoder);
-
-PassRefPtrWillBeRawPtr<TextEncoder> TextEncoder::create(const String& utfLabel, ExceptionState& exceptionState)
+PassRefPtr<TextEncoder> TextEncoder::create(const String& utfLabel, ExceptionState& exceptionState)
{
const String& encodingLabel = utfLabel.isNull() ? String("utf-8") : utfLabel;
@@ -57,7 +55,7 @@
return 0;
}
- return adoptRefWillBeNoop(new TextEncoder(encoding.name()));
+ return adoptRef(new TextEncoder(encoding.name()));
}
TextEncoder::TextEncoder(const String& encoding)
« no previous file with comments | « Source/modules/encoding/TextEncoder.h ('k') | Source/modules/encoding/TextEncoder.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698