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

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

Issue 2761263003: Allow CollectionViewModel/Controller queries without SectionIdentifier (Closed)
Patch Set: Cleanup Created 3 years, 8 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/payment_request_selector_view_controller.mm
diff --git a/ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm b/ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm
index f4cca16f00ea60c914122729641f38ba850512b9..e47d89f1f304fbe641b44f892c83c4dd49464851 100644
--- a/ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm
+++ b/ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm
@@ -188,16 +188,14 @@ typedef NS_ENUM(NSInteger, ItemType) {
[self.dataSource
selectableItemAtIndex:self.dataSource.selectedItemIndex]);
oldSelectedItem.accessoryType = MDCCollectionViewCellAccessoryNone;
- [self reconfigureCellsForItems:@[ oldSelectedItem ]
- inSectionWithIdentifier:SectionIdentifierItems];
+ [self reconfigureCellsForItems:@[ oldSelectedItem ]];
}
// Update the newly selected cell.
CollectionViewItem<PaymentsHasAccessoryType>* newSelectedItem =
reinterpret_cast<CollectionViewItem<PaymentsHasAccessoryType>*>(item);
newSelectedItem.accessoryType = MDCCollectionViewCellAccessoryCheckmark;
- [self reconfigureCellsForItems:@[ newSelectedItem ]
- inSectionWithIdentifier:SectionIdentifierItems];
+ [self reconfigureCellsForItems:@[ newSelectedItem ]];
// Notify the delegate of the selection.
NSUInteger index =

Powered by Google App Engine
This is Rietveld 408576698