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

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

Issue 2020913002: PaymentRequest: Rename ShippingAddress to PaymentAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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();

Powered by Google App Engine
This is Rietveld 408576698