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

Unified Diff: content/child/webcrypto/algorithm_dispatch.cc

Issue 777403004: [WebCrypto] Throw syntaxError if keyUsage is empty in ImportKey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated code to adapt to new changes + code review comments Created 6 years 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 | content/child/webcrypto/nss/aes_key_nss.cc » ('j') | content/child/webcrypto/status.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/algorithm_dispatch.cc
diff --git a/content/child/webcrypto/algorithm_dispatch.cc b/content/child/webcrypto/algorithm_dispatch.cc
index 4badeea98674c47c297ee6c46c890f503cb795df..fa2e0174a35920c6d201281275152c8fd1c7ae49 100644
--- a/content/child/webcrypto/algorithm_dispatch.cc
+++ b/content/child/webcrypto/algorithm_dispatch.cc
@@ -117,7 +117,7 @@ Status GenerateKey(const blink::WebCryptoAlgorithm& algorithm,
// does not do its own check of the usages.
if (key->usages() == 0) {
DCHECK(false) << "Key usages for generateKey() must not be empty";
- return Status::ErrorCreateKeyEmptyUsages();
+ return Status::ErrorKeyEmptyUsages();
}
return status;
}
« no previous file with comments | « no previous file | content/child/webcrypto/nss/aes_key_nss.cc » ('j') | content/child/webcrypto/status.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698