| 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 1c76a5862a7b95d1aab0cfb49257e2b5d742cd94..dc9bf783e5552431a76819fa0bab8cc228ea1b0b 100644
|
| --- a/components/ntp_snippets/remote/remote_suggestions_provider.h
|
| +++ b/components/ntp_snippets/remote/remote_suggestions_provider.h
|
| @@ -19,7 +19,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"
|
| @@ -44,6 +43,7 @@ class ImageFetcher;
|
| namespace ntp_snippets {
|
|
|
| class RemoteSuggestionsDatabase;
|
| +class SectionRanker;
|
| class UserClassifier;
|
|
|
| // Retrieves fresh content data (articles) from the server, stores them and
|
| @@ -67,9 +67,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,
|
| + SectionRanker* section_ranker,
|
| const UserClassifier* user_classifier,
|
| NTPSnippetsScheduler* scheduler,
|
| std::unique_ptr<NTPSnippetsFetcher> snippets_fetcher,
|
| @@ -384,6 +384,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.
|
| + SectionRanker* section_ranker_;
|
| +
|
| // Classifier that tells us how active the user is. Not owned.
|
| const UserClassifier* user_classifier_;
|
|
|
|
|