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

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

Issue 373423002: Split Dictionary's get and convert into DictionaryHelper. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/TextDecoder.cpp ('k') | Source/modules/filesystem/FileSystemFlags.h » ('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 723f7666db87e7b17b1eb913ddfef419c3741495..f86c64955beea8b7416dc88ee0f558cd1fdd54f7 100644
--- a/Source/modules/encoding/TextEncoder.cpp
+++ b/Source/modules/encoding/TextEncoder.cpp
@@ -76,7 +76,7 @@ String TextEncoder::encoding() const
PassRefPtr<Uint8Array> TextEncoder::encode(const String& input, const Dictionary& options)
{
bool stream = false;
- options.get("stream", stream);
+ DictionaryHelper::get(options, "stream", stream);
// FIXME: Not flushing is not supported by TextCodec for encode; add it or
// handle split surrogates here.
« no previous file with comments | « Source/modules/encoding/TextDecoder.cpp ('k') | Source/modules/filesystem/FileSystemFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698