#include "extensions/common/feature_switch.h"
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "extensions/common/switches.h"
namespace extensions {
namespace {
class CommonSwitches { … };
base::LazyInstance<CommonSwitches>::DestructorAtExit g_common_switches = …;
}
FeatureSwitch* FeatureSwitch::prompt_for_external_extensions() { … }
FeatureSwitch* FeatureSwitch::embedded_extension_options() { … }
FeatureSwitch* FeatureSwitch::trace_app_source() { … }
FeatureSwitch::ScopedOverride::ScopedOverride(FeatureSwitch* feature,
bool override_value)
: … { … }
FeatureSwitch::ScopedOverride::~ScopedOverride() { … }
FeatureSwitch::FeatureSwitch(const char* switch_name,
DefaultValue default_value)
: … { … }
FeatureSwitch::FeatureSwitch(const base::CommandLine* command_line,
const char* switch_name,
DefaultValue default_value)
: … { … }
FeatureSwitch::~FeatureSwitch() = default;
bool FeatureSwitch::IsEnabled() const { … }
bool FeatureSwitch::ComputeValue() const { … }
bool FeatureSwitch::HasValue() const { … }
std::string FeatureSwitch::GetLegacyEnableFlag() const { … }
std::string FeatureSwitch::GetLegacyDisableFlag() const { … }
void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { … }
FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { … }
}