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

Unified Diff: ios/chrome/browser/ui/settings/password_details_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/password_details_collection_view_controller.mm
diff --git a/ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm b/ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm
index 0ab4c0ea05a0d09b3fa6fbe2614b33e209618a65..1abb07fb4497fabceb39c308307a6273a21b81c9 100644
--- a/ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm
+++ b/ios/chrome/browser/ui/settings/password_details_collection_view_controller.mm
@@ -210,8 +210,7 @@ reauthenticationModule:(id<ReauthenticationProtocol>)reauthenticationModule
[model itemAtIndexPath:path]);
item.text = [self showHideButtonText];
item.textColor = [[MDCPalette cr_bluePalette] tint500];
- [self reconfigureCellsForItems:@[ item ]
- inSectionWithIdentifier:SectionIdentifierPassword];
+ [self reconfigureCellsForItems:@[ item ]];
[self.collectionView.collectionViewLayout invalidateLayout];
}
@@ -228,8 +227,7 @@ reauthenticationModule:(id<ReauthenticationProtocol>)reauthenticationModule
return;
PasswordDetailsItem* passwordItem = strongSelf->_passwordItem;
passwordItem.showingText = YES;
- [strongSelf reconfigureCellsForItems:@[ passwordItem ]
- inSectionWithIdentifier:SectionIdentifierPassword];
+ [strongSelf reconfigureCellsForItems:@[ passwordItem ]];
[[strongSelf collectionView].collectionViewLayout invalidateLayout];
strongSelf->_plainTextPasswordShown = YES;
[strongSelf toggleShowHideButton];
@@ -247,8 +245,7 @@ reauthenticationModule:(id<ReauthenticationProtocol>)reauthenticationModule
return;
}
_passwordItem.showingText = NO;
- [self reconfigureCellsForItems:@[ _passwordItem ]
- inSectionWithIdentifier:SectionIdentifierPassword];
+ [self reconfigureCellsForItems:@[ _passwordItem ]];
[self.collectionView.collectionViewLayout invalidateLayout];
_plainTextPasswordShown = NO;
[self toggleShowHideButton];

Powered by Google App Engine
This is Rietveld 408576698