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

Unified Diff: chrome/browser/prefetch/prefetch_field_trial.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 | « chrome/browser/prefetch/prefetch_field_trial.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefetch/prefetch_field_trial.cc
diff --git a/chrome/browser/prefetch/prefetch_field_trial.cc b/chrome/browser/prefetch/prefetch_field_trial.cc
index 0db983bc26c029354597d66980cc0bae522cc8cc..abdb11215ec4476d86865815ddeef52388430774 100644
--- a/chrome/browser/prefetch/prefetch_field_trial.cc
+++ b/chrome/browser/prefetch/prefetch_field_trial.cc
@@ -12,15 +12,9 @@
namespace prefetch {
-bool IsPrefetchFieldTrialEnabled() {
+bool DisableForFieldTrial() {
std::string experiment = base::FieldTrialList::FindFullName("Prefetch");
- if (StartsWithASCII(experiment, "ExperimentYes", false))
- return true;
- // If this client needs to prefetch for the Prerender Local Predictor,
- // enable prefetching.
- if (prerender::IsLocalPredictorPrerenderPrefetchEnabled())
- return true;
- return false;
+ return StartsWithASCII(experiment, "ExperimentDisable", false);
}
} // namespace prefetch
« no previous file with comments | « chrome/browser/prefetch/prefetch_field_trial.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698