#include "device/bluetooth/floss/floss_features.h"
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#include "chromeos/startup/browser_params_proxy.h"
#endif
namespace floss {
namespace features {
#if BUILDFLAG(IS_CHROMEOS_ASH)
BASE_FEATURE(kFlossEnabled, "Floss", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kFlossIsAvailable,
"FlossIsAvailable",
base::FEATURE_ENABLED_BY_DEFAULT);
#endif
bool IsFlossEnabled() {
#if BUILDFLAG(IS_CHROMEOS_ASH)
return base::FeatureList::IsEnabled(floss::features::kFlossEnabled);
#elif BUILDFLAG(IS_CHROMEOS_LACROS)
return chromeos::BrowserParamsProxy::Get()->UseFlossBluetooth();
#else
return false;
#endif
}
}
}