Index: chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java |
index 391a525f8b45341985de3ddaa836966e519ddc7c..78a223cd15068c4b3f6f2d0b548e2e7b8adb5080 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java |
@@ -40,7 +40,8 @@ public class AutofillAddress extends PaymentOption { |
* @param profile The autofill profile containing the address information. |
*/ |
public AutofillAddress(AutofillProfile profile, boolean isComplete) { |
- super(profile.getGUID(), profile.getFullName(), profile.getLabel(), PaymentOption.NO_ICON); |
+ super(profile.getGUID(), profile.getFullName(), profile.getLabel(), |
+ profile.getPhoneNumber(), PaymentOption.NO_ICON); |
mProfile = profile; |
mIsComplete = isComplete; |
} |
@@ -52,14 +53,15 @@ public class AutofillAddress extends PaymentOption { |
/** |
* Updates the address and marks it "complete." Called after the user has edited this address. |
- * Updates the identifier, label, and sublabel. |
+ * Updates the identifier and labels. |
* |
* @param profile The new profile to use. |
*/ |
public void completeAddress(AutofillProfile profile) { |
mProfile = profile; |
mIsComplete = true; |
- updateIdentifierAndLabels(mProfile.getGUID(), mProfile.getFullName(), mProfile.getLabel()); |
+ updateIdentifierAndLabels(mProfile.getGUID(), mProfile.getFullName(), mProfile.getLabel(), |
+ mProfile.getPhoneNumber()); |
} |
/** @return The country code to use, e.g., when constructing an editor for this address. */ |