Lines Matching refs:study
42 // Converts |date_time| in Study date format to base::Time.
64 // studies have been added (and do not add an expired study if a corresponding
65 // non-expired study got added). This way, if there's both an expired and a
66 // non-expired study that applies, the non-expired study takes priority.
68 std::vector<const Study*> expired_studies;
71 const Study& study = seed.study(i);
72 if (!ShouldAddStudy(study, locale, reference_date, version, channel))
75 if (IsStudyExpired(study, reference_date)) {
76 expired_studies.push_back(&study);
78 CreateTrialFromStudy(study, false);
79 created_studies.insert(study.name());
158 void VariationsSeedProcessor::CreateTrialFromStudy(const Study& study,
161 if (!ValidateStudyAndComputeTotalProbability(study, &total_probability))
167 for (int i = 0; i < study.experiment_size(); ++i) {
168 const Study_Experiment& experiment = study.experiment(i);
171 base::FieldTrialList::CreateFieldTrial(study.name(), experiment.name());
172 DVLOG(1) << "Trial " << study.name() << " forced by flag: "
181 if (study.has_consistency() &&
182 study.consistency() == Study_Consistency_PERMANENT) {
184 if (study.has_randomization_seed())
185 randomization_seed = study.randomization_seed();
193 study.name(), total_probability, study.default_experiment_name(),
197 for (int i = 0; i < study.experiment_size(); ++i) {
198 const Study_Experiment& experiment = study.experiment(i);
206 AssociateVariationParams(study.name(), experiment.name(), params);
213 if (experiment.name() != study.default_experiment_name())
220 study.name(),
228 study.name(),
239 bool VariationsSeedProcessor::IsStudyExpired(const Study& study,
241 if (study.has_expiry_date()) {
243 ConvertStudyDateToBaseTime(study.expiry_date());
251 const Study& study,
256 if (study.has_filter()) {
257 if (!CheckStudyChannel(study.filter(), channel)) {
258 DVLOG(1) << "Filtered out study " << study.name() << " due to channel.";
262 if (!CheckStudyLocale(study.filter(), locale)) {
263 DVLOG(1) << "Filtered out study " << study.name() << " due to locale.";
267 if (!CheckStudyPlatform(study.filter(), GetCurrentPlatform())) {
268 DVLOG(1) << "Filtered out study " << study.name() << " due to platform.";
272 if (!CheckStudyVersion(study.filter(), version)) {
273 DVLOG(1) << "Filtered out study " << study.name() << " due to version.";
277 if (!CheckStudyStartDate(study.filter(), reference_date)) {
278 DVLOG(1) << "Filtered out study " << study.name() <<
284 DVLOG(1) << "Kept study " << study.name() << ".";
289 const Study& study,
291 // At the moment, a missing default_experiment_name makes the study invalid.
292 if (study.default_experiment_name().empty()) {
293 DVLOG(1) << study.name() << " has no default experiment defined.";
296 if (study.filter().has_min_version() &&
297 !Version::IsValidWildcardString(study.filter().min_version())) {
298 DVLOG(1) << study.name() << " has invalid min version: "
299 << study.filter().min_version();
302 if (study.filter().has_max_version() &&
303 !Version::IsValidWildcardString(study.filter().max_version())) {
304 DVLOG(1) << study.name() << " has invalid max version: "
305 << study.filter().max_version();
309 const std::string& default_group_name = study.default_experiment_name();
314 for (int i = 0; i < study.experiment_size(); ++i) {
315 if (study.experiment(i).name().empty()) {
316 DVLOG(1) << study.name() << " is missing experiment " << i << " name";
319 if (!experiment_names.insert(study.experiment(i).name()).second) {
320 DVLOG(1) << study.name() << " has a repeated experiment name "
321 << study.experiment(i).name();
325 if (!study.experiment(i).has_forcing_flag())
326 divisor += study.experiment(i).probability_weight();
327 if (study.experiment(i).name() == default_group_name)
332 DVLOG(1) << study.name() << " is missing default experiment in its "
334 // The default group was not found in the list of groups. This study is not