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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 2158883002: Change NTPSnippetsBridge to read from ContentSuggestionsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@offlinepagesprovider
Patch Set: Marc's comments; Rebase 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: components/ntp_snippets/ntp_snippets_service.h
diff --git a/components/ntp_snippets/ntp_snippets_service.h b/components/ntp_snippets/ntp_snippets_service.h
index 9b2562d9a55db40f8d66053817da38e47ef6306e..b494bc783e9a35e01ab0361b524c832e26906cc7 100644
--- a/components/ntp_snippets/ntp_snippets_service.h
+++ b/components/ntp_snippets/ntp_snippets_service.h
@@ -61,8 +61,9 @@ namespace ntp_snippets {
class NTPSnippetsDatabase;
class NTPSnippetsServiceObserver;
-// Stores and vends fresh content data for the NTP.
-// TODO(pke): Rename this service to ArticleSuggestionsService and move to
+// Retrieves fresh content data (articles) from the server, stores them and
+// provides them as content suggestions.
+// TODO(pke): Rename this service to ArticleSuggestionsProvider and move to
// a subdirectory.
class NTPSnippetsService : public KeyedService,
public image_fetcher::ImageFetcherDelegate,
@@ -153,6 +154,7 @@ class NTPSnippetsService : public KeyedService,
static int GetMaxSnippetCountForTesting();
private:
+ friend class NTPSnippetsServiceTest;
FRIEND_TEST_ALL_PREFIXES(NTPSnippetsServiceTest, HistorySyncStateChanges);
// TODO(pke): As soon as the DisabledReason is replaced with the new status,
« no previous file with comments | « components/ntp_snippets/content_suggestions_service.cc ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698