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

Unified Diff: components/history/core/browser/top_sites_impl.cc

Issue 1133093002: [iOS] Reduce UpdateDelay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change wording to indicate fix is iOS specific Created 5 years, 7 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 | components/history/core/browser/top_sites_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/top_sites_impl.cc
diff --git a/components/history/core/browser/top_sites_impl.cc b/components/history/core/browser/top_sites_impl.cc
index 4df526b6d3bb08c506f6221bba7c9c609cb06862..22d78104c421151c91e7b565eea596cd4bb2a2bd 100644
--- a/components/history/core/browser/top_sites_impl.cc
+++ b/components/history/core/browser/top_sites_impl.cc
@@ -75,7 +75,14 @@ const int kDaysOfHistory = 90;
const int64 kUpdateIntervalSecs = 15;
// Intervals between requests to HistoryService.
const int64 kMinUpdateIntervalMinutes = 1;
+#if !defined(OS_IOS)
const int64 kMaxUpdateIntervalMinutes = 60;
+#else
+// On iOS, having the max at 60 results in the topsites database being
+// not updated often enough since the app isn't usually running for long
+// stretches of time.
+const int64 kMaxUpdateIntervalMinutes = 5;
+#endif // !defined(OS_IOS)
// Use 100 quality (highest quality) because we're very sensitive to
// artifacts for these small sized, highly detailed images.
« no previous file with comments | « no previous file | components/history/core/browser/top_sites_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698