Skip to content

Commit

Permalink
[DTC] Add feature flag
Browse files Browse the repository at this point in the history
Bug: 1498252
Change-Id: Ic93dc0ea8ecf256467ebe4d4efe5b249af3cdfec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5018607
Auto-Submit: Wenyu Fu <wenyufu@chromium.org>
Commit-Queue: Sirisha Kavuluru <skavuluru@google.com>
Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1222649}
  • Loading branch information
fwy423 authored and Chromium LUCI CQ committed Nov 10, 2023
1 parent 7f84f03 commit 4480c7e
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chrome/browser/about_flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11235,6 +11235,12 @@ const FeatureEntry kFeatureEntries[] = {
flag_descriptions::kSyncSessionOnVisibilityChangedDescription, kOsAll,
FEATURE_VALUE_TYPE(syncer::kSyncSessionOnVisibilityChanged)},

#if BUILDFLAG(IS_ANDROID)
{"dynamic-top-chrome", flag_descriptions::kDynamicTopChromeName,
flag_descriptions::kDynamicTopChromeDescription, kOsAndroid,
FEATURE_VALUE_TYPE(chrome::android::kDynamicTopChrome)},
#endif

#if !BUILDFLAG(IS_ANDROID)
{"password-generation-strong-label-experiment",
flag_descriptions::kPasswordGenerationStrongLabelExperimentName,
Expand Down
5 changes: 5 additions & 0 deletions chrome/browser/flag-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1864,6 +1864,11 @@
"owners": ["gambard@google.com", "chromeleon@google.com"],
"expiry_milestone": 124
},
{
"name": "dynamic-top-chrome",
"owners": ["wenyufu@chromium.org", "clank-large-form-factors@google.com"],
"expiry_milestone": 126
},
{
"name": "eap-gtc-wifi-authentication",
"owners": [ "cros-connectivity@google.com" ],
Expand Down
5 changes: 5 additions & 0 deletions chrome/browser/flag_descriptions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4050,6 +4050,11 @@ const char kDrawWebEdgeToEdgeDescription[] =
"Enables the Android feature Edge-to-Edge and forces a draw ToEdge on most "
"web pages.";

const char kDynamicTopChromeName[] = "Dynamic Top Chrome";
const char kDynamicTopChromeDescription[] =
"Enables top Chrome (e.g. top toolbar) to change according to the current "
"window size.";

const char kEnableCommandLineOnNonRootedName[] =
"Enable command line on non-rooted devices";
const char kEnableCommandLineOnNoRootedDescription[] =
Expand Down
3 changes: 3 additions & 0 deletions chrome/browser/flag_descriptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -2349,6 +2349,9 @@ extern const char kDrawNativeEdgeToEdgeDescription[];
extern const char kDrawWebEdgeToEdgeName[];
extern const char kDrawWebEdgeToEdgeDescription[];

extern const char kDynamicTopChromeName[];
extern const char kDynamicTopChromeDescription[];

extern const char kEnableAndroidGamepadVibrationName[];
extern const char kEnableAndroidGamepadVibrationDescription[];

Expand Down
5 changes: 5 additions & 0 deletions chrome/browser/flags/android/chrome_feature_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ const base::Feature* const kFeaturesExposedToJava[] = {
&kDrawEdgeToEdge,
&kDrawNativeEdgeToEdge,
&kDrawWebEdgeToEdge,
&kDynamicTopChrome,
&kEarlyInitializeStartupMetrics,
&kEmptyStates,
&kExperimentsForAgsa,
Expand Down Expand Up @@ -783,6 +784,10 @@ BASE_FEATURE(kDrawWebEdgeToEdge,
"DrawWebEdgeToEdge",
base::FEATURE_DISABLED_BY_DEFAULT);

BASE_FEATURE(kDynamicTopChrome,
"DynamicTopChrome",
base::FEATURE_DISABLED_BY_DEFAULT);

BASE_FEATURE(kEarlyInitializeStartupMetrics,
"EarlyInitializeStartupMetrics",
base::FEATURE_DISABLED_BY_DEFAULT);
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/flags/android/chrome_feature_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ BASE_DECLARE_FEATURE(kDrawEdgeToEdge);
BASE_DECLARE_FEATURE(kDrawNativeEdgeToEdge);
BASE_DECLARE_FEATURE(kDrawWebEdgeToEdge);
BASE_DECLARE_FEATURE(kDragDropIntoOmnibox);
BASE_DECLARE_FEATURE(kDynamicTopChrome);
BASE_DECLARE_FEATURE(kEarlyInitializeStartupMetrics);
BASE_DECLARE_FEATURE(kEmptyStates);
BASE_DECLARE_FEATURE(kExperimentsForAgsa);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ public static Map<String, String> getFieldTrialParamsForFeature(String featureNa
public static final String DRAW_EDGE_TO_EDGE = "DrawEdgeToEdge";
public static final String DRAW_NATIVE_EDGE_TO_EDGE = "DrawNativeEdgeToEdge";
public static final String DRAW_WEB_EDGE_TO_EDGE = "DrawWebEdgeToEdge";
public static final String DYNAMIC_TOP_CHROME = "DynamicTopChrome";
public static final String EARLY_INITIALIZE_STARTUP_METRICS = "EarlyInitializeStartupMetrics";
public static final String ENABLE_PROTO_API_FOR_CLASSIFY_URL = "EnableProtoApiForClassifyUrl";
public static final String EXPERIMENTS_FOR_AGSA = "ExperimentsForAgsa";
Expand Down
2 changes: 2 additions & 0 deletions tools/metrics/histograms/enums.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43281,6 +43281,7 @@ from previous Chrome versions.
<int value="-370229772" label="RefreshFeedOnRestart:enabled"/>
<int value="-369565225" label="SkipServiceWorkerCheckInstallOnly:disabled"/>
<int value="-369150124" label="SendTabToSelfV2:enabled"/>
<int value="-368811558" label="DynamicTopChrome:enabled"/>
<int value="-368106169"
label="CrOSLateBootCrasSplitAlsaUSBInternal:disabled"/>
<int value="-367474066" label="DialogTouchBar:enabled"/>
Expand Down Expand Up @@ -45782,6 +45783,7 @@ from previous Chrome versions.
<int value="824961931" label="use-simple-cache-backend"/>
<int value="824968180" label="SimLockPolicy:enabled"/>
<int value="828092263" label="TemporaryUnexpireFlagsM78:enabled"/>
<int value="828678083" label="DynamicTopChrome:disabled"/>
<int value="830282555" label="DecodeJpeg420ImagesToYUV:enabled"/>
<int value="830354646" label="SecondaryGoogleAccountUsage:disabled"/>
<int value="832142463" label="WebAssemblyStreaming:enabled"/>
Expand Down

0 comments on commit 4480c7e

Please sign in to comment.