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

Unified Diff: ios/chrome/browser/ui/autofill/card_unmask_prompt_view_bridge.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/autofill/card_unmask_prompt_view_bridge.mm
diff --git a/ios/chrome/browser/ui/autofill/card_unmask_prompt_view_bridge.mm b/ios/chrome/browser/ui/autofill/card_unmask_prompt_view_bridge.mm
index ef0af3325d802f58222a9d821dbada1ace96d995..40990f88d388cc4d6e9d9cad18ce1a66be1c9fc5 100644
--- a/ios/chrome/browser/ui/autofill/card_unmask_prompt_view_bridge.mm
+++ b/ios/chrome/browser/ui/autofill/card_unmask_prompt_view_bridge.mm
@@ -202,8 +202,7 @@ void CardUnmaskPromptViewBridge::DeleteSelf() {
- (void)viewWillLayoutSubviews {
[super viewWillLayoutSubviews];
NSIndexPath* CVCIndexPath =
- [self.collectionViewModel indexPathForItem:_CVCItem
- inSectionWithIdentifier:SectionIdentifierMain];
+ [self.collectionViewModel indexPathForItem:_CVCItem];
CVCCell* CVC = base::mac::ObjCCastStrict<CVCCell>(
[self.collectionView cellForItemAtIndexPath:CVCIndexPath]);
[self focusInputIfNeeded:CVC];
@@ -309,8 +308,7 @@ void CardUnmaskPromptViewBridge::DeleteSelf() {
} else {
_statusItem.text = text;
_statusItem.state = state;
- [self reconfigureCellsForItems:@[ _statusItem ]
- inSectionWithIdentifier:SectionIdentifierMain];
+ [self reconfigureCellsForItems:@[ _statusItem ]];
[self.collectionViewLayout invalidateLayout];
}
}
@@ -405,8 +403,7 @@ void CardUnmaskPromptViewBridge::DeleteSelf() {
IDS_AUTOFILL_CARD_UNMASK_INVALID_EXPIRATION_DATE);
}
- [self reconfigureCellsForItems:@[ item ]
- inSectionWithIdentifier:SectionIdentifierMain];
+ [self reconfigureCellsForItems:@[ item ]];
[self.collectionViewLayout invalidateLayout];
}
@@ -489,8 +486,7 @@ void CardUnmaskPromptViewBridge::DeleteSelf() {
_CVCItem.showDateInputError = NO;
_CVCItem.showCVCInputError = NO;
- [self reconfigureCellsForItems:@[ _CVCItem ]
- inSectionWithIdentifier:SectionIdentifierMain];
+ [self reconfigureCellsForItems:@[ _CVCItem ]];
[self.collectionViewLayout invalidateLayout];
[self inputsDidChange:_CVCItem];

Powered by Google App Engine
This is Rietveld 408576698