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

Unified Diff: ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_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/settings/autofill_credit_card_edit_collection_view_controller.mm
diff --git a/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm b/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm
index 0c2e6a5ca37dcc3c721b5625b0cd40f2cbcafd6b..1aaa243465445b9c0249b662bf7ef7d7a789a621 100644
--- a/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm
+++ b/ios/chrome/browser/ui/settings/autofill_credit_card_edit_collection_view_controller.mm
@@ -133,8 +133,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
// Update the cells.
[self reconfigureCellsForItems:
[self.collectionViewModel
- itemsInSectionWithIdentifier:SectionIdentifierFields]
- inSectionWithIdentifier:SectionIdentifierFields];
+ itemsInSectionWithIdentifier:SectionIdentifierFields]];
}
- (void)loadModel {
@@ -231,8 +230,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
withString:newText];
item.cardTypeIcon = [self cardTypeIconFromCardNumber:updatedText];
// Update the cell.
- [self reconfigureCellsForItems:@[ item ]
- inSectionWithIdentifier:SectionIdentifierFields];
+ [self reconfigureCellsForItems:@[ item ]];
}
return YES;

Powered by Google App Engine
This is Rietveld 408576698