| 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 f5376e9b8385623e20dc0db943bf7ab8d61a4e6d..a2d212bceba2642dc35a93eaf39ff84713984c6d 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
|
| @@ -455,7 +455,7 @@ public class PaymentRequestImpl implements PaymentRequest, PaymentRequestUI.Clie
|
| assert option instanceof AutofillAddress;
|
| mShippingAddressesSection.setSelectedItem(option);
|
| if (mMerchantNeedsShippingAddress) {
|
| - mClient.onShippingAddressChange(((AutofillAddress) option).toShippingAddress());
|
| + mClient.onShippingAddressChange(((AutofillAddress) option).toPaymentAddress());
|
| }
|
| } else if (optionType == PaymentRequestUI.TYPE_SHIPPING_OPTIONS) {
|
| // This may update the line items.
|
| @@ -571,7 +571,7 @@ public class PaymentRequestImpl implements PaymentRequest, PaymentRequestUI.Clie
|
| // AutofillAddress.
|
| assert selectedShippingAddress instanceof AutofillAddress;
|
| response.shippingAddress =
|
| - ((AutofillAddress) selectedShippingAddress).toShippingAddress();
|
| + ((AutofillAddress) selectedShippingAddress).toPaymentAddress();
|
| }
|
|
|
| PaymentOption selectedShippingOption = mShippingOptionsSection.getSelectedItem();
|
|
|