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

Unified Diff: content/child/webcrypto/status.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
Index: content/child/webcrypto/status.cc
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index 03e506fb00d28804468296892655c903928a7059..044d2e85b3cb319427810a69d54927d801dbe315 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -268,9 +268,9 @@ Status Status::ErrorCreateKeyBadUsages() {
"Cannot create a key using the specified key usages.");
}
-Status Status::ErrorCreateKeyEmptyUsages() {
+Status Status::ErrorKeyEmptyUsages() {
eroman 2014/12/16 01:26:45 Several issues here: (1) The header was not upda
Habib Virji 2014/12/16 09:59:42 I have updated header and removed new function pre
return Status(blink::WebCryptoErrorTypeSyntax,
- "Usages cannot be empty when creating a key.");
+ "Usages cannot be empty for creating or importing keys.");
}
Status Status::ErrorImportedEcKeyIncorrectCurve() {

Powered by Google App Engine
This is Rietveld 408576698