Skip to content

Commit

Permalink
[launcher] Remove unused flags for suggested files.
Browse files Browse the repository at this point in the history
These flags are no longer used, and are not enabled by any Finch config.

Change-Id: I4f9fc069f8fff6b7707884bae4252b739f5b54ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3783303
Reviewed-by: Amanda Deacon <amandadeacon@chromium.org>
Reviewed-by: Toni Barzic <tbarzic@chromium.org>
Commit-Queue: Rachel Wong <wrong@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1028507}
  • Loading branch information
Rachel Wong authored and Chromium LUCI CQ committed Jul 26, 2022
1 parent c90856b commit 90da85c
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 59 deletions.
12 changes: 0 additions & 12 deletions ash/public/cpp/app_list/app_list_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ const base::Feature kEnableZeroStateMixedTypesRanker{
"EnableZeroStateMixedTypesRanker", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kEnableAppReinstallZeroState{
"EnableAppReinstallZeroState", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kEnableSuggestedFiles{"EnableSuggestedFiles",
base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kEnableSuggestedLocalFiles{
"EnableSuggestedLocalFiles", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kEnableAppListLaunchRecording{
"EnableAppListLaunchRecording", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kLauncherSettingsSearch{"LauncherSettingsSearch",
Expand Down Expand Up @@ -63,14 +59,6 @@ bool IsAppReinstallZeroStateEnabled() {
return base::FeatureList::IsEnabled(kEnableAppReinstallZeroState);
}

bool IsSuggestedFilesEnabled() {
return base::FeatureList::IsEnabled(kEnableSuggestedFiles);
}

bool IsSuggestedLocalFilesEnabled() {
return base::FeatureList::IsEnabled(kEnableSuggestedLocalFiles);
}

bool IsLauncherSettingsSearchEnabled() {
return base::FeatureList::IsEnabled(kLauncherSettingsSearch);
}
Expand Down
8 changes: 0 additions & 8 deletions ash/public/cpp/app_list/app_list_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ ASH_PUBLIC_EXPORT extern const base::Feature kEnableZeroStateMixedTypesRanker;
// zero-state.
ASH_PUBLIC_EXPORT extern const base::Feature kEnableAppReinstallZeroState;

// Enables Drive file suggestions in the suggestion chips.
ASH_PUBLIC_EXPORT extern const base::Feature kEnableSuggestedFiles;

// Enables local file suggestions in the suggestion chips.
ASH_PUBLIC_EXPORT extern const base::Feature kEnableSuggestedLocalFiles;

// Enables hashed recording of a app list launches.
ASH_PUBLIC_EXPORT extern const base::Feature kEnableAppListLaunchRecording;

Expand Down Expand Up @@ -83,8 +77,6 @@ ASH_PUBLIC_EXPORT bool IsZeroStateAppsRankerEnabled();
ASH_PUBLIC_EXPORT bool IsQueryBasedMixedTypesRankerEnabled();
ASH_PUBLIC_EXPORT bool IsZeroStateMixedTypesRankerEnabled();
ASH_PUBLIC_EXPORT bool IsAppReinstallZeroStateEnabled();
ASH_PUBLIC_EXPORT bool IsSuggestedFilesEnabled();
ASH_PUBLIC_EXPORT bool IsSuggestedLocalFilesEnabled();
ASH_PUBLIC_EXPORT bool IsAppListLaunchRecordingEnabled();
ASH_PUBLIC_EXPORT bool IsFuzzyAppSearchEnabled();
ASH_PUBLIC_EXPORT bool IsExactMatchForNonLatinLocaleEnabled();
Expand Down
11 changes: 0 additions & 11 deletions chrome/browser/about_flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6795,17 +6795,6 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(feature_engagement::kEnableIPH)},
#endif // BUILDFLAG(IS_ANDROID)

#if BUILDFLAG(IS_CHROMEOS_ASH)
{"enable-suggested-files", flag_descriptions::kEnableSuggestedFilesName,
flag_descriptions::kEnableSuggestedFilesDescription, kOsCrOS,
FEATURE_VALUE_TYPE(app_list_features::kEnableSuggestedFiles)},

{"enable-suggested-local-files",
flag_descriptions::kEnableSuggestedLocalFilesName,
flag_descriptions::kEnableSuggestedLocalFilesDescription, kOsCrOS,
FEATURE_VALUE_TYPE(app_list_features::kEnableSuggestedLocalFiles)},
#endif // BUILDFLAG(IS_CHROMEOS_ASH)

{"autofill-always-return-cloud-tokenized-card",
flag_descriptions::kAutofillAlwaysReturnCloudTokenizedCardName,
flag_descriptions::kAutofillAlwaysReturnCloudTokenizedCardDescription,
Expand Down
10 changes: 0 additions & 10 deletions chrome/browser/flag-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2856,16 +2856,6 @@
"owners": [ "jarrydg", "chrome-owp-storage@google.com" ],
"expiry_milestone": 89
},
{
"name": "enable-suggested-files",
"owners": [ "wrong", "tby" ],
"expiry_milestone": 100
},
{
"name": "enable-suggested-local-files",
"owners": [ "tby", "wrong" ],
"expiry_milestone": 100
},
{
"name": "enable-suggestions-with-substring-match",
"owners": [ "autofill-squad-muc@google.com" ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ ItemSuggestCache::ItemSuggestCache(
: made_request_(false),
enabled_(kEnabled.Get()),
server_url_(kServerUrl.Get()),
multiple_queries_per_session_(
app_list_features::IsSuggestedFilesEnabled() ||
kMultipleQueriesPerSession.Get()),
multiple_queries_per_session_(kMultipleQueriesPerSession.Get()),
on_results_updated_(on_results_updated),
profile_(profile),
url_loader_factory_(std::move(url_loader_factory)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ TEST_P(ZeroStateFileProviderTest, NoResultsWithQuery) {
}

TEST_P(ZeroStateFileProviderTest, ResultsProvided) {
// Disable flag.
base::test::ScopedFeatureList scoped_feature_list;
scoped_feature_list.InitWithFeatures(
{}, {app_list_features::kEnableSuggestedLocalFiles});

WriteFile("exists_1.txt");
WriteFile("exists_2.png");
WriteFile("exists_3.pdf");
Expand All @@ -137,11 +132,6 @@ TEST_P(ZeroStateFileProviderTest, ResultsProvided) {
}

TEST_P(ZeroStateFileProviderTest, OldFilesNotReturned) {
// Disable flag.
base::test::ScopedFeatureList scoped_feature_list;
scoped_feature_list.InitWithFeatures(
{}, {app_list_features::kEnableSuggestedLocalFiles});

WriteFile("new.txt");
WriteFile("old.png");
auto now = base::Time::Now();
Expand Down
5 changes: 0 additions & 5 deletions chrome/browser/ui/app_list/search/mixer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@ Mixer::~Mixer() = default;
void Mixer::InitializeRankers(Profile* profile) {
search_result_ranker_ = std::make_unique<SearchResultRanker>(profile);
search_result_ranker_->InitializeRankers();

if (app_list_features::IsSuggestedFilesEnabled() ||
app_list_features::IsSuggestedLocalFilesEnabled()) {
chip_ranker_ = std::make_unique<ChipRanker>(profile);
}
}

size_t Mixer::AddGroup(size_t max_results) {
Expand Down

0 comments on commit 90da85c

Please sign in to comment.