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

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

Issue 385173002: Make prefetch default on (subject to the regular predictive networking preference). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 5 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 | chrome/browser/prefetch/prefetch_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefetch/prefetch.cc
diff --git a/chrome/browser/prefetch/prefetch.cc b/chrome/browser/prefetch/prefetch.cc
index 68eccc6058cc80f1f41646d716a154a938238f79..84b517b87e594c1f830e62ac7122cff9c696184b 100644
--- a/chrome/browser/prefetch/prefetch.cc
+++ b/chrome/browser/prefetch/prefetch.cc
@@ -22,8 +22,8 @@ bool IsPrefetchEnabled(content::ResourceContext* resource_context) {
DCHECK(io_data);
- return IsPrefetchFieldTrialEnabled() &&
- chrome_browser_net::CanPredictNetworkActionsIO(io_data);
+ return chrome_browser_net::CanPredictNetworkActionsIO(io_data) &&
+ !DisableForFieldTrial();
}
} // namespace prefetch
« no previous file with comments | « no previous file | chrome/browser/prefetch/prefetch_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698