Commit 59d1a08a authored by Ahmed Mehfooz's avatar Ahmed Mehfooz Committed by Commit Bot

Add feature flag for mic gain settings in system tray

Bug: 1065079
Change-Id: I0646096217a8cdef1715061cb0b60f440c4a6240
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2122862Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753793}
parent 2f73d53a
......@@ -116,6 +116,9 @@ const base::Feature kDragFromShelfToHomeOrOverview{
const base::Feature kHideShelfControlsInTabletMode{
"HideShelfControlsInTabletMode", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kSystemTrayMicGainSetting{
"SystemTrayMicGainSetting", base::FEATURE_DISABLED_BY_DEFAULT};
bool IsAllowAmbientEQEnabled() {
return base::FeatureList::IsEnabled(kAllowAmbientEQ);
}
......@@ -245,6 +248,10 @@ bool IsCornerShortcutsEnabled() {
return base::FeatureList::IsEnabled(kCornerShortcuts);
}
bool IsSystemTrayMicGainSettingEnabled() {
return base::FeatureList::IsEnabled(kSystemTrayMicGainSetting);
}
namespace {
// The boolean flag indicating if "WebUITabStrip" feature is enabled in Chrome.
......
......@@ -150,6 +150,10 @@ ASH_PUBLIC_EXPORT extern const base::Feature kDragFromShelfToHomeOrOverview;
// preferences, or policy).
ASH_PUBLIC_EXPORT extern const base::Feature kHideShelfControlsInTabletMode;
// Enables sliders for setting mic gain levels in the more audio settings
// section in the system tray.
ASH_PUBLIC_EXPORT extern const base::Feature kSystemTrayMicGainSetting;
ASH_PUBLIC_EXPORT bool IsAllowAmbientEQEnabled();
ASH_PUBLIC_EXPORT bool IsAltTabLimitedToActiveDesk();
......@@ -204,6 +208,8 @@ ASH_PUBLIC_EXPORT bool AreContextualNudgesEnabled();
ASH_PUBLIC_EXPORT bool IsCornerShortcutsEnabled();
ASH_PUBLIC_EXPORT bool IsSystemTrayMicGainSettingEnabled();
// These two functions are supposed to be temporary functions to set or get
// whether "WebUITabStrip" feature is enabled from Chrome.
ASH_PUBLIC_EXPORT void SetWebUITabStripEnabled(bool enabled);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment