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

Unified Diff: ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm

Issue 2891363002: Add long press actions for Most Visited tiles (Closed)
Patch Set: Address comments Created 3 years, 7 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/content_suggestions/content_suggestions_mediator.mm
diff --git a/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm b/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
index 1fba1201dddfa66a7e021ea3db4d7e92670687b3..d44703e9fd0ec11ed911ceac2ba0e706f766eba5 100644
--- a/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
+++ b/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
@@ -125,6 +125,14 @@ initWithContentService:(ntp_snippets::ContentSuggestionsService*)contentService
self.contentService->DismissSuggestion(suggestion_id);
}
+- (void)blacklistMostVisitedURL:(GURL)URL {
+ _mostVisitedSites->AddOrRemoveBlacklistedUrl(URL, true);
+}
+
+- (void)whitelistMostVisitedURL:(GURL)URL {
+ _mostVisitedSites->AddOrRemoveBlacklistedUrl(URL, false);
+}
+
#pragma mark - ContentSuggestionsDataSource
- (NSArray<ContentSuggestionsSectionInformation*>*)sectionsInfo {

Powered by Google App Engine
This is Rietveld 408576698