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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_field_trial.cc

Issue 10823152: Re-enable HistoryQuick provider "new scoring" field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/autocomplete/autocomplete_field_trial.h" 5 #include "chrome/browser/autocomplete/autocomplete_field_trial.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 14 matching lines...) Expand all
25 // of the users in the disallow-inline experiment group. 25 // of the users in the disallow-inline experiment group.
26 const base::FieldTrial::Probability kDisallowInlineHQPFieldTrialDivisor = 100; 26 const base::FieldTrial::Probability kDisallowInlineHQPFieldTrialDivisor = 100;
27 const base::FieldTrial::Probability 27 const base::FieldTrial::Probability
28 kDisallowInlineHQPFieldTrialExperimentFraction = 10; 28 kDisallowInlineHQPFieldTrialExperimentFraction = 10;
29 29
30 // For the search suggestion field trial, divide the people in the 30 // For the search suggestion field trial, divide the people in the
31 // trial into 20 equally-sized buckets. The suggest provider backend 31 // trial into 20 equally-sized buckets. The suggest provider backend
32 // will decide what behavior (if any) to change based on the group. 32 // will decide what behavior (if any) to change based on the group.
33 const int kSuggestFieldTrialNumberOfGroups = 20; 33 const int kSuggestFieldTrialNumberOfGroups = 20;
34 34
35 // For History Quick Provider new scoring field trial, put 0% ( = 0/100 ) 35 // For History Quick Provider new scoring field trial, put 25% ( = 25/100 )
36 // of the users in the new scoring experiment group. 36 // of the users in the new scoring experiment group.
37 const base::FieldTrial::Probability kHQPNewScoringFieldTrialDivisor = 100; 37 const base::FieldTrial::Probability kHQPNewScoringFieldTrialDivisor = 100;
38 const base::FieldTrial::Probability 38 const base::FieldTrial::Probability
39 kHQPNewScoringFieldTrialExperimentFraction = 0; 39 kHQPNewScoringFieldTrialExperimentFraction = 25;
40 40
41 // Field trial IDs. 41 // Field trial IDs.
42 // Though they are not literally "const", they are set only once, in 42 // Though they are not literally "const", they are set only once, in
43 // Activate() below. 43 // Activate() below.
44 44
45 // Field trial ID for the disallow-inline History Quick Provider 45 // Field trial ID for the disallow-inline History Quick Provider
46 // experiment group. 46 // experiment group.
47 int disallow_inline_hqp_experiment_group = 0; 47 int disallow_inline_hqp_experiment_group = 0;
48 48
49 // Field trial ID for the History Quick Provider new scoring experiment group. 49 // Field trial ID for the History Quick Provider new scoring experiment group.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 bool AutocompleteFieldTrial::InHQPNewScoringFieldTrialExperimentGroup() { 158 bool AutocompleteFieldTrial::InHQPNewScoringFieldTrialExperimentGroup() {
159 if (!InHQPNewScoringFieldTrial()) 159 if (!InHQPNewScoringFieldTrial())
160 return false; 160 return false;
161 161
162 // Return true if we're in the experiment group. 162 // Return true if we're in the experiment group.
163 const int group = base::FieldTrialList::FindValue( 163 const int group = base::FieldTrialList::FindValue(
164 kHQPNewScoringFieldTrialName); 164 kHQPNewScoringFieldTrialName);
165 return group == hqp_new_scoring_experiment_group; 165 return group == hqp_new_scoring_experiment_group;
166 } 166 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698