Files
helium/patches/core/ungoogled-chromium/disable-mei-preload.patch
2025-03-03 07:36:20 -06:00

40 lines
1.5 KiB
Diff

# Disables use of a binary for preloading the Media Engagement index
# Said binary is: chrome/browser/resources/media/mei_preload/preloaded_data.pb
# According to media/base/media_switches (for PreloadMediaEngagementData), it
# "enables a list of origins to be considered as having a high MEI until there
# is enough local data to determine the user's preferred behavior." This feature
# does not seem to outweigh the benefit of removing the binary, thus this patch.
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -368,7 +368,6 @@ if (!is_android && !is_mac) {
}
data_deps += [
- "//chrome/browser/resources/media/mei_preload:component",
"//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component",
"//third_party/widevine/cdm",
]
@@ -1198,7 +1197,6 @@ if (is_win) {
":optimization_guide_library",
":swiftshader_binaries",
":widevine_cdm_library",
- "//chrome/browser/resources/media/mei_preload:component_bundle",
"//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component_bundle",
]
--- a/chrome/browser/resources/BUILD.gn
+++ b/chrome/browser/resources/BUILD.gn
@@ -87,11 +87,6 @@ group("resources") {
public_deps += [ "accessibility:reading_mode_gdocs_extension_resources" ]
}
- if (is_mac) {
- public_deps += [
- "//chrome/browser/resources/media/mei_preload:component",
- ]
- }
if (is_win || is_mac || is_linux || is_chromeos_ash) {
public_deps += [ "connectors_internals:resources" ]