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

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

Issue 2149433002: [Payments] Add ability to bold parts of addresses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 599ce7b352d9217a26e254b0acfba636df203db0..f34634191a4671911c31c5533d02ec98706e1cc2 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
@@ -41,7 +41,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;
}
@@ -66,7 +67,7 @@ public class AutofillAddress extends PaymentOption {
assert profile.getGUID().equals(mProfile.getGUID());
mProfile = profile;
mIsComplete = true;
- updateLabels(mProfile.getFullName(), mProfile.getLabel());
+ updateLabels(mProfile.getFullName(), mProfile.getLabel(), mProfile.getPhoneNumber());
}
/** @return The country code to use, e.g., when constructing an editor for this address. */
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentOption.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698