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

Unified Diff: chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc

Issue 2187233002: Add ContentSuggestionsCategoryFactory; Store categories as ints (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 4ecef453fa5785f557ef8ce856699cfb649d8aba..6ba3d5ad0a0b419721efafb55eabcde88b3af2dd 100644
--- a/chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
+++ b/chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
@@ -133,7 +133,8 @@ KeyedService* NTPSnippetsServiceFactory::BuildServiceInstanceFor(
base::MakeUnique<ntp_snippets::NTPSnippetsDatabase>(database_dir,
task_runner),
base::MakeUnique<ntp_snippets::NTPSnippetsStatusService>(
- signin_manager, sync_service, profile->GetPrefs()));
+ signin_manager, sync_service, profile->GetPrefs()),
+ content_suggestions_service->category_factory());
Marc Treib 2016/07/28 11:41:45 misaligned
Philipp Keck 2016/07/28 13:50:53 That's what the formatter does and I believe it's
Marc Treib 2016/07/28 14:31:16 Ah true, I missed a paren. This ctor has WAY too m
if (content_suggestions_service->state() ==
ContentSuggestionsService::State::ENABLED) {

Powered by Google App Engine
This is Rietveld 408576698