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

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

Issue 2600893002: Prerender: exclude AGSA from the PrerenderSilence experiment (Closed)
Patch Set: Created 4 years 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_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_manager.cc
diff --git a/chrome/browser/prerender/prerender_manager.cc b/chrome/browser/prerender/prerender_manager.cc
index 7102bb8b9cfd67efd06ffa49e410352982b09f02..13aaffa9a1caf82e22579a1f30b89ebcfef089bd 100644
--- a/chrome/browser/prerender/prerender_manager.cc
+++ b/chrome/browser/prerender/prerender_manager.cc
@@ -1262,8 +1262,10 @@ void PrerenderManager::RecordNetworkBytes(Origin origin,
}
bool PrerenderManager::IsPrerenderSilenceExperiment(Origin origin) const {
- if (origin == ORIGIN_OFFLINE)
+ if (origin == ORIGIN_OFFLINE ||
+ origin == ORIGIN_EXTERNAL_REQUEST_FORCED_CELLULAR) {
return false;
+ }
// The group name should contain expiration time formatted as:
// "ExperimentYes_expires_YYYY-MM-DDTHH:MM:SSZ".
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698