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

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

Issue 2606753002: Post notification after fetching articles (Closed)
Patch Set: Add TODO. Created 3 years, 11 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 c05003344d63274343f5b7c5249adf0e37c064ed..b6a602c633eca7a8decbabf26d0a209f390fa1b1 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -110,6 +110,7 @@
#endif
#if defined(OS_ANDROID)
+#include "chrome/browser/ntp_snippets/content_suggestions_notifier_service_factory.h"
#include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h"
#endif
@@ -1201,8 +1202,11 @@ void ProfileManager::DoFinalInitForServices(Profile* profile,
->InitializeMigration(ProfileSyncServiceFactory::GetForProfile(profile));
#if defined(OS_ANDROID)
+ // TODO(b/678590): create services during profile startup.
// Service is responsible for fetching content snippets for the NTP.
ContentSuggestionsServiceFactory::GetForProfile(profile);
+ // Generates notifications from the above, if experiment is enabled.
+ ContentSuggestionsNotifierServiceFactory::GetForProfile(profile);
#endif
}
« chrome/browser/ntp_snippets/ntp_snippets_features.cc ('K') | « chrome/browser/prefs/browser_prefs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698