#include "components/variations/synthetic_trial_registry.h"
#include "base/containers/contains.h"
#include "base/metrics/histogram_functions.h"
#include "base/observer_list.h"
#include "base/strings/string_number_conversions.h"
#include "components/variations/active_field_trials.h"
#include "components/variations/hashing.h"
#include "components/variations/variations_associated_data.h"
namespace variations {
namespace internal {
BASE_FEATURE(…);
}
SyntheticTrialRegistry::SyntheticTrialRegistry() = default;
SyntheticTrialRegistry::~SyntheticTrialRegistry() = default;
void SyntheticTrialRegistry::AddObserver(SyntheticTrialObserver* observer) { … }
void SyntheticTrialRegistry::RemoveObserver(SyntheticTrialObserver* observer) { … }
void SyntheticTrialRegistry::RegisterExternalExperiments(
const std::vector<int>& experiment_ids,
SyntheticTrialRegistry::OverrideMode mode) { … }
void SyntheticTrialRegistry::RegisterSyntheticFieldTrial(
const SyntheticTrialGroup& trial) { … }
std::string_view SyntheticTrialRegistry::GetStudyNameForExpId(
const base::FieldTrialParams& params,
const std::string& experiment_id) { … }
void SyntheticTrialRegistry::NotifySyntheticTrialObservers(
const std::vector<SyntheticTrialGroup>& trials_updated,
const std::vector<SyntheticTrialGroup>& trials_removed) { … }
void SyntheticTrialRegistry::GetSyntheticFieldTrialsOlderThan(
base::TimeTicks time,
std::vector<ActiveGroupId>* synthetic_trials,
std::string_view suffix) const { … }
}