| Index: chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
|
| diff --git a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
|
| index bc220c2688477e507d7917b79c23c93f35abf711..199d14995898ed80b7e29f14cef17d853f3a7fbb 100644
|
| --- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
|
| +++ b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
|
| @@ -211,8 +211,9 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
|
| : State::DISABLED;
|
| HistoryService* history_service = HistoryServiceFactory::GetForProfile(
|
| profile, ServiceAccessType::EXPLICIT_ACCESS);
|
| + PrefService* pref_service = profile->GetPrefs();
|
| ContentSuggestionsService* service =
|
| - new ContentSuggestionsService(state, history_service);
|
| + new ContentSuggestionsService(state, history_service, pref_service);
|
| if (state == State::DISABLED) {
|
| // Since we won't initialise the services, they won't get a chance to
|
| // unschedule their tasks. We do it explicitly here instead.
|
| @@ -221,7 +222,6 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
|
| }
|
|
|
| CategoryFactory* category_factory = service->category_factory();
|
| - PrefService* pref_service = profile->GetPrefs();
|
| #if defined(OS_ANDROID)
|
| OfflinePageModel* offline_page_model =
|
| OfflinePageModelFactory::GetForBrowserContext(profile);
|
|
|