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

Unified Diff: ios/chrome/browser/ui/settings/clear_browsing_data_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/clear_browsing_data_collection_view_controller.mm
diff --git a/ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm b/ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm
index 1a128bd23d510829a4a69452d2909b5e69cb4c77..8de8c2dc6c0468aca88d6b5181e2497dbf71dcb7 100644
--- a/ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm
+++ b/ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm
@@ -410,8 +410,7 @@ const int kMaxTimesHistoryNoticeShown = 1;
return;
}
clearDataItem.detailText = detailText;
- [self reconfigureCellsForItems:@[ clearDataItem ]
- inSectionWithIdentifier:SectionIdentifierDataTypes];
+ [self reconfigureCellsForItems:@[ clearDataItem ]];
[self.collectionView.collectionViewLayout invalidateLayout];
}
@@ -537,8 +536,7 @@ const int kMaxTimesHistoryNoticeShown = 1;
[self updateCounter:itemType detailText:nil];
}
}
- [self reconfigureCellsForItems:@[ clearDataItem ]
- inSectionWithIdentifier:SectionIdentifierDataTypes];
+ [self reconfigureCellsForItems:@[ clearDataItem ]];
break;
}
case ItemTypeClearBrowsingDataButton:
@@ -585,8 +583,7 @@ const int kMaxTimesHistoryNoticeShown = 1;
// Add the new footer.
[model addItem:footerItem
toSectionWithIdentifier:SectionIdentifierGoogleAccount];
- [self reconfigureCellsForItems:@[ footerItem ]
- inSectionWithIdentifier:SectionIdentifierGoogleAccount];
+ [self reconfigureCellsForItems:@[ footerItem ]];
// Relayout the cells to adapt to the new contents height.
[self.collectionView.collectionViewLayout invalidateLayout];

Powered by Google App Engine
This is Rietveld 408576698