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

Unified Diff: chrome/browser/prefetch/prefetch.cc

Issue 443413002: Enable TCP preconnect and DNS preresolve on cellular. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix preresolve and preconnect conditions in AnticipateOmniboxUrl. Created 6 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
Index: chrome/browser/prefetch/prefetch.cc
diff --git a/chrome/browser/prefetch/prefetch.cc b/chrome/browser/prefetch/prefetch.cc
index 74c39b209e5cead587fb6d434cb96dfd786c41bf..c38147fd3ddd15a71f990a3a3c904dd2c12ca3c1 100644
--- a/chrome/browser/prefetch/prefetch.cc
+++ b/chrome/browser/prefetch/prefetch.cc
@@ -30,7 +30,7 @@ bool IsPrefetchEnabled(content::ResourceContext* resource_context) {
return false;
}
- return chrome_browser_net::CanPredictNetworkActionsIO(io_data) &&
+ return chrome_browser_net::CanPrefetchAndPrerenderIO(io_data) &&
!DisableForFieldTrial();
}

Powered by Google App Engine
This is Rietveld 408576698