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

Unified Diff: components/ntp_snippets/ntp_snippets_service.cc

Issue 2277223002: [NTP Snippets] Safe(r) defaults for background fetching intervals (Closed)
Patch Set: . Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippets_service.cc
diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc
index 8ad028bfff07ccd17b6491ef1720c9b36327b1e9..1edb4c8c6e46cd640bebefb9dc73563ea04587f9 100644
--- a/components/ntp_snippets/ntp_snippets_service.cc
+++ b/components/ntp_snippets/ntp_snippets_service.cc
@@ -50,9 +50,9 @@ namespace {
// histograms with COUNTS() if this number increases beyond 50.
const int kMaxSnippetCount = 10;
-// Default values for snippets fetching intervals.
-const int kDefaultFetchingIntervalWifiChargingSeconds = 30 * 60;
-const int kDefaultFetchingIntervalWifiSeconds = 2 * 60 * 60;
+// Default values for snippets fetching intervals - once per day only.
+const int kDefaultFetchingIntervalWifiChargingSeconds = 0;
tschumann 2016/08/25 20:28:52 it would be really good to document this behavior
Marc Treib 2016/08/26 08:24:49 A value of "0" disables the fetching, correct. Tha
tschumann 2016/08/29 12:38:41 yes, cause when choosing these values you rely on
+const int kDefaultFetchingIntervalWifiSeconds = 0;
const int kDefaultFetchingIntervalFallbackSeconds = 24 * 60 * 60;
// Variation parameters than can override the default fetching intervals.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698