| 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 eaea934043a9fc0f63e7163abc1a6f33587c7d2f..7e43abd335f02d5e5bbf5d688fa5b23443eb671c 100644
|
| --- a/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
|
| +++ b/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
|
| @@ -193,6 +193,13 @@ void BookmarkSuggestionsProvider::ClearHistory(
|
| RemoveAllLastVisitDates(bookmark_model_);
|
| ClearDismissedSuggestionsForDebugging(provided_category_);
|
| FetchBookmarks();
|
| + // Temporarily enter an "explicitly disabled" state, so that any open UIs
|
| + // will clear the suggestions too.
|
| + if (category_status_ != CategoryStatus::CATEGORY_EXPLICITLY_DISABLED) {
|
| + CategoryStatus old_category_status = category_status_;
|
| + NotifyStatusChanged(CategoryStatus::CATEGORY_EXPLICITLY_DISABLED);
|
| + NotifyStatusChanged(old_category_status);
|
| + }
|
| }
|
|
|
| void BookmarkSuggestionsProvider::ClearCachedSuggestions(Category category) {
|
|
|