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

Unified Diff: Source/modules/crypto/SubtleCrypto.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/NormalizeAlgorithm.cpp ('k') | Source/modules/encoding/TextDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/SubtleCrypto.cpp
diff --git a/Source/modules/crypto/SubtleCrypto.cpp b/Source/modules/crypto/SubtleCrypto.cpp
index 7df30b063d276dd5c96ec8dfd48e138f49346c97..d3a5dc7fe90103cf7456b9ade5e7a160ec79f8f1 100644
--- a/Source/modules/crypto/SubtleCrypto.cpp
+++ b/Source/modules/crypto/SubtleCrypto.cpp
@@ -141,7 +141,7 @@ static ScriptPromise startCryptoOperation(ScriptState* scriptState, const Dictio
static bool copyStringProperty(const char* property, const Dictionary& source, JSONObject* destination)
{
String value;
- if (!DictionaryHelper::get(source, property, value))
+ if (!source.get(property, value))
return false;
destination->setString(property, value);
return true;
@@ -150,7 +150,7 @@ static bool copyStringProperty(const char* property, const Dictionary& source, J
static bool copySequenceOfStringProperty(const char* property, const Dictionary& source, JSONObject* destination)
{
Vector<String> value;
- if (!DictionaryHelper::get(source, property, value))
+ if (!source.get(property, value))
return false;
RefPtr<JSONArray> jsonArray = JSONArray::create();
for (unsigned i = 0; i < value.size(); ++i)
@@ -177,7 +177,7 @@ static bool copyJwkDictionaryToJson(const Dictionary& dict, CString& jsonUtf8, C
copyStringProperty("alg", dict, jsonObject.get());
bool ext;
- if (DictionaryHelper::get(dict, "ext", ext))
+ if (dict.get("ext", ext))
jsonObject->setBoolean("ext", ext);
const char* const propertyNames[] = { "d", "n", "e", "p", "q", "dp", "dq", "qi", "k" };
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | Source/modules/encoding/TextDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698