Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java |
| index 638df3af6b830eaec5863b4b8fd173961a82a9d2..22821bfbf6c65934f20da8453ae4bcce57046afb 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java |
| @@ -4,16 +4,19 @@ |
| package org.chromium.chrome.browser.payments.ui; |
| +import org.chromium.chrome.browser.payments.Completable; |
| + |
| import javax.annotation.Nullable; |
| /** |
| * An option that the user can select, e.g., a shipping option, a shipping address, or a payment |
| * method. |
| */ |
| -public class PaymentOption { |
| +public class PaymentOption implements Completable { |
| /** The placeholder value that indicates the absence of an icon for this option. */ |
| public static final int NO_ICON = 0; |
| + protected boolean mIsComplete; |
| private final String mId; |
| private final int mIcon; |
| @Nullable private String mLabel; |
| @@ -35,6 +38,11 @@ public class PaymentOption { |
| mIcon = icon; |
| } |
| + /** @return Whether the data is complete and can be sent to the merchant as-is */ |
|
please use gerrit instead
2016/07/08 09:36:26
Replace the comment with @Override
sebsg
2016/07/08 09:50:42
Done.
|
| + public boolean isComplete() { |
| + return mIsComplete; |
| + } |
| + |
| /** |
| * The non-human readable identifier for this option. For example, "standard_shipping" or the |
| * GUID of an autofill card. |