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

Unified Diff: Source/core/platform/chromium/support/WebCrypto.cpp

Issue 48753003: [webcrypto] Make WebCryptoKey nullable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | « no previous file | Source/platform/exported/WebCryptoKey.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/chromium/support/WebCrypto.cpp
diff --git a/Source/core/platform/chromium/support/WebCrypto.cpp b/Source/core/platform/chromium/support/WebCrypto.cpp
index f2d4bc9c5d5e5e0a73be7b09f837d97d930357d8..0d58262ec00e7bf57e41b1174ad6ad1499d7cbf4 100644
--- a/Source/core/platform/chromium/support/WebCrypto.cpp
+++ b/Source/core/platform/chromium/support/WebCrypto.cpp
@@ -66,12 +66,15 @@ void WebCryptoResult::completeWithBoolean(bool b)
void WebCryptoResult::completeWithKey(const WebCryptoKey& key)
{
+ ASSERT(!key.isNull());
m_impl->completeWithKey(key);
reset();
}
void WebCryptoResult::completeWithKeyPair(const WebCryptoKey& publicKey, const WebCryptoKey& privateKey)
{
+ ASSERT(!publicKey.isNull());
+ ASSERT(!privateKey.isNull());
m_impl->completeWithKeyPair(publicKey, privateKey);
reset();
}
« no previous file with comments | « no previous file | Source/platform/exported/WebCryptoKey.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698