Lines Matching refs:trial
29 // A uniformity trial used to compare one-time-randomized and
33 // Set up a uniformity field trial. |one_time_randomized| indicates if the
34 // field trial is one-time randomized or session-randomized. |trial_name_string|
36 // the trial name. |num_trial_groups| must be a divisor of 100 (e.g. 5, 20)
53 DVLOG(1) << "Trial name = " << trial_name;
55 scoped_refptr<base::FieldTrial> trial(
63 // Loop starts with group 1 because the field trial automatically creates a
69 trial->AppendGroup(group_name, kProbabilityPerGroup);
75 // Now that all groups have been appended, call group() on the trial to
76 // ensure that our trial is registered. This resolves an off-by-one issue
77 // where the default group never gets chosen if we don't "use" the trial.
78 const int chosen_group = trial->group();
82 // Setup a 50% uniformity trial for new installs only. This is accomplished by
83 // disabling the trial on clients that were installed before a specified date.
89 scoped_refptr<base::FieldTrial> trial(
91 "UMA-New-Install-Uniformity-Trial", 100, "Disabled",
93 trial->AppendGroup("Control", 50);
94 trial->AppendGroup("Experiment", 50);
97 trial->Disable();
99 trial->group();
105 // The 100 percent field trial in which everyone is a member is a special
107 // and tools that require a field trial.
108 base::FieldTrial* trial =
109 base::FieldTrialList::CreateFieldTrial("UMA-Uniformity-Trial-100-Percent",
111 // Call |group()| on the trial to ensure its reported in metrics.
112 trial->group();
114 // One field trial will be created for each entry in this array. The i'th
115 // field trial will have |trial_sizes[i]| groups in it, including the default
131 "UMA-Uniformity-Trial-%d-Percent";
138 // Setup a 5% session-randomized uniformity trial.
140 "UMA-Session-Randomized-Uniformity-Trial-%d-Percent";