webcrypto: Change more errors to OperationErrors
BUG=425670
R=eroman
TEST=/crypto layout tests
Review URL: https://codereview.chromium.org/777833002
Cr-Commit-Position: refs/heads/master@{#306852}
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index b9fbb63..535d221 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -166,17 +166,17 @@
}
Status Status::ErrorIncorrectSizeAesCbcIv() {
- return Status(blink::WebCryptoErrorTypeData,
+ return Status(blink::WebCryptoErrorTypeOperation,
"The \"iv\" has an unexpected length -- must be 16 bytes");
}
Status Status::ErrorIncorrectSizeAesCtrCounter() {
- return Status(blink::WebCryptoErrorTypeData,
+ return Status(blink::WebCryptoErrorTypeOperation,
"The \"counter\" has an unexpected length -- must be 16 bytes");
}
Status Status::ErrorInvalidAesCtrCounterLength() {
- return Status(blink::WebCryptoErrorTypeData,
+ return Status(blink::WebCryptoErrorTypeOperation,
"The \"length\" property must be >= 1 and <= 128");
}