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

Unified Diff: Source/modules/crypto/CryptoResultImpl.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/core/testing/InternalDictionary.idl ('k') | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/CryptoResultImpl.cpp
diff --git a/Source/modules/crypto/CryptoResultImpl.cpp b/Source/modules/crypto/CryptoResultImpl.cpp
index 6ebe4ee5dc8d5b9989f6aef30624c5bedd3e4e9e..916b47b8dcebce27b2310d25e8bf5bfff2c64a28 100644
--- a/Source/modules/crypto/CryptoResultImpl.cpp
+++ b/Source/modules/crypto/CryptoResultImpl.cpp
@@ -158,7 +158,11 @@ void CryptoResultImpl::completeWithKeyPair(const WebCryptoKey& publicKey, const
ScriptState* scriptState = m_resolver->scriptState();
ScriptState::Scope scope(scriptState);
+#ifdef REMOVE_DIC
+ Dictionary keyPair(v8::Object::New(scriptState->isolate()), scriptState->isolate());
+#else
Dictionary keyPair = Dictionary::createEmpty(scriptState->isolate());
+#endif
v8::Handle<v8::Value> publicKeyValue = toV8NoInline(CryptoKey::create(publicKey), scriptState->context()->Global(), scriptState->isolate());
v8::Handle<v8::Value> privateKeyValue = toV8NoInline(CryptoKey::create(privateKey), scriptState->context()->Global(), scriptState->isolate());
« no previous file with comments | « Source/core/testing/InternalDictionary.idl ('k') | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698