download Android PGO profiles, and better expired flags description

This commit is contained in:
Alexander Frick 2024-04-23 23:04:24 -05:00
parent 38d43d94ef
commit f1ea4c1042
2 changed files with 9 additions and 0 deletions

View file

@ -215,6 +215,12 @@ copyAndroid () {
rm -v -f ${CR_SRC_DIR}/chrome/android/java/res_chromium_base/mipmap-xxhdpi/layered_app_icon_background.png &&
#rm -v -f ${CR_SRC_DIR}/chrome/android/java/res_chromium_base/mipmap-xxhdpi/layered_app_icon.png &&
#./infra/fix_libaom.sh &&
printf "\n" &&
printf "${YEL}Downloading PGO profiles...${c0}\n" &&
cd ${CR_SRC_DIR} &&
python3 tools/update_pgo_profiles.py --target=android-arm64 update --gs-url-base=chromium-optimization-profiles/pgo_profiles &&
python3 tools/update_pgo_profiles.py --target=android-arm32 update --gs-url-base=chromium-optimization-profiles/pgo_profiles &&
cd ~/thorium &&
printf "\n"
}
case $1 in

View file

@ -658,6 +658,9 @@ void FlagsState::GetFlagFeatureEntries(
for (const FeatureEntry& entry : feature_entries_) {
std::string desc = entry.visible_description;
if (skip_feature_entry.Run(entry))
if (flags::IsFlagExpired(flags_storage, entry.internal_name))
desc.insert(0, " NOTE: THIS FLAG IS EXPIRED AND MAY STOP FUNCTIONING OR BE REMOVED SOON!");
else
continue;
base::Value::Dict data;