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

Unified Diff: content/child/webcrypto/webcrypto_impl.cc

Issue 253123002: [refactor] Remove usages of WEBCRYPTO_HAS_ERROR_TYPE ifdef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase now that threads is reverted... 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 | « 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/webcrypto_impl.cc
diff --git a/content/child/webcrypto/webcrypto_impl.cc b/content/child/webcrypto/webcrypto_impl.cc
index ad0877106a6226dbb6529a9a9cc8fbf2ac3644de..57bdde44568bdf50ec72b1617218c3b52664be86 100644
--- a/content/child/webcrypto/webcrypto_impl.cc
+++ b/content/child/webcrypto/webcrypto_impl.cc
@@ -22,17 +22,8 @@ namespace {
void CompleteWithError(const Status& status, blink::WebCryptoResult* result) {
DCHECK(status.IsError());
-#if defined(WEBCRYPTO_HAS_ERROR_TYPE)
result->completeWithError(status.error_type(),
blink::WebString::fromUTF8(status.error_details()));
-#else
- // TODO(eroman): Delete once Blink changes have rolled into Chromium.
- if (!status.error_details().empty())
- result->completeWithError(
- blink::WebString::fromUTF8(status.error_details()));
- else
- result->completeWithError();
-#endif
}
bool IsAlgorithmAsymmetric(const blink::WebCryptoAlgorithm& algorithm) {
« 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