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 521b20d7aae471225e44894f7c9c1f2ddde7e028..79e07caf5fb465fd58aebed70606c06095c926eb 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
@@ -315,13 +315,13 @@ ExecutionContext* PaymentRequest::getExecutionContext() const |
return ContextLifecycleObserver::getExecutionContext(); |
} |
-ScriptPromise PaymentRequest::complete(ScriptState* scriptState, bool success) |
+ScriptPromise PaymentRequest::complete(ScriptState* scriptState, const PaymentComplete result) |
{ |
if (m_completeResolver) |
return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(InvalidStateError, "Already called complete() once")); |
// The payment provider should respond in PaymentRequest::OnComplete(). |
- m_paymentProvider->Complete(success); |
+ m_paymentProvider->Complete(mojom::blink::PaymentComplete(result)); |
m_completeResolver = ScriptPromiseResolver::create(scriptState); |
return m_completeResolver->promise(); |