Commit 37a985d7 authored by Ian Clelland's avatar Ian Clelland Committed by Commit Bot

Add a chrome://flags entry for experimental productivity features

Bug: 837344
Change-Id: Ie1367ed1c12c714bad4d6aa28aa989b2a712c309
Reviewed-on: https://chromium-review.googlesource.com/1030841
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555968}
parent 409a7961
...@@ -3897,6 +3897,10 @@ const FeatureEntry kFeatureEntries[] = { ...@@ -3897,6 +3897,10 @@ const FeatureEntry kFeatureEntries[] = {
{"enable-sync-uss-sessions", flag_descriptions::kEnableSyncUSSSessionsName, {"enable-sync-uss-sessions", flag_descriptions::kEnableSyncUSSSessionsName,
flag_descriptions::kEnableSyncUSSSessionsDescription, kOsAll, flag_descriptions::kEnableSyncUSSSessionsDescription, kOsAll,
FEATURE_VALUE_TYPE(switches::kSyncUSSSessions)}, FEATURE_VALUE_TYPE(switches::kSyncUSSSessions)},
{"enable-experimental-productivity-features",
flag_descriptions::kExperimentalProductivityFeaturesName,
flag_descriptions::kExperimentalProductivityFeaturesDescription, kOsAll,
FEATURE_VALUE_TYPE(features::kExperimentalProductivityFeatures)},
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
{"enable-overview-swipe-to-close", {"enable-overview-swipe-to-close",
......
...@@ -707,6 +707,12 @@ const char kExperimentalKeyboardLockUiDescription[] = ...@@ -707,6 +707,12 @@ const char kExperimentalKeyboardLockUiDescription[] =
"An experimental full screen with keyboard lock mode requiring users to " "An experimental full screen with keyboard lock mode requiring users to "
"hold Esc to exit."; "hold Esc to exit.";
const char kExperimentalProductivityFeaturesName[] =
"Experimental Productivity Features";
const char kExperimentalProductivityFeaturesDescription[] =
"Enable support for experimental developer productivity features, such as "
"Layered APIs and policies for avoiding slow rendering.";
const char kExperimentalSecurityFeaturesName[] = const char kExperimentalSecurityFeaturesName[] =
"Potentially annoying security features"; "Potentially annoying security features";
const char kExperimentalSecurityFeaturesDescription[] = const char kExperimentalSecurityFeaturesDescription[] =
......
...@@ -455,6 +455,9 @@ extern const char kExperimentalFullscreenExitUIDescription[]; ...@@ -455,6 +455,9 @@ extern const char kExperimentalFullscreenExitUIDescription[];
extern const char kExperimentalKeyboardLockUiName[]; extern const char kExperimentalKeyboardLockUiName[];
extern const char kExperimentalKeyboardLockUiDescription[]; extern const char kExperimentalKeyboardLockUiDescription[];
extern const char kExperimentalProductivityFeaturesName[];
extern const char kExperimentalProductivityFeaturesDescription[];
extern const char kExperimentalSecurityFeaturesName[]; extern const char kExperimentalSecurityFeaturesName[];
extern const char kExperimentalSecurityFeaturesDescription[]; extern const char kExperimentalSecurityFeaturesDescription[];
......
...@@ -440,6 +440,11 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( ...@@ -440,6 +440,11 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
WebRuntimeFeatures::EnableOffMainThreadWebSocket( WebRuntimeFeatures::EnableOffMainThreadWebSocket(
base::FeatureList::IsEnabled(features::kOffMainThreadWebSocket)); base::FeatureList::IsEnabled(features::kOffMainThreadWebSocket));
if (base::FeatureList::IsEnabled(
features::kExperimentalProductivityFeatures)) {
WebRuntimeFeatures::EnableExperimentalProductivityFeatures(true);
}
// End individual features. // End individual features.
// Do not add individual features below this line. // Do not add individual features below this line.
......
...@@ -499,6 +499,10 @@ const base::Feature kWebAuthCtap2{"WebAuthenticationCtap2", ...@@ -499,6 +499,10 @@ const base::Feature kWebAuthCtap2{"WebAuthenticationCtap2",
const base::Feature kWebGLImageChromium{"WebGLImageChromium", const base::Feature kWebGLImageChromium{"WebGLImageChromium",
base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
// Enable experimental policy-controlled features and LAPIs
const base::Feature kExperimentalProductivityFeatures{
"ExperimentalProductivityFeatures", base::FEATURE_DISABLED_BY_DEFAULT};
// The JavaScript API for payments on the web. // The JavaScript API for payments on the web.
const base::Feature kWebPayments{"WebPayments", const base::Feature kWebPayments{"WebPayments",
base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
......
...@@ -34,6 +34,7 @@ CONTENT_EXPORT extern const base::Feature kCompositorTouchAction; ...@@ -34,6 +34,7 @@ CONTENT_EXPORT extern const base::Feature kCompositorTouchAction;
CONTENT_EXPORT extern const base::Feature kCrossSiteDocumentBlockingAlways; CONTENT_EXPORT extern const base::Feature kCrossSiteDocumentBlockingAlways;
CONTENT_EXPORT extern const base::Feature kCrossSiteDocumentBlockingIfIsolating; CONTENT_EXPORT extern const base::Feature kCrossSiteDocumentBlockingIfIsolating;
CONTENT_EXPORT extern const base::Feature kDataSaverHoldback; CONTENT_EXPORT extern const base::Feature kDataSaverHoldback;
CONTENT_EXPORT extern const base::Feature kExperimentalProductivityFeatures;
CONTENT_EXPORT extern const base::Feature kExpensiveBackgroundTimerThrottling; CONTENT_EXPORT extern const base::Feature kExpensiveBackgroundTimerThrottling;
CONTENT_EXPORT extern const base::Feature kExtendedMouseButtons; CONTENT_EXPORT extern const base::Feature kExtendedMouseButtons;
CONTENT_EXPORT extern const base::Feature kFontCacheScaling; CONTENT_EXPORT extern const base::Feature kFontCacheScaling;
......
...@@ -188,6 +188,8 @@ class WebRuntimeFeatures { ...@@ -188,6 +188,8 @@ class WebRuntimeFeatures {
BLINK_PLATFORM_EXPORT static void EnableUnifiedTouchAdjustment(bool); BLINK_PLATFORM_EXPORT static void EnableUnifiedTouchAdjustment(bool);
BLINK_PLATFORM_EXPORT static void EnableMojoBlobURLs(bool); BLINK_PLATFORM_EXPORT static void EnableMojoBlobURLs(bool);
BLINK_PLATFORM_EXPORT static void EnableOffMainThreadWebSocket(bool); BLINK_PLATFORM_EXPORT static void EnableOffMainThreadWebSocket(bool);
BLINK_PLATFORM_EXPORT static void EnableExperimentalProductivityFeatures(
bool);
private: private:
WebRuntimeFeatures(); WebRuntimeFeatures();
......
...@@ -516,4 +516,8 @@ void WebRuntimeFeatures::EnableOffMainThreadWebSocket(bool enable) { ...@@ -516,4 +516,8 @@ void WebRuntimeFeatures::EnableOffMainThreadWebSocket(bool enable) {
RuntimeEnabledFeatures::SetOffMainThreadWebSocketEnabled(enable); RuntimeEnabledFeatures::SetOffMainThreadWebSocketEnabled(enable);
} }
void WebRuntimeFeatures::EnableExperimentalProductivityFeatures(bool enable) {
RuntimeEnabledFeatures::SetExperimentalProductivityFeaturesEnabled(enable);
}
} // namespace blink } // namespace blink
...@@ -26291,6 +26291,7 @@ from previous Chrome versions. ...@@ -26291,6 +26291,7 @@ from previous Chrome versions.
<int value="-2119827860" label="ash-disable-maximize-mode-window-backdrop"/> <int value="-2119827860" label="ash-disable-maximize-mode-window-backdrop"/>
<int value="-2119530966" label="enable-webrtc-dtls12"/> <int value="-2119530966" label="enable-webrtc-dtls12"/>
<int value="-2119493239" label="enable-app-info-dialog-mac"/> <int value="-2119493239" label="enable-app-info-dialog-mac"/>
<int value="-2117621241" label="ExperimentalProductivityFeatures:enabled"/>
<int value="-2117201726" label="disable-gpu-rasterization"/> <int value="-2117201726" label="disable-gpu-rasterization"/>
<int value="-2114831248" label="disable-new-ntp"/> <int value="-2114831248" label="disable-new-ntp"/>
<int value="-2113705745" <int value="-2113705745"
...@@ -26521,6 +26522,7 @@ from previous Chrome versions. ...@@ -26521,6 +26522,7 @@ from previous Chrome versions.
<int value="-1653838003" label="PauseBackgroundTabs:enabled"/> <int value="-1653838003" label="PauseBackgroundTabs:enabled"/>
<int value="-1649778035" label="disable-clear-browsing-data-counters"/> <int value="-1649778035" label="disable-clear-browsing-data-counters"/>
<int value="-1648216169" label="NewOmniboxAnswerTypes:disabled"/> <int value="-1648216169" label="NewOmniboxAnswerTypes:disabled"/>
<int value="-1638815914" label="enable-experimental-productivity-features"/>
<int value="-1634878515" label="ChromeHomeModernLayout:enabled"/> <int value="-1634878515" label="ChromeHomeModernLayout:enabled"/>
<int value="-1634154256" label="ZeroSuggestRedirectToChrome:enabled"/> <int value="-1634154256" label="ZeroSuggestRedirectToChrome:enabled"/>
<int value="-1633586675" label="TabModalJsDialog:enabled"/> <int value="-1633586675" label="TabModalJsDialog:enabled"/>
...@@ -26942,6 +26944,7 @@ from previous Chrome versions. ...@@ -26942,6 +26944,7 @@ from previous Chrome versions.
<int value="-738957187" label="OmniboxUIExperimentSwapTitleAndUrl:disabled"/> <int value="-738957187" label="OmniboxUIExperimentSwapTitleAndUrl:disabled"/>
<int value="-723224470" label="enable-password-force-saving:enabled"/> <int value="-723224470" label="enable-password-force-saving:enabled"/>
<int value="-722474177" label="browser-side-navigation:disabled"/> <int value="-722474177" label="browser-side-navigation:disabled"/>
<int value="-719147284" label="ExperimentalProductivityFeatures:disabled"/>
<int value="-718884399" label="NewTabPageUIMd:enabled"/> <int value="-718884399" label="NewTabPageUIMd:enabled"/>
<int value="-718626298" label="SysInternals:enabled"/> <int value="-718626298" label="SysInternals:enabled"/>
<int value="-716953514" label="disable-password-separated-signin-flow"/> <int value="-716953514" label="disable-password-separated-signin-flow"/>
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