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 d6ab94c7f476981938ea99aa637bbf7dcdba7623..56c73876cc97110d609330b4332f69a5ab5ff9a5 100644 |
--- a/components/ntp_snippets/ntp_snippets_service.h |
+++ b/components/ntp_snippets/ntp_snippets_service.h |
@@ -80,6 +80,10 @@ class NTPSnippetsService : public KeyedService { |
// a snippet was discarded. |
bool DiscardSnippet(const GURL& url); |
+ // (Re)schedules the periodic fetching of snippets. This is necessary because |
+ // the schedule depends on the time of day |
+ void RescheduleFetching(); |
+ |
// Observer accessors. |
void AddObserver(NTPSnippetsServiceObserver* observer); |
void RemoveObserver(NTPSnippetsServiceObserver* observer); |
@@ -132,6 +136,8 @@ class NTPSnippetsService : public KeyedService { |
void RemoveExpiredSnippets(); |
+ bool enabled_; |
+ |
PrefService* pref_service_; |
suggestions::SuggestionsService* suggestions_service_; |