diff options
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch')
| -rw-r--r-- | www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch deleted file mode 100644 index 9f9df17..0000000 --- a/www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | --- components/flags_ui/flags_state.cc.orig | ||
| 2 | +++ components/flags_ui/flags_state.cc | ||
| 3 | @@ -22,6 +22,7 @@ | ||
| 4 | #include "base/values.h" | ||
| 5 | #include "build/build_config.h" | ||
| 6 | #include "build/chromeos_buildflags.h" | ||
| 7 | +#include "chrome/browser/unexpire_flags.h" | ||
| 8 | #include "components/flags_ui/feature_entry.h" | ||
| 9 | #include "components/flags_ui/flags_storage.h" | ||
| 10 | #include "components/flags_ui/flags_ui_switches.h" | ||
| 11 | @@ -577,14 +578,18 @@ void FlagsState::GetFlagFeatureEntries( | ||
| 12 | int current_platform = GetCurrentPlatform(); | ||
| 13 | |||
| 14 | for (const FeatureEntry& entry : feature_entries_) { | ||
| 15 | + std::string desc = entry.visible_description; | ||
| 16 | if (skip_feature_entry.Run(entry)) | ||
| 17 | + if (flags::IsFlagExpired(flags_storage, entry.internal_name)) | ||
| 18 | + desc.insert(0, "!!! NOTE: THIS FLAG IS EXPIRED AND MAY STOP FUNCTIONING OR BE REMOVED SOON !!! "); | ||
| 19 | + else | ||
| 20 | continue; | ||
| 21 | |||
| 22 | base::Value data(base::Value::Type::DICTIONARY); | ||
| 23 | data.SetStringKey("internal_name", entry.internal_name); | ||
| 24 | data.SetStringKey("name", base::StringPiece(entry.visible_name)); | ||
| 25 | data.SetStringKey("description", | ||
| 26 | - base::StringPiece(entry.visible_description)); | ||
| 27 | + base::StringPiece(desc)); | ||
| 28 | |||
| 29 | base::Value supported_platforms(base::Value::Type::LIST); | ||
| 30 | AddOsStrings(entry.supported_platforms, &supported_platforms); | ||
| 31 | @@ -901,6 +906,7 @@ bool FlagsState::IsSupportedFeature(cons | ||
| 32 | if (!entry.InternalNameMatches(name)) | ||
| 33 | continue; | ||
| 34 | if (delegate_ && delegate_->ShouldExcludeFlag(storage, entry)) | ||
| 35 | + if (!flags::IsFlagExpired(storage, entry.internal_name)) | ||
| 36 | continue; | ||
| 37 | return true; | ||
| 38 | } | ||
