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

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

Issue 2508933002: tools: Local tests for the speculative prefetch predictor. (Closed)
Patch Set: . Created 4 years, 1 month 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_predictor.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.cc b/chrome/browser/predictors/resource_prefetch_predictor.cc
index 1b131cc3d0ffb683842329d8d05e14d0d4b7d23b..dbf32c3ef2d769e641e873a5fc01ed39ec631e47 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor.cc
@@ -522,7 +522,8 @@ void ResourcePrefetchPredictor::OnMainFrameRequest(
DCHECK_EQ(INITIALIZED, initialization_state_);
const GURL& main_frame_url = request.navigation_id.main_frame_url;
- StartPrefetching(main_frame_url);
+ if (!config_.ExternalPrefetchingOnly())
pasko 2016/11/17 15:59:04 so 'external prefetch only' disables all prefetchi
Benoit L 2016/11/21 13:40:32 It disables prefetches triggered by observing a na
+ StartPrefetching(main_frame_url);
// Cleanup older navigations.
CleanupAbandonedNavigations(request.navigation_id);

Powered by Google App Engine
This is Rietveld 408576698