| 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 c4fca54a7c4b4c22bbf4bc4b9cd33b98fde18344..641f83794e40215688b611a0ac8d6bdcd36e2e45 100644
|
| --- a/components/ntp_snippets/content_suggestions_service.h
|
| +++ b/components/ntp_snippets/content_suggestions_service.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <map>
|
| #include <memory>
|
| +#include <set>
|
| #include <string>
|
| #include <vector>
|
|
|
| @@ -21,6 +22,9 @@
|
| #include "components/ntp_snippets/category_factory.h"
|
| #include "components/ntp_snippets/category_status.h"
|
| #include "components/ntp_snippets/content_suggestions_provider.h"
|
| +#include "components/ntp_snippets/user_classifier.h"
|
| +
|
| +class PrefService;
|
|
|
| namespace gfx {
|
| class Image;
|
| @@ -82,7 +86,8 @@ class ContentSuggestionsService : public KeyedService,
|
| };
|
|
|
| ContentSuggestionsService(State state,
|
| - history::HistoryService* history_service);
|
| + history::HistoryService* history_service,
|
| + PrefService* pref_service);
|
| ~ContentSuggestionsService() override;
|
|
|
| // Inherited from KeyedService.
|
| @@ -173,6 +178,8 @@ class ContentSuggestionsService : public KeyedService,
|
| ntp_snippets_service_ = ntp_snippets_service;
|
| }
|
|
|
| + UserClassifier* user_classifier() { return &user_classifier_;}
|
| +
|
| private:
|
| friend class ContentSuggestionsServiceTest;
|
|
|
| @@ -260,6 +267,8 @@ class ContentSuggestionsService : public KeyedService,
|
| // loaded, it is also present in |providers_|, otherwise this is a nullptr.
|
| NTPSnippetsService* ntp_snippets_service_;
|
|
|
| + UserClassifier user_classifier_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ContentSuggestionsService);
|
| };
|
|
|
|
|