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 { |