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

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

Issue 780923003: Fix a WebCrypto error type: InvalidAccessError --> OperationError. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@derive_key
Patch Set: 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/test/data/webcrypto/ecdh.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/status.cc
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index 7efc70c1298d878a600ea8a280b60d98a4af73b8..17b5c6add71945253e83bcd20fb7b44a2ccf575f 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -325,7 +325,7 @@ Status Status::ErrorEcdhCurveMismatch() {
}
Status Status::ErrorEcdhLengthTooBig(unsigned int max_length_bits) {
- return Status(blink::WebCryptoErrorTypeInvalidAccess,
+ return Status(blink::WebCryptoErrorTypeOperation,
base::StringPrintf(
"Length specified for ECDH key derivation is too large. "
"Maximum allowed is %u bits",
« no previous file with comments | « no previous file | content/test/data/webcrypto/ecdh.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698