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 39e8dc8c8c052f1bf189278bcf188acf87fda569..4269f9413cfb2624f079f8407508ef81b3108df7 100644 |
--- a/components/ntp_snippets/ntp_snippets_service.h |
+++ b/components/ntp_snippets/ntp_snippets_service.h |
@@ -79,6 +79,10 @@ class NTPSnippetsService : public KeyedService { |
// suggestions from the suggestion service) and adds them to the current ones. |
void FetchSnippetsFromHosts(const std::set<std::string>& hosts); |
+ // (Re)schedules the periodic fetching of snippets. This is necessary because |
+ // the schedule depends on the time of day |
+ void RescheduleFetching(); |
+ |
// Deletes all currently stored snippets. |
void ClearSnippets(); |
@@ -148,6 +152,8 @@ class NTPSnippetsService : public KeyedService { |
void RemoveExpiredSnippets(); |
+ bool enabled_; |
+ |
PrefService* pref_service_; |
suggestions::SuggestionsService* suggestions_service_; |