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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.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/PaymentRequestUpdateEvent.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp
index 02e5161e759e7c1a53441ad2df3c00ee7f7481bd..1a19b2f1578177275b6ad839d218ac5203a9cf71 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp
@@ -129,7 +129,7 @@ void PaymentRequestUpdateEvent::onTimerFired(Timer<PaymentRequestUpdateEvent>*)
if (!m_updater)
return;
- m_updater->onUpdatePaymentDetailsFailure(ScriptValue());
+ m_updater->abortPaymentRequest("Timed out as the page didn't resolve the promise from change event");
please use gerrit instead 2016/07/29 15:40:50 Call onUpdatePaymentDetailsFailure("Timed out...")
pals 2016/08/01 11:18:23 Done.
}
DEFINE_TRACE(PaymentRequestUpdateEvent)

Powered by Google App Engine
This is Rietveld 408576698