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); |
} |