| Index: components/ntp_snippets/content_suggestions_service.cc
|
| diff --git a/components/ntp_snippets/content_suggestions_service.cc b/components/ntp_snippets/content_suggestions_service.cc
|
| index 1f318c75a6e212fbe9746860810be6fb46658ae9..1dc7df666e383ce285e509475058f6383910281f 100644
|
| --- a/components/ntp_snippets/content_suggestions_service.cc
|
| +++ b/components/ntp_snippets/content_suggestions_service.cc
|
| @@ -7,6 +7,7 @@
|
| #include <algorithm>
|
| #include <iterator>
|
| #include <set>
|
| +#include <utility>
|
|
|
| #include "base/bind.h"
|
| #include "base/location.h"
|
| @@ -18,8 +19,11 @@ namespace ntp_snippets {
|
|
|
| ContentSuggestionsService::ContentSuggestionsService(
|
| State state,
|
| - history::HistoryService* history_service)
|
| - : state_(state), history_service_observer_(this) {
|
| + history::HistoryService* history_service,
|
| + PrefService* pref_service)
|
| + : state_(state),
|
| + history_service_observer_(this),
|
| + user_classifier_(pref_service) {
|
| // Can be null in tests.
|
| if (history_service)
|
| history_service_observer_.Add(history_service);
|
|
|