Commit 67893a37 authored by eroman's avatar eroman Committed by Commit bot

Remove unused exception types from WebCrypto. (Chromium-side)

BUG=441485

Review URL: https://codereview.chromium.org/795263002

Cr-Commit-Position: refs/heads/master@{#308169}
parent 8a684dcb
......@@ -204,7 +204,7 @@ Status Status::ErrorUnsupported(const std::string& message) {
}
Status Status::ErrorUnexpected() {
return Status(blink::WebCryptoErrorTypeUnknown,
return Status(blink::WebCryptoErrorTypeOperation,
"Something unexpected happened...");
}
......
......@@ -80,15 +80,11 @@ static std::string ErrorTypeToString(blink::WebCryptoErrorType type) {
return "SyntaxError";
case blink::WebCryptoErrorTypeOperation:
return "OperationError";
case blink::WebCryptoErrorTypeUnknown:
return "UnknownError";
case blink::WebCryptoErrorTypeInvalidState:
return "InvalidState";
case blink::WebCryptoErrorTypeInvalidAccess:
return "InvalidAccess";
default:
return "?";
}
return "?";
}
std::string StatusToString(const Status& status) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment