| Index: components/ntp_snippets/content_suggestions_service.h
|
| diff --git a/components/ntp_snippets/content_suggestions_service.h b/components/ntp_snippets/content_suggestions_service.h
|
| index 987a9fb4accd0cf0d623b1b970cb0195a24be638..928a3a04151d9eb0adc2e5ff7c0a4410834a5be2 100644
|
| --- a/components/ntp_snippets/content_suggestions_service.h
|
| +++ b/components/ntp_snippets/content_suggestions_service.h
|
| @@ -125,6 +125,10 @@ class ContentSuggestionsService : public KeyedService,
|
| // This will not trigger an update through the observers.
|
| void DismissCategory(Category category);
|
|
|
| + // Restores all dismissed categories.
|
| + // This will not trigger an update through the observers.
|
| + void RestoreDismissedCategories();
|
| +
|
| // Observer accessors.
|
| void AddObserver(Observer* observer);
|
| void RemoveObserver(Observer* observer);
|
| @@ -237,6 +241,11 @@ class ContentSuggestionsService : public KeyedService,
|
| std::map<Category, ContentSuggestionsProvider*, Category::CompareByID>
|
| providers_by_category_;
|
|
|
| + // All dismissed categories and their providers. These may be restored by
|
| + // RestoreDismissedCategories().
|
| + std::map<Category, ContentSuggestionsProvider*, Category::CompareByID>
|
| + dismissed_providers_by_category_;
|
| +
|
| // All current suggestion categories, in an order determined by the
|
| // |category_factory_|. This vector contains exactly the same categories as
|
| // |providers_by_category_|.
|
|
|