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

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

Issue 534133002: [WIP] bindings: Introduce PropertyBag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/filesystem/FileSystemFlags.h » ('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 a33215187ca4b4e228077454fd7f828873b99711..ea24f67cc378091f29217a14da06a65e4a99cdc3 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;
- DictionaryHelper::get(options, "fatal", fatal);
+ options.get("fatal", fatal);
bool ignoreBOM = false;
- DictionaryHelper::get(options, "ignoreBOM", ignoreBOM);
+ options.get("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;
- DictionaryHelper::get(options, "stream", stream);
+ options.get("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/filesystem/FileSystemFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698