chrome/browser/chrome_browser_field_trials.cc
// Setup a 50% uniformity trial for new installs only. This is accomplished by
// disabling the trial on clients that were installed before a specified date.
Setup a 50% uniformity trial for new installs only. This is accomplished by
disabling the trial on clients that were installed before a specified date.
Setup a 50% uniformity trial for new installs only . This is accomplished by disabling the trial on clients that were installed before a specified date .
void SetupNewInstallUniformityTrial(const base::Time& install_date) {
  const base::Time::Exploded kStartDate = {
    2012, 11, 0, 6,  
    0, 0, 0, 0       
  };
  scoped_refptr<base::FieldTrial> trial(
      base::FieldTrialList::FactoryGetFieldTrial(
          "UMA-New-Install-Uniformity-Trial", 100, "Disabled",
          2015, 1, 1, NULL));
  trial->UseOneTimeRandomization();
  trial->AppendGroup("Control", 50);
  trial->AppendGroup("Experiment", 50);
  const base::Time start_date = base::Time::FromLocalExploded(kStartDate);
  if (install_date < start_date)
    trial->Disable();
  else
    trial->group();
}
void SetupNewInstallUniformityTrial ( const base :: Time & install_date ) { const base :: Time :: Exploded kStartDate = { 2012 , 11 , 0 , 6 , 0 , 0 , 0 , 0 } ; scoped_refptr < base :: FieldTrial > trial ( base :: FieldTrialList :: FactoryGetFieldTrial ( " " , 100 , " " , 2015 , 1 , 1 , NULL ) ) ; trial -> UseOneTimeRandomization ( ) ; trial -> AppendGroup ( " " , 50 ) ; trial -> AppendGroup ( " " , 50 ) ; const base :: Time start_date = base :: Time :: FromLocalExploded ( kStartDate ) ; if ( install_date < start_date ) trial -> Disable ( ) ; else trial -> group ( ) ; }
Setup a 50% uniformity trial for new installs only.
Setup a 50% uniformity trial for new installs only .
// Nov 6, 2012 // 00:00:00.000