summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 22:31:50 +0000
committerdominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 22:31:50 +0000
commit8056bc2f83c10247fd6f076b45fa0a02ceaab766 (patch)
treeaaf24c75bd8401ef9e4b92fe7b018098afc795bd
parent28ff3a3c6982979f10396c950d447029a282702b (diff)
downloadchromium_src-8056bc2f83c10247fd6f076b45fa0a02ceaab766.zip
chromium_src-8056bc2f83c10247fd6f076b45fa0a02ceaab766.tar.gz
chromium_src-8056bc2f83c10247fd6f076b45fa0a02ceaab766.tar.bz2
Update omnibox prerender field trial opt-in rate for stable/beta.
This change was made on the M17 branch already and this brings M18 in line with that. Review URL: http://codereview.chromium.org/9107051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117980 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/prerender/prerender_field_trial.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/prerender/prerender_field_trial.cc b/chrome/browser/prerender/prerender_field_trial.cc
index 31eadb5..ced8b7c 100644
--- a/chrome/browser/prerender/prerender_field_trial.cc
+++ b/chrome/browser/prerender/prerender_field_trial.cc
@@ -36,13 +36,8 @@ void SetupPrefetchFieldTrial() {
"ContentPrefetchPrefetchOff", 2012, 6, 30));
const int kPrefetchOnGroup = trial->AppendGroup("ContentPrefetchPrefetchOn",
prefetch_probability);
- const int trial_group = trial->group();
-
- if (trial_group == kPrefetchOnGroup) {
- ResourceDispatcherHost::set_is_prefetch_enabled(true);
- } else {
- ResourceDispatcherHost::set_is_prefetch_enabled(false);
- }
+ ResourceDispatcherHost::set_is_prefetch_enabled(
+ trial->group() == kPrefetchOnGroup);
}
void SetupPrerenderFieldTrial() {
@@ -173,7 +168,12 @@ void ConfigurePrerenderFromOmnibox() {
// Field trial to see if we're enabled.
const base::FieldTrial::Probability kDivisor = 100;
- const base::FieldTrial::Probability kEnabledProbability = 90;
+ base::FieldTrial::Probability kEnabledProbability = 90;
+ chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
+ if (channel == chrome::VersionInfo::CHANNEL_STABLE ||
+ channel == chrome::VersionInfo::CHANNEL_BETA) {
+ kEnabledProbability = 99;
+ }
scoped_refptr<base::FieldTrial> enabled_trial(
new base::FieldTrial(kPrerenderFromOmniboxTrialName, kDivisor,
"OmniboxPrerenderDisabled", 2012, 8, 30));