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

Unified Diff: chrome/browser/prerender/prerender_local_predictor.cc

Issue 591313005: Provide a way to specify in Finch trials to disable prerender local (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/prerender/prerender_local_predictor.cc
diff --git a/chrome/browser/prerender/prerender_local_predictor.cc b/chrome/browser/prerender/prerender_local_predictor.cc
index 09af20f14dd06ba917e5bd8b5e2179acc352003d..3e1b441ef70321c1309eb5743e70c29b3723c7b5 100644
--- a/chrome/browser/prerender/prerender_local_predictor.cc
+++ b/chrome/browser/prerender/prerender_local_predictor.cc
@@ -616,6 +616,9 @@ void PrerenderLocalPredictor::OnAddVisit(const history::BriefVisitInfo& info) {
}
if (ShouldExcludeTransitionForPrediction(info.transition))
return;
+ Profile* profile = prerender_manager_->profile();
+ if (!profile || DisableLocalPredictorBasedOnSyncAndConfiguration(profile))
jkarlin 2014/09/23 14:54:03 I expected to see something call your new Temporar
tburkard 2014/09/24 15:15:34 Done.
+ return;
RecordEvent(EVENT_ADD_VISIT_RELEVANT_TRANSITION);
base::TimeDelta max_age =
base::TimeDelta::FromMilliseconds(GetMaxLocalPredictionTimeMs());

Powered by Google App Engine
This is Rietveld 408576698