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

Unified Diff: content/child/webcrypto/test/test_helpers.cc

Issue 795263002: Remove unused exception types from WebCrypto. (Chromium-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compilation 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 | « content/child/webcrypto/status.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/test/test_helpers.cc
diff --git a/content/child/webcrypto/test/test_helpers.cc b/content/child/webcrypto/test/test_helpers.cc
index 397a8cccd5b53b95a78e1f58e4dd91a55a0f0124..68bbf30c9c16b1c1268554c5b444844a6c38dc34 100644
--- a/content/child/webcrypto/test/test_helpers.cc
+++ b/content/child/webcrypto/test/test_helpers.cc
@@ -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) {
« no previous file with comments | « content/child/webcrypto/status.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698