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

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

Issue 2192413002: Timeout if website never completes the transaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Marijn's 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/PaymentResponse.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp b/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp
index 37b267bb42ffbe7dd1af149058dfe4020a531570..bf3d7662f2e52a463842400554baf2365e5a8418 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp
@@ -34,11 +34,11 @@ ScriptValue PaymentResponse::details(ScriptState* scriptState, ExceptionState& e
ScriptPromise PaymentResponse::complete(ScriptState* scriptState, const String& result)
{
- PaymentComplete convertedResult = Unknown;
+ PaymentCompleter::PaymentComplete convertedResult = PaymentCompleter::Unknown;
if (result == "success")
- convertedResult = Success;
- if (result == "fail")
- convertedResult = Fail;
+ convertedResult = PaymentCompleter::Success;
+ else if (result == "fail")
+ convertedResult = PaymentCompleter::Fail;
return m_paymentCompleter->complete(scriptState, convertedResult);
}

Powered by Google App Engine
This is Rietveld 408576698