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

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

Issue 2945303003: [Payment Request] Fixes the behavior of selector coordinators in edit mode. (Closed)
Patch Set: initial 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_selector_view_controller_data_source.h ('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/shipping_address_selection_coordinator.mm
diff --git a/ios/chrome/browser/ui/payments/shipping_address_selection_coordinator.mm b/ios/chrome/browser/ui/payments/shipping_address_selection_coordinator.mm
index 710a81c889b01943b94958bd6cb141d224ccaeb0..4266b8fef4b4e53231fe38b503f834d7b6751b17 100644
--- a/ios/chrome/browser/ui/payments/shipping_address_selection_coordinator.mm
+++ b/ios/chrome/browser/ui/payments/shipping_address_selection_coordinator.mm
@@ -150,7 +150,7 @@ const int64_t kDelegateNotificationDelayInNanoSeconds = 0.2 * NSEC_PER_SEC;
[self.addressEditCoordinator stop];
self.addressEditCoordinator = nil;
- if (self.mediator.state != PaymentRequestSelectorStateEdit) {
+ if (![self.viewController isEditing]) {
// Inform |self.delegate| that |address| has been selected.
[self.delegate shippingAddressSelectionCoordinator:self
didSelectShippingAddress:address];
« no previous file with comments | « ios/chrome/browser/ui/payments/payment_request_selector_view_controller_data_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698