| Index: chrome/android/java/src/org/chromium/chrome/browser/payments/CardEditor.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/CardEditor.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/CardEditor.java
|
| index 0f98c44a56f4366f30e69845bb48f239396c68d7..2b8d464d9d75d83b0dcbde21a95c6b03f9e770ef 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/payments/CardEditor.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/CardEditor.java
|
| @@ -338,6 +338,7 @@ public class CardEditor extends EditorBase<AutofillPaymentInstrument>
|
| }
|
|
|
| // No matching profile was found. Add the new profile at the top of the list.
|
| + billingAddress.setBillingAddressLabel();
|
| mProfilesForBillingAddress.add(0, billingAddress.getProfile());
|
| }
|
|
|
| @@ -554,6 +555,9 @@ public class CardEditor extends EditorBase<AutofillPaymentInstrument>
|
| // User has cancelled the address editor.
|
| mBillingAddressField.setValue(null);
|
| } else {
|
| + // Set the billing address label.
|
| + billingAddress.setBillingAddressLabel();
|
| +
|
| // User has added a new complete address. Add it to the top of the
|
| // dropdown.
|
| mProfilesForBillingAddress.add(billingAddress.getProfile());
|
|
|