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

Unified Diff: components/ntp_snippets/ntp_snippets_service.cc

Issue 2260703004: Remove ContentSuggestionsProvider::GetProvidedCategories(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: components/ntp_snippets/ntp_snippets_service.cc
diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc
index af70250a0c84904732e9ed7e23ba02f38c20bb37..327bcf5c0df1546a4365402068251f5fc0fd1b12 100644
--- a/components/ntp_snippets/ntp_snippets_service.cc
+++ b/components/ntp_snippets/ntp_snippets_service.cc
@@ -216,6 +216,7 @@ NTPSnippetsService::NTPSnippetsService(
thumbnail_requests_throttler_(
pref_service,
RequestThrottler::RequestType::CONTENT_SUGGESTION_THUMBNAIL) {
+ observer->OnCategoryStatusChanged(this, provided_category_, category_status_);
if (database_->IsErrorState()) {
EnterState(State::ERROR_OCCURRED, CategoryStatus::LOADING_ERROR);
return;
@@ -275,10 +276,6 @@ void NTPSnippetsService::RescheduleFetching() {
}
}
-std::vector<Category> NTPSnippetsService::GetProvidedCategories() {
- return std::vector<Category>({provided_category_});
-}
-
CategoryStatus NTPSnippetsService::GetCategoryStatus(Category category) {
DCHECK(category.IsKnownCategory(KnownCategories::ARTICLES));
return category_status_;

Powered by Google App Engine
This is Rietveld 408576698