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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 2102023002: Add ContentSuggestionsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove NTPSnippet::ToContentSuggestion and make ContentSuggestionsProvider::MakeUniqueID protected 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/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 3b49cbf2ebbd50e26f4e653df633ee1cfa5d20ea..1670e31752d71b2ffab83b273494b637bfd7137d 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -107,7 +107,9 @@
#endif
#if defined(OS_ANDROID)
+#include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h"
#include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h"
+#include "components/ntp_snippets/content_suggestions_service.h"
#include "components/ntp_snippets/ntp_snippets_service.h"
#endif
@@ -1227,6 +1229,7 @@ void ProfileManager::DoFinalInitForServices(Profile* profile,
#if defined(OS_ANDROID)
// Service is responsible for fetching content snippets for the NTP.
+ ContentSuggestionsServiceFactory::GetForProfile(profile);
NTPSnippetsServiceFactory::GetForProfile(profile);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698