Commit 673eb7ed authored by Wenyu Fu's avatar Wenyu Fu Committed by Commit Bot

Add feature flag for Enterprise policy HomepageLocation on Android

Add feature flag to control the exposure level of new feature during
development.

Bug: 978197
Change-Id: Ie9651ed8d981d6138409cafa30508d849d7b93b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1900305
Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713107}
parent c0e511ec
......@@ -4772,6 +4772,13 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(arc::kEnableApplicationZoomFeature)},
#endif // defined(OS_CHROMEOS)
#if defined(OS_ANDROID)
{"enable-home-page-location-policy",
flag_descriptions::kHomepageLocationName,
flag_descriptions::kHomepageLocationDescription, kOsAndroid,
FEATURE_VALUE_TYPE(chrome::android::kHomepageLocation)},
#endif // defined(OS_ANDROID)
// NOTE: Adding a new flag requires adding a corresponding entry to enum
// "LoginCustomFlags" in tools/metrics/histograms/enums.xml. See "Flag
// Histograms" in tools/metrics/histograms/README.md (run the
......
......@@ -141,6 +141,7 @@ const base::Feature* kFeaturesExposedToJava[] = {
&kEphemeralTabUsingBottomSheet,
&kExploreSites,
&kHandleMediaIntents,
&kHomepageLocation,
&kHorizontalTabSwitcherAndroid,
&kIdentityDisc,
&kImmersiveUiMode,
......@@ -427,6 +428,11 @@ const base::Feature kExploreSites{"ExploreSites",
const base::Feature kHandleMediaIntents{"HandleMediaIntents",
base::FEATURE_ENABLED_BY_DEFAULT};
// Enable the HomePage Location feature that allows enterprise policy set and
// force the home page url for managed devices.
const base::Feature kHomepageLocation{"HomepageLocationPolicy",
base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kHorizontalTabSwitcherAndroid{
"HorizontalTabSwitcherAndroid", base::FEATURE_DISABLED_BY_DEFAULT};
......
......@@ -73,6 +73,7 @@ extern const base::Feature kEphemeralTab;
extern const base::Feature kEphemeralTabUsingBottomSheet;
extern const base::Feature kExploreSites;
extern const base::Feature kHandleMediaIntents;
extern const base::Feature kHomepageLocation;
extern const base::Feature kHorizontalTabSwitcherAndroid;
extern const base::Feature kIdentityDisc;
extern const base::Feature kImmersiveUiMode;
......
......@@ -1411,6 +1411,11 @@
"owners": [ "shivanisha" ],
"expiry_milestone": 76
},
{
"name": "enable-home-page-location-policy",
"owners": [ "wenyufu", "chrome-android-app@chromium.org" ],
"expiry_milestone": 83
},
{
"name": "enable-horizontal-tab-switcher",
"owners": [ "memex-team@google.com" ],
......
......@@ -2569,6 +2569,12 @@ const char kGamesHubName[] = "Games Hub";
const char kGamesHubDescription[] =
"Enables viewing and usage of the Games Hub.";
const char kHomepageLocationName[] =
"Enable enterprise policy HomepageLocation";
const char kHomepageLocationDescription[] =
"Enable enterprice policy HomepageLocation, a rule of configure the home "
"page URL";
const char kInterestFeedNotificationsName[] = "Interest Feed Notifications";
const char kInterestFeedNotificationsDescription[] =
"Show notifications for some suggested content from the interest feed. "
......
......@@ -1516,6 +1516,9 @@ extern const char kExploreSitesDescription[];
extern const char kGamesHubName[];
extern const char kGamesHubDescription[];
extern const char kHomepageLocationName[];
extern const char kHomepageLocationDescription[];
extern const char kInterestFeedNotificationsName[];
extern const char kInterestFeedNotificationsDescription[];
......
......@@ -37204,6 +37204,7 @@ from previous Chrome versions.
<int value="-45067971" label="NewPrintPreview:disabled"/>
<int value="-41672681" label="WebUITabStripDemoOptions:disabled"/>
<int value="-40935502" label="ContextualSuggestionsSlimPeekUI:enabled"/>
<int value="-36503306" label="HomepageLocationPolicy:enabled"/>
<int value="-35388407" label="AshNewSystemMenu:disabled"/>
<int value="-31444029" label="MediaInspectorLogging:disabled"/>
<int value="-30966385" label="enable-hardware-overlays"/>
......@@ -37816,6 +37817,7 @@ from previous Chrome versions.
<int value="752939691" label="disable-tab-for-desktop-share"/>
<int value="760542355" label="ServiceWorkerScriptFullCodeCache:enabled"/>
<int value="762700519" label="enable-checker-imaging"/>
<int value="763947368" label="HomepageLocationPolicy:disabled"/>
<int value="765306424" label="ModuleScriptsDynamicImport:disabled"/>
<int value="765803208" label="AutofillShowTypePredictions:enabled"/>
<int value="766898398" label="sampling-heap-profiler"/>
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