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

Unified Diff: content/child/webcrypto/status.h

Issue 689883002: Throw a SyntaxError when importing keys with invalid usages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: content/child/webcrypto/status.h
diff --git a/content/child/webcrypto/status.h b/content/child/webcrypto/status.h
index 4c1aae6e1857a1d047839c2e1516d52c9d24cfbd..4bb12041feff4a03bfe24143609d1d7e8121e40d 100644
--- a/content/child/webcrypto/status.h
+++ b/content/child/webcrypto/status.h
@@ -211,7 +211,8 @@ class CONTENT_EXPORT Status {
// Attempted to create a key (either by importKey(), generateKey(), or
eroman 2014/10/30 19:03:30 This comment is no longer applicable, please updat
// unwrapKey()) however the key usages were not applicable for the key type
// and algorithm.
- static Status ErrorCreateKeyBadUsages();
+ static Status SyntaxError();
+ static Status SyntaxError(const std::string& parameter);
private:
enum Type { TYPE_ERROR, TYPE_SUCCESS };

Powered by Google App Engine
This is Rietveld 408576698