Chromium Code Reviews| 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 b6a2be2b11627488a6dc2cafd3135fd1bf769ac1..4ce8321c60f52fbd0d314acafd0f0386b7601b8b 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 |
| @@ -47,6 +47,7 @@ public class AutofillAddress extends PaymentOption { |
| assert profile.getSortingCode() != null : "Sorting code should not be null"; |
| assert profile.getCompanyName() != null : "Company name should not be null"; |
| assert profile.getFullName() != null : "Full name should not be null"; |
| + assert profile.getPhoneNumber() != null : "Phone number should not be null"; |
|
please use gerrit instead
2016/06/06 17:35:48
To avoid hitting this assert, you should check for
zino
2016/06/06 18:02:17
Done.
|
| mProfile = profile; |
| } |
| @@ -57,10 +58,10 @@ public class AutofillAddress extends PaymentOption { |
| public PaymentAddress toPaymentAddress() { |
| PaymentAddress result = new PaymentAddress(); |
| - result.regionCode = mProfile.getCountryCode(); |
| + result.country = mProfile.getCountryCode(); |
| result.addressLine = mProfile.getStreetAddress().split("\n"); |
| - result.administrativeArea = mProfile.getRegion(); |
| - result.locality = mProfile.getLocality(); |
| + result.region = mProfile.getRegion(); |
| + result.city = mProfile.getLocality(); |
| result.dependentLocality = mProfile.getDependentLocality(); |
| result.postalCode = mProfile.getPostalCode(); |
| result.sortingCode = mProfile.getSortingCode(); |
| @@ -68,6 +69,8 @@ public class AutofillAddress extends PaymentOption { |
| result.recipient = mProfile.getFullName(); |
| result.languageCode = ""; |
| result.scriptCode = ""; |
| + result.careOf = ""; |
| + result.phone = mProfile.getPhoneNumber(); |
| if (mProfile.getLanguageCode() == null) return result; |