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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java

Issue 2054823002: PaymentRequest: complete() method should take PaymentComplete enum value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
index ef8b5cbd5533c5c9d229e83967039fe32eed469f..8a972b23f2f3876c974f39e63279c70de1b64f7c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java
@@ -398,12 +398,13 @@ public class PaymentRequestUI implements DialogInterface.OnDismissListener, View
*
* Should not be called multiple times.
*
- * @param paymentSuccess Whether the payment (if any) was successful.
+ * @param shouldCloseImmediately If true, this function will immediately dismiss the dialog
+ * without describing the error.
* @param callback The callback to notify of finished animations.
*/
- public void close(boolean paymentSuccess, final Runnable callback) {
+ public void close(boolean shouldCloseImmediately, final Runnable callback) {
mIsClientClosing = true;
- mResultView.update(paymentSuccess, new Runnable() {
+ mResultView.update(shouldCloseImmediately, new Runnable() {
@Override
public void run() {
dismissDialog(false);

Powered by Google App Engine
This is Rietveld 408576698