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

Unified Diff: Source/core/platform/chromium/support/WebCrypto.cpp

Issue 141413003: [webcrypto] Match the error handling defined by the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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/core/platform/CryptoResult.h ('k') | Source/modules/crypto/CryptoResultImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/chromium/support/WebCrypto.cpp
diff --git a/Source/core/platform/chromium/support/WebCrypto.cpp b/Source/core/platform/chromium/support/WebCrypto.cpp
index 3fd68afd82af45ac5795e7ff700004b077e65f99..5800e41e570f036de6548754f2dc8da1679ff450 100644
--- a/Source/core/platform/chromium/support/WebCrypto.cpp
+++ b/Source/core/platform/chromium/support/WebCrypto.cpp
@@ -43,6 +43,15 @@ void WebCryptoResult::completeWithError()
reset();
}
+void WebCryptoResult::completeWithError(const WebString& errorDetails)
+{
+ // FIXME: The error details are being temporarily discarded. Once the
+ // Chromium side has been updated to emit error details, this should be
+ // enabled and the layouttests rebaselined.
+ m_impl->completeWithError(/*errorDetails*/);
+ reset();
+}
+
void WebCryptoResult::completeWithBuffer(const WebArrayBuffer& buffer)
{
RELEASE_ASSERT(!buffer.isNull());
« no previous file with comments | « Source/core/platform/CryptoResult.h ('k') | Source/modules/crypto/CryptoResultImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698