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

Unified Diff: ios/chrome/browser/ui/payments/payment_request_manager.mm

Issue 2955263002: [Payment Request] Moves some of PR coordinator logic to PR manager (Closed)
Patch Set: Created 3 years, 6 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 | « ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/payments/payment_request_manager.mm
diff --git a/ios/chrome/browser/ui/payments/payment_request_manager.mm b/ios/chrome/browser/ui/payments/payment_request_manager.mm
index 005f6e625562e06813b3edf6eeb8bcaeccfa841a..59648d7d394a19c5c8f86e1a9e218f7f10838cf1 100644
--- a/ios/chrome/browser/ui/payments/payment_request_manager.mm
+++ b/ios/chrome/browser/ui/payments/payment_request_manager.mm
@@ -764,15 +764,20 @@ struct PendingPaymentResponse {
}
- (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator
- didSelectShippingAddress:(payments::PaymentAddress)shippingAddress {
- [_paymentRequestJsManager updateShippingAddress:shippingAddress
+ didSelectShippingAddress:
+ (const autofill::AutofillProfile&)shippingAddress {
+ payments::PaymentAddress address =
+ payments::data_util::GetPaymentAddressFromAutofillProfile(
+ shippingAddress, GetApplicationContext()->GetApplicationLocale());
+ [_paymentRequestJsManager updateShippingAddress:address
completionHandler:nil];
[self setUnblockEventQueueTimer];
[self setUpdateEventTimeoutTimer];
}
- (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator
- didSelectShippingOption:(web::PaymentShippingOption)shippingOption {
+ didSelectShippingOption:
+ (const web::PaymentShippingOption&)shippingOption {
[_paymentRequestJsManager updateShippingOption:shippingOption
completionHandler:nil];
[self setUnblockEventQueueTimer];
« no previous file with comments | « ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698