| Index: ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc
|
| diff --git a/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc b/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc
|
| index c4cb425177768d3dab3b222c9f3ad5ad3a289e1c..17832f24177c1e79a7ad7c85f2d5f58446d8a131 100644
|
| --- a/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc
|
| +++ b/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc
|
| @@ -18,6 +18,7 @@
|
| #include "components/ntp_snippets/ntp_snippets_database.h"
|
| #include "components/ntp_snippets/ntp_snippets_fetcher.h"
|
| #include "components/ntp_snippets/ntp_snippets_service.h"
|
| +#include "components/ntp_snippets/ntp_snippets_status_service.h"
|
| #include "components/signin/core/browser/signin_manager.h"
|
| #include "components/version_info/version_info.h"
|
| #include "ios/chrome/browser/application_context.h"
|
| @@ -113,7 +114,7 @@ IOSChromeNTPSnippetsServiceFactory::BuildServiceInstanceFor(
|
| // TODO(treib,markusheintz): Inject an image_fetcher::ImageDecoder once that's
|
| // implemented on iOS. crbug.com/609127
|
| return base::WrapUnique(new ntp_snippets::NTPSnippetsService(
|
| - false /* enabled */, chrome_browser_state->GetPrefs(), sync_service,
|
| + false /* enabled */, chrome_browser_state->GetPrefs(),
|
| suggestions_service, GetApplicationContext()->GetApplicationLocale(),
|
| scheduler, base::WrapUnique(new ntp_snippets::NTPSnippetsFetcher(
|
| signin_manager, token_service, request_context,
|
| @@ -123,5 +124,7 @@ IOSChromeNTPSnippetsServiceFactory::BuildServiceInstanceFor(
|
| web::WebThread::GetBlockingPool())),
|
| nullptr, /* image_decoder */
|
| base::WrapUnique(
|
| - new ntp_snippets::NTPSnippetsDatabase(database_dir, task_runner))));
|
| + new ntp_snippets::NTPSnippetsDatabase(database_dir, task_runner)),
|
| + base::WrapUnique(new ntp_snippets::NTPSnippetsStatusService(
|
| + signin_manager, sync_service))));
|
| }
|
|
|