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

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

Issue 2120973002: [Payments] Show complete profiles first and limit to 4 suggestions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the null return value Created 4 years, 5 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/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..c57bdedad09b0c8ab3455d0982435b1e05a58fce 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
@@ -10,10 +10,11 @@ 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 +36,11 @@ public class PaymentOption {
mIcon = icon;
}
+ @Override
+ public boolean isComplete() {
+ return mIsComplete;
+ }
+
/**
* The non-human readable identifier for this option. For example, "standard_shipping" or the
* GUID of an autofill card.

Powered by Google App Engine
This is Rietveld 408576698