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

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm

Issue 2745593002: Remove categories notified as invalid (Closed)
Patch Set: Add comment Created 3 years, 9 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/content_suggestions/content_suggestions_collection_updater.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
index 273dc3f6f2e87a36f134715b6a73ff27b1051a6f..13cb713b6a59d0abddc258ae8b9ff29313b82807 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
@@ -188,6 +188,14 @@ SectionIdentifier SectionIdentifierForInfo(
}
}
+- (void)clearSection:(ContentSuggestionsSectionInformation*)sectionInfo {
+ SectionIdentifier sectionIdentifier = SectionIdentifierForInfo(sectionInfo);
+ NSInteger section = [self.collectionViewController.collectionViewModel
+ sectionIdentifierForSection:sectionIdentifier];
+
+ [self.collectionViewController dismissSection:section];
+}
+
#pragma mark - Public methods
- (BOOL)shouldUseCustomStyleForSection:(NSInteger)section {

Powered by Google App Engine
This is Rietveld 408576698