Chromium Code Reviews| 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 1a922d2f4d5cffa60c42efdb3f2fcbe02320bdbf..555c871d044e70ad9c1c117bea99e9ca41e26d46 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> |
|
Marc Treib
2016/09/07 13:23:48
Is this required?
jkrcal
2016/09/07 14:19:07
Not for the changes I did. Still, std::set is used
|
| #include <string> |
| #include <vector> |
| @@ -21,6 +22,7 @@ |
| #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" |
| namespace gfx { |
| class Image; |
| @@ -81,7 +83,8 @@ class ContentSuggestionsService : public KeyedService, |
| }; |
| ContentSuggestionsService(State state, |
| - history::HistoryService* history_service); |
| + history::HistoryService* history_service, |
| + PrefService* pref_service); |
|
Marc Treib
2016/09/07 13:23:48
Forward-declare PrefService
jkrcal
2016/09/07 14:19:07
Done.
|
| ~ContentSuggestionsService() override; |
| // Inherited from KeyedService. |
| @@ -172,6 +175,8 @@ class ContentSuggestionsService : public KeyedService, |
| ntp_snippets_service_ = ntp_snippets_service; |
| } |
| + UserClassifier* user_classifier() { return &user_classifier_;} |
| + |
| private: |
| friend class ContentSuggestionsServiceTest; |
| @@ -259,6 +264,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); |
| }; |