Home | History | Annotate | Download | only in util

Lines Matching refs:experiment

41 // The following strings are the possible outcomes of the toast experiment
110 // If handle to experiment result key was given at startup, re-add it.
270 // Use it to write the experiment results.
283 bool CreateExperimentDetails(int flavor, ExperimentDetails* experiment) {
288 // Maximum number of experiment flavors we support.
290 // This struct determines which experiment flavors we show for each locale and
293 // Plugin infobar experiment:
294 // The experiment in 2011 used PIxx codes.
296 // Inactive user toast experiment:
297 // The experiment in Dec 2009 used TGxx and THxx.
298 // The experiment in Feb 2010 used TKxx and TLxx.
299 // The experiment in Apr 2010 used TMxx and TNxx.
300 // The experiment in Oct 2010 used TVxx TWxx TXxx TYxx.
301 // The experiment in Feb 2011 used SJxx SKxx SLxx SMxx.
302 // The experiment in Mar 2012 used ZAxx ZBxx ZCxx.
303 // The experiment in Jan 2013 uses DAxx.
307 const wchar_t* locale; // Locale to show this experiment for (* for all).
308 const wchar_t* brands; // Brand codes show this experiment for (* for all).
310 const wchar_t* prefix; // The two letter experiment code. The second letter
318 L"EA", // Experiment is EAxx, EBxx, etc.
319 // No flavors means no experiment.
328 L"DA", // Experiment is DAxx.
362 // Find out how many flavors we have. Zero means no experiment.
370 experiment->flavor = flavor;
371 experiment->heading = match.flavors[flavor].heading_id;
372 experiment->control_group = match.control_group;
374 experiment->prefix = prefix;
375 experiment->flags = match.flavors[flavor].flags;
383 // Currently we only have one experiment: the inactive user toast. Which only
387 // 1- Is a per-user-install and it updated: perform the experiment
411 ExperimentDetails experiment;
412 if (!CreateExperimentDetails(-1, &experiment)) {
413 VLOG(1) << "Failed to get experiment details.";
416 int flavor = experiment.flavor;
417 base::string16 base_group = experiment.prefix;
421 // Testing only: the user automatically qualifies for the experiment.
422 VLOG(1) << "Experiment qualification bypass";
424 // Check that the user was not already drafted in this experiment.
429 VLOG(1) << "User already participated in this experiment";
435 VLOG(1) << "Toast experiment is disabled.";
456 double control_group = 1.0 * (100 - experiment.control_group) / 100;
464 VLOG(1) << "User drafted for toast experiment " << flavor;
466 // User level: The experiment needs to be performed in a different process
478 // User qualifies for the experiment. To test, use --try-chrome-again=|flavor|