#include "chrome/browser/media/audio_service_util.h"
#include <optional>
#include <string>
#include "base/feature_list.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/policy/chrome_browser_policy_connector.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/core/common/policy_service.h"
#include "components/policy/policy_constants.h"
#include "content/public/common/content_features.h"
namespace {
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
(BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS))
const base::Value* GetPolicy(const char* policy_name) { … }
bool GetPolicyOrFeature(const char* policy_name, const base::Feature& feature) { … }
#endif
}
bool IsAudioServiceSandboxEnabled() { … }
#if BUILDFLAG(IS_WIN)
bool IsAudioProcessHighPriorityEnabled() {
const base::Value* value =
GetPolicy(policy::key::kAudioProcessHighPriorityEnabled);
return value && value->GetBool();
}
#endif