Update flags_state.cc

This commit is contained in:
Alexander David Frick 2022-07-18 01:05:21 -05:00 committed by GitHub
parent 09c68da2f3
commit 0deed4a3a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -596,9 +596,6 @@ 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;
@ -984,7 +981,6 @@ bool FlagsState::IsSupportedFeature(const FlagsStorage* storage,
if (!entry.InternalNameMatches(name))
continue;
if (delegate_ && delegate_->ShouldExcludeFlag(storage, entry))
if (!flags::IsFlagExpired(storage, entry.internal_name))
continue;
return true;
}