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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp

Issue 2193183002: Print proper debug message in case of change event timeout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments Created 4 years, 5 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: 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();
}

Powered by Google App Engine
This is Rietveld 408576698