| 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 d81f0295acba7e789dcbcabf1ad95422aa2871c2..f30de06f5d4d7676e404a0ef7b08781039d6db7e 100644
|
| --- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
|
| +++ b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
|
| @@ -240,11 +240,13 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
|
| base::FeatureList::IsEnabled(ntp_snippets::kContentSuggestionsFeature)
|
| ? State::ENABLED
|
| : State::DISABLED;
|
| + SigninManagerBase* signin_manager =
|
| + SigninManagerFactory::GetForProfile(profile);
|
| HistoryService* history_service = HistoryServiceFactory::GetForProfile(
|
| profile, ServiceAccessType::EXPLICIT_ACCESS);
|
| PrefService* pref_service = profile->GetPrefs();
|
| - ContentSuggestionsService* service =
|
| - new ContentSuggestionsService(state, history_service, pref_service);
|
| + ContentSuggestionsService* service = new ContentSuggestionsService(
|
| + state, signin_manager, 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.
|
| @@ -261,8 +263,6 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
|
| #endif // OS_ANDROID
|
| BookmarkModel* bookmark_model =
|
| BookmarkModelFactory::GetForBrowserContext(profile);
|
| - SigninManagerBase* signin_manager =
|
| - SigninManagerFactory::GetForProfile(profile);
|
| OAuth2TokenService* token_service =
|
| ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
|
| SyncService* sync_service =
|
|
|