diff options
author | dominich@google.com <dominich@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-10 19:49:19 +0000 |
---|---|---|
committer | dominich@google.com <dominich@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-10 19:49:19 +0000 |
commit | 9ab9954da6bdb6d6d217bab3f6ac417f2c1b3548 (patch) | |
tree | a46cee2843b77a180984dfc7c1cb3af589b9b9d6 | |
parent | 49e2ebb402dd069ca126a33686758e394eaef665 (diff) | |
download | chromium_src-9ab9954da6bdb6d6d217bab3f6ac417f2c1b3548.zip chromium_src-9ab9954da6bdb6d6d217bab3f6ac417f2c1b3548.tar.gz chromium_src-9ab9954da6bdb6d6d217bab3f6ac417f2c1b3548.tar.bz2 |
Update omnibox prerender field trial percentages for stable and beta channels.
BUG=109641
Review URL: http://codereview.chromium.org/9114044
git-svn-id: svn://svn.chromium.org/chrome/branches/963/src@117083 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/prerender/prerender_field_trial.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/prerender/prerender_field_trial.cc b/chrome/browser/prerender/prerender_field_trial.cc index de924a2..ab4d108 100644 --- a/chrome/browser/prerender/prerender_field_trial.cc +++ b/chrome/browser/prerender/prerender_field_trial.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -167,14 +167,20 @@ 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)); enabled_trial->AppendGroup("OmniboxPrerenderEnabled", kEnabledProbability); // Field trial to see which heuristic to use. - const base::FieldTrial::Probability kExactFullProbability = 90; + const base::FieldTrial::Probability kExactFullProbability = 100; scoped_refptr<base::FieldTrial> heuristic_trial( new base::FieldTrial(kPrerenderFromOmniboxHeuristicTrialName, kDivisor, "OriginalAlgorithm", 2012, 8, 30)); |