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/status.cc

Issue 334983006: [webcrypto] Disable RSA key import for NSS versions less than 3.16.2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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.cc
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index 5ddbf39e14090a65c1198c1cac256c46be1feb8b..38f4d466f60a949b42f5d08fdf7618401dc78124 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -151,8 +151,11 @@ Status Status::ErrorDataTooSmall() {
}
Status Status::ErrorUnsupported() {
- return Status(blink::WebCryptoErrorTypeNotSupported,
- "The requested operation is unsupported");
+ return ErrorUnsupported("The requested operation is unsupported");
+}
+
+Status Status::ErrorUnsupported(const std::string message) {
+ return Status(blink::WebCryptoErrorTypeNotSupported, message);
}
Status Status::ErrorUnexpected() {
« content/child/webcrypto/platform_crypto_nss.cc ('K') | « content/child/webcrypto/status.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698