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

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

Issue 2956323002: [Payment Request] Simplifies VC's logic to decide if an item is selectable (Closed)
Patch Set: Addressed comment 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
Index: ios/chrome/browser/ui/payments/contact_info_selection_coordinator.mm
diff --git a/ios/chrome/browser/ui/payments/contact_info_selection_coordinator.mm b/ios/chrome/browser/ui/payments/contact_info_selection_coordinator.mm
index b4e6c31a86eb9cffebaafdba8e801754bef7cf8c..9e3fab3b1c197d7096d933fefaa77f9064f91d79 100644
--- a/ios/chrome/browser/ui/payments/contact_info_selection_coordinator.mm
+++ b/ios/chrome/browser/ui/payments/contact_info_selection_coordinator.mm
@@ -83,7 +83,7 @@ const int64_t kDelegateNotificationDelayInNanoSeconds = 0.2 * NSEC_PER_SEC;
#pragma mark - PaymentRequestSelectorViewControllerDelegate
-- (void)paymentRequestSelectorViewController:
+- (BOOL)paymentRequestSelectorViewController:
(PaymentRequestSelectorViewController*)controller
didSelectItemAtIndex:(NSUInteger)index {
// Update the data source with the selection.
@@ -92,6 +92,7 @@ const int64_t kDelegateNotificationDelayInNanoSeconds = 0.2 * NSEC_PER_SEC;
DCHECK(index < self.paymentRequest->contact_profiles().size());
[self delayedNotifyDelegateOfSelection:self.paymentRequest
->contact_profiles()[index]];
+ return YES;
}
- (void)paymentRequestSelectorViewControllerDidFinish:

Powered by Google App Engine
This is Rietveld 408576698