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

Unified Diff: chrome/browser/ntp_snippets/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: yolo: another big bag of changes 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: chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
diff --git a/chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc b/chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
index 078359549fb03c4e6e2625b744a2c006d946a021..33bf65a31084ab033f36b7833227164c3bb86e49 100644
--- a/chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
+++ b/chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
@@ -27,6 +27,7 @@
#include "components/ntp_snippets/ntp_snippets_fetcher.h"
#include "components/ntp_snippets/ntp_snippets_scheduler.h"
#include "components/ntp_snippets/ntp_snippets_service.h"
+#include "components/ntp_snippets/ntp_snippets_status_service.h"
#include "components/prefs/pref_service.h"
#include "components/safe_json/safe_json_parser.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
@@ -111,14 +112,16 @@ KeyedService* NTPSnippetsServiceFactory::BuildServiceInstanceFor(
base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN);
return new ntp_snippets::NTPSnippetsService(
- enabled, profile->GetPrefs(), sync_service, suggestions_service,
+ enabled, profile->GetPrefs(), suggestions_service,
g_browser_process->GetApplicationLocale(), scheduler,
- base::WrapUnique(new ntp_snippets::NTPSnippetsFetcher(
+ base::MakeUnique<ntp_snippets::NTPSnippetsFetcher>(
signin_manager, token_service, request_context,
base::Bind(&safe_json::SafeJsonParser::Parse),
- chrome::GetChannel() == version_info::Channel::STABLE)),
- base::WrapUnique(new ImageFetcherImpl(request_context.get())),
- base::WrapUnique(new ImageDecoderImpl()),
- base::WrapUnique(
- new ntp_snippets::NTPSnippetsDatabase(database_dir, task_runner)));
+ chrome::GetChannel() == version_info::Channel::STABLE),
+ base::MakeUnique<ImageFetcherImpl>(request_context.get()),
+ base::MakeUnique<ImageDecoderImpl>(),
+ base::MakeUnique<ntp_snippets::NTPSnippetsDatabase>(database_dir,
+ task_runner),
+ base::MakeUnique<ntp_snippets::NTPSnippetsStatusService>(signin_manager,
+ sync_service));
}
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.cc ('k') | chrome/browser/ui/webui/snippets_internals_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698