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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 2363753002: [NTP Snippets] Don't reschedule background fetching on every startup (Closed)
Patch Set: Created 4 years, 3 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 3f4e5ff81eec4311db933a2c11b2f5f6ac5dff24..13a694c34b66d799656e045ed0d9cf9ef73ac3be 100644
--- a/components/ntp_snippets/ntp_snippets_service.h
+++ b/components/ntp_snippets/ntp_snippets_service.h
@@ -108,8 +108,10 @@ class NTPSnippetsService : public ContentSuggestionsProvider,
return snippets_fetcher_.get();
}
- // (Re)schedules the periodic fetching of snippets.
- void RescheduleFetching();
+ // (Re)schedules the periodic fetching of snippets. If |force| is true, the
+ // tasks will be re-scheduled even if they already exist and have the correct
+ // periods.
+ void RescheduleFetching(bool force);
// ContentSuggestionsProvider implementation
CategoryStatus GetCategoryStatus(Category category) override;

Powered by Google App Engine
This is Rietveld 408576698