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

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

Issue 2845103002: predictors: Remove ResourcePrefetchPredictorConfig from ResourcePrefetcher. (Closed)
Patch Set: . 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_prefetcher_manager.cc
diff --git a/chrome/browser/predictors/resource_prefetcher_manager.cc b/chrome/browser/predictors/resource_prefetcher_manager.cc
index 1fbc42e14edb3cd12ab812788906095d1360fbbb..f643da109cb5e86bcc0cc8992ea0ff98ae11b2f0 100644
--- a/chrome/browser/predictors/resource_prefetcher_manager.cc
+++ b/chrome/browser/predictors/resource_prefetcher_manager.cc
@@ -60,8 +60,10 @@ void ResourcePrefetcherManager::MaybeAddPrefetch(
if (base::ContainsKey(prefetcher_map_, key))
return;
- auto prefetcher =
- base::MakeUnique<ResourcePrefetcher>(this, config_, main_frame_url, urls);
alexilin 2017/04/27 16:39:15 Does it make a sense to remove ResourcePrefetchPre
Benoit L 2017/04/27 17:14:42 This will be merged into the policy part, that wil
+ auto prefetcher = base::MakeUnique<ResourcePrefetcher>(
+ this, config_.max_prefetches_inflight_per_navigation,
+ config_.max_prefetches_inflight_per_host_per_navigation, main_frame_url,
+ urls);
prefetcher->Start();
prefetcher_map_[key] = std::move(prefetcher);
}
« no previous file with comments | « chrome/browser/predictors/resource_prefetcher.cc ('k') | chrome/browser/predictors/resource_prefetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698