| Index: components/ntp_snippets/remote/remote_suggestions_provider.h
|
| diff --git a/components/ntp_snippets/remote/remote_suggestions_provider.h b/components/ntp_snippets/remote/remote_suggestions_provider.h
|
| index a4c2b7c179c08e9e31e2c99d458895caf35d1492..4552bab7037de0e4268132340eca7e1ff14325f6 100644
|
| --- a/components/ntp_snippets/remote/remote_suggestions_provider.h
|
| +++ b/components/ntp_snippets/remote/remote_suggestions_provider.h
|
| @@ -20,7 +20,6 @@
|
| #include "base/time/time.h"
|
| #include "components/image_fetcher/image_fetcher_delegate.h"
|
| #include "components/ntp_snippets/category.h"
|
| -#include "components/ntp_snippets/category_factory.h"
|
| #include "components/ntp_snippets/category_status.h"
|
| #include "components/ntp_snippets/content_suggestion.h"
|
| #include "components/ntp_snippets/content_suggestions_provider.h"
|
| @@ -45,6 +44,7 @@ class ImageFetcher;
|
| namespace ntp_snippets {
|
|
|
| class RemoteSuggestionsDatabase;
|
| +class CategoryRanker;
|
| class UserClassifier;
|
|
|
| // Retrieves fresh content data (articles) from the server, stores them and
|
| @@ -68,9 +68,9 @@ class RemoteSuggestionsProvider final
|
| // (British English person in the US) are not language codes.
|
| RemoteSuggestionsProvider(
|
| Observer* observer,
|
| - CategoryFactory* category_factory,
|
| PrefService* pref_service,
|
| const std::string& application_language_code,
|
| + CategoryRanker* category_ranker,
|
| const UserClassifier* user_classifier,
|
| NTPSnippetsScheduler* scheduler,
|
| std::unique_ptr<NTPSnippetsFetcher> snippets_fetcher,
|
| @@ -385,6 +385,9 @@ class RemoteSuggestionsProvider final
|
| // The ISO 639-1 code of the language used by the application.
|
| const std::string application_language_code_;
|
|
|
| + // Ranker that orders the categories. Not owned.
|
| + CategoryRanker* category_ranker_;
|
| +
|
| // Classifier that tells us how active the user is. Not owned.
|
| const UserClassifier* user_classifier_;
|
|
|
|
|