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

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: 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..560b42f8885313e333ac392f293977870b077d57 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
@@ -461,6 +461,11 @@ void PaymentRequest::onUpdatePaymentDetailsFailure(const ScriptValue& error)
String message;
error.toString(message);
+ abortPaymentRequest(message);
+}
+
+void PaymentRequest::abortPaymentRequest(const String& message)
+{
please use gerrit instead 2016/07/29 15:40:50 Remove lines 461-468.
pals 2016/08/01 11:18:23 Done.
if (m_showResolver)
m_showResolver->reject(DOMException::create(AbortError, message));
if (m_completeResolver)

Powered by Google App Engine
This is Rietveld 408576698