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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 2363753002: [NTP Snippets] Don't reschedule background fetching on every startup (Closed)
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.cc ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 86e375962bf7ccd5bd9c945308a83402019edcc7..bbe2c3ec6b0de25184a2af9ba52811b4943511ae 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;
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.cc ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698