#include "components/variations/net/variations_command_line.h"
#include "base/base_switches.h"
#include "base/feature_list.h"
#include "base/json/json_file_value_serializer.h"
#include "base/metrics/field_trial.h"
#include "base/strings/escape.h"
#include "base/values.h"
#include "components/variations/field_trial_config/field_trial_util.h"
#include "components/variations/variations_switches.h"
namespace variations {
namespace {
std::string GenerateParam(const std::string& param_key,
const std::string& param_value) { … }
std::string GetStringFromDict(const base::Value::Dict& dict,
std::string_view key) { … }
}
VariationsCommandLine::VariationsCommandLine() = default;
VariationsCommandLine::~VariationsCommandLine() = default;
VariationsCommandLine::VariationsCommandLine(VariationsCommandLine&&) = default;
VariationsCommandLine& VariationsCommandLine::operator=(
VariationsCommandLine&&) = default;
VariationsCommandLine VariationsCommandLine::GetForCurrentProcess() { … }
VariationsCommandLine VariationsCommandLine::GetForCommandLine(
const base::CommandLine& command_line) { … }
std::string VariationsCommandLine::ToString() { … }
void VariationsCommandLine::ApplyToCommandLine(
base::CommandLine& command_line) const { … }
void VariationsCommandLine::ApplyToFeatureAndFieldTrialList(
base::FeatureList* feature_list) const { … }
std::optional<VariationsCommandLine> VariationsCommandLine::ReadFromFile(
const base::FilePath& file_path) { … }
bool VariationsCommandLine::WriteToFile(const base::FilePath& file_path) const { … }
}