Lines Matching refs:study
10 #include "components/variations/proto/study.pb.h"
16 // Validates the sanity of |study| and computes the total probability.
18 const Study& study,
20 // At the moment, a missing default_experiment_name makes the study invalid.
21 if (study.default_experiment_name().empty()) {
22 DVLOG(1) << study.name() << " has no default experiment defined.";
25 if (study.filter().has_min_version() &&
26 !Version::IsValidWildcardString(study.filter().min_version())) {
27 DVLOG(1) << study.name() << " has invalid min version: "
28 << study.filter().min_version();
31 if (study.filter().has_max_version() &&
32 !Version::IsValidWildcardString(study.filter().max_version())) {
33 DVLOG(1) << study.name() << " has invalid max version: "
34 << study.filter().max_version();
38 const std::string& default_group_name = study.default_experiment_name();
43 for (int i = 0; i < study.experiment_size(); ++i) {
44 if (study.experiment(i).name().empty()) {
45 DVLOG(1) << study.name() << " is missing experiment " << i << " name";
48 if (!experiment_names.insert(study.experiment(i).name()).second) {
49 DVLOG(1) << study.name() << " has a repeated experiment name "
50 << study.experiment(i).name();
54 if (!study.experiment(i).has_forcing_flag())
55 divisor += study.experiment(i).probability_weight();
56 if (study.experiment(i).name() == default_group_name)
61 DVLOG(1) << study.name() << " is missing default experiment in its "
63 // The default group was not found in the list of groups. This study is not
83 bool ProcessedStudy::Init(const Study* study, bool is_expired) {
85 if (!ValidateStudyAndComputeTotalProbability(*study, &total_probability))
88 study_ = study;
96 const Study* study,
100 if (processed_study.Init(study, is_expired)) {