Skip to content

Commit

Permalink
Almanac: Enable the migration flag by default
Browse files Browse the repository at this point in the history
The migration is code-complete and launch-approved so we can turn on the
flag by default.

Bug: b/296157719
Change-Id: I6db7ca5a5281997876c86f8e10e8f6fb4d606f4c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4935738
Reviewed-by: Tim Sergeant <tsergeant@chromium.org>
Auto-Submit: Elitsa Bankova <elitsa@google.com>
Commit-Queue: Tim Sergeant <tsergeant@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1209970}
  • Loading branch information
Elitsa Bankova authored and Chromium LUCI CQ committed Oct 16, 2023
1 parent d12453e commit c82bb11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion chrome/browser/apps/app_discovery_service/almanac_fetcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,12 @@ base::CallbackListSubscription AlmanacFetcher::RegisterForAppUpdates(
void AlmanacFetcher::GetIcon(const std::string& app_id,
int32_t size_hint_in_dip,
GetIconCallback callback) {
if (!icon_cache_) {
// Do not use the icon cache if the environment isn't setup correctly.
if (!icon_cache_ || !(google_apis::IsGoogleChromeAPIKeyUsed() ||
skip_api_key_check_for_testing)) {
std::move(callback).Run(gfx::ImageSkia(),
DiscoveryError::kErrorRequestFailed);
return;
}
// We ignore the size as it's hard-coded to kAppIconDimension in:
// //chrome/browser/ash/app_list/search/common/icon_constants.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace apps {

BASE_FEATURE(kAlmanacGameMigration,
"AlmanacGameMigration",
base::FEATURE_DISABLED_BY_DEFAULT);
base::FEATURE_ENABLED_BY_DEFAULT);

AppDiscoveryService::AppDiscoveryService(Profile* profile)
: app_fetcher_manager_(std::make_unique<AppFetcherManager>(profile)) {}
Expand Down

0 comments on commit c82bb11

Please sign in to comment.