#include "components/variations/processed_study.h"
#include <cstdint>
#include <set>
#include <string>
#include <string_view>
#include "base/containers/contains.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/string_util.h"
#include "base/version.h"
#include "components/variations/proto/study.pb.h"
#include "entropy_provider.h"
#include "variations_layers.h"
namespace variations {
namespace {
void LogInvalidReason(InvalidStudyReason reason) { … }
bool IsValidExperimentName(const std::string& name) { … }
bool ValidateStudyAndComputeTotalProbability(
const Study& study,
base::FieldTrial::Probability* total_probability,
bool* all_assignments_to_one_group) { … }
}
const char ProcessedStudy::kGenericDefaultExperimentName[] = …;
ProcessedStudy::ProcessedStudy() { … }
ProcessedStudy::ProcessedStudy(const ProcessedStudy& other) = default;
ProcessedStudy::~ProcessedStudy() = default;
bool ProcessedStudy::Init(const Study* study) { … }
int ProcessedStudy::GetExperimentIndexByName(const std::string& name) const { … }
const std::string_view ProcessedStudy::GetDefaultExperimentName() const { … }
}