chromeos: Limit LacrosSupport flag to canary/dev channels
Bug: 1077348
Change-Id: Idb69d0130ed5e67c3205a0abbd4f30e06f59a669
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2189635
Reviewed-by: Erik Chen <[email protected]>
Commit-Queue: James Cook <[email protected]>
Cr-Commit-Position: refs/heads/master@{#766897}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 7d530570..0c1fda5 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -550,6 +550,8 @@
switches::kTopChromeTouchUiEnabled}};
#if defined(OS_CHROMEOS)
+const char kLacrosSupportInternalName[] = "lacros-support";
+
const FeatureEntry::Choice kUiShowCompositedLayerBordersChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kUiShowCompositedLayerBordersRenderPass,
@@ -2262,7 +2264,7 @@
flag_descriptions::kEnableAppListSearchAutocompleteName,
flag_descriptions::kEnableAppListSearchAutocompleteDescription, kOsCrOS,
FEATURE_VALUE_TYPE(app_list_features::kEnableAppListSearchAutocomplete)},
- {"lacros-support", flag_descriptions::kLacrosSupportName,
+ {kLacrosSupportInternalName, flag_descriptions::kLacrosSupportName,
flag_descriptions::kLacrosSupportDescription, kOsCrOS,
FEATURE_VALUE_TYPE(chromeos::features::kLacrosSupport)},
{"list-all-display-modes", flag_descriptions::kListAllDisplayModesName,
@@ -5550,6 +5552,14 @@
channel == version_info::Channel::STABLE) {
return true;
}
+
+ // Lacros is only available on canary/dev channels and developer builds.
+ if (!strcmp(kLacrosSupportInternalName, entry.internal_name) &&
+ channel != version_info::Channel::DEV &&
+ channel != version_info::Channel::CANARY &&
+ channel != version_info::Channel::UNKNOWN) {
+ return true;
+ }
#endif // defined(OS_CHROMEOS)
// data-reduction-proxy-lo-fi and enable-data-reduction-proxy-lite-page