| Index: components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
|
| diff --git a/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc b/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
|
| index 85457d2d8d568928e35f897e412e3415de495180..7453fd55878d0e5a0e2058455566592abd555911 100644
|
| --- a/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
|
| +++ b/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
|
| @@ -66,8 +66,9 @@ CategoryStatus BookmarkSuggestionsProvider::GetCategoryStatus(
|
|
|
| void BookmarkSuggestionsProvider::DismissSuggestion(
|
| const std::string& suggestion_id) {
|
| - // TODO(jkrcal): Implement blacklisting bookmarks until they are next visited.
|
| - // Then also implement ClearDismissedSuggestionsForDebugging.
|
| + DCHECK(bookmark_model_->loaded());
|
| + GURL url(GetWithinCategoryIDFromUniqueID(suggestion_id));
|
| + MarkBookmarksDismissed(bookmark_model_, url);
|
| }
|
|
|
| void BookmarkSuggestionsProvider::FetchSuggestionImage(
|
| @@ -82,7 +83,9 @@ void BookmarkSuggestionsProvider::ClearCachedSuggestionsForDebugging() {
|
| }
|
|
|
| void BookmarkSuggestionsProvider::ClearDismissedSuggestionsForDebugging() {
|
| - // TODO(jkrcal): Implement when discarded suggestions are supported.
|
| + if (!bookmark_model_->loaded())
|
| + return;
|
| + MarkAllBookmarksUndismissed(bookmark_model_);
|
| }
|
|
|
| void BookmarkSuggestionsProvider::BookmarkModelLoaded(
|
|
|