Index: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
index 697077558264391a19d958fd976005c5a4c77195..119e5eac3c8bbd34a5c0f6a0df8651e2635ef661 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
@@ -456,15 +456,12 @@ void PaymentRequest::onUpdatePaymentDetails(const ScriptValue& detailsScriptValu |
m_paymentProvider->UpdateWith(mojom::blink::PaymentDetails::From(details)); |
} |
-void PaymentRequest::onUpdatePaymentDetailsFailure(const ScriptValue& error) |
+void PaymentRequest::onUpdatePaymentDetailsFailure(const String& error) |
{ |
- String message; |
- error.toString(message); |
- |
if (m_showResolver) |
- m_showResolver->reject(DOMException::create(AbortError, message)); |
+ m_showResolver->reject(DOMException::create(AbortError, error)); |
if (m_completeResolver) |
- m_completeResolver->reject(DOMException::create(AbortError, message)); |
+ m_completeResolver->reject(DOMException::create(AbortError, error)); |
clearResolversAndCloseMojoConnection(); |
} |