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

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: 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/PaymentRequestUpdateEvent.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp
index 02e5161e759e7c1a53441ad2df3c00ee7f7481bd..37f6a198ec723da5f12b143e979de0ca9f688aa9 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp
@@ -10,6 +10,7 @@
#include "core/dom/ExceptionCode.h"
#include "modules/payments/PaymentUpdater.h"
#include "public/platform/WebTraceLocation.h"
+#include "wtf/text/WTFString.h"
namespace blink {
namespace {
@@ -71,7 +72,7 @@ private:
ScriptValue call(ScriptValue value) override
{
- m_updater->onUpdatePaymentDetailsFailure(value);
+ m_updater->onUpdatePaymentDetailsFailure(toCoreString(value.v8Value()->ToString(getScriptState()->context()).ToLocalChecked()));
return ScriptValue();
}
@@ -129,7 +130,7 @@ void PaymentRequestUpdateEvent::onTimerFired(Timer<PaymentRequestUpdateEvent>*)
if (!m_updater)
return;
- m_updater->onUpdatePaymentDetailsFailure(ScriptValue());
+ m_updater->onUpdatePaymentDetailsFailure("Timed out as the page didn't resolve the promise from change event");
}
DEFINE_TRACE(PaymentRequestUpdateEvent)

Powered by Google App Engine
This is Rietveld 408576698