Index: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
index 360ab4ad67ee38eef702f31cb2ffa1f82a82e97e..9ee9f8b8ca298d4146366386cd14af5001e4875b 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
@@ -31,6 +31,7 @@ import org.chromium.content_public.browser.WebContents; |
import org.chromium.mojo.system.MojoException; |
import org.chromium.mojom.payments.PaymentComplete; |
import org.chromium.mojom.payments.PaymentDetails; |
+import org.chromium.mojom.payments.PaymentErrorReason; |
import org.chromium.mojom.payments.PaymentItem; |
import org.chromium.mojom.payments.PaymentMethodData; |
import org.chromium.mojom.payments.PaymentOptions; |
@@ -830,7 +831,7 @@ public class PaymentRequestImpl implements PaymentRequest, PaymentRequestUI.Clie |
private void disconnectFromClientWithDebugMessage(String debugMessage) { |
Log.d(TAG, debugMessage); |
- mClient.onError(); |
+ mClient.onError(PaymentErrorReason.USER_CANCEL); |
closeClient(); |
} |