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

Unified Diff: Source/modules/encoding/TextDecoder.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/crypto/SubtleCrypto.cpp ('k') | Source/modules/encoding/TextEncoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encoding/TextDecoder.cpp
diff --git a/Source/modules/encoding/TextDecoder.cpp b/Source/modules/encoding/TextDecoder.cpp
index a6ef96ab4a6bc85dfd0c5332cd89f0d4ef003fc4..ddcc1f2bc7fb3bb2437bfb168169869bc91221e7 100644
--- a/Source/modules/encoding/TextDecoder.cpp
+++ b/Source/modules/encoding/TextDecoder.cpp
@@ -50,10 +50,10 @@ TextDecoder* TextDecoder::create(const String& label, const Dictionary& options,
}
bool fatal = false;
- options.get("fatal", fatal);
+ DictionaryHelper::get(options, "fatal", fatal);
bool ignoreBOM = false;
- options.get("ignoreBOM", ignoreBOM);
+ DictionaryHelper::get(options, "ignoreBOM", ignoreBOM);
return new TextDecoder(encoding, fatal, ignoreBOM);
}
@@ -85,7 +85,7 @@ String TextDecoder::encoding() const
String TextDecoder::decode(ArrayBufferView* input, const Dictionary& options, ExceptionState& exceptionState)
{
bool stream = false;
- options.get("stream", stream);
+ DictionaryHelper::get(options, "stream", stream);
const char* start = input ? static_cast<const char*>(input->baseAddress()) : 0;
size_t length = input ? input->byteLength() : 0;
« no previous file with comments | « Source/modules/crypto/SubtleCrypto.cpp ('k') | Source/modules/encoding/TextEncoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698