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

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: Document remote categories order 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..2d41c94e8734b8310ae6aaac20c996991f5c9978 100644
--- a/chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
+++ b/chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
@@ -121,6 +121,7 @@ KeyedService* NTPSnippetsServiceFactory::BuildServiceInstanceFor(
ntp_snippets::NTPSnippetsService* ntp_snippets_service =
new ntp_snippets::NTPSnippetsService(
enabled, profile->GetPrefs(), suggestions_service,
+ content_suggestions_service->category_factory(),
g_browser_process->GetApplicationLocale(), scheduler,
base::MakeUnique<ntp_snippets::NTPSnippetsFetcher>(
signin_manager, token_service, request_context,

Powered by Google App Engine
This is Rietveld 408576698