Commit f6c0a18e authored by tby's avatar tby Committed by Commit Bot

[Cros SR] Reconfigure experiment flags for M78

Our app ranking experiments are changing in M78 and so this CL renames
a flag to represent what we're doing. Once some legacy code is cleaned
up, the EnableZeroStateAppsRanker flag will also be removed.

Bug: 989350
Change-Id: Ia555a00accb10d97f75403784364d610047ffe02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1732655Reviewed-by: default avatarSteven Holte <holte@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Tony Yeoman <tby@chromium.org>
Cr-Commit-Position: refs/heads/master@{#685435}
parent 90a6203d
......@@ -25,8 +25,8 @@ const base::Feature kEnableZeroStateSuggestions{
"EnableZeroStateSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kEnableAppListSearchAutocomplete{
"EnableAppListSearchAutocomplete", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kEnableQueryBasedAppsRanker{
"EnableQueryBasedAppsRanker", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kEnableAppRanker{"EnableAppRanker",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kEnableZeroStateAppsRanker{
"EnableZeroStateAppsRanker", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kEnableQueryBasedMixedTypesRanker{
......@@ -76,8 +76,8 @@ bool IsAppListSearchAutocompleteEnabled() {
return base::FeatureList::IsEnabled(kEnableAppListSearchAutocomplete);
}
bool IsQueryBasedAppsRankerEnabled() {
return base::FeatureList::IsEnabled(kEnableQueryBasedAppsRanker);
bool IsAppRankerEnabled() {
return base::FeatureList::IsEnabled(kEnableAppRanker);
}
bool IsZeroStateAppsRankerEnabled() {
......
......@@ -41,10 +41,13 @@ ASH_PUBLIC_EXPORT extern const base::Feature kEnableZeroStateSuggestions;
// Enables the feature to autocomplete text typed in the AppList search box.
ASH_PUBLIC_EXPORT extern const base::Feature kEnableAppListSearchAutocomplete;
// Enable an model that ranks query based apps search result.
ASH_PUBLIC_EXPORT extern const base::Feature kEnableQueryBasedAppsRanker;
// Enable app ranking models.
ASH_PUBLIC_EXPORT extern const base::Feature kEnableAppRanker;
// Enable an model that ranks zero-state apps search result.
// TODO(crbug.com/989350): This flag can be removed once the
// AppSearchResultRanker is removed. Same with the
// AppSearchResultRankerPredictorName.
ASH_PUBLIC_EXPORT extern const base::Feature kEnableZeroStateAppsRanker;
// Enable an model that ranks query based non-apps result.
......@@ -75,7 +78,7 @@ bool ASH_PUBLIC_EXPORT IsAppDataSearchEnabled();
bool ASH_PUBLIC_EXPORT IsSettingsShortcutSearchEnabled();
bool ASH_PUBLIC_EXPORT IsZeroStateSuggestionsEnabled();
bool ASH_PUBLIC_EXPORT IsAppListSearchAutocompleteEnabled();
bool ASH_PUBLIC_EXPORT IsQueryBasedAppsRankerEnabled();
bool ASH_PUBLIC_EXPORT IsAppRankerEnabled();
bool ASH_PUBLIC_EXPORT IsZeroStateAppsRankerEnabled();
bool ASH_PUBLIC_EXPORT IsQueryBasedMixedTypesRankerEnabled();
bool ASH_PUBLIC_EXPORT IsZeroStateMixedTypesRankerEnabled();
......
......@@ -504,6 +504,21 @@
]
}
],
"AppListAppRanker": [
{
"platforms": [
"chromeos"
],
"experiments": [
{
"name": "AppListAppRanker",
"enable_features": [
"EnableAppRanker"
]
}
]
}
],
"AppListLaunchRecorder": [
{
"platforms": [
......
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