Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc

Issue 2061803002: 📰 The Status card reports disabled sync states (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplifyBridge
Patch Set: Refactor out status detection, update tests. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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))));
}
« components/ntp_snippets_strings.grdp ('K') | « components/ntp_snippets_strings.grdp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698