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

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

Issue 330063004: Various Prerender Service / Prerender LocalPredictor related changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: davidben feedback Created 6 years, 6 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/prerender/prerender_field_trial.h » ('j') | 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 d88e0c79226633a84e1ce1fb3745af78e9304984..0db983bc26c029354597d66980cc0bae522cc8cc 100644
--- a/chrome/browser/prefetch/prefetch_field_trial.cc
+++ b/chrome/browser/prefetch/prefetch_field_trial.cc
@@ -8,6 +8,7 @@
#include "base/metrics/field_trial.h"
#include "base/strings/string_util.h"
+#include "chrome/browser/prerender/prerender_field_trial.h"
namespace prefetch {
@@ -15,6 +16,10 @@ bool IsPrefetchFieldTrialEnabled() {
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;
}
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698