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

Unified Diff: Source/platform/exported/WebCryptoResult.cpp

Issue 243853004: [webcrypto] Reject failed operations with a DOMException rather than null. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile warning Created 6 years, 8 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
« no previous file with comments | « Source/platform/CryptoResult.h ('k') | public/platform/WebCrypto.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebCryptoResult.cpp
diff --git a/Source/platform/exported/WebCryptoResult.cpp b/Source/platform/exported/WebCryptoResult.cpp
index b2aa5980da5227d1a1c620f115d935fe277eb0f2..dff47af58fc90724f1b25491ccbbf336697c6131 100644
--- a/Source/platform/exported/WebCryptoResult.cpp
+++ b/Source/platform/exported/WebCryptoResult.cpp
@@ -38,15 +38,9 @@
namespace blink {
-void WebCryptoResult::completeWithError()
+void WebCryptoResult::completeWithError(WebCryptoErrorType errorType, const WebString& errorDetails)
{
- m_impl->completeWithError();
- reset();
-}
-
-void WebCryptoResult::completeWithError(const WebString& errorDetails)
-{
- m_impl->completeWithError(errorDetails);
+ m_impl->completeWithError(errorType, errorDetails);
reset();
}
« no previous file with comments | « Source/platform/CryptoResult.h ('k') | public/platform/WebCrypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698