Add about flag for Previews coin flip
Bug: 1000431
Change-Id: I384efcd3fc30de6723bdaf777763b4bfb4291695
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1783111
Reviewed-by: Tarun Bansal <[email protected]>
Commit-Queue: Robert Ogden <[email protected]>
Cr-Commit-Position: refs/heads/master@{#692885}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 30f76f84..fb030c0 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2059,6 +2059,10 @@
flag_descriptions::kEnableResourceLoadingHintsName,
flag_descriptions::kEnableResourceLoadingHintsDescription, kOsAll,
FEATURE_VALUE_TYPE(previews::features::kResourceLoadingHints)},
+ {"enable-previews-coin-flip",
+ flag_descriptions::kEnablePreviewsCoinFlipName,
+ flag_descriptions::kEnablePreviewsCoinFlipDescription, kOsAll,
+ FEATURE_VALUE_TYPE(previews::features::kCoinFlipHoldback)},
{"allow-insecure-localhost", flag_descriptions::kAllowInsecureLocalhostName,
flag_descriptions::kAllowInsecureLocalhostDescription, kOsAll,
SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost)},
diff --git a/chrome/browser/flag-metadata.json b/chrome/browser/flag-metadata.json
index a9fe92c5..622012c 100644
--- a/chrome/browser/flag-metadata.json
+++ b/chrome/browser/flag-metadata.json
@@ -1509,6 +1509,11 @@
"expiry_milestone": 80
},
{
+ "name": "enable-previews-coin-flip",
+ "owners": [ "//components/data_reduction_proxy/OWNERS" ],
+ "expiry_milestone": 90
+ },
+ {
"name": "enable-process-sharing-with-default-site-instances",
"owners": [ "acolwell" ],
"expiry_milestone": 81
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index ffd8dcb..82c3fa6 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -670,6 +670,10 @@
"This requires enable-lite-page-server-previews to be enabled along with "
"network-service.";
+const char kEnablePreviewsCoinFlipName[] = "Enable Previews Coin Flip";
+const char kEnablePreviewsCoinFlipDescription[] =
+ "Enable coin flip experimentation of Previews.";
+
const char kBuiltInModuleAllName[] = "All experimental built-in modules";
const char kBuiltInModuleAllDescription[] =
"Enable all experimental built-in modules, as well as built-in module "
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index 1daa47b2..3c37881 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -514,6 +514,9 @@
extern const char kEnablePixelCanvasRecordingName[];
extern const char kEnablePixelCanvasRecordingDescription[];
+extern const char kEnablePreviewsCoinFlipName[];
+extern const char kEnablePreviewsCoinFlipDescription[];
+
extern const char kEnableResamplingInputEventsName[];
extern const char kEnableResamplingInputEventsDescription[];
extern const char kEnableResamplingScrollEventsName[];
diff --git a/tools/metrics/histograms/enums.xml b/tools/metrics/histograms/enums.xml
index cf85bde..0b5765b 100644
--- a/tools/metrics/histograms/enums.xml
+++ b/tools/metrics/histograms/enums.xml
@@ -35557,6 +35557,7 @@
label="OmniboxUIExperimentBlueTitlesAndGrayUrlsOnPageSuggestions:disabled"/>
<int value="-666508951" label="CrOSContainer:enabled"/>
<int value="-663476391" label="enable-pixel-canvas-recording:enabled"/>
+ <int value="-662720891" label="PreviewsCoinFlipHoldback_UKMOnly:enabled"/>
<int value="-662064703" label="MediaSessionService:enabled"/>
<int value="-661978438" label="enable-data-reduction-proxy-lo-fi"/>
<int value="-660160292" label="enable-apps-show-on-first-paint"/>
@@ -35626,6 +35627,7 @@
<int value="-561194974" label="AutofillExpandedPopupViews:enabled"/>
<int value="-560551550" label="use-memory-pressure-chromeos"/>
<int value="-560114351" label="OfflinePagesRenovations:disabled"/>
+ <int value="-558471324" label="PreviewsCoinFlipHoldback_UKMOnly:disabled"/>
<int value="-557742250" label="ContentSuggestionsCategories:disabled"/>
<int value="-548082154" label="protect-sync-credential:disabled"/>
<int value="-547301855" label="SyncPseudoUSSSupervisedUsers:enabled"/>