| 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 96689d96a9ba0f06b56ea1b8fa67ae866092776a..c8a8c65cde45cd83df7ec601a50590c203ff46e1 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
|
| @@ -15,9 +15,9 @@ public class PaymentOption {
|
| public static final int NO_ICON = 0;
|
|
|
| private final String mId;
|
| - private final String mLabel;
|
| - private final String mSublabel;
|
| private final int mIcon;
|
| + private String mLabel;
|
| + private String mSublabel;
|
| private boolean mIsValid = true;
|
|
|
| /**
|
| @@ -51,6 +51,16 @@ public class PaymentOption {
|
| }
|
|
|
| /**
|
| + * Updates the primary label of this option. Can be called after this option has been edited by
|
| + * the user.
|
| + *
|
| + * @param label The new primary label to use.
|
| + */
|
| + protected void setLabel(String label) {
|
| + mLabel = label;
|
| + }
|
| +
|
| + /**
|
| * The optional sublabel of this option. For example, “Expiration date: 12/2025”.
|
| */
|
| public String getSublabel() {
|
| @@ -58,6 +68,16 @@ public class PaymentOption {
|
| }
|
|
|
| /**
|
| + * Updates the optional sublabel of this option. Can be called after this option has been edited
|
| + * by the user.
|
| + *
|
| + * @param sublabel The new sublabel to use.
|
| + */
|
| + protected void setSublabel(String sublabel) {
|
| + mSublabel = sublabel;
|
| + }
|
| +
|
| + /**
|
| * The identifier for the drawable icon for this payment option. For example,
|
| * R.drawable.visa_card_issuer_icon or NO_ICON.
|
| */
|
|
|