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

Unified Diff: chrome/browser/predictors/resource_prefetch_common.cc

Issue 2800783002: predictors: Several improvements for redirects database. (Closed)
Patch Set: Fix unittests. Created 3 years, 8 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: chrome/browser/predictors/resource_prefetch_common.cc
diff --git a/chrome/browser/predictors/resource_prefetch_common.cc b/chrome/browser/predictors/resource_prefetch_common.cc
index b48bf805120a905a1cc2631773db810fb8f9351f..64554b62a8a1a589d8022e7199a05b73706ce0fa 100644
--- a/chrome/browser/predictors/resource_prefetch_common.cc
+++ b/chrome/browser/predictors/resource_prefetch_common.cc
@@ -133,12 +133,12 @@ ResourcePrefetchPredictorConfig::ResourcePrefetchPredictorConfig()
min_url_visit_count(2),
max_resources_per_entry(50),
max_consecutive_misses(3),
+ max_redirect_consecutive_misses(5),
min_resource_confidence_to_trigger_prefetch(0.7f),
min_resource_hits_to_trigger_prefetch(2),
max_prefetches_inflight_per_navigation(5),
max_prefetches_inflight_per_host_per_navigation(3),
- is_url_learning_enabled(false) {
-}
+ is_url_learning_enabled(false) {}
ResourcePrefetchPredictorConfig::ResourcePrefetchPredictorConfig(
const ResourcePrefetchPredictorConfig& other) = default;

Powered by Google App Engine
This is Rietveld 408576698