| Index: components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
|
| diff --git a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
|
| index 2d262ec711ebf1b1a5eb978889aac741b2856c93..12914ea57d9b5ffb4a5ab0cf922c72332550e861 100644
|
| --- a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
|
| +++ b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
|
| @@ -49,6 +49,7 @@ std::vector<Category> OfflinePageSuggestionsProvider::GetProvidedCategories() {
|
|
|
| CategoryStatus OfflinePageSuggestionsProvider::GetCategoryStatus(
|
| Category category) {
|
| + DCHECK_EQ(category, provided_category_);
|
| return category_status_;
|
| }
|
|
|
| @@ -67,11 +68,23 @@ void OfflinePageSuggestionsProvider::FetchSuggestionImage(
|
| FROM_HERE, base::Bind(callback, suggestion_id, gfx::Image()));
|
| }
|
|
|
| -void OfflinePageSuggestionsProvider::ClearCachedSuggestionsForDebugging() {
|
| +void OfflinePageSuggestionsProvider::ClearCachedSuggestionsForDebugging(
|
| + Category category) {
|
| + DCHECK_EQ(category, provided_category_);
|
| // Ignored.
|
| }
|
|
|
| -void OfflinePageSuggestionsProvider::ClearDismissedSuggestionsForDebugging() {
|
| +std::vector<ContentSuggestion>
|
| +OfflinePageSuggestionsProvider::GetDismissedSuggestionsForDebugging(
|
| + Category category) {
|
| + DCHECK_EQ(category, provided_category_);
|
| + // TODO(pke): Implement when dismissed suggestions are supported.
|
| + return std::vector<ContentSuggestion>();
|
| +}
|
| +
|
| +void OfflinePageSuggestionsProvider::ClearDismissedSuggestionsForDebugging(
|
| + Category category) {
|
| + DCHECK_EQ(category, provided_category_);
|
| // TODO(pke): Implement when dismissed suggestions are supported.
|
| }
|
|
|
|
|