Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
| index 71006e169b283e761c2fb71c35dd01b72f9002b5..cc44c3bf87170e0664b50c87c070872312139394 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java |
| @@ -792,6 +792,13 @@ public class PaymentRequestImpl implements PaymentRequest, PaymentRequestUI.Clie |
| mShippingAddressesSection.setSelectedItemIndex(SectionInformation.NO_SELECTION); |
| providePaymentInformation(); |
| } else { |
| + // Get the shipping address label for the profile. |
| + completeAddress.getProfile().setLabel( |
| + PersonalDataManager.getInstance() |
| + .getShippingAddressLabelForPaymentRequest( |
| + completeAddress.getProfile())); |
| + completeAddress.completeAddress(completeAddress.getProfile()); |
|
please use gerrit instead
2016/11/18 21:56:22
I don't see the need for calling "completeAddress"
sebsg
2016/11/21 16:07:09
Same as other explanation :)
|
| + |
| if (toEdit == null) mShippingAddressesSection.addAndSelectItem(completeAddress); |
| mCardEditor.updateBillingAddressIfComplete(completeAddress); |
| mClient.onShippingAddressChange(completeAddress.toPaymentAddress()); |