aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Nagy <rnagy@FreeBSD.org>2024-05-23 20:21:23 +0000
committerRobert Nagy <rnagy@FreeBSD.org>2024-05-24 03:47:31 +0000
commitb4d0a174c529e8061d838aafba1721cc317af01f (patch)
treea507ae5838af332e8736db9286ecb60bb95f2990
parent03e0c01eb9f8ff98276157fb8537b8bd06e48980 (diff)
downloadports-b4d0a174c529e8061d838aafba1721cc317af01f.tar.gz
ports-b4d0a174c529e8061d838aafba1721cc317af01f.zip
www/ungoogled-chromium: update to 125.0.6422.76 and implement selectable audio backend support
with these changes, chromium now automatically selects which audio backend to use in the following order: pulse (if running) -> sndio -> alsa -> fake an additional command line option has been also implemented so that the user can force which backend to use: --audio-backend={auto,sndio,pulse,alsa} Security: https://vuxml.freebsd.org/freebsd/8247af0d-183b-11ef-9f97-a8a1599412c6.html
-rw-r--r--www/ungoogled-chromium/Makefile44
-rw-r--r--www/ungoogled-chromium/distinfo14
-rw-r--r--www/ungoogled-chromium/files/patch-BUILD.gn20
-rw-r--r--www/ungoogled-chromium/files/patch-base_BUILD.gn22
-rw-r--r--www/ungoogled-chromium/files/patch-base_allocator_dispatcher_tls.h4
-rw-r--r--www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.gni4
-rw-r--r--www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_address__space__randomization.h10
-rw-r--r--www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__config.h6
-rw-r--r--www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__constants.h4
-rw-r--r--www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__root.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_stack_stack.cc (renamed from www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_starscan_stack_stack.cc)4
-rw-r--r--www/ungoogled-chromium/files/patch-base_debug_stack__trace.cc18
-rw-r--r--www/ungoogled-chromium/files/patch-base_features.cc20
-rw-r--r--www/ungoogled-chromium/files/patch-base_files_file__util__posix.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-base_files_file__util__unittest.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-base_linux__util.cc12
-rw-r--r--www/ungoogled-chromium/files/patch-base_process_internal__linux.h6
-rw-r--r--www/ungoogled-chromium/files/patch-base_process_process__metrics.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-base_process_process__metrics.h24
-rw-r--r--www/ungoogled-chromium/files/patch-base_process_process__metrics__freebsd.cc25
-rw-r--r--www/ungoogled-chromium/files/patch-base_process_process__metrics__openbsd.cc38
-rw-r--r--www/ungoogled-chromium/files/patch-base_process_process__metrics__unittest.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-base_process_process__posix.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-base_profiler_stack__sampling__profiler__unittest.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-base_strings_safe__sprintf__unittest.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-base_synchronization_lock__impl.h6
-rw-r--r--www/ungoogled-chromium/files/patch-base_system_sys__info.h6
-rw-r--r--www/ungoogled-chromium/files/patch-base_threading_platform__thread__posix.cc19
-rw-r--r--www/ungoogled-chromium/files/patch-base_threading_platform__thread__unittest.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-build_config_BUILDCONFIG.gn8
-rw-r--r--www/ungoogled-chromium/files/patch-build_config_clang_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-build_config_compiler_BUILD.gn30
-rw-r--r--www/ungoogled-chromium/files/patch-build_config_rust.gni4
-rw-r--r--www/ungoogled-chromium/files/patch-build_toolchain_gcc__toolchain.gni4
-rw-r--r--www/ungoogled-chromium/files/patch-cc_BUILD.gn6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_app_chrome__main__delegate.cc58
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_about__flags.cc75
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_accessibility_pdf__ocr__controller.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_autocomplete_chrome__autocomplete__scheme__classifier.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_browser__features.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__interface__binders.cc23
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main__extra__parts__linux.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.cc38
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_component__updater_widevine__cdm__component__installer.cc21
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_devtools_BUILD.gn10
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_download_download__commands.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_download_download__item__model.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_enterprise_connectors_connectors__service.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_enterprise_watermark_watermark__view.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_extensions_BUILD.gn12
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_enterprise__reporting__private_enterprise__reporting__private__api.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_management_chrome__management__api__delegate.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_passwords__private_passwords__private__delegate__impl.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_webstore__private_webstore__private__api.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.cc33
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.h31
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__log__uploader.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__logging__controller.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc20
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_metrics_perf_cpu__identity.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_metrics_power_process__monitor.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_new__tab__page_modules_file__suggestion_drive__service.cc (renamed from www/ungoogled-chromium/files/patch-chrome_browser_new__tab__page_modules_drive_drive__service.cc)4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc52
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_prefs_browser__prefs.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_prefs_pref__service__incognito__allowlist.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_printing_print__backend__service__manager.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc20
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_profiles_profile__impl.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_safe__browsing_cloud__content__scanning_binary__upload__service.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_search__engine__choice_search__engine__choice__service__factory.cc20
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_sharing_sharing__handler__registry__impl.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_supervised__user_supervised__user__extensions__manager.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_sync_chrome__sync__client.cc30
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__factory.cc16
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__util.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.h14
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_browser.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__command__controller.cc12
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__ui__prefs.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_passwords_manage__passwords__ui__controller.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_signin_signin__view__controller.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_bad__flags__prompt.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_startup__browser__creator.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_tab__helpers.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_task__manager_task__manager__table__model.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_test_test__browser__ui.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_chrome__views__delegate__linux.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_omnibox_omnibox__view__views.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_profile__menu__view__base.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tab__search__bubble__host.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__drag__controller.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__hover__card__bubble__view.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_user__education_browser__user__education__service.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_views_web__apps_web__app__integration__test__driver.cc34
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_web__applications_web__app__ui__manager__impl.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_app__home_app__home__page__handler.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_connectors__internals_device__trust__utils.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_management_management__ui__handler.cc12
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_searchbox_searchbox__handler.cc29
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc25
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_ui_window__sizer_window__sizer.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_web__applications_commands_install__app__locally__command.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_web__applications_extensions_extension__status__utils.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_web__applications_os__integration_os__integration__test__override.h12
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_web__applications_policy_web__app__policy__manager.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.cc76
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.h20
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_browser_webauthn_chrome__authenticator__request__delegate.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_chrome__features.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_chrome__features.h12
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_chrome__paths.cc12
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_media_cdm__registration.cc31
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_media_cdm__registration.h11
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_media_component__widevine__cdm__hint__file__linux.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_pref__names.h24
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_url__constants.h4
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.cc12
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.h8
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_renderer_chrome__render__frame__observer.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-chrome_utility_services.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-chromecast_browser_cast__browser__main__parts.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-chromecast_browser_cast__content__browser__client.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_autofill_core_browser_payments__data__manager.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-components_autofill_core_browser_personal__data__manager.cc12
-rw-r--r--www/ungoogled-chromium/files/patch-components_autofill_core_common_autofill__payments__features.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_commerce_core_commerce__feature__list.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_device__signals_core_browser_user__permission__service__impl.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__configurations.cc24
-rw-r--r--www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.cc19
-rw-r--r--www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.h6
-rw-r--r--www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.h20
-rw-r--r--www/ungoogled-chromium/files/patch-components_gwp__asan_client_gwp__asan.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_live__caption_caption__util.cc13
-rw-r--r--www/ungoogled-chromium/files/patch-components_metrics_metrics__log.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-components_optimization__guide_core_optimization__guide__util.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_os__crypt_sync_libsecret__util__linux.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.h4
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__form__manager.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__manager.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__manager__client.h20
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__store_login__database__async__helper.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_browser_stub__password__manager__client.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_browser_stub__password__manager__client.h11
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_browser_sync_password__sync__bridge.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_password__manager_core_common_password__manager__pref__names.h4
-rw-r--r--www/ungoogled-chromium/files/patch-components_performance__manager_public_features.h4
-rw-r--r--www/ungoogled-chromium/files/patch-components_policy_core_common_cloud_cloud__policy__client.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_safe__browsing_core_common_features.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-components_search__engines_search__engine__choice_search__engine__choice__service.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_search__engines_template__url__service.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.h4
-rw-r--r--www/ungoogled-chromium/files/patch-components_soda_soda__util.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-components_startup__metric__utils_common_startup__metric__utils.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_supervised__user_core_browser_supervised__user__service.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.h8
-rw-r--r--www/ungoogled-chromium/files/patch-components_sync_base_features.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_viz_host_host__display__client.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_viz_service_display__embedder_skia__output__surface__impl.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_viz_service_display_skia__renderer.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_app_content__main.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_app_content__main__runner__impl.cc20
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_audio_audio__service.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.h6
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_browser__main__loop.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper.h8
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper__linux.cc22
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_child__thread__type__switcher__linux.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_devtools_devtools__frontend__host__impl.h4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_devtools_protocol_system__info__handler.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.h4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.h6
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__process__host.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_media_frameless__media__interface__proxy.h4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_network__service__instance__impl.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_renderer__host_media_service__video__capture__device__launcher.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc12
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.h4
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__widget__host__view__aura.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_utility__process__host.cc18
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_utility__process__host.h10
-rw-r--r--www/ungoogled-chromium/files/patch-content_browser_web__contents_web__contents__view__aura.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_child_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-content_common_features.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-content_common_features.h8
-rw-r--r--www/ungoogled-chromium/files/patch-content_common_font__list__unittest.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_gpu_gpu__main.cc24
-rw-r--r--www/ungoogled-chromium/files/patch-content_public_browser_content__browser__client.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_public_browser_service__process__host.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_public_common_content__features.cc36
-rw-r--r--www/ungoogled-chromium/files/patch-content_public_common_content__switches.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-content_public_common_content__switches.h6
-rw-r--r--www/ungoogled-chromium/files/patch-content_renderer_media_gpu_gpu__video__accelerator__factories__impl.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-content_renderer_render__thread__impl.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-content_shell_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-content_shell_app_shell__main__delegate.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-content_shell_renderer_shell__content__renderer__client.cc (renamed from www/ungoogled-chromium/files/patch-content_renderer_render__process__impl.cc)12
-rw-r--r--www/ungoogled-chromium/files/patch-content_utility_services.cc12
-rw-r--r--www/ungoogled-chromium/files/patch-content_utility_utility__main.cc22
-rw-r--r--www/ungoogled-chromium/files/patch-content_utility_utility__thread__impl.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-content_zygote_zygote__linux.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-gpu_command__buffer_service_dawn__context__provider.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-gpu_command__buffer_service_gles2__cmd__decoder.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-gpu_command__buffer_service_shared__image_shared__image__manager.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-gpu_command__buffer_service_webgpu__decoder__impl.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-gpu_ipc_service_gpu__init.cc18
-rw-r--r--www/ungoogled-chromium/files/patch-gpu_vulkan_vulkan__util.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ipc_ipc__message__utils.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-media_audio_pulse_pulse__util.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-media_audio_sndio_audio__manager__sndio.cc87
-rw-r--r--www/ungoogled-chromium/files/patch-media_base_media__switches.cc42
-rw-r--r--www/ungoogled-chromium/files/patch-media_base_media__switches.h21
-rw-r--r--www/ungoogled-chromium/files/patch-media_base_video__frame.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-media_base_video__frame.h16
-rw-r--r--www/ungoogled-chromium/files/patch-media_capture_video_video__capture__device__client.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-media_ffmpeg_scripts_build__ffmpeg.py (renamed from www/ungoogled-chromium/files/patch-third__party_ffmpeg_chromium_scripts_build__ffmpeg.py)31
-rw-r--r--www/ungoogled-chromium/files/patch-media_ffmpeg_scripts_robo__lib_config.py (renamed from www/ungoogled-chromium/files/patch-third__party_ffmpeg_chromium_scripts_robo__lib_config.py)15
-rw-r--r--www/ungoogled-chromium/files/patch-media_gpu_chromeos_libyuv__image__processor__backend.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-media_gpu_chromeos_mailbox__video__frame__converter.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-media_gpu_chromeos_platform__video__frame__utils.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-media_gpu_chromeos_video__decoder__pipeline.cc14
-rw-r--r--www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__video__decoder.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__wrapper.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-media_media__options.gni13
-rw-r--r--www/ungoogled-chromium/files/patch-media_video_gpu__memory__buffer__video__frame__pool.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-media_webrtc_helpers.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-mojo_core_channel.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-mojo_public_tools_bindings_mojom.gni4
-rw-r--r--www/ungoogled-chromium/files/patch-net_BUILD.gn14
-rw-r--r--www/ungoogled-chromium/files/patch-net_base_features.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-net_dns_BUILD.gn18
-rw-r--r--www/ungoogled-chromium/files/patch-net_dns_public_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-net_proxy__resolution_proxy__config__service__linux.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__tool.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-net_url__request_url__request__context.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-net_url__request_url__request__context.h4
-rw-r--r--www/ungoogled-chromium/files/patch-net_url__request_url__request__context__builder.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-remoting_host_client__session.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-remoting_host_me2me__desktop__environment.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-remoting_host_setup_start__host__main.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-remoting_protocol_webrtc__video__stream.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-sandbox_linux_services_libc__interceptor.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-sandbox_policy_features.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-sandbox_policy_features.h4
-rw-r--r--www/ungoogled-chromium/files/patch-services_device_geolocation_location__arbitrator.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-services_device_usb_BUILD.gn8
-rw-r--r--www/ungoogled-chromium/files/patch-services_network_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-services_network_network__context.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-services_network_network__context.h4
-rw-r--r--www/ungoogled-chromium/files/patch-services_network_network__service.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-services_network_network__service.h12
-rw-r--r--www/ungoogled-chromium/files/patch-services_network_public_cpp_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-services_network_public_mojom_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-services_on__device__model_ml_on__device__model__executor.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-services_on__device__model_on__device__model__service.h6
-rw-r--r--www/ungoogled-chromium/files/patch-services_on__device__model_pre__sandbox__init.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-services_service__manager_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-services_video__capture_video__capture__service__impl.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_controller_blink__initializer.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_exported_web__view__impl.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_frame_web__frame__test.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_layout_layout__view.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_scroll_scrollbar__theme__aura.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_peerconnection_webrtc__audio__renderer__test.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgl_webgl__rendering__context__base.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgpu_gpu__queue.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_graphics_video__frame__submitter.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_runtime__enabled__features.json514
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_wtf_stack__util.cc8
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_boringssl_src_util_generate__build__files.py34
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_dawn_include_dawn_native_VulkanBackend.h4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_ffmpeg_configure4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_libusb_src_libusb_libusb.h11
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_pdfium_fxjs_fx__date__helpers.cpp6
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_perfetto_include_perfetto_base_time.h8
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_protobuf_src_google_protobuf_arenastring.cc12
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_protobuf_src_google_protobuf_stubs_platform__macros.h6
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_speech-dispatcher_libspeechd__version.h4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_sqlite_src_amalgamation_sqlite3.c6
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_unrar_src_crypt.cpp4
-rw-r--r--www/ungoogled-chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x11_x__server__pixel__buffer.cc20
-rw-r--r--www/ungoogled-chromium/files/patch-tools_json__schema__compiler_feature__compiler.py4
-rw-r--r--www/ungoogled-chromium/files/patch-tools_protoc__wrapper_protoc__wrapper.py4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_base_ime_fake__text__input__client.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_base_ime_init_input__method__initializer.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-ui_base_resource_resource__bundle.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_base_ui__base__features.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-ui_base_x_x11__cursor__loader.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-ui_color_color__id.h10
-rw-r--r--www/ungoogled-chromium/files/patch-ui_compositor_compositor.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_compositor_compositor.h4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_gfx_BUILD.gn4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_gfx_codec_png__codec.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-ui_gfx_gpu__memory__buffer.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_gfx_linux_gbm__wrapper.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_gl_BUILD.gn8
-rw-r--r--www/ungoogled-chromium/files/patch-ui_gl_gl__switches.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-ui_native__theme_native__theme__base.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__connection.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__popup.cc11
-rw-r--r--www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.h4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.cc10
-rw-r--r--www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.h8
-rw-r--r--www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_ozone__platform__wayland.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_ozone_platform_x11_x11__window.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_platform__window_platform__window__init__properties.h4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_views_focus_focus__manager.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.cc17
-rw-r--r--www/ungoogled-chromium/files/patch-ui_views_widget_widget.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-ui_views_widget_widget.h11
-rw-r--r--www/ungoogled-chromium/files/patch-ui_views_window_dialog__delegate.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-v8_BUILD.gn43
-rw-r--r--www/ungoogled-chromium/files/patch-v8_src_api_api.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-v8_src_base_platform_platform-posix.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-v8_src_execution_isolate.cc6
-rw-r--r--www/ungoogled-chromium/files/patch-v8_src_flags_flags.cc4
-rw-r--r--www/ungoogled-chromium/files/patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32-inl.h30
350 files changed, 1745 insertions, 1696 deletions
diff --git a/www/ungoogled-chromium/Makefile b/www/ungoogled-chromium/Makefile
index 38dd9c95b374..d7ae24f31bf1 100644
--- a/www/ungoogled-chromium/Makefile
+++ b/www/ungoogled-chromium/Makefile
@@ -1,5 +1,5 @@
PORTNAME= ungoogled-chromium
-PORTVERSION= 124.0.6367.207
+PORTVERSION= 125.0.6422.76
UGVERSION= ${DISTVERSION}-1
CATEGORIES= www wayland
MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \
@@ -19,7 +19,8 @@ ONLY_FOR_ARCHS= aarch64 amd64 i386
PATCH_DEPENDS= gpatch:devel/patch \
${PYTHON_VERSION}:lang/python${PYTHON_SUFFIX}
-BUILD_DEPENDS= bash:shells/bash \
+BUILD_DEPENDS= ${LOCALBASE}/include/pulse/pulseaudio.h:audio/pulseaudio \
+ bash:shells/bash \
${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR} \
gperf:devel/gperf \
@@ -38,8 +39,10 @@ BUILD_DEPENDS= bash:shells/bash \
LIB_DEPENDS= libatk-bridge-2.0.so:accessibility/at-spi2-core \
libatspi.so:accessibility/at-spi2-core \
libspeechd.so:accessibility/speech-dispatcher \
+ libasound.so:audio/alsa-lib \
libFLAC.so:audio/flac \
libopus.so:audio/opus \
+ libsndio.so:audio/sndio \
libspeex.so:audio/speex \
libdbus-1.so:devel/dbus \
libdbus-glib-1.so:devel/dbus-glib \
@@ -146,6 +149,11 @@ GN_ARGS+= build_with_tflite_lib=false \
use_official_google_api_keys=false \
use_unofficial_version_number=false
+# Audio backends
+GN_ARGS+= use_alsa=true \
+ use_pulseaudio=true \
+ use_sndio=true
+
# TODO: investigate building with these options:
# use_system_minigbm
GN_BOOTSTRAP_FLAGS= --no-clean --no-rebuild --skip-generate-buildfiles
@@ -154,10 +162,8 @@ SUB_FILES= ungoogled-chromium.desktop ungoogled-chromium
SUB_LIST+= COMMENT="${COMMENT}"
OPTIONS_DEFINE= CODECS CUPS DEBUG DRIVER KERBEROS LTO PIPEWIRE TEST WIDEVINE
-OPTIONS_DEFAULT= CODECS CUPS DRIVER KERBEROS PIPEWIRE SNDIO
+OPTIONS_DEFAULT= CODECS CUPS DRIVER KERBEROS PIPEWIRE
OPTIONS_EXCLUDE_aarch64=LTO
-OPTIONS_GROUP= AUDIO
-OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO SNDIO
OPTIONS_RADIO= KERBEROS
OPTIONS_RADIO_KERBEROS= HEIMDAL HEIMDAL_BASE MIT
OPTIONS_SUB= yes
@@ -167,12 +173,6 @@ HEIMDAL_BASE_DESC= Heimdal Kerberos (base)
HEIMDAL_DESC= Heimdal Kerberos (security/heimdal)
MIT_DESC= MIT Kerberos (security/krb5)
-ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
-ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \
- alsa-lib>=1.1.1_1:audio/alsa-lib
-ALSA_VARS= GN_ARGS+=use_alsa=true
-ALSA_VARS_OFF= GN_ARGS+=use_alsa=false
-
CODECS_VARS= GN_ARGS+=proprietary_codecs=true \
FFMPEG_BRAND="Chrome"
CODECS_VARS_OFF= GN_ARGS+=proprietary_codecs=false \
@@ -216,18 +216,6 @@ PIPEWIRE_VARS= GN_ARGS+=rtc_use_pipewire=true \
PIPEWIRE_VARS_OFF= GN_ARGS+=rtc_use_pipewire=false \
GN_ARGS+=rtc_link_pipewire=false
-PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
-PULSEAUDIO_VARS= GN_ARGS+=use_pulseaudio=true
-PULSEAUDIO_VARS_OFF= GN_ARGS+=use_pulseaudio=false
-
-# With SNDIO=on we exclude audio_manager_linux from the build (see
-# media/audio/BUILD.gn) and use audio_manager_openbsd which does not
-# support falling back to ALSA or PulseAudio.
-SNDIO_PREVENTS= ALSA PULSEAUDIO
-SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
-SNDIO_VARS= GN_ARGS+=use_sndio=true
-SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false
-
WIDEVINE_DESC= Depend on foreign-cdm to enable playback of DRM content
WIDEVINE_RUN_DEPENDS= foreign-cdm>0:www/foreign-cdm
@@ -243,8 +231,8 @@ TEST_ALL_TARGET= ${TEST_TARGETS}
IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base
.endif
-.if ${COMPILER_VERSION} < 170
-LLVM_DEFAULT= 17
+.if ${COMPILER_VERSION} < 180
+LLVM_DEFAULT= 18
BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
BINARY_ALIAS+= cpp=${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT} \
cc=${LOCALBASE}/bin/clang${LLVM_DEFAULT} \
@@ -272,7 +260,7 @@ PLIST_SUB+= NOT_AARCH64=""
FFMPEG_TARGET= ia32
.endif
-FFMPEG_BDIR= ${WRKSRC}/build.${FFMPEG_TARGET}.freebsd/${FFMPEG_BRAND}
+FFMPEG_BDIR= ${WRKSRC}/third_party/ffmpeg/build.${FFMPEG_TARGET}.freebsd/${FFMPEG_BRAND}
FFMPEG_CDIR= ${WRKSRC}/third_party/ffmpeg/chromium/config/${FFMPEG_BRAND}/freebsd/${FFMPEG_TARGET}
# Allow relocations against read-only segments (override lld default)
@@ -321,8 +309,8 @@ pre-configure:
dav1d flac fontconfig freetype harfbuzz-ng icu libdrm libevent libpng \
libusb libwebp libxml libxslt openh264 opus || ${FALSE}
# Chromium uses an unreleased version of FFmpeg, so configure it
- cd ${WRKSRC}/third_party/ffmpeg && \
- ${PYTHON_CMD} chromium/scripts/build_ffmpeg.py freebsd ${FFMPEG_TARGET} \
+ cd ${WRKSRC}/media/ffmpeg && \
+ ${PYTHON_CMD} scripts/build_ffmpeg.py freebsd ${FFMPEG_TARGET} \
--config-only --branding=${FFMPEG_BRAND}
cd ${FFMPEG_BDIR} && ${GMAKE} ffversion.h
${MKDIR} ${FFMPEG_CDIR}
diff --git a/www/ungoogled-chromium/distinfo b/www/ungoogled-chromium/distinfo
index 4a93c2f69d53..5fab9bae8298 100644
--- a/www/ungoogled-chromium/distinfo
+++ b/www/ungoogled-chromium/distinfo
@@ -1,9 +1,9 @@
-TIMESTAMP = 1715673313
-SHA256 (chromium-124.0.6367.207.tar.xz) = 6d6dc8b943012573a244ddb013b281ecbc97f77fe1fc6f55a4118241d107eba5
-SIZE (chromium-124.0.6367.207.tar.xz) = 3450794132
-SHA256 (ungoogled-chromium-124.0.6367.207-1.tar.gz) = e109631651affdaae2ddc22cc1e81f56d8c7eb583f816c6ee7de21d97977315b
-SIZE (ungoogled-chromium-124.0.6367.207-1.tar.gz) = 667461
-SHA256 (chromium-124.0.6367.207-testdata.tar.xz) = d30386a73719a64fdd191f7b51709185e4d3fc49888b04a390506d4370e69b06
-SIZE (chromium-124.0.6367.207-testdata.tar.xz) = 277899644
+TIMESTAMP = 1716495542
+SHA256 (chromium-125.0.6422.76.tar.xz) = 4167218463d2848f4a0fe35f60d062a8e7e5c7ce5bc8c8c2260a80186b1deccf
+SIZE (chromium-125.0.6422.76.tar.xz) = 3460108576
+SHA256 (ungoogled-chromium-125.0.6422.76-1.tar.gz) = bd9fe13200b13a1bedcf74533b8c285be39e1ea278b8562f3ee3da9883f6ae2e
+SIZE (ungoogled-chromium-125.0.6422.76-1.tar.gz) = 668994
+SHA256 (chromium-125.0.6422.76-testdata.tar.xz) = ec7a7743180fd986c37913032074bd2a14b3bb40fb79927db94fab97aba26a77
+SIZE (chromium-125.0.6422.76-testdata.tar.xz) = 277440240
SHA256 (test_fonts-336e775eec536b2d785cc80eff6ac39051931286.tar.gz) = a2ca2962daf482a8f943163541e1c73ba4b2694fabcd2510981f2db4eda493c8
SIZE (test_fonts-336e775eec536b2d785cc80eff6ac39051931286.tar.gz) = 32624734
diff --git a/www/ungoogled-chromium/files/patch-BUILD.gn b/www/ungoogled-chromium/files/patch-BUILD.gn
index 37e125a126fd..84aff7b3b972 100644
--- a/www/ungoogled-chromium/files/patch-BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-BUILD.gn
@@ -1,6 +1,6 @@
---- BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ BUILD.gn
-@@ -64,7 +64,7 @@ declare_args() {
+@@ -65,7 +65,7 @@ declare_args() {
root_extra_deps = []
}
@@ -9,7 +9,7 @@
# An official (maximally optimized!) component (optimized for build times)
# build doesn't make sense and usually doesn't work.
assert(!is_component_build)
-@@ -96,7 +96,6 @@ group("gn_all") {
+@@ -97,7 +97,6 @@ group("gn_all") {
"//codelabs",
"//components:components_unittests",
"//components/gwp_asan:gwp_asan_unittests",
@@ -17,7 +17,7 @@
"//net:net_unittests",
"//sandbox:sandbox_unittests",
"//services:services_unittests",
-@@ -427,7 +426,7 @@ group("gn_all") {
+@@ -428,7 +427,7 @@ group("gn_all") {
}
}
@@ -26,7 +26,7 @@
deps += [
"//third_party/breakpad:breakpad_unittests",
"//third_party/breakpad:core-2-minidump",
-@@ -619,6 +618,15 @@ group("gn_all") {
+@@ -616,6 +615,15 @@ group("gn_all") {
}
}
@@ -42,7 +42,7 @@
if (is_mac) {
deps += [
"//third_party/breakpad:dump_syms",
-@@ -665,7 +673,7 @@ group("gn_all") {
+@@ -662,7 +670,7 @@ group("gn_all") {
host_os == "win") {
deps += [ "//chrome/test/mini_installer:mini_installer_tests" ]
}
@@ -51,7 +51,7 @@
deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
}
-@@ -1086,7 +1094,7 @@ if (use_blink && !is_cronet_build) {
+@@ -1082,7 +1090,7 @@ if (use_blink && !is_cronet_build) {
]
}
@@ -60,7 +60,7 @@
script_test("chrome_wpt_tests") {
script = "//third_party/blink/tools/run_wpt_tests.py"
args = [
-@@ -1177,7 +1185,7 @@ if (use_blink && !is_cronet_build) {
+@@ -1175,7 +1183,7 @@ if (use_blink && !is_cronet_build) {
data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ]
}
@@ -69,7 +69,7 @@
data_deps +=
[ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
}
-@@ -1186,7 +1194,7 @@ if (use_blink && !is_cronet_build) {
+@@ -1184,7 +1192,7 @@ if (use_blink && !is_cronet_build) {
data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
}
@@ -78,7 +78,7 @@
data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
}
-@@ -1646,7 +1654,7 @@ group("chromium_builder_perf") {
+@@ -1644,7 +1652,7 @@ group("chromium_builder_perf") {
data_deps += [ "//chrome/test:performance_browser_tests" ]
}
diff --git a/www/ungoogled-chromium/files/patch-base_BUILD.gn b/www/ungoogled-chromium/files/patch-base_BUILD.gn
index e6a1bf006c83..4e78563c0051 100644
--- a/www/ungoogled-chromium/files/patch-base_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-base_BUILD.gn
@@ -1,4 +1,4 @@
---- base/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- base/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ base/BUILD.gn
@@ -200,7 +200,7 @@ buildflag_header("ios_cronet_buildflags") {
flags = [ "CRONET_BUILD=$is_cronet_build" ]
@@ -9,7 +9,7 @@
buildflag_header("message_pump_buildflags") {
header = "message_pump_buildflags.h"
header_dir = "base/message_loop"
-@@ -1131,11 +1131,23 @@ component("base") {
+@@ -1141,11 +1141,23 @@ component("base") {
# Needed for <atomic> if using newer C++ library than sysroot, except if
# building inside the cros_sdk environment - use host_toolchain as a
# more robust check for this.
@@ -34,7 +34,7 @@
if (use_allocator_shim) {
if (is_apple) {
sources += [ "allocator/early_zone_registration_apple.h" ]
-@@ -1155,7 +1167,7 @@ component("base") {
+@@ -1165,7 +1177,7 @@ component("base") {
# Allow more direct string conversions on platforms with native utf8
# strings
@@ -43,7 +43,7 @@
defines += [ "SYSTEM_NATIVE_UTF8" ]
}
-@@ -2113,6 +2125,22 @@ component("base") {
+@@ -2125,6 +2137,22 @@ component("base") {
]
}
@@ -66,7 +66,7 @@
# iOS
if (is_ios) {
sources += [
-@@ -2249,6 +2277,33 @@ component("base") {
+@@ -2270,6 +2298,33 @@ component("base") {
}
}
@@ -100,7 +100,7 @@
if (use_blink) {
sources += [
"files/file_path_watcher.cc",
-@@ -2259,7 +2314,7 @@ component("base") {
+@@ -2280,7 +2335,7 @@ component("base") {
}
if (dep_libevent) {
@@ -109,7 +109,7 @@
}
if (use_libevent) {
-@@ -3072,7 +3127,7 @@ if (is_apple) {
+@@ -3093,7 +3148,7 @@ if (is_apple) {
}
}
@@ -118,7 +118,7 @@
# This test must compile with -fstack-protector-all
source_set("stack_canary_linux_unittests") {
testonly = true
-@@ -3716,7 +3771,7 @@ test("base_unittests") {
+@@ -3745,7 +3800,7 @@ test("base_unittests") {
]
}
@@ -127,7 +127,7 @@
sources += [
"debug/proc_maps_linux_unittest.cc",
"files/scoped_file_linux_unittest.cc",
-@@ -3743,7 +3798,7 @@ test("base_unittests") {
+@@ -3772,7 +3827,7 @@ test("base_unittests") {
"posix/file_descriptor_shuffle_unittest.cc",
"posix/unix_domain_socket_unittest.cc",
]
@@ -136,7 +136,7 @@
sources += [
"profiler/stack_base_address_posix_unittest.cc",
"profiler/stack_copier_signal_unittest.cc",
-@@ -3754,7 +3809,7 @@ test("base_unittests") {
+@@ -3783,7 +3838,7 @@ test("base_unittests") {
# Allow more direct string conversions on platforms with native utf8
# strings
@@ -145,7 +145,7 @@
defines += [ "SYSTEM_NATIVE_UTF8" ]
}
-@@ -4022,7 +4077,7 @@ test("base_unittests") {
+@@ -4051,7 +4106,7 @@ test("base_unittests") {
}
}
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_dispatcher_tls.h b/www/ungoogled-chromium/files/patch-base_allocator_dispatcher_tls.h
index 444fa64c4e5e..998d311445c1 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_dispatcher_tls.h
+++ b/www/ungoogled-chromium/files/patch-base_allocator_dispatcher_tls.h
@@ -1,6 +1,6 @@
---- base/allocator/dispatcher/tls.h.orig 2024-04-23 07:42:17 UTC
+--- base/allocator/dispatcher/tls.h.orig 2024-05-23 20:04:36 UTC
+++ base/allocator/dispatcher/tls.h
-@@ -76,7 +76,7 @@ struct BASE_EXPORT MMapAllocator {
+@@ -77,7 +77,7 @@ struct BASE_EXPORT MMapAllocator {
constexpr static size_t AllocationChunkSize = 16384;
#elif BUILDFLAG(IS_ANDROID) && defined(ARCH_CPU_64_BITS)
constexpr static size_t AllocationChunkSize = 16384;
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.gni b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.gni
index 4c5f2d0ca3b5..31db3444ebff 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.gni
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.gni
@@ -1,4 +1,4 @@
---- base/allocator/partition_allocator/partition_alloc.gni.orig 2024-04-23 07:42:17 UTC
+--- base/allocator/partition_allocator/partition_alloc.gni.orig 2024-05-23 20:04:36 UTC
+++ base/allocator/partition_allocator/partition_alloc.gni
@@ -33,7 +33,7 @@ if (is_nacl) {
use_large_empty_slot_span_ring = is_mac
@@ -9,7 +9,7 @@
declare_args() {
# Causes all the allocations to be routed via allocator_shim.cc. Usually,
-@@ -351,7 +351,7 @@ declare_args() {
+@@ -354,7 +354,7 @@ declare_args() {
# dependencies that use partition_allocator are compiled in AOSP against a
# version of glibc that does not include pkeys syscall numbers.
enable_pkeys =
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_BUILD.gn b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_BUILD.gn
index 6ed59dc622c7..257ee378fcb6 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_BUILD.gn
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/src/partition_alloc/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- base/allocator/partition_allocator/src/partition_alloc/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ base/allocator/partition_allocator/src/partition_alloc/BUILD.gn
-@@ -851,7 +851,7 @@ if (is_clang_or_gcc) {
+@@ -850,7 +850,7 @@ if (is_clang_or_gcc) {
configs -= [ "//build/config/compiler:enable_arc" ]
}
}
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_address__space__randomization.h b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_address__space__randomization.h
index a75b6c620b86..34bd39165800 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_address__space__randomization.h
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_address__space__randomization.h
@@ -1,4 +1,4 @@
---- base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h.orig 2024-04-23 07:42:17 UTC
+--- base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h.orig 2024-05-23 20:04:36 UTC
+++ base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h
@@ -38,7 +38,7 @@ AslrMask(uintptr_t bits) {
@@ -9,12 +9,12 @@
// We shouldn't allocate system pages at all for sanitizer builds. However,
// we do, and if random hint addresses interfere with address ranges
-@@ -128,7 +128,7 @@ AslrMask(uintptr_t bits) {
+@@ -125,7 +125,7 @@ AslrMask(uintptr_t bits) {
return AslrAddress(0x20000000ULL);
}
-
-- #elif BUILDFLAG(IS_LINUX)
-+ #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ #elif defined(ARCH_CPU_ARM64)
+- #if BUILDFLAG(IS_LINUX)
++ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Linux on arm64 can use 39, 42, 48, or 52-bit user space, depending on
// page size and number of levels of translation pages used. We use
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__config.h b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__config.h
index 02cfd2bdb7bd..45fa4325dd35 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__config.h
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__config.h
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h.orig 2024-04-23 07:42:17 UTC
+--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h.orig 2024-05-23 20:04:36 UTC
+++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h
-@@ -251,7 +251,7 @@ constexpr bool kUseLazyCommit = false;
+@@ -231,7 +231,7 @@ constexpr bool kUseLazyCommit = false;
// On these platforms, lock all the partitions before fork(), and unlock after.
// This may be required on more platforms in the future.
#define PA_CONFIG_HAS_ATFORK_HANDLER() \
@@ -9,7 +9,7 @@
// PartitionAlloc uses PartitionRootEnumerator to acquire all
// PartitionRoots at BeforeFork and to release at AfterFork.
-@@ -299,7 +299,7 @@ constexpr bool kUseLazyCommit = false;
+@@ -278,7 +278,7 @@ constexpr bool kUseLazyCommit = false;
//
// Also enabled on ARM64 macOS and iOS, as the 16kiB pages on this platform lead
// to larger slot spans.
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__constants.h b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__constants.h
index 6cc6c41bd125..5a3e737a737f 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__constants.h
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__alloc__constants.h
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h.orig 2024-04-23 07:42:17 UTC
+--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h.orig 2024-05-23 20:04:36 UTC
+++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h
-@@ -313,7 +313,7 @@ constexpr size_t kNumPools = kMaxPoolHandle - 1;
+@@ -316,7 +316,7 @@ constexpr size_t kNumPools = kMaxPoolHandle - 1;
// 8GB for each of the glued pools).
#if BUILDFLAG(HAS_64_BIT_POINTERS)
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS) || \
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__root.cc b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__root.cc
index c838279c607b..88d599996250 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__root.cc
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_partition__root.cc
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/src/partition_alloc/partition_root.cc.orig 2024-04-23 07:42:17 UTC
+--- base/allocator/partition_allocator/src/partition_alloc/partition_root.cc.orig 2024-05-23 20:04:36 UTC
+++ base/allocator/partition_allocator/src/partition_alloc/partition_root.cc
-@@ -47,7 +47,7 @@
+@@ -48,7 +48,7 @@
#include "wow64apiset.h"
#endif
@@ -9,7 +9,7 @@
#include <pthread.h>
#endif
-@@ -279,7 +279,7 @@ void PartitionAllocMallocInitOnce() {
+@@ -280,7 +280,7 @@ void PartitionAllocMallocInitOnce() {
return;
}
@@ -18,7 +18,7 @@
// When fork() is called, only the current thread continues to execute in the
// child process. If the lock is held, but *not* by this thread when fork() is
// called, we have a deadlock.
-@@ -950,7 +950,7 @@ void PartitionRoot::Init(PartitionOptions opts) {
+@@ -954,7 +954,7 @@ void PartitionRoot::Init(PartitionOptions opts) {
// apple OSes.
PA_CHECK((internal::SystemPageSize() == (size_t{1} << 12)) ||
(internal::SystemPageSize() == (size_t{1} << 14)));
diff --git a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_starscan_stack_stack.cc b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_stack_stack.cc
index 17c7c31f634f..3ddc8b46184e 100644
--- a/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_starscan_stack_stack.cc
+++ b/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_src_partition__alloc_stack_stack.cc
@@ -1,5 +1,5 @@
---- base/allocator/partition_allocator/src/partition_alloc/starscan/stack/stack.cc.orig 2023-12-23 12:33:28 UTC
-+++ base/allocator/partition_allocator/src/partition_alloc/starscan/stack/stack.cc
+--- base/allocator/partition_allocator/src/partition_alloc/stack/stack.cc.orig 2024-05-23 20:04:36 UTC
++++ base/allocator/partition_allocator/src/partition_alloc/stack/stack.cc
@@ -18,6 +18,10 @@
#include <pthread.h>
#endif
diff --git a/www/ungoogled-chromium/files/patch-base_debug_stack__trace.cc b/www/ungoogled-chromium/files/patch-base_debug_stack__trace.cc
index 4df9e4c087ae..662dab087655 100644
--- a/www/ungoogled-chromium/files/patch-base_debug_stack__trace.cc
+++ b/www/ungoogled-chromium/files/patch-base_debug_stack__trace.cc
@@ -1,6 +1,6 @@
---- base/debug/stack_trace.cc.orig 2024-04-23 07:42:17 UTC
+--- base/debug/stack_trace.cc.orig 2024-05-23 20:04:36 UTC
+++ base/debug/stack_trace.cc
-@@ -247,7 +247,7 @@ bool StackTrace::WillSymbolizeToStreamForTesting() {
+@@ -249,7 +249,7 @@ bool StackTrace::WillSymbolizeToStreamForTesting() {
// Symbols are not expected to be reliable when gn args specifies
// symbol_level=0.
return false;
@@ -9,16 +9,16 @@
// StackTrace::OutputToStream() is not implemented under uclibc, nor AIX.
// See https://crbug.com/706728
return false;
-@@ -291,7 +291,7 @@ std::string StackTrace::ToString() const {
- }
- std::string StackTrace::ToStringWithPrefix(const char* prefix_string) const {
+@@ -311,7 +311,7 @@ std::string StackTrace::ToString() const {
+
+ std::string StackTrace::ToStringWithPrefix(cstring_view prefix_string) const {
std::stringstream stream;
-#if !defined(__UCLIBC__) && !defined(_AIX)
+#if !defined(__UCLIBC__) && !defined(_AIX) && !BUILDFLAG(IS_BSD)
- if (ShouldSuppressOutput()) {
- return "Backtrace suppressed.";
- }
-@@ -301,7 +301,7 @@ std::string StackTrace::ToStringWithPrefix(const char*
+ OutputToStreamWithPrefix(&stream, prefix_string);
+ #endif
+ return stream.str();
+@@ -335,7 +335,7 @@ bool StackTrace::ShouldSuppressOutput() {
}
std::ostream& operator<<(std::ostream& os, const StackTrace& s) {
diff --git a/www/ungoogled-chromium/files/patch-base_features.cc b/www/ungoogled-chromium/files/patch-base_features.cc
new file mode 100644
index 000000000000..b1e291278229
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-base_features.cc
@@ -0,0 +1,20 @@
+--- base/features.cc.orig 2024-05-23 20:04:36 UTC
++++ base/features.cc
+@@ -9,7 +9,7 @@
+ #include "base/threading/platform_thread.h"
+ #include "build/buildflag.h"
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
+ #include "base/message_loop/message_pump_libevent.h"
+ #endif
+
+@@ -98,7 +98,7 @@ void Init(EmitThreadControllerProfilerMetadata
+ sequence_manager::internal::ThreadController::InitializeFeatures(
+ emit_thread_controller_profiler_metadata);
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
+ MessagePumpLibevent::InitializeFeatures();
+ #endif
+
diff --git a/www/ungoogled-chromium/files/patch-base_files_file__util__posix.cc b/www/ungoogled-chromium/files/patch-base_files_file__util__posix.cc
index 215e5bb7a419..888b2f477f82 100644
--- a/www/ungoogled-chromium/files/patch-base_files_file__util__posix.cc
+++ b/www/ungoogled-chromium/files/patch-base_files_file__util__posix.cc
@@ -1,6 +1,6 @@
---- base/files/file_util_posix.cc.orig 2024-04-23 07:42:17 UTC
+--- base/files/file_util_posix.cc.orig 2024-05-23 20:04:36 UTC
+++ base/files/file_util_posix.cc
-@@ -816,33 +816,34 @@ bool CreateDirectoryAndGetError(const FilePath& full_p
+@@ -810,33 +810,34 @@ bool CreateDirectoryAndGetError(const FilePath& full_p
File::Error* error) {
ScopedBlockingCall scoped_blocking_call(
FROM_HERE, BlockingType::MAY_BLOCK); // For call to mkdir().
diff --git a/www/ungoogled-chromium/files/patch-base_files_file__util__unittest.cc b/www/ungoogled-chromium/files/patch-base_files_file__util__unittest.cc
index c453bd902b37..e4bc8834c64b 100644
--- a/www/ungoogled-chromium/files/patch-base_files_file__util__unittest.cc
+++ b/www/ungoogled-chromium/files/patch-base_files_file__util__unittest.cc
@@ -1,6 +1,6 @@
---- base/files/file_util_unittest.cc.orig 2024-04-23 07:42:17 UTC
+--- base/files/file_util_unittest.cc.orig 2024-05-23 20:04:36 UTC
+++ base/files/file_util_unittest.cc
-@@ -3870,7 +3870,7 @@ TEST_F(FileUtilTest, ReadFileToStringWithNamedPipe) {
+@@ -3772,7 +3772,7 @@ TEST_F(FileUtilTest, ReadFileToStringWithNamedPipe) {
}
#endif // BUILDFLAG(IS_WIN)
@@ -9,7 +9,7 @@
TEST_F(FileUtilTest, ReadFileToStringWithProcFileSystem) {
FilePath file_path("/proc/cpuinfo");
std::string data = "temp";
-@@ -4651,7 +4651,7 @@ TEST(FileUtilMultiThreadedTest, MultiThreadedTempFiles
+@@ -4553,7 +4553,7 @@ TEST(FileUtilMultiThreadedTest, MultiThreadedTempFiles
NULL);
#else
size_t bytes_written =
diff --git a/www/ungoogled-chromium/files/patch-base_linux__util.cc b/www/ungoogled-chromium/files/patch-base_linux__util.cc
index 447a0d78838a..f1fa255f63ff 100644
--- a/www/ungoogled-chromium/files/patch-base_linux__util.cc
+++ b/www/ungoogled-chromium/files/patch-base_linux__util.cc
@@ -1,14 +1,6 @@
---- base/linux_util.cc.orig 2023-12-23 12:33:28 UTC
+--- base/linux_util.cc.orig 2024-05-23 20:04:36 UTC
+++ base/linux_util.cc
-@@ -15,6 +15,7 @@
-
- #include <iomanip>
- #include <memory>
-+#include <sstream>
-
- #include "base/base_export.h"
- #include "base/files/dir_reader_posix.h"
-@@ -153,10 +154,14 @@ void SetLinuxDistro(const std::string& distro) {
+@@ -154,10 +154,14 @@ void SetLinuxDistro(const std::string& distro) {
}
bool GetThreadsForProcess(pid_t pid, std::vector<pid_t>* tids) {
diff --git a/www/ungoogled-chromium/files/patch-base_process_internal__linux.h b/www/ungoogled-chromium/files/patch-base_process_internal__linux.h
index 1a80e0cbdbcf..ea30511c1cda 100644
--- a/www/ungoogled-chromium/files/patch-base_process_internal__linux.h
+++ b/www/ungoogled-chromium/files/patch-base_process_internal__linux.h
@@ -1,6 +1,6 @@
---- base/process/internal_linux.h.orig 2024-04-23 07:42:17 UTC
+--- base/process/internal_linux.h.orig 2024-05-23 20:04:36 UTC
+++ base/process/internal_linux.h
-@@ -138,6 +138,9 @@ TimeDelta ClockTicksToTimeDelta(int64_t clock_ticks);
+@@ -140,6 +140,9 @@ TimeDelta ClockTicksToTimeDelta(int64_t clock_ticks);
// arguments to the lambda.
template <typename Lambda>
void ForEachProcessTask(base::ProcessHandle process, Lambda&& lambda) {
@@ -10,7 +10,7 @@
// Iterate through the different threads tracked in /proc/<pid>/task.
FilePath fd_path = GetProcPidDir(process).Append("task");
-@@ -157,6 +160,7 @@ void ForEachProcessTask(base::ProcessHandle process, L
+@@ -159,6 +162,7 @@ void ForEachProcessTask(base::ProcessHandle process, L
FilePath task_path = fd_path.Append(tid_str);
lambda(tid, task_path);
}
diff --git a/www/ungoogled-chromium/files/patch-base_process_process__metrics.cc b/www/ungoogled-chromium/files/patch-base_process_process__metrics.cc
index dd601c3e43f7..516565609339 100644
--- a/www/ungoogled-chromium/files/patch-base_process_process__metrics.cc
+++ b/www/ungoogled-chromium/files/patch-base_process_process__metrics.cc
@@ -1,4 +1,4 @@
---- base/process/process_metrics.cc.orig 2024-04-23 07:42:17 UTC
+--- base/process/process_metrics.cc.orig 2024-05-23 20:04:36 UTC
+++ base/process/process_metrics.cc
@@ -17,7 +17,7 @@ namespace base {
namespace {
@@ -35,9 +35,9 @@
double ProcessMetrics::GetPlatformIndependentCPUUsage(
TimeDelta cumulative_cpu) {
TimeTicks time = TimeTicks::Now();
-@@ -130,10 +129,9 @@ std::optional<double> ProcessMetrics::GetPlatformIndep
- }
- return GetPlatformIndependentCPUUsage(cpu_usage.value());
+@@ -129,10 +128,9 @@ ProcessMetrics::GetPlatformIndependentCPUUsage() {
+ return GetPlatformIndependentCPUUsage(cpu_usage);
+ });
}
-#endif
diff --git a/www/ungoogled-chromium/files/patch-base_process_process__metrics.h b/www/ungoogled-chromium/files/patch-base_process_process__metrics.h
index c6c8c908512d..665ea0dfe43f 100644
--- a/www/ungoogled-chromium/files/patch-base_process_process__metrics.h
+++ b/www/ungoogled-chromium/files/patch-base_process_process__metrics.h
@@ -1,4 +1,4 @@
---- base/process/process_metrics.h.orig 2024-04-23 07:42:17 UTC
+--- base/process/process_metrics.h.orig 2024-05-23 20:04:36 UTC
+++ base/process/process_metrics.h
@@ -38,7 +38,7 @@
#endif
@@ -18,7 +18,7 @@
// Minor and major page fault counts since the process creation.
// Both counts are process-wide, and exclude child processes.
//
-@@ -103,7 +103,7 @@ class BASE_EXPORT ProcessMetrics {
+@@ -116,7 +116,7 @@ class BASE_EXPORT ProcessMetrics {
// convenience wrapper for CreateProcessMetrics().
static std::unique_ptr<ProcessMetrics> CreateCurrentProcessMetrics();
@@ -27,8 +27,8 @@
// Resident Set Size is a Linux/Android specific memory concept. Do not
// attempt to extend this to other platforms.
BASE_EXPORT size_t GetResidentSetSize() const;
-@@ -137,7 +137,7 @@ class BASE_EXPORT ProcessMetrics {
- [[nodiscard]] std::optional<TimeDelta> GetCumulativeCPUUsage();
+@@ -150,7 +150,7 @@ class BASE_EXPORT ProcessMetrics {
+ base::expected<TimeDelta, ProcessCPUUsageError> GetCumulativeCPUUsage();
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
- BUILDFLAG(IS_AIX)
@@ -36,7 +36,7 @@
// Emits the cumulative CPU usage for all currently active threads since they
// were started into the output parameter (replacing its current contents).
// Threads that have already terminated will not be reported. Thus, the sum of
-@@ -182,7 +182,7 @@ class BASE_EXPORT ProcessMetrics {
+@@ -195,7 +195,7 @@ class BASE_EXPORT ProcessMetrics {
int GetOpenFdSoftLimit() const;
#endif // BUILDFLAG(IS_POSIX)
@@ -45,7 +45,7 @@
// Bytes of swap as reported by /proc/[pid]/status.
uint64_t GetVmSwapBytes() const;
-@@ -203,7 +203,7 @@ class BASE_EXPORT ProcessMetrics {
+@@ -216,7 +216,7 @@ class BASE_EXPORT ProcessMetrics {
#endif // !BUILDFLAG(IS_MAC)
#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -54,7 +54,7 @@
int CalculateIdleWakeupsPerSecond(uint64_t absolute_idle_wakeups);
#endif
#if BUILDFLAG(IS_APPLE)
-@@ -225,12 +225,10 @@ class BASE_EXPORT ProcessMetrics {
+@@ -238,12 +238,10 @@ class BASE_EXPORT ProcessMetrics {
// Used to store the previous times and CPU usage counts so we can
// compute the CPU usage between calls.
TimeTicks last_cpu_time_;
@@ -68,7 +68,7 @@
// Same thing for idle wakeups.
TimeTicks last_idle_wakeups_time_;
uint64_t last_absolute_idle_wakeups_;
-@@ -271,7 +269,7 @@ BASE_EXPORT void IncreaseFdLimitTo(unsigned int max_de
+@@ -284,7 +282,7 @@ BASE_EXPORT void IncreaseFdLimitTo(unsigned int max_de
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_AIX) || \
@@ -77,7 +77,7 @@
// Data about system-wide memory consumption. Values are in KB. Available on
// Windows, Mac, Linux, Android and Chrome OS.
//
-@@ -306,7 +304,7 @@ struct BASE_EXPORT SystemMemoryInfoKB {
+@@ -319,7 +317,7 @@ struct BASE_EXPORT SystemMemoryInfoKB {
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
@@ -86,7 +86,7 @@
// This provides an estimate of available memory as described here:
// https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
// NOTE: this is ONLY valid in kernels 3.14 and up. Its value will always
-@@ -321,7 +319,7 @@ struct BASE_EXPORT SystemMemoryInfoKB {
+@@ -334,7 +332,7 @@ struct BASE_EXPORT SystemMemoryInfoKB {
#endif
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -95,7 +95,7 @@
int buffers = 0;
int cached = 0;
int active_anon = 0;
-@@ -358,7 +356,7 @@ BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoK
+@@ -371,7 +369,7 @@ BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoK
// BUILDFLAG(IS_FUCHSIA)
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
@@ -104,7 +104,7 @@
// Parse the data found in /proc/<pid>/stat and return the sum of the
// CPU-related ticks. Returns -1 on parse error.
// Exposed for testing.
-@@ -552,7 +550,7 @@ class BASE_EXPORT SystemMetrics {
+@@ -566,7 +564,7 @@ class BASE_EXPORT SystemMetrics {
FRIEND_TEST_ALL_PREFIXES(SystemMetricsTest, SystemMetrics);
size_t committed_memory_;
diff --git a/www/ungoogled-chromium/files/patch-base_process_process__metrics__freebsd.cc b/www/ungoogled-chromium/files/patch-base_process_process__metrics__freebsd.cc
index b5ffa0f8a7fb..d750a08cd3f9 100644
--- a/www/ungoogled-chromium/files/patch-base_process_process__metrics__freebsd.cc
+++ b/www/ungoogled-chromium/files/patch-base_process_process__metrics__freebsd.cc
@@ -1,6 +1,6 @@
---- base/process/process_metrics_freebsd.cc.orig 2024-04-23 07:42:17 UTC
+--- base/process/process_metrics_freebsd.cc.orig 2024-05-23 20:04:36 UTC
+++ base/process/process_metrics_freebsd.cc
-@@ -3,42 +3,57 @@
+@@ -3,44 +3,58 @@
// found in the LICENSE file.
#include "base/process/process_metrics.h"
@@ -45,8 +45,10 @@
return WrapUnique(new ProcessMetrics(process));
}
--std::optional<double> ProcessMetrics::GetPlatformIndependentCPUUsage() {
-+std::optional<TimeDelta> ProcessMetrics::GetCumulativeCPUUsage() {
+-base::expected<double, ProcessCPUUsageError>
+-ProcessMetrics::GetPlatformIndependentCPUUsage() {
++base::expected<TimeDelta, ProcessCPUUsageError>
++ProcessMetrics::GetCumulativeCPUUsage() {
struct kinfo_proc info;
- int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, process_};
- size_t length = sizeof(info);
@@ -56,22 +58,23 @@
+ int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_ };
+
if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0)
-- return std::nullopt;
-+ return std::optional(TimeDelta());
+- return base::unexpected(ProcessCPUUsageError::kSystemError);
++ return base::ok(TimeDelta());
-- return std::optional(double{info.ki_pctcpu} / FSCALE * 100.0);
-+ return std::optional(Microseconds(info.ki_runtime));
+- return base::ok(double{info.ki_pctcpu} / FSCALE * 100.0);
++ return base::ok(Microseconds(info.ki_runtime));
}
--std::optional<TimeDelta> ProcessMetrics::GetCumulativeCPUUsage() {
+-base::expected<TimeDelta, ProcessCPUUsageError>
+-ProcessMetrics::GetCumulativeCPUUsage() {
- NOTREACHED();
-- return std::nullopt;
+- return base::unexpected(ProcessCPUUsageError::kNotImplemented);
-}
-
size_t GetSystemCommitCharge() {
int mib[2], pagesize;
unsigned long mem_total, mem_free, mem_inactive;
-@@ -60,6 +75,230 @@ size_t GetSystemCommitCharge() {
+@@ -62,6 +76,230 @@ size_t GetSystemCommitCharge() {
pagesize = getpagesize();
return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize);
diff --git a/www/ungoogled-chromium/files/patch-base_process_process__metrics__openbsd.cc b/www/ungoogled-chromium/files/patch-base_process_process__metrics__openbsd.cc
index 8c70c822abf5..d8b8eeb3f43c 100644
--- a/www/ungoogled-chromium/files/patch-base_process_process__metrics__openbsd.cc
+++ b/www/ungoogled-chromium/files/patch-base_process_process__metrics__openbsd.cc
@@ -1,6 +1,6 @@
---- base/process/process_metrics_openbsd.cc.orig 2024-04-23 07:42:17 UTC
+--- base/process/process_metrics_openbsd.cc.orig 2024-05-23 20:04:36 UTC
+++ base/process/process_metrics_openbsd.cc
-@@ -6,73 +6,49 @@
+@@ -6,75 +6,50 @@
#include <stddef.h>
#include <stdint.h>
@@ -8,11 +8,11 @@
#include <sys/param.h>
#include <sys/sysctl.h>
+#include <sys/vmmeter.h>
- #include <optional>
+#include <kvm.h>
+
#include "base/memory/ptr_util.h"
+ #include "base/types/expected.h"
+#include "base/values.h"
+#include "base/notreached.h"
@@ -21,8 +21,9 @@
-namespace {
+ProcessMetrics::ProcessMetrics(ProcessHandle process) : process_(process) {}
--static std::optional<int> GetProcessCPU(pid_t pid) {
-+std::optional<TimeDelta> ProcessMetrics::GetCumulativeCPUUsage() {
+-base::expected<int, ProcessCPUUsageError> GetProcessCPU(pid_t pid) {
++base::expected<TimeDelta, ProcessCPUUsageError>
++ProcessMetrics::GetCumulativeCPUUsage() {
struct kinfo_proc info;
- size_t length;
- int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, pid,
@@ -31,7 +32,7 @@
+ struct timeval tv;
- if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) < 0) {
-- return std::nullopt;
+- return base::unexpected(ProcessCPUUsageError::kSystemError);
- }
+ int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_,
+ sizeof(struct kinfo_proc), 1 };
@@ -39,15 +40,14 @@
- mib[5] = (length / sizeof(struct kinfo_proc));
-
if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) {
-- return std::nullopt;
-+ return std::optional(TimeDelta());
+ return base::unexpected(ProcessCPUUsageError::kSystemError);
}
-- return std::optional(info.p_pctcpu);
+- return base::ok(info.p_pctcpu);
+ tv.tv_sec = info.p_rtime_sec;
+ tv.tv_usec = info.p_rtime_usec;
+
-+ return std::optional(Microseconds(TimeValToMicroseconds(tv)));
++ return base::ok(Microseconds(TimeValToMicroseconds(tv)));
}
-} // namespace
@@ -58,27 +58,29 @@
return WrapUnique(new ProcessMetrics(process));
}
--std::optional<double> ProcessMetrics::GetPlatformIndependentCPUUsage() {
+-base::expected<double, ProcessCPUUsageError>
+-ProcessMetrics::GetPlatformIndependentCPUUsage() {
- TimeTicks time = TimeTicks::Now();
-
- if (last_cpu_time_.is_zero()) {
- // First call, just set the last values.
- last_cpu_time_ = time;
-- return std::optional(0.0);
+- return base::ok(0.0);
- }
-
-- const std::optional<int> cpu = GetProcessCPU(process_);
+- const base::expected<int, ProcessCPUUsageError> cpu = GetProcessCPU(process_);
- if (!cpu.has_value()) {
-- return std::nullopt;
+- return base::unexpected(cpu.error());
- }
-
- last_cpu_time_ = time;
-- return std::optional(double{cpu.value()} / FSCALE * 100.0);
+- return base::ok(double{cpu.value()} / FSCALE * 100.0);
-}
-
--std::optional<TimeDelta> ProcessMetrics::GetCumulativeCPUUsage() {
+-base::expected<TimeDelta, ProcessCPUUsageError>
+-ProcessMetrics::GetCumulativeCPUUsage() {
- NOTREACHED();
-- return std::nullopt;
+- return base::unexpected(ProcessCPUUsageError::kNotImplemented);
-}
-
-ProcessMetrics::ProcessMetrics(ProcessHandle process)
@@ -92,7 +94,7 @@
struct vmtotal vmtotal;
unsigned long mem_total, mem_free, mem_inactive;
size_t len = sizeof(vmtotal);
-@@ -84,9 +60,136 @@ size_t GetSystemCommitCharge() {
+@@ -86,9 +61,136 @@ size_t GetSystemCommitCharge() {
mem_free = vmtotal.t_free;
mem_inactive = vmtotal.t_vm - vmtotal.t_avm;
diff --git a/www/ungoogled-chromium/files/patch-base_process_process__metrics__unittest.cc b/www/ungoogled-chromium/files/patch-base_process_process__metrics__unittest.cc
index dfaddb7e8a6d..cb832274f2d7 100644
--- a/www/ungoogled-chromium/files/patch-base_process_process__metrics__unittest.cc
+++ b/www/ungoogled-chromium/files/patch-base_process_process__metrics__unittest.cc
@@ -1,6 +1,6 @@
---- base/process/process_metrics_unittest.cc.orig 2024-04-23 07:42:17 UTC
+--- base/process/process_metrics_unittest.cc.orig 2024-05-23 20:04:36 UTC
+++ base/process/process_metrics_unittest.cc
-@@ -56,7 +56,8 @@
+@@ -57,7 +57,8 @@
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_WIN) || \
diff --git a/www/ungoogled-chromium/files/patch-base_process_process__posix.cc b/www/ungoogled-chromium/files/patch-base_process_process__posix.cc
index 868a7e134b98..78a2f0960910 100644
--- a/www/ungoogled-chromium/files/patch-base_process_process__posix.cc
+++ b/www/ungoogled-chromium/files/patch-base_process_process__posix.cc
@@ -1,4 +1,4 @@
---- base/process/process_posix.cc.orig 2023-09-17 07:59:53 UTC
+--- base/process/process_posix.cc.orig 2024-05-23 20:04:36 UTC
+++ base/process/process_posix.cc
@@ -23,10 +23,15 @@
#include "base/trace_event/base_tracing.h"
@@ -17,16 +17,16 @@
#if BUILDFLAG(CLANG_PROFILING)
#include "base/test/clang_profiling.h"
#endif
-@@ -93,7 +98,7 @@ bool WaitpidWithTimeout(base::ProcessHandle handle,
- return ret_pid > 0;
+@@ -99,7 +104,7 @@ bool WaitpidWithTimeout(base::ProcessHandle handle,
}
+ #endif
-#if BUILDFLAG(IS_MAC)
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD)
// Using kqueue on Mac so that we can wait on non-child processes.
// We can't use kqueues on child processes because we need to reap
// our own children using wait.
-@@ -198,7 +203,7 @@ bool WaitForExitWithTimeoutImpl(base::ProcessHandle ha
+@@ -376,7 +381,7 @@ bool Process::WaitForExitWithTimeoutImpl(base::Process
const bool exited = (parent_pid < 0);
if (!exited && parent_pid != our_pid) {
@@ -35,7 +35,7 @@
// On Mac we can wait on non child processes.
return WaitForSingleNonChildProcess(handle, timeout);
#else
-@@ -387,7 +392,56 @@ void Process::Exited(int exit_code) const {
+@@ -413,7 +418,56 @@ void Process::Exited(int exit_code) const {
int Process::GetOSPriority() const {
DCHECK(IsValid());
diff --git a/www/ungoogled-chromium/files/patch-base_profiler_stack__sampling__profiler__unittest.cc b/www/ungoogled-chromium/files/patch-base_profiler_stack__sampling__profiler__unittest.cc
index d9c2aee3ae8e..1f4081fdea25 100644
--- a/www/ungoogled-chromium/files/patch-base_profiler_stack__sampling__profiler__unittest.cc
+++ b/www/ungoogled-chromium/files/patch-base_profiler_stack__sampling__profiler__unittest.cc
@@ -1,9 +1,9 @@
---- base/profiler/stack_sampling_profiler_unittest.cc.orig 2024-03-22 14:16:19 UTC
+--- base/profiler/stack_sampling_profiler_unittest.cc.orig 2024-05-23 20:04:36 UTC
+++ base/profiler/stack_sampling_profiler_unittest.cc
-@@ -42,7 +42,7 @@
+@@ -43,7 +43,7 @@
+
#include <intrin.h>
#include <malloc.h>
- #include <windows.h>
-#else
+#elif !BUILDFLAG(IS_BSD)
#include <alloca.h>
diff --git a/www/ungoogled-chromium/files/patch-base_strings_safe__sprintf__unittest.cc b/www/ungoogled-chromium/files/patch-base_strings_safe__sprintf__unittest.cc
index b295fb269e3d..3c50745fb0b5 100644
--- a/www/ungoogled-chromium/files/patch-base_strings_safe__sprintf__unittest.cc
+++ b/www/ungoogled-chromium/files/patch-base_strings_safe__sprintf__unittest.cc
@@ -1,6 +1,6 @@
---- base/strings/safe_sprintf_unittest.cc.orig 2023-03-10 11:01:21 UTC
+--- base/strings/safe_sprintf_unittest.cc.orig 2024-05-23 20:04:36 UTC
+++ base/strings/safe_sprintf_unittest.cc
-@@ -733,6 +733,7 @@ TEST(SafeSPrintfTest, EmbeddedNul) {
+@@ -735,6 +735,7 @@ TEST(SafeSPrintfTest, EmbeddedNul) {
#endif
}
@@ -8,7 +8,7 @@
TEST(SafeSPrintfTest, EmitNULL) {
char buf[40];
#if defined(__GNUC__)
-@@ -749,6 +750,7 @@ TEST(SafeSPrintfTest, EmitNULL) {
+@@ -751,6 +752,7 @@ TEST(SafeSPrintfTest, EmitNULL) {
#pragma GCC diagnostic pop
#endif
}
diff --git a/www/ungoogled-chromium/files/patch-base_synchronization_lock__impl.h b/www/ungoogled-chromium/files/patch-base_synchronization_lock__impl.h
index 49632565037f..d70ce056c0dd 100644
--- a/www/ungoogled-chromium/files/patch-base_synchronization_lock__impl.h
+++ b/www/ungoogled-chromium/files/patch-base_synchronization_lock__impl.h
@@ -1,6 +1,6 @@
---- base/synchronization/lock_impl.h.orig 2024-04-23 07:42:17 UTC
+--- base/synchronization/lock_impl.h.orig 2024-05-23 20:04:36 UTC
+++ base/synchronization/lock_impl.h
-@@ -107,6 +107,10 @@ void LockImpl::Unlock() {
+@@ -106,6 +106,10 @@ void LockImpl::Unlock() {
}
#elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
@@ -11,7 +11,7 @@
#if DCHECK_IS_ON()
BASE_EXPORT void dcheck_trylock_result(int rv);
-@@ -127,6 +131,9 @@ void LockImpl::Unlock() {
+@@ -126,6 +130,9 @@ void LockImpl::Unlock() {
dcheck_unlock_result(rv);
#endif
}
diff --git a/www/ungoogled-chromium/files/patch-base_system_sys__info.h b/www/ungoogled-chromium/files/patch-base_system_sys__info.h
index 1debe80e3b03..e66bf11b1c04 100644
--- a/www/ungoogled-chromium/files/patch-base_system_sys__info.h
+++ b/www/ungoogled-chromium/files/patch-base_system_sys__info.h
@@ -1,6 +1,6 @@
---- base/system/sys_info.h.orig 2024-04-23 07:42:17 UTC
+--- base/system/sys_info.h.orig 2024-05-23 20:04:36 UTC
+++ base/system/sys_info.h
-@@ -322,6 +322,8 @@ class BASE_EXPORT SysInfo {
+@@ -325,6 +325,8 @@ class BASE_EXPORT SysInfo {
static void ResetCpuSecurityMitigationsEnabledForTesting();
#endif
@@ -9,7 +9,7 @@
private:
friend class test::ScopedAmountOfPhysicalMemoryOverride;
FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory);
-@@ -334,7 +336,7 @@ class BASE_EXPORT SysInfo {
+@@ -337,7 +339,7 @@ class BASE_EXPORT SysInfo {
static HardwareInfo GetHardwareInfoSync();
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
diff --git a/www/ungoogled-chromium/files/patch-base_threading_platform__thread__posix.cc b/www/ungoogled-chromium/files/patch-base_threading_platform__thread__posix.cc
index 12e9bc5093bd..62fb5adc60db 100644
--- a/www/ungoogled-chromium/files/patch-base_threading_platform__thread__posix.cc
+++ b/www/ungoogled-chromium/files/patch-base_threading_platform__thread__posix.cc
@@ -1,13 +1,12 @@
---- base/threading/platform_thread_posix.cc.orig 2024-04-23 07:42:17 UTC
+--- base/threading/platform_thread_posix.cc.orig 2024-05-23 20:04:36 UTC
+++ base/threading/platform_thread_posix.cc
-@@ -78,12 +78,12 @@ void* ThreadFunc(void* params) {
+@@ -77,11 +77,11 @@ void* ThreadFunc(void* params) {
if (!thread_params->joinable)
base::DisallowSingleton();
--#if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) && BUILDFLAG(USE_STARSCAN)
-+#if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) && BUILDFLAG(USE_STARSCAN) && !BUILDFLAG(IS_BSD)
- partition_alloc::internal::PCScan::NotifyThreadCreated(
- partition_alloc::internal::GetStackPointer());
+-#if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
++#if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) && !BUILDFLAG(IS_BSD)
+ partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated();
#endif
-#if !BUILDFLAG(IS_NACL)
@@ -15,7 +14,7 @@
#if BUILDFLAG(IS_APPLE)
PlatformThread::SetCurrentThreadRealtimePeriodValue(
delegate->GetRealtimePeriod());
-@@ -267,6 +267,8 @@ PlatformThreadId PlatformThreadBase::CurrentId() {
+@@ -265,6 +265,8 @@ PlatformThreadId PlatformThreadBase::CurrentId() {
return reinterpret_cast<int32_t>(pthread_self());
#elif BUILDFLAG(IS_POSIX) && BUILDFLAG(IS_AIX)
return pthread_self();
@@ -24,7 +23,7 @@
#elif BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_AIX)
return reinterpret_cast<int64_t>(pthread_self());
#endif
-@@ -357,7 +359,7 @@ void PlatformThreadBase::Detach(PlatformThreadHandle t
+@@ -355,7 +357,7 @@ void PlatformThreadBase::Detach(PlatformThreadHandle t
// static
bool PlatformThreadBase::CanChangeThreadType(ThreadType from, ThreadType to) {
@@ -33,7 +32,7 @@
return false;
#else
if (from >= to) {
-@@ -378,6 +380,9 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type,
+@@ -376,6 +378,9 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type,
MessagePumpType pump_type_hint) {
#if BUILDFLAG(IS_NACL)
NOTIMPLEMENTED();
@@ -43,7 +42,7 @@
#else
if (internal::SetCurrentThreadTypeForPlatform(thread_type, pump_type_hint))
return;
-@@ -400,7 +405,7 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type,
+@@ -398,7 +403,7 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type,
// static
ThreadPriorityForTest PlatformThreadBase::GetCurrentThreadPriorityForTest() {
diff --git a/www/ungoogled-chromium/files/patch-base_threading_platform__thread__unittest.cc b/www/ungoogled-chromium/files/patch-base_threading_platform__thread__unittest.cc
index f59e0a4cf66e..66183f7d1437 100644
--- a/www/ungoogled-chromium/files/patch-base_threading_platform__thread__unittest.cc
+++ b/www/ungoogled-chromium/files/patch-base_threading_platform__thread__unittest.cc
@@ -1,6 +1,6 @@
---- base/threading/platform_thread_unittest.cc.orig 2023-11-04 07:08:51 UTC
+--- base/threading/platform_thread_unittest.cc.orig 2024-05-23 20:04:36 UTC
+++ base/threading/platform_thread_unittest.cc
-@@ -32,7 +32,7 @@
+@@ -33,7 +33,7 @@
#include "base/time/time.h"
#endif
@@ -9,7 +9,7 @@
#include <pthread.h>
#include <sys/syscall.h>
#include <sys/types.h>
-@@ -423,7 +423,7 @@ TEST(PlatformThreadTest,
+@@ -424,7 +424,7 @@ TEST(PlatformThreadTest,
// and hardcodes what we know. Please inform scheduler-dev@ch40m1um.qjz9zk if this
// proprerty changes for a given platform.
TEST(PlatformThreadTest, CanChangeThreadType) {
@@ -18,7 +18,7 @@
// On Ubuntu, RLIMIT_NICE and RLIMIT_RTPRIO are 0 by default, so we won't be
// able to increase priority to any level unless we are root (euid == 0).
bool kCanIncreasePriority = false;
-@@ -706,12 +706,16 @@ INSTANTIATE_TEST_SUITE_P(
+@@ -708,12 +708,16 @@ INSTANTIATE_TEST_SUITE_P(
#endif // BUILDFLAG(IS_APPLE)
diff --git a/www/ungoogled-chromium/files/patch-build_config_BUILDCONFIG.gn b/www/ungoogled-chromium/files/patch-build_config_BUILDCONFIG.gn
index 153ab07ae9e0..1a995a3f261d 100644
--- a/www/ungoogled-chromium/files/patch-build_config_BUILDCONFIG.gn
+++ b/www/ungoogled-chromium/files/patch-build_config_BUILDCONFIG.gn
@@ -1,4 +1,4 @@
---- build/config/BUILDCONFIG.gn.orig 2023-01-13 08:56:02 UTC
+--- build/config/BUILDCONFIG.gn.orig 2024-05-23 20:04:36 UTC
+++ build/config/BUILDCONFIG.gn
@@ -136,7 +136,8 @@ declare_args() {
is_official_build = false
@@ -10,7 +10,7 @@
(current_cpu != "s390x" && current_cpu != "s390" &&
current_cpu != "ppc64" && current_cpu != "ppc" &&
current_cpu != "mips" && current_cpu != "mips64" &&
-@@ -225,6 +226,10 @@ if (host_toolchain == "") {
+@@ -231,6 +232,10 @@ if (host_toolchain == "") {
host_toolchain = "//build/toolchain/aix:$host_cpu"
} else if (host_os == "zos") {
host_toolchain = "//build/toolchain/zos:$host_cpu"
@@ -21,7 +21,7 @@
} else {
assert(false, "Unsupported host_os: $host_os")
}
-@@ -268,6 +273,8 @@ if (target_os == "android") {
+@@ -274,6 +279,8 @@ if (target_os == "android") {
_default_toolchain = "//build/toolchain/aix:$target_cpu"
} else if (target_os == "zos") {
_default_toolchain = "//build/toolchain/zos:$target_cpu"
@@ -30,7 +30,7 @@
} else {
assert(false, "Unsupported target_os: $target_os")
}
-@@ -302,7 +309,11 @@ is_android = current_os == "android"
+@@ -308,7 +315,11 @@ is_android = current_os == "android"
is_chromeos = current_os == "chromeos"
is_fuchsia = current_os == "fuchsia"
is_ios = current_os == "ios"
diff --git a/www/ungoogled-chromium/files/patch-build_config_clang_BUILD.gn b/www/ungoogled-chromium/files/patch-build_config_clang_BUILD.gn
index 6886a6e71cea..a9d66cda0265 100644
--- a/www/ungoogled-chromium/files/patch-build_config_clang_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-build_config_clang_BUILD.gn
@@ -1,6 +1,6 @@
---- build/config/clang/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- build/config/clang/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ build/config/clang/BUILD.gn
-@@ -203,7 +203,7 @@ template("clang_lib") {
+@@ -212,7 +212,7 @@ template("clang_lib") {
# Adds a dependency on the Clang runtime library clang_rt.builtins.
clang_lib("compiler_builtins") {
diff --git a/www/ungoogled-chromium/files/patch-build_config_compiler_BUILD.gn b/www/ungoogled-chromium/files/patch-build_config_compiler_BUILD.gn
index 705b34985fa8..ef291fed0a7e 100644
--- a/www/ungoogled-chromium/files/patch-build_config_compiler_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-build_config_compiler_BUILD.gn
@@ -1,6 +1,6 @@
---- build/config/compiler/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- build/config/compiler/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ build/config/compiler/BUILD.gn
-@@ -204,7 +204,7 @@ declare_args() {
+@@ -203,7 +203,7 @@ declare_args() {
# This greatly reduces the size of debug builds, at the cost of
# debugging information which is required by some specialized
# debugging tools.
@@ -9,7 +9,7 @@
}
declare_args() {
-@@ -268,13 +268,16 @@ config("default_include_dirs") {
+@@ -265,13 +265,16 @@ config("default_include_dirs") {
# Compiler instrumentation can introduce dependencies in DSOs to symbols in
# the executable they are loaded into, so they are unresolved at link-time.
config("no_unresolved_symbols") {
@@ -27,7 +27,7 @@
}
# compiler ---------------------------------------------------------------------
-@@ -515,6 +518,10 @@ config("compiler") {
+@@ -512,6 +515,10 @@ config("compiler") {
}
}
@@ -38,7 +38,7 @@
# Linux-specific compiler flags setup.
# ------------------------------------
if (use_gold) {
-@@ -590,7 +597,7 @@ config("compiler") {
+@@ -587,7 +594,7 @@ config("compiler") {
ldflags += [ "-Wl,-z,keep-text-section-prefix" ]
}
@@ -47,7 +47,7 @@
cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ]
if (save_reproducers_on_lld_crash && use_lld) {
ldflags += [
-@@ -1180,7 +1187,7 @@ config("compiler_cpu_abi") {
+@@ -1198,7 +1205,7 @@ config("compiler_cpu_abi") {
]
}
} else if (current_cpu == "arm") {
@@ -56,7 +56,7 @@
!(is_chromeos_lacros && is_chromeos_device)) {
cflags += [ "--target=arm-linux-gnueabihf" ]
ldflags += [ "--target=arm-linux-gnueabihf" ]
-@@ -1195,7 +1202,7 @@ config("compiler_cpu_abi") {
+@@ -1213,7 +1220,7 @@ config("compiler_cpu_abi") {
cflags += [ "-mtune=$arm_tune" ]
}
} else if (current_cpu == "arm64") {
@@ -65,7 +65,7 @@
!(is_chromeos_lacros && is_chromeos_device)) {
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
-@@ -1530,7 +1537,7 @@ config("compiler_deterministic") {
+@@ -1548,7 +1555,7 @@ config("compiler_deterministic") {
# different build directory like "out/feature_a" and "out/feature_b" if
# we build same files with same compile flag.
# Other paths are already given in relative, no need to normalize them.
@@ -74,7 +74,7 @@
# TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here.
cflags += [
"-Xclang",
-@@ -1582,7 +1589,7 @@ config("compiler_deterministic") {
+@@ -1600,7 +1607,7 @@ config("compiler_deterministic") {
}
config("clang_revision") {
@@ -83,7 +83,7 @@
update_args = [
"--print-revision",
"--verify-version=$clang_version",
-@@ -1890,9 +1897,6 @@ config("default_warnings") {
+@@ -1914,9 +1921,6 @@ config("default_warnings") {
# TODO(crbug.com/1494809): Evaluate and possibly enable.
"-Wno-vla-extension",
@@ -93,7 +93,7 @@
]
cflags_cc += [
-@@ -1900,7 +1904,7 @@ config("default_warnings") {
+@@ -1924,7 +1928,7 @@ config("default_warnings") {
"-Wenum-compare-conditional",
]
@@ -102,7 +102,7 @@
cflags_cc += [
# TODO(https://crbug.com/1513724): Fix and re-enable.
"-Wno-c++11-narrowing-const-reference",
-@@ -2089,7 +2093,7 @@ config("no_chromium_code") {
+@@ -2113,7 +2117,7 @@ config("no_chromium_code") {
# third-party libraries.
"-Wno-c++11-narrowing",
]
@@ -111,7 +111,7 @@
cflags += [
# Disabled for similar reasons as -Wunused-variable.
"-Wno-unused-but-set-variable",
-@@ -2597,7 +2601,7 @@ config("afdo_optimize_size") {
+@@ -2638,7 +2642,7 @@ config("afdo_optimize_size") {
# There are some targeted places that AFDO regresses, so we provide a separate
# config to allow AFDO to be disabled per-target.
config("afdo") {
@@ -120,7 +120,7 @@
cflags = []
if (clang_emit_debug_info_for_profiling) {
# Add the following flags to generate debug info for profiling.
-@@ -2624,7 +2628,7 @@ config("afdo") {
+@@ -2665,7 +2669,7 @@ config("afdo") {
cflags += [ "-Wno-backend-plugin" ]
inputs = [ _clang_sample_profile ]
}
@@ -129,7 +129,7 @@
cflags = [ "-fauto-profile=${auto_profile_path}" ]
inputs = [ auto_profile_path ]
}
-@@ -2788,7 +2792,8 @@ config("symbols") {
+@@ -2829,7 +2833,8 @@ config("symbols") {
configs += [ "//build/config:compress_debug_sections" ]
}
diff --git a/www/ungoogled-chromium/files/patch-build_config_rust.gni b/www/ungoogled-chromium/files/patch-build_config_rust.gni
index dc83fd8001bf..22f1f8c89e4a 100644
--- a/www/ungoogled-chromium/files/patch-build_config_rust.gni
+++ b/www/ungoogled-chromium/files/patch-build_config_rust.gni
@@ -1,6 +1,6 @@
---- build/config/rust.gni.orig 2024-04-23 07:42:17 UTC
+--- build/config/rust.gni.orig 2024-05-23 20:04:36 UTC
+++ build/config/rust.gni
-@@ -277,6 +277,10 @@ if (is_linux || is_chromeos) {
+@@ -272,6 +272,10 @@ if (is_linux || is_chromeos) {
}
}
diff --git a/www/ungoogled-chromium/files/patch-build_toolchain_gcc__toolchain.gni b/www/ungoogled-chromium/files/patch-build_toolchain_gcc__toolchain.gni
index 02efd88caa0a..c04afadf6810 100644
--- a/www/ungoogled-chromium/files/patch-build_toolchain_gcc__toolchain.gni
+++ b/www/ungoogled-chromium/files/patch-build_toolchain_gcc__toolchain.gni
@@ -1,4 +1,4 @@
---- build/toolchain/gcc_toolchain.gni.orig 2024-03-22 14:16:19 UTC
+--- build/toolchain/gcc_toolchain.gni.orig 2024-05-23 20:04:36 UTC
+++ build/toolchain/gcc_toolchain.gni
@@ -57,6 +57,13 @@ if (enable_resource_allowlist_generation) {
"enable_resource_allowlist_generation=true does not work for target_os=$target_os")
@@ -14,7 +14,7 @@
# This template defines a toolchain for something that works like gcc
# (including clang).
#
-@@ -890,22 +897,12 @@ template("gcc_toolchain") {
+@@ -879,22 +886,12 @@ template("gcc_toolchain") {
# use_gold too.
template("clang_toolchain") {
gcc_toolchain(target_name) {
diff --git a/www/ungoogled-chromium/files/patch-cc_BUILD.gn b/www/ungoogled-chromium/files/patch-cc_BUILD.gn
index fe6630409f10..230b0d64ecc8 100644
--- a/www/ungoogled-chromium/files/patch-cc_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-cc_BUILD.gn
@@ -1,6 +1,6 @@
---- cc/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- cc/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ cc/BUILD.gn
-@@ -681,7 +681,7 @@ cc_test_static_library("test_support") {
+@@ -677,7 +677,7 @@ cc_test_static_library("test_support") {
if (enable_vulkan) {
deps += [ "//gpu/vulkan/init" ]
}
@@ -9,7 +9,7 @@
data_deps = [ "//third_party/mesa_headers" ]
}
if (skia_use_dawn) {
-@@ -940,7 +940,6 @@ cc_test("cc_unittests") {
+@@ -936,7 +936,6 @@ cc_test("cc_unittests") {
data = [ "//components/test/data/viz/" ]
data_deps = [
"//testing/buildbot/filters:cc_unittests_filters",
diff --git a/www/ungoogled-chromium/files/patch-chrome_app_chrome__main__delegate.cc b/www/ungoogled-chromium/files/patch-chrome_app_chrome__main__delegate.cc
index 56986599445b..4110fb39f720 100644
--- a/www/ungoogled-chromium/files/patch-chrome_app_chrome__main__delegate.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_app_chrome__main__delegate.cc
@@ -1,6 +1,6 @@
---- chrome/app/chrome_main_delegate.cc.orig 2024-05-11 05:39:22 UTC
+--- chrome/app/chrome_main_delegate.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/app/chrome_main_delegate.cc
-@@ -146,7 +146,7 @@
+@@ -137,7 +137,7 @@
#include "components/about_ui/credit_utils.h"
#endif
@@ -9,7 +9,7 @@
#include "components/nacl/common/nacl_paths.h"
#include "components/nacl/zygote/nacl_fork_delegate_linux.h"
#endif
-@@ -189,20 +189,20 @@
+@@ -180,21 +180,21 @@
#include "v8/include/v8.h"
#endif
@@ -21,6 +21,7 @@
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "base/nix/scoped_xdg_activation_token_injector.h"
+ #include "ui/linux/display_server_utils.h"
#endif
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
@@ -34,7 +35,16 @@
#include "chrome/browser/policy/policy_path_parser.h"
#include "components/crash/core/app/crashpad.h"
#endif
-@@ -349,7 +349,7 @@ void AdjustLinuxOOMScore(const std::string& process_ty
+@@ -241,7 +241,7 @@
+ #include "base/scoped_add_feature_flags.h"
+ #include "ui/base/ui_base_features.h"
+ #include "ui/ozone/public/ozone_platform.h"
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ #include "chrome/browser/chrome_browser_main_extra_parts_linux.h"
+ #endif
+ #endif // BUILDFLAG(IS_OZONE)
+@@ -341,7 +341,7 @@ void AdjustLinuxOOMScore(const std::string& process_ty
// and resources loaded.
bool SubprocessNeedsResourceBundle(const std::string& process_type) {
return
@@ -43,7 +53,7 @@
// The zygote process opens the resources for the renderers.
process_type == switches::kZygoteProcess ||
#endif
-@@ -434,7 +434,7 @@ bool HandleVersionSwitches(const base::CommandLine& co
+@@ -426,7 +426,7 @@ bool HandleVersionSwitches(const base::CommandLine& co
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -52,7 +62,7 @@
// Show the man page if --help or -h is on the command line.
void HandleHelpSwitches(const base::CommandLine& command_line) {
if (command_line.HasSwitch(switches::kHelp) ||
-@@ -480,7 +480,7 @@ void SetCrashpadUploadConsentPostLogin() {
+@@ -472,7 +472,7 @@ void SetCrashpadUploadConsentPostLogin() {
}
#endif // BUILDFLAG(IS_CHROMEOS_LACROS)
@@ -61,7 +71,7 @@
void SIGTERMProfilingShutdown(int signal) {
content::Profiling::Stop();
struct sigaction sigact;
-@@ -562,7 +562,7 @@ std::optional<int> AcquireProcessSingleton(
+@@ -554,7 +554,7 @@ std::optional<int> AcquireProcessSingleton(
// process can be exited.
ChromeProcessSingleton::CreateInstance(user_data_dir);
@@ -70,7 +80,7 @@
// Read the xdg-activation token and set it in the command line for the
// duration of the notification in order to ensure this is propagated to an
// already running browser process if it exists.
-@@ -646,7 +646,7 @@ void InitializeUserDataDir(base::CommandLine* command_
+@@ -638,7 +638,7 @@ void InitializeUserDataDir(base::CommandLine* command_
std::string process_type =
command_line->GetSwitchValueASCII(switches::kProcessType);
@@ -79,7 +89,7 @@
// On Linux, Chrome does not support running multiple copies under different
// DISPLAYs, so the profile directory can be specified in the environment to
// support the virtual desktop use-case.
-@@ -773,7 +773,7 @@ void RecordMainStartupMetrics(base::TimeTicks applicat
+@@ -765,7 +765,7 @@ void RecordMainStartupMetrics(base::TimeTicks applicat
#endif
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \
@@ -88,8 +98,17 @@
// Record the startup process creation time on supported platforms. On Android
// this is recorded in ChromeMainDelegateAndroid.
startup_metric_utils::GetCommon().RecordStartupProcessCreationTime(
-@@ -1162,7 +1162,7 @@ void ChromeMainDelegate::CommonEarlyInitialization(Inv
- chrome::GetChannel() == version_info::Channel::DEV;
+@@ -962,7 +962,7 @@ std::optional<int> ChromeMainDelegate::PostEarlyInitia
+ #if BUILDFLAG(IS_OZONE)
+ // Initialize Ozone platform and add required feature flags as per platform's
+ // properties.
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ ui::SetOzonePlatformForLinuxIfNeeded(*base::CommandLine::ForCurrentProcess());
+ #endif
+ ui::OzonePlatform::PreEarlyInitialization();
+@@ -1155,7 +1155,7 @@ void ChromeMainDelegate::CommonEarlyInitialization(Inv
+ const bool is_canary_dev = IsCanaryDev();
const bool emit_crashes =
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
- BUILDFLAG(IS_WIN)
@@ -97,16 +116,7 @@
is_canary_dev;
#else
false;
-@@ -1181,7 +1181,7 @@ void ChromeMainDelegate::CommonEarlyInitialization(Inv
- // for more context.
- base::sequence_manager::internal::ThreadController::InitializeFeatures(
- /*record_sample_metadata=*/is_canary_dev);
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
- base::MessagePumpLibevent::InitializeFeatures();
- #elif BUILDFLAG(IS_MAC)
- base::PlatformThread::InitFeaturesPostFieldTrial();
-@@ -1330,7 +1330,7 @@ std::optional<int> ChromeMainDelegate::BasicStartupCom
+@@ -1310,7 +1310,7 @@ std::optional<int> ChromeMainDelegate::BasicStartupCom
// TODO(crbug.com/1052397): Revisit the macro expression once build flag
// switch of lacros-chrome is complete.
@@ -115,7 +125,7 @@
// This will directly exit if the user asked for help.
HandleHelpSwitches(command_line);
#endif
-@@ -1360,7 +1360,7 @@ std::optional<int> ChromeMainDelegate::BasicStartupCom
+@@ -1340,7 +1340,7 @@ std::optional<int> ChromeMainDelegate::BasicStartupCom
#if BUILDFLAG(IS_CHROMEOS)
chromeos::dbus_paths::RegisterPathProvider();
#endif
@@ -124,7 +134,7 @@
nacl::RegisterPathProvider();
#endif
-@@ -1757,7 +1757,7 @@ void ChromeMainDelegate::PreSandboxStartup() {
+@@ -1735,7 +1735,7 @@ void ChromeMainDelegate::PreSandboxStartup() {
CHECK(!loaded_locale.empty()) << "Locale could not be found for " << locale;
}
@@ -133,7 +143,7 @@
// Zygote needs to call InitCrashReporter() in RunZygote().
if (process_type != switches::kZygoteProcess) {
if (command_line.HasSwitch(switches::kPreCrashpadCrashTest)) {
-@@ -1858,7 +1858,7 @@ absl::variant<int, content::MainFunctionParams> Chrome
+@@ -1836,7 +1836,7 @@ absl::variant<int, content::MainFunctionParams> Chrome
// This entry is not needed on Linux, where the NaCl loader
// process is launched via nacl_helper instead.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_BUILD.gn b/www/ungoogled-chromium/files/patch-chrome_browser_BUILD.gn
index 38fcbfc58577..7dcb72999243 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_BUILD.gn
@@ -1,6 +1,6 @@
---- chrome/browser/BUILD.gn.orig 2024-04-26 05:03:53 UTC
+--- chrome/browser/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/BUILD.gn
-@@ -6531,6 +6531,13 @@ static_library("browser") {
+@@ -6607,6 +6607,13 @@ static_library("browser") {
}
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_about__flags.cc b/www/ungoogled-chromium/files/patch-chrome_browser_about__flags.cc
index 888787c8e904..38ea86610700 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_about__flags.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_about__flags.cc
@@ -1,6 +1,6 @@
---- chrome/browser/about_flags.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/about_flags.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/about_flags.cc
-@@ -235,7 +235,7 @@
+@@ -237,7 +237,7 @@
#include "ui/ui_features.h"
#include "url/url_features.h"
@@ -9,7 +9,7 @@
#include "base/allocator/buildflags.h"
#endif
-@@ -323,7 +323,7 @@
+@@ -325,7 +325,7 @@
#include "device/vr/public/cpp/features.h"
#endif
@@ -18,7 +18,7 @@
#include "ui/ozone/public/ozone_switches.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
-@@ -332,7 +332,7 @@
+@@ -334,7 +334,7 @@
#include "chrome/browser/win/titlebar_config.h"
#endif
@@ -27,7 +27,7 @@
#include "chrome/browser/enterprise/profile_management/profile_management_features.h"
#include "components/supervised_user/core/common/features.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
-@@ -490,7 +490,7 @@ const FeatureEntry::FeatureVariation kDXGIWaitableSwap
+@@ -492,7 +492,7 @@ const FeatureEntry::FeatureVariation kDXGIWaitableSwap
{"Max 3 Frames", &kDXGIWaitableSwapChain3Frames, 1, nullptr}};
#endif
@@ -36,7 +36,16 @@
const FeatureEntry::Choice kOzonePlatformHintRuntimeChoices[] = {
{flag_descriptions::kOzonePlatformHintChoiceDefault, "", ""},
{flag_descriptions::kOzonePlatformHintChoiceAuto,
-@@ -1385,7 +1385,7 @@ const FeatureEntry::FeatureVariation kChromeRefresh202
+@@ -1295,7 +1295,7 @@ const FeatureEntry::FeatureVariation kPageContentAnnot
+ };
+
+ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
+- BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA)
++ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
+ const FeatureEntry::FeatureParam kHistoryEmbeddingsAtKeywordAcceleration[]{
+ {"AtKeywordAcceleration", "true"},
+ };
+@@ -1425,7 +1425,7 @@ const FeatureEntry::FeatureVariation kChromeRefresh202
nullptr}};
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
@@ -45,7 +54,7 @@
const FeatureEntry::FeatureParam kShortcutBoostSingleUrl[] = {
{"ShortcutBoostSearchScore", "0"},
{"ShortcutBoostNonTopHitThreshold", "0"},
-@@ -3705,7 +3705,7 @@ const flags_ui::FeatureEntry::FeatureVariation
+@@ -3794,7 +3794,7 @@ const flags_ui::FeatureEntry::FeatureVariation
std::size(kParcelTrackingTestDataOutForDelivery), nullptr},
};
@@ -54,7 +63,7 @@
const flags_ui::FeatureEntry::FeatureParam
kDesktopPWAsLinkCapturingDefaultOn[] = {{"on_by_default", "true"}};
const flags_ui::FeatureEntry::FeatureParam
-@@ -4504,7 +4504,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -4592,7 +4592,7 @@ const FeatureEntry kFeatureEntries[] = {
},
#endif // BUILDFLAG(IS_ANDROID)
@@ -63,7 +72,7 @@
{
"fluent-overlay-scrollbars",
flag_descriptions::kFluentOverlayScrollbarsName,
-@@ -4945,7 +4945,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -5047,7 +5047,7 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(features::kWebAppUniversalInstall)},
#endif // !BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -72,7 +81,7 @@
{"shortcuts-not-apps", flag_descriptions::kShortcutsNotAppsName,
flag_descriptions::kShortcutsNotAppsDescription,
kOsMac | kOsWin | kOsLinux | kOsFuchsia,
-@@ -5070,7 +5070,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -5172,7 +5172,7 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(features::kWebShare)},
#endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
@@ -81,7 +90,7 @@
{"pulseaudio-loopback-for-cast",
flag_descriptions::kPulseaudioLoopbackForCastName,
flag_descriptions::kPulseaudioLoopbackForCastDescription, kOsLinux,
-@@ -5086,7 +5086,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -5188,7 +5188,7 @@ const FeatureEntry kFeatureEntries[] = {
MULTI_VALUE_TYPE(kOzonePlatformHintRuntimeChoices)},
#endif // BUILDFLAG(IS_LINUX)
@@ -90,7 +99,7 @@
{"skip-undecryptable-passwords",
flag_descriptions::kSkipUndecryptablePasswordsName,
flag_descriptions::kSkipUndecryptablePasswordsDescription,
-@@ -5990,7 +5990,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -6096,7 +6096,7 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
@@ -99,16 +108,16 @@
{"omnibox-domain-suggestions",
flag_descriptions::kOmniboxDomainSuggestionsName,
flag_descriptions::kOmniboxDomainSuggestionsDescription, kOsDesktop,
-@@ -6861,7 +6861,7 @@ const FeatureEntry kFeatureEntries[] = {
- flag_descriptions::kParallelDownloadingDescription, kOsAll,
- FEATURE_VALUE_TYPE(download::features::kParallelDownloading)},
+@@ -6416,7 +6416,7 @@ const FeatureEntry kFeatureEntries[] = {
+ "OrganicRepeatableQueries")},
--#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- {"enable-async-dns", flag_descriptions::kAsyncDnsName,
- flag_descriptions::kAsyncDnsDescription, kOsWin | kOsLinux,
- FEATURE_VALUE_TYPE(net::features::kAsyncDns)},
-@@ -7866,7 +7866,7 @@ const FeatureEntry kFeatureEntries[] = {
+ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
+- BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA)
++ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
+ {"history-embeddings", flag_descriptions::kHistoryEmbeddingsName,
+ flag_descriptions::kHistoryEmbeddingsDescription, kOsDesktop,
+ FEATURE_WITH_PARAMS_VALUE_TYPE(history_embeddings::kHistoryEmbeddings,
+@@ -7959,7 +7959,7 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(ash::features::kPrivacyIndicators)},
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
@@ -117,7 +126,7 @@
{"enable-network-service-sandbox",
flag_descriptions::kEnableNetworkServiceSandboxName,
flag_descriptions::kEnableNetworkServiceSandboxDescription,
-@@ -7890,7 +7890,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -7983,7 +7983,7 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(media::kV4L2FlatStatefulVideoDecoder)},
#endif
@@ -126,7 +135,7 @@
{"enable-family-link-extensions-permissions",
flag_descriptions::
kEnableExtensionsPermissionsForSupervisedUsersOnDesktopName,
-@@ -8742,7 +8742,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -8851,7 +8851,7 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(ash::features::kWallpaperPerDesk)},
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
@@ -135,7 +144,7 @@
{"enable-get-all-screens-media", flag_descriptions::kGetAllScreensMediaName,
flag_descriptions::kGetAllScreensMediaDescription,
kOsCrOS | kOsLacros | kOsLinux,
-@@ -8784,7 +8784,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -8899,7 +8899,7 @@ const FeatureEntry kFeatureEntries[] = {
#if BUILDFLAG(IS_WIN) || \
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \
@@ -144,7 +153,7 @@
{
"ui-debug-tools",
flag_descriptions::kUIDebugToolsName,
-@@ -9053,7 +9053,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -9125,7 +9125,7 @@ const FeatureEntry kFeatureEntries[] = {
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -153,7 +162,7 @@
{"policy-indication-for-managed-default-search",
flag_descriptions::kPolicyIndicationForManagedDefaultSearchName,
flag_descriptions::kPolicyIndicationForManagedDefaultSearchDescription,
-@@ -9349,7 +9349,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -9432,7 +9432,7 @@ const FeatureEntry kFeatureEntries[] = {
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
@@ -162,7 +171,7 @@
{"media-session-enter-picture-in-picture",
flag_descriptions::kMediaSessionEnterPictureInPictureName,
flag_descriptions::kMediaSessionEnterPictureInPictureDescription,
-@@ -10289,7 +10289,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -10348,7 +10348,7 @@ const FeatureEntry kFeatureEntries[] = {
kOsDesktop | kOsAndroid,
FEATURE_VALUE_TYPE(features::kProcessPerSiteUpToMainFrameThreshold)},
@@ -171,7 +180,7 @@
{"camera-mic-effects", flag_descriptions::kCameraMicEffectsName,
flag_descriptions::kCameraMicEffectsDescription,
static_cast<unsigned short>(kOsMac | kOsWin | kOsLinux),
-@@ -10327,7 +10327,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -10386,7 +10386,7 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(features::kSiteInstanceGroupsForDataUrls)},
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -180,16 +189,16 @@
{"site-search-settings-policy",
flag_descriptions::kSiteSearchSettingsPolicyName,
flag_descriptions::kSiteSearchSettingsPolicyDescription, kOsAll,
-@@ -10461,7 +10461,7 @@ const FeatureEntry kFeatureEntries[] = {
- password_manager::features::kFillingAcrossAffiliatedWebsitesAndroid)},
- #endif
+@@ -10499,7 +10499,7 @@ const FeatureEntry kFeatureEntries[] = {
+ flag_descriptions::kHideIncognitoMediaMetadataDescription, kOsAll,
+ FEATURE_VALUE_TYPE(media::kHideIncognitoMediaMetadata)},
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
{"third-party-profile-management",
flag_descriptions::kThirdPartyProfileManagementName,
flag_descriptions::kThirdPartyProfileManagementDescription,
-@@ -10813,7 +10813,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -10845,7 +10845,7 @@ const FeatureEntry kFeatureEntries[] = {
trusted_vault::kTrustedVaultFrequentDegradedRecoverabilityPolling)},
#endif
@@ -198,7 +207,7 @@
{"restart-to-gain-access-to-keychain",
flag_descriptions::kRestartToGainAccessToKeychainName,
flag_descriptions::kRestartToGainAccessToKeychainDescription,
-@@ -11087,7 +11087,7 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -11123,7 +11123,7 @@ const FeatureEntry kFeatureEntries[] = {
// Controls the view mode for (history) sync screen.
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_accessibility_pdf__ocr__controller.cc b/www/ungoogled-chromium/files/patch-chrome_browser_accessibility_pdf__ocr__controller.cc
index d524541f7997..dcd7c1c26720 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_accessibility_pdf__ocr__controller.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_accessibility_pdf__ocr__controller.cc
@@ -1,7 +1,7 @@
---- chrome/browser/accessibility/pdf_ocr_controller.cc.orig 2024-03-22 14:16:19 UTC
+--- chrome/browser/accessibility/pdf_ocr_controller.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/accessibility/pdf_ocr_controller.cc
@@ -111,7 +111,7 @@ void AnnounceToScreenReader(const int message_id) {
- // TODO(crbug.com/1442928): Sending announcements results in a failure in
+ // TODO(crbug.com/333398721): Sending announcements results in a failure in
// `AuraLinuxAccessibilityInProcessBrowserTest::IndexInParentWithModal` and
// flaky fail when running Chrome.
-#if !BUILDFLAG(IS_LINUX)
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_autocomplete_chrome__autocomplete__scheme__classifier.cc b/www/ungoogled-chromium/files/patch-chrome_browser_autocomplete_chrome__autocomplete__scheme__classifier.cc
index b1298283829d..9bd280dac2d8 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_autocomplete_chrome__autocomplete__scheme__classifier.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_autocomplete_chrome__autocomplete__scheme__classifier.cc
@@ -1,6 +1,6 @@
---- chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc.orig 2023-03-10 11:01:21 UTC
+--- chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
-@@ -91,7 +91,7 @@ ChromeAutocompleteSchemeClassifier::GetInputTypeForSch
+@@ -89,7 +89,7 @@ ChromeAutocompleteSchemeClassifier::GetInputTypeForSch
return metrics::OmniboxInputType::QUERY;
case ExternalProtocolHandler::UNKNOWN: {
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_browser__features.cc b/www/ungoogled-chromium/files/patch-chrome_browser_browser__features.cc
index 76aa17c2c440..ea1cb28931e9 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_browser__features.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_browser__features.cc
@@ -1,6 +1,6 @@
---- chrome/browser/browser_features.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/browser_features.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/browser_features.cc
-@@ -76,7 +76,7 @@ const base::FeatureParam<bool> kSpareRendererWarmupDel
+@@ -78,7 +78,7 @@ const base::FeatureParam<bool> kSpareRendererWarmupDel
BASE_FEATURE(kDestroyProfileOnBrowserClose,
"DestroyProfileOnBrowserClose",
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \
@@ -9,7 +9,7 @@
base::FEATURE_ENABLED_BY_DEFAULT);
#else
base::FEATURE_DISABLED_BY_DEFAULT);
-@@ -337,7 +337,7 @@ BASE_FEATURE(kSandboxExternalProtocolBlockedWarning,
+@@ -359,7 +359,7 @@ BASE_FEATURE(kSandboxExternalProtocolBlockedWarning,
BASE_FEATURE(kSupportSearchSuggestionForPrerender2,
"SupportSearchSuggestionForPrerender2",
#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.cc b/www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.cc
index 0af8b7e4bd42..dcc7025fa42d 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.cc
@@ -1,6 +1,6 @@
---- chrome/browser/browser_process_impl.cc.orig 2024-03-22 14:16:19 UTC
+--- chrome/browser/browser_process_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/browser_process_impl.cc
-@@ -223,7 +223,7 @@
+@@ -229,7 +229,7 @@
#include "chrome/browser/ui/profiles/profile_picker.h"
#endif
@@ -9,7 +9,7 @@
#include "chrome/browser/error_reporting/chrome_js_error_report_processor.h" // nogncheck
#endif
-@@ -1258,7 +1258,7 @@ void BrowserProcessImpl::PreMainMessageLoopRun() {
+@@ -1273,7 +1273,7 @@ void BrowserProcessImpl::PreMainMessageLoopRun() {
ApplyMetricsReportingPolicy();
@@ -18,7 +18,7 @@
ChromeJsErrorReportProcessor::Create();
#endif
-@@ -1518,7 +1518,7 @@ void BrowserProcessImpl::Unpin() {
+@@ -1578,7 +1578,7 @@ void BrowserProcessImpl::Unpin() {
// Mac is currently not supported.
// TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is
// complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.h b/www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.h
index ef23a8701bcc..1742d9d5b408 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_browser__process__impl.h
@@ -1,6 +1,6 @@
---- chrome/browser/browser_process_impl.h.orig 2024-02-25 20:22:18 UTC
+--- chrome/browser/browser_process_impl.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/browser_process_impl.h
-@@ -385,7 +385,7 @@ class BrowserProcessImpl : public BrowserProcess,
+@@ -393,7 +393,7 @@ class BrowserProcessImpl : public BrowserProcess,
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__interface__binders.cc b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__interface__binders.cc
index 5923cc4bafd1..b3d696a57478 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__interface__binders.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__interface__binders.cc
@@ -1,4 +1,4 @@
---- chrome/browser/chrome_browser_interface_binders.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/chrome_browser_interface_binders.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/chrome_browser_interface_binders.cc
@@ -129,13 +129,13 @@
#endif // BUILDFLAG(FULL_SAFE_BROWSING)
@@ -16,7 +16,7 @@
#include "chrome/browser/ui/webui/app_settings/web_app_settings_ui.h"
#include "ui/webui/resources/cr_components/app_management/app_management.mojom.h"
#endif
-@@ -224,7 +224,7 @@
+@@ -226,7 +226,7 @@
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -25,7 +25,7 @@
#include "chrome/browser/companion/visual_query/visual_query_suggestions_service_factory.h"
#include "chrome/browser/ui/web_applications/sub_apps_service_impl.h"
#include "chrome/browser/ui/webui/discards/discards.mojom.h"
-@@ -834,7 +834,7 @@ void BindScreen2xMainContentExtractor(
+@@ -850,7 +850,7 @@ void BindScreen2xMainContentExtractor(
#endif
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
@@ -34,25 +34,16 @@
void BindVisualSuggestionsModelProvider(
content::RenderFrameHost* frame_host,
mojo::PendingReceiver<
-@@ -1030,7 +1030,7 @@ void PopulateChromeFrameBinders(
+@@ -1046,7 +1046,7 @@ void PopulateChromeFrameBinders(
#endif // BUILDFLAG(ENABLE_SPEECH_SERVICE)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
- BUILDFLAG(IS_CHROMEOS)
+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
- if (!render_frame_host->GetParent()) {
- map->Add<chrome::mojom::DraggableRegions>(
- base::BindRepeating(&DraggableRegionsHostImpl::CreateIfAllowed));
-@@ -1038,7 +1038,7 @@ void PopulateChromeFrameBinders(
- #endif
-
- #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
-- BUILDFLAG(IS_CHROMEOS)
-+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
if (base::FeatureList::IsEnabled(blink::features::kDesktopPWAsSubApps) &&
!render_frame_host->GetParentOrOuterDocument()) {
// The service binder will reject non-primary main frames, but we still need
-@@ -1125,7 +1125,7 @@ void PopulateChromeWebUIFrameBinders(
+@@ -1128,7 +1128,7 @@ void PopulateChromeWebUIFrameBinders(
commerce::CommerceInternalsUI>(map);
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -61,7 +52,7 @@
RegisterWebUIControllerInterfaceBinder<
connectors_internals::mojom::PageHandler,
enterprise_connectors::ConnectorsInternalsUI>(map);
-@@ -1137,7 +1137,7 @@ void PopulateChromeWebUIFrameBinders(
+@@ -1140,7 +1140,7 @@ void PopulateChromeWebUIFrameBinders(
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -70,7 +61,7 @@
RegisterWebUIControllerInterfaceBinder<
app_management::mojom::PageHandlerFactory, WebAppSettingsUI>(map);
#endif
-@@ -1704,7 +1704,7 @@ void PopulateChromeWebUIFrameBinders(
+@@ -1732,7 +1732,7 @@ void PopulateChromeWebUIFrameBinders(
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main.cc b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main.cc
index 78613f9eae28..c3bf97eb4a54 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main.cc
@@ -1,4 +1,4 @@
---- chrome/browser/chrome_browser_main.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/chrome_browser_main.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/chrome_browser_main.cc
@@ -246,15 +246,15 @@
@@ -80,7 +80,7 @@
metrics::DesktopSessionDurationTracker::Initialize();
ProfileActivityMetricsRecorder::Initialize();
TouchModeStatsTracker::Initialize(
-@@ -1329,7 +1329,7 @@ void ChromeBrowserMainParts::PostProfileInit(Profile*
+@@ -1323,7 +1323,7 @@ void ChromeBrowserMainParts::PostProfileInit(Profile*
#endif // BUILDFLAG(IS_WIN)
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -89,7 +89,7 @@
// Delete the media history database if it still exists.
// TODO(crbug.com/1198344): Remove this.
base::ThreadPool::PostTask(
-@@ -1378,7 +1378,7 @@ void ChromeBrowserMainParts::PostProfileInit(Profile*
+@@ -1372,7 +1372,7 @@ void ChromeBrowserMainParts::PostProfileInit(Profile*
*UrlLanguageHistogramFactory::GetForBrowserContext(profile));
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
@@ -98,7 +98,7 @@
if (headless::IsHeadlessMode()) {
headless::ReportHeadlessActionMetrics();
}
-@@ -1486,7 +1486,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl(
+@@ -1482,7 +1482,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl(
// In headless mode provide alternate SelectFileDialog factory overriding
// any platform specific SelectFileDialog implementation that may have been
// set.
@@ -107,7 +107,7 @@
if (headless::IsHeadlessMode()) {
headless::HeadlessSelectFileDialogFactory::SetUp();
}
-@@ -2026,7 +2026,7 @@ bool ChromeBrowserMainParts::ProcessSingletonNotificat
+@@ -2022,7 +2022,7 @@ bool ChromeBrowserMainParts::ProcessSingletonNotificat
// Drop the request if headless mode is in effect or the request is from
// a headless Chrome process.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main__extra__parts__linux.cc b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main__extra__parts__linux.cc
index 7f44501ed5b4..84f7c0df2507 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main__extra__parts__linux.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__browser__main__extra__parts__linux.cc
@@ -1,11 +1,11 @@
---- chrome/browser/chrome_browser_main_extra_parts_linux.cc.orig 2024-05-11 05:39:22 UTC
+--- chrome/browser/chrome_browser_main_extra_parts_linux.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/chrome_browser_main_extra_parts_linux.cc
-@@ -175,7 +175,7 @@ void ChromeBrowserMainExtraPartsLinux::PostBrowserStar
+@@ -58,7 +58,7 @@ void ChromeBrowserMainExtraPartsLinux::PostBrowserStar
// static
void ChromeBrowserMainExtraPartsLinux::InitOzonePlatformHint() {
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- // On the desktop, we fix the platform name if necessary.
- // See https://crbug.com/1246928.
auto* const command_line = base::CommandLine::ForCurrentProcess();
+ auto env = base::Environment::Create();
+ std::string desktop_startup_id;
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.cc b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.cc
index 5e29d78b8400..fdb9ef5c9b29 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.cc
@@ -1,6 +1,6 @@
---- chrome/browser/chrome_content_browser_client.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/chrome_content_browser_client.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/chrome_content_browser_client.cc
-@@ -459,7 +459,7 @@
+@@ -466,7 +466,7 @@
#include "storage/browser/file_system/external_mount_points.h"
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -9,7 +9,7 @@
#include "chrome/browser/chrome_browser_main_linux.h"
#include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h"
#elif BUILDFLAG(IS_ANDROID)
-@@ -568,12 +568,12 @@
+@@ -576,12 +576,12 @@
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -24,7 +24,7 @@
#include "components/crash/core/app/crash_switches.h"
#include "components/crash/core/app/crashpad.h"
#endif
-@@ -584,7 +584,7 @@
+@@ -592,7 +592,7 @@
#include "chrome/browser/apps/link_capturing/web_app_link_capturing_delegate.h"
#endif
@@ -33,7 +33,7 @@
#include "chrome/browser/enterprise/chrome_browser_main_extra_parts_enterprise.h"
#include "chrome/browser/enterprise/profile_management/oidc_auth_response_capture_navigation_throttle.h"
#include "chrome/browser/enterprise/profile_management/profile_management_navigation_throttle.h"
-@@ -592,7 +592,7 @@
+@@ -600,7 +600,7 @@
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \
@@ -42,7 +42,7 @@
#include "chrome/browser/enterprise/connectors/device_trust/navigation_throttle.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) ||
// BUILDFLAG(IS_CHROMEOS_ASH)
-@@ -608,7 +608,7 @@
+@@ -616,7 +616,7 @@
#include "components/lens/lens_features.h"
#endif
@@ -51,7 +51,7 @@
#include "chrome/browser/chrome_browser_main_extra_parts_linux.h"
#elif BUILDFLAG(IS_OZONE)
#include "chrome/browser/chrome_browser_main_extra_parts_ozone.h"
-@@ -1477,7 +1477,7 @@ void ChromeContentBrowserClient::RegisterLocalStatePre
+@@ -1514,7 +1514,7 @@ void ChromeContentBrowserClient::RegisterLocalStatePre
#if BUILDFLAG(IS_CHROMEOS)
registry->RegisterBooleanPref(prefs::kNativeClientForceAllowed, false);
#endif // BUILDFLAG(IS_CHROMEOS)
@@ -60,7 +60,7 @@
registry->RegisterBooleanPref(prefs::kOutOfProcessSystemDnsResolutionEnabled,
true);
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID)
-@@ -1601,7 +1601,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo
+@@ -1638,7 +1638,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo
#elif BUILDFLAG(IS_CHROMEOS_LACROS)
main_parts = std::make_unique<ChromeBrowserMainPartsLacros>(
is_integration_test, &startup_data_);
@@ -69,7 +69,7 @@
main_parts = std::make_unique<ChromeBrowserMainPartsLinux>(
is_integration_test, &startup_data_);
#elif BUILDFLAG(IS_ANDROID)
-@@ -1638,7 +1638,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo
+@@ -1675,7 +1675,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo
std::make_unique<ChromeBrowserMainExtraPartsViewsLacros>());
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -78,7 +78,7 @@
main_parts->AddParts(
std::make_unique<ChromeBrowserMainExtraPartsViewsLinux>());
#else
-@@ -1659,7 +1659,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo
+@@ -1696,7 +1696,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo
main_parts->AddParts(std::make_unique<ChromeBrowserMainExtraPartsLacros>());
#endif
@@ -87,7 +87,7 @@
main_parts->AddParts(std::make_unique<ChromeBrowserMainExtraPartsLinux>());
#elif BUILDFLAG(IS_OZONE)
main_parts->AddParts(std::make_unique<ChromeBrowserMainExtraPartsOzone>());
-@@ -1678,7 +1678,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo
+@@ -1715,7 +1715,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo
chrome::AddMetricsExtraParts(main_parts.get());
@@ -96,16 +96,16 @@
main_parts->AddParts(
std::make_unique<
chrome::enterprise_util::ChromeBrowserMainExtraPartsEnterprise>());
-@@ -2832,7 +2832,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin
- ThreadProfilerConfiguration::Get()->AppendCommandLineSwitchForChildProcess(
- command_line);
+@@ -2866,7 +2866,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin
+ GetProfileParamsProcess(*command_line));
+ }
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)) && !BUILDFLAG(IS_BSD)
// Opt into a hardened stack canary mitigation if it hasn't already been
// force-disabled.
if (!browser_command_line.HasSwitch(switches::kChangeStackGuardOnFork)) {
-@@ -4536,7 +4536,7 @@ void ChromeContentBrowserClient::GetAdditionalFileSyst
+@@ -4618,7 +4618,7 @@ void ChromeContentBrowserClient::GetAdditionalFileSyst
}
}
@@ -114,7 +114,7 @@
void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
const base::CommandLine& command_line,
int child_process_id,
-@@ -5090,7 +5090,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati
+@@ -5168,7 +5168,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati
&throttles);
}
@@ -123,7 +123,7 @@
MaybeAddThrottle(
WebAppSettingsNavigationThrottle::MaybeCreateThrottleFor(handle),
&throttles);
-@@ -5104,7 +5104,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati
+@@ -5182,7 +5182,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \
@@ -132,7 +132,7 @@
MaybeAddThrottle(enterprise_connectors::DeviceTrustNavigationThrottle::
MaybeCreateThrottleFor(handle),
&throttles);
-@@ -5135,7 +5135,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati
+@@ -5213,7 +5213,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati
}
#endif
@@ -141,7 +141,7 @@
MaybeAddThrottle(browser_switcher::BrowserSwitcherNavigationThrottle::
MaybeCreateThrottleFor(handle),
&throttles);
-@@ -7059,7 +7059,7 @@ bool ChromeContentBrowserClient::ShouldSandboxNetworkS
+@@ -7132,7 +7132,7 @@ bool ChromeContentBrowserClient::ShouldSandboxNetworkS
bool ChromeContentBrowserClient::ShouldRunOutOfProcessSystemDnsResolution() {
// This enterprise policy is supported on Android, but the feature will not be
// launched there.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.h b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.h
index bb249cfff275..e735cecb646c 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_chrome__content__browser__client.h
@@ -1,6 +1,6 @@
---- chrome/browser/chrome_content_browser_client.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/chrome_content_browser_client.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/chrome_content_browser_client.h
-@@ -500,7 +500,7 @@ class ChromeContentBrowserClient : public content::Con
+@@ -503,7 +503,7 @@ class ChromeContentBrowserClient : public content::Con
bool IsPluginAllowedToUseDevChannelAPIs(
content::BrowserContext* browser_context,
const GURL& url) override;
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_component__updater_widevine__cdm__component__installer.cc b/www/ungoogled-chromium/files/patch-chrome_browser_component__updater_widevine__cdm__component__installer.cc
index 0215a62a83b9..370a62faced7 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_component__updater_widevine__cdm__component__installer.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_component__updater_widevine__cdm__component__installer.cc
@@ -1,15 +1,15 @@
---- chrome/browser/component_updater/widevine_cdm_component_installer.cc.orig 2024-04-04 19:16:34 UTC
+--- chrome/browser/component_updater/widevine_cdm_component_installer.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/component_updater/widevine_cdm_component_installer.cc
-@@ -40,7 +40,7 @@
+@@ -41,7 +41,7 @@
#include "third_party/widevine/cdm/buildflags.h"
#include "third_party/widevine/cdm/widevine_cdm_common.h"
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ #include "base/path_service.h"
+ #include "chrome/common/chrome_paths.h"
#include "chrome/common/media/component_widevine_cdm_hint_file_linux.h"
- #endif
-
-@@ -78,7 +78,7 @@ static_assert(std::size(kWidevineSha2Hash) == crypto::
+@@ -74,7 +74,7 @@ static_assert(std::size(kWidevineSha2Hash) == crypto::
const char ImageLoaderComponentName[] = "WidevineCdm";
#endif
@@ -18,7 +18,16 @@
// On Linux and ChromeOS the Widevine CDM is loaded at startup before the
// zygote is locked down. As a result there is no need to register the CDM
// with Chrome as it can't be used until Chrome is restarted.
-@@ -364,7 +364,7 @@ void WidevineCdmComponentInstallerPolicy::UpdateCdmPat
+@@ -102,7 +102,7 @@ void RegisterWidevineCdmWithChrome(const base::Version
+ }
+ #endif // !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // On Linux and ChromeOS the Widevine CDM is loaded at startup before the
+ // zygote is locked down. To locate the Widevine CDM at startup, a hint file
+ // is used. Update the hint file with the new Widevine CDM path.
+@@ -388,7 +388,7 @@ void WidevineCdmComponentInstallerPolicy::UpdateCdmPat
return;
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_devtools_BUILD.gn b/www/ungoogled-chromium/files/patch-chrome_browser_devtools_BUILD.gn
deleted file mode 100644
index 06adbd4b64ff..000000000000
--- a/www/ungoogled-chromium/files/patch-chrome_browser_devtools_BUILD.gn
+++ /dev/null
@@ -1,10 +0,0 @@
---- chrome/browser/devtools/BUILD.gn.orig 2024-04-30 23:46:45 UTC
-+++ chrome/browser/devtools/BUILD.gn
-@@ -113,6 +113,7 @@ static_library("devtools") {
- "//chrome/browser/autofill:autofill",
- "//components/autofill/content/browser:browser",
- "//components/autofill/core/browser:browser",
-+ "//components/enterprise/buildflags",
- "//components/paint_preview/buildflags:buildflags",
- "//content/public/browser",
- "//net",
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc b/www/ungoogled-chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc
index d54bad32b2c6..ce0823d9fb28 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc
@@ -1,6 +1,6 @@
---- chrome/browser/download/chrome_download_manager_delegate.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/download/chrome_download_manager_delegate.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/download/chrome_download_manager_delegate.cc
-@@ -1671,7 +1671,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe
+@@ -1678,7 +1678,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe
bool ChromeDownloadManagerDelegate::IsOpenInBrowserPreferredForFile(
const base::FilePath& path) {
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -9,7 +9,7 @@
if (path.MatchesExtension(FILE_PATH_LITERAL(".pdf"))) {
return !download_prefs_->ShouldOpenPdfInSystemReader();
}
-@@ -1737,7 +1737,7 @@ void ChromeDownloadManagerDelegate::CheckDownloadAllow
+@@ -1777,7 +1777,7 @@ void ChromeDownloadManagerDelegate::CheckDownloadAllow
content::CheckDownloadAllowedCallback check_download_allowed_cb) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_download_download__commands.h b/www/ungoogled-chromium/files/patch-chrome_browser_download_download__commands.h
index c87159b2e0c4..a7394d6e81b6 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_download_download__commands.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_download_download__commands.h
@@ -1,6 +1,6 @@
---- chrome/browser/download/download_commands.h.orig 2023-12-23 12:33:28 UTC
+--- chrome/browser/download/download_commands.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/download/download_commands.h
-@@ -63,7 +63,7 @@ class DownloadCommands {
+@@ -66,7 +66,7 @@ class DownloadCommands {
void ExecuteCommand(Command command);
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_download_download__item__model.cc b/www/ungoogled-chromium/files/patch-chrome_browser_download_download__item__model.cc
index 3f26c0aa5f87..8ee5dd1ce539 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_download_download__item__model.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_download_download__item__model.cc
@@ -1,6 +1,6 @@
---- chrome/browser/download/download_item_model.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/download/download_item_model.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/download/download_item_model.cc
-@@ -749,7 +749,7 @@ bool DownloadItemModel::IsCommandChecked(
+@@ -795,7 +795,7 @@ bool DownloadItemModel::IsCommandChecked(
download_crx_util::IsExtensionDownload(*download_);
case DownloadCommands::ALWAYS_OPEN_TYPE:
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -9,7 +9,7 @@
if (download_commands->CanOpenPdfInSystemViewer()) {
DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(profile());
return prefs->ShouldOpenPdfInSystemReader();
-@@ -795,7 +795,7 @@ void DownloadItemModel::ExecuteCommand(DownloadCommand
+@@ -843,7 +843,7 @@ void DownloadItemModel::ExecuteCommand(DownloadCommand
DownloadCommands::ALWAYS_OPEN_TYPE);
DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(profile());
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -18,7 +18,7 @@
if (download_commands->CanOpenPdfInSystemViewer()) {
prefs->SetShouldOpenPdfInSystemReader(!is_checked);
SetShouldPreferOpeningInBrowser(is_checked);
-@@ -1145,7 +1145,7 @@ void DownloadItemModel::DetermineAndSetShouldPreferOpe
+@@ -1191,7 +1191,7 @@ void DownloadItemModel::DetermineAndSetShouldPreferOpe
return;
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_enterprise_connectors_connectors__service.cc b/www/ungoogled-chromium/files/patch-chrome_browser_enterprise_connectors_connectors__service.cc
index dc9dceabff4f..908ed72e59a7 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_enterprise_connectors_connectors__service.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_enterprise_connectors_connectors__service.cc
@@ -1,6 +1,6 @@
---- chrome/browser/enterprise/connectors/connectors_service.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/enterprise/connectors/connectors_service.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/enterprise/connectors/connectors_service.cc
-@@ -519,7 +519,7 @@ bool ConnectorsService::ConnectorsEnabled() const {
+@@ -524,7 +524,7 @@ bool ConnectorsService::ConnectorsEnabled() const {
Profile* profile = Profile::FromBrowserContext(context_);
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_enterprise_watermark_watermark__view.cc b/www/ungoogled-chromium/files/patch-chrome_browser_enterprise_watermark_watermark__view.cc
index c5bc0bdf6dcb..5f57272ff0da 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_enterprise_watermark_watermark__view.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_enterprise_watermark_watermark__view.cc
@@ -1,6 +1,6 @@
---- chrome/browser/enterprise/watermark/watermark_view.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/enterprise/watermark/watermark_view.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/enterprise/watermark/watermark_view.cc
-@@ -33,7 +33,7 @@ const gfx::Font& WatermarkFont() {
+@@ -36,7 +36,7 @@ gfx::Font WatermarkFont() {
"Segoe UI",
#elif BUILDFLAG(IS_MAC)
"SF Pro Text",
@@ -9,7 +9,7 @@
"Ubuntu",
#elif BUILDFLAG(IS_CHROMEOS)
"Google Sans",
-@@ -45,7 +45,7 @@ const gfx::Font& WatermarkFont() {
+@@ -47,7 +47,7 @@ gfx::Font WatermarkFont() {
}
gfx::Font::Weight WatermarkFontWeight() {
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_BUILD.gn b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_BUILD.gn
index 6d684075152e..fd017cba68a2 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_BUILD.gn
@@ -1,14 +1,6 @@
---- chrome/browser/extensions/BUILD.gn.orig 2024-04-24 01:31:09 UTC
+--- chrome/browser/extensions/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/extensions/BUILD.gn
-@@ -826,6 +826,7 @@ static_library("extensions") {
- "//components/device_reauth",
- "//components/optimization_guide/core:features",
- "//components/safe_browsing/content/browser",
-+ "//components/safe_browsing/content/common/proto:download_file_types_proto",
- "//components/safe_browsing/core/browser:safe_browsing_metrics_collector",
- "//components/security_interstitials/content:security_interstitial_page",
- "//components/site_engagement/core/mojom:mojo_bindings",
-@@ -1384,6 +1385,10 @@ static_library("extensions") {
+@@ -1370,6 +1370,10 @@ static_library("extensions") {
deps += [ "//chrome/services/printing/public/mojom" ]
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_enterprise__reporting__private_enterprise__reporting__private__api.cc b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_enterprise__reporting__private_enterprise__reporting__private__api.cc
index c3d472f9f776..af1f5d73e4de 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_enterprise__reporting__private_enterprise__reporting__private__api.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_enterprise__reporting__private_enterprise__reporting__private__api.cc
@@ -1,6 +1,6 @@
---- chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc.orig 2024-02-25 20:22:18 UTC
+--- chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc
-@@ -32,7 +32,7 @@
+@@ -33,7 +33,7 @@
#include "components/reporting/util/statusor.h"
#endif
@@ -9,7 +9,7 @@
#include <optional>
#include "base/strings/string_util.h"
-@@ -106,7 +106,7 @@ api::enterprise_reporting_private::ContextInfo ToConte
+@@ -107,7 +107,7 @@ api::enterprise_reporting_private::ContextInfo ToConte
return info;
}
@@ -18,7 +18,7 @@
device_signals::SignalsAggregationRequest CreateAggregationRequest(
device_signals::SignalName signal_name) {
-@@ -167,7 +167,7 @@ EnterpriseReportingPrivateGetDeviceIdFunction::
+@@ -168,7 +168,7 @@ EnterpriseReportingPrivateGetDeviceIdFunction::
// getPersistentSecret
@@ -27,7 +27,7 @@
EnterpriseReportingPrivateGetPersistentSecretFunction::
EnterpriseReportingPrivateGetPersistentSecretFunction() = default;
-@@ -593,7 +593,7 @@ void EnterpriseReportingPrivateEnqueueRecordFunction::
+@@ -594,7 +594,7 @@ void EnterpriseReportingPrivateEnqueueRecordFunction::
}
#endif
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_management_chrome__management__api__delegate.cc b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_management_chrome__management__api__delegate.cc
index 77f64d76bdcd..bdbbed156caf 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_management_chrome__management__api__delegate.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_management_chrome__management__api__delegate.cc
@@ -1,6 +1,6 @@
---- chrome/browser/extensions/api/management/chrome_management_api_delegate.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/extensions/api/management/chrome_management_api_delegate.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/extensions/api/management/chrome_management_api_delegate.cc
-@@ -408,7 +408,7 @@ bool ChromeManagementAPIDelegate::LaunchAppFunctionDel
+@@ -405,7 +405,7 @@ bool ChromeManagementAPIDelegate::LaunchAppFunctionDel
apps::LaunchContainer launch_container =
GetLaunchContainer(extensions::ExtensionPrefs::Get(context), extension);
Profile* profile = Profile::FromBrowserContext(context);
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_passwords__private_passwords__private__delegate__impl.cc b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_passwords__private_passwords__private__delegate__impl.cc
index 511449fd268c..790b0363e8e6 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_passwords__private_passwords__private__delegate__impl.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_passwords__private_passwords__private__delegate__impl.cc
@@ -1,6 +1,6 @@
---- chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc
-@@ -605,7 +605,7 @@ void PasswordsPrivateDelegateImpl::OnFetchingFamilyMem
+@@ -606,7 +606,7 @@ void PasswordsPrivateDelegateImpl::OnFetchingFamilyMem
}
void PasswordsPrivateDelegateImpl::OsReauthTimeoutCall() {
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc
index 41bd2c2701aa..cab95f7dd397 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc
@@ -1,4 +1,4 @@
---- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -202,7 +202,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlist
(*s_allowlist)[::prefs::kSidePanelHorizontalAlignment] =
@@ -9,7 +9,7 @@
(*s_allowlist)[::prefs::kUseCustomChromeFrame] =
settings_api::PrefType::kBoolean;
#endif
-@@ -211,7 +211,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlist
+@@ -213,7 +213,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlist
// Appearance settings.
(*s_allowlist)[::prefs::kCurrentThemeID] = settings_api::PrefType::kString;
(*s_allowlist)[::prefs::kPolicyThemeColor] = settings_api::PrefType::kNumber;
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_webstore__private_webstore__private__api.cc b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_webstore__private_webstore__private__api.cc
index b61c2fc8a084..011dfc5e1aba 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_webstore__private_webstore__private__api.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_extensions_api_webstore__private_webstore__private__api.cc
@@ -1,6 +1,6 @@
---- chrome/browser/extensions/api/webstore_private/webstore_private_api.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/extensions/api/webstore_private/webstore_private_api.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
-@@ -922,7 +922,7 @@ void WebstorePrivateBeginInstallWithManifest3Function:
+@@ -880,7 +880,7 @@ void WebstorePrivateBeginInstallWithManifest3Function:
#if BUILDFLAG(IS_CHROMEOS)
RequestExtensionApproval(contents);
return;
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.cc b/www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.cc
index e838890d920d..109395bc2929 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.cc
@@ -1,6 +1,6 @@
---- chrome/browser/flag_descriptions.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/flag_descriptions.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/flag_descriptions.cc
-@@ -2950,7 +2950,7 @@ const char kCbdTimeframeRequiredDescription[] =
+@@ -2872,7 +2872,7 @@ const char kCbdTimeframeRequiredDescription[] =
"value to the list.";
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -9,7 +9,7 @@
const char kPolicyIndicationForManagedDefaultSearchName[] =
"Enable policy indication for managed Default Search provider";
const char kPolicyIndicationForManagedDefaultSearchDescription[] =
-@@ -3263,7 +3263,7 @@ const char kSiteInstanceGroupsForDataUrlsDescription[]
+@@ -3175,7 +3175,7 @@ const char kSiteInstanceGroupsForDataUrlsDescription[]
"but in the same SiteInstanceGroup, and thus the same process.";
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -18,7 +18,7 @@
const char kSiteSearchSettingsPolicyName[] = "Enable SiteSearchSettings policy";
const char kSiteSearchSettingsPolicyDescription[] =
"Allow site search engines to be defined by the SiteSearchSettings policy.";
-@@ -7500,7 +7500,7 @@ const char kLacrosMergeIcuDataFileDescription[] =
+@@ -7447,7 +7447,7 @@ const char kLacrosMergeIcuDataFileDescription[] =
"Enables sharing common areas of icudtl.dat between Ash and Lacros.";
#endif // #if BUILDFLAG(IS_CHROMEOS_LACROS)
@@ -27,7 +27,7 @@
const char kGetAllScreensMediaName[] = "GetAllScreensMedia API";
const char kGetAllScreensMediaDescription[] =
"When enabled, the getAllScreensMedia API for capturing multiple screens "
-@@ -7760,7 +7760,7 @@ const char kV4L2FlatStatefulVideoDecoderDescription[]
+@@ -7713,7 +7713,7 @@ const char kV4L2FlatStatefulVideoDecoderDescription[]
// Linux -----------------------------------------------------------------------
@@ -36,7 +36,7 @@
const char kOzonePlatformHintChoiceDefault[] = "Default";
const char kOzonePlatformHintChoiceAuto[] = "Auto";
const char kOzonePlatformHintChoiceX11[] = "X11";
-@@ -7808,7 +7808,7 @@ const char kZeroCopyVideoCaptureDescription[] =
+@@ -7761,7 +7761,7 @@ const char kZeroCopyVideoCaptureDescription[] =
#endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -45,16 +45,16 @@
const char kFollowingFeedSidepanelName[] = "Following feed in the sidepanel";
const char kFollowingFeedSidepanelDescription[] =
"Enables the following feed in the sidepanel.";
-@@ -7823,7 +7823,7 @@ const char kEnableProtoApiForClassifyUrlDescription[]
+@@ -7774,7 +7774,7 @@ const char kEnableProtoApiForClassifyUrlDescription[]
+ "Calls to Classify URL RPC will use Protocol Buffer format in resposnes, "
"instead of JSON.";
- #endif
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
const char kEnableNetworkServiceSandboxName[] =
"Enable the network service sandbox.";
const char kEnableNetworkServiceSandboxDescription[] =
-@@ -7855,7 +7855,7 @@ const char kWebBluetoothConfirmPairingSupportDescripti
+@@ -7806,7 +7806,7 @@ const char kWebBluetoothConfirmPairingSupportDescripti
"Bluetooth";
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
@@ -63,16 +63,7 @@
const char kSkipUndecryptablePasswordsName[] =
"Skip undecryptable passwords to use the available decryptable "
"passwords.";
-@@ -7875,7 +7875,7 @@ const char kRestartToGainAccessToKeychainDescription[]
- "to restart Chrome to gain access to computer's password manager.";
- #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC)
-
--#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- const char kAsyncDnsName[] = "Async DNS resolver";
- const char kAsyncDnsDescription[] = "Enables the built-in DNS resolver.";
- #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
-@@ -7976,7 +7976,7 @@ const char kElementCaptureDescription[] =
+@@ -7922,7 +7922,7 @@ const char kElementCaptureDescription[] =
#if BUILDFLAG(IS_WIN) || \
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \
@@ -81,8 +72,8 @@
const char kUIDebugToolsName[] = "Debugging tools for UI";
const char kUIDebugToolsDescription[] =
"Enables additional keyboard shortcuts to help debugging.";
-@@ -8025,7 +8025,7 @@ const char kComposeTextSelectionDescription[] =
- "Enables feature for different heuristics for selecting text for Compose";
+@@ -7979,7 +7979,7 @@ const char kComposeProactiveNudgeDescription[] =
+ "Enables proactive nudging for Compose";
#endif // BUILDFLAG(ENABLE_COMPOSE)
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.h b/www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.h
index 260df9739052..d814b8b0655b 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_flag__descriptions.h
@@ -1,6 +1,6 @@
---- chrome/browser/flag_descriptions.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/flag_descriptions.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/flag_descriptions.h
-@@ -1712,7 +1712,7 @@ extern const char kCbdTimeframeRequiredName[];
+@@ -1682,7 +1682,7 @@ extern const char kCbdTimeframeRequiredName[];
extern const char kCbdTimeframeRequiredDescription[];
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -9,7 +9,7 @@
extern const char kPolicyIndicationForManagedDefaultSearchName[];
extern const char kPolicyIndicationForManagedDefaultSearchDescription[];
#endif
-@@ -1893,7 +1893,7 @@ extern const char kSiteInstanceGroupsForDataUrlsName[]
+@@ -1857,7 +1857,7 @@ extern const char kSiteInstanceGroupsForDataUrlsName[]
extern const char kSiteInstanceGroupsForDataUrlsDescription[];
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -18,7 +18,7 @@
extern const char kSiteSearchSettingsPolicyName[];
extern const char kSiteSearchSettingsPolicyDescription[];
#endif
-@@ -4326,7 +4326,7 @@ extern const char kLacrosMergeIcuDataFileName[];
+@@ -4320,7 +4320,7 @@ extern const char kLacrosMergeIcuDataFileName[];
extern const char kLacrosMergeIcuDataFileDescription[];
#endif // #if BUILDFLAG(IS_CHROMEOS_LACROS)
@@ -27,7 +27,7 @@
extern const char kGetAllScreensMediaName[];
extern const char kGetAllScreensMediaDescription[];
#endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
-@@ -4474,7 +4474,7 @@ extern const char kV4L2FlatStatefulVideoDecoderDescrip
+@@ -4471,7 +4471,7 @@ extern const char kV4L2FlatStatefulVideoDecoderDescrip
// Linux ---------------------------------------------------------------------
@@ -36,7 +36,7 @@
extern const char kOzonePlatformHintChoiceDefault[];
extern const char kOzonePlatformHintChoiceAuto[];
extern const char kOzonePlatformHintChoiceX11[];
-@@ -4516,7 +4516,7 @@ extern const char kWebBluetoothConfirmPairingSupportNa
+@@ -4513,7 +4513,7 @@ extern const char kWebBluetoothConfirmPairingSupportNa
extern const char kWebBluetoothConfirmPairingSupportDescription[];
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
@@ -45,32 +45,25 @@
extern const char kSkipUndecryptablePasswordsName[];
extern const char kSkipUndecryptablePasswordsDescription[];
-@@ -4527,13 +4527,13 @@ extern const char kRestartToGainAccessToKeychainName[]
- extern const char kRestartToGainAccessToKeychainDescription[];
+@@ -4525,7 +4525,7 @@ extern const char kRestartToGainAccessToKeychainDescri
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC)
--#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- extern const char kAsyncDnsName[];
- extern const char kAsyncDnsDescription[];
- #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
-
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
- BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_CHROMEOS)
+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
extern const char kFollowingFeedSidepanelName[];
extern const char kFollowingFeedSidepanelDescription[];
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ||
-@@ -4544,7 +4544,7 @@ extern const char kEnableProtoApiForClassifyUrlName[];
+@@ -4534,7 +4534,7 @@ extern const char kFollowingFeedSidepanelDescription[]
+ extern const char kEnableProtoApiForClassifyUrlName[];
extern const char kEnableProtoApiForClassifyUrlDescription[];
- #endif // BUILDFLAG(ENABLE_SUPERVISED_USERS)
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
extern const char kEnableNetworkServiceSandboxName[];
extern const char kEnableNetworkServiceSandboxDescription[];
-@@ -4621,7 +4621,7 @@ extern const char kElementCaptureDescription[];
+@@ -4611,7 +4611,7 @@ extern const char kElementCaptureDescription[];
#if BUILDFLAG(IS_WIN) || \
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \
@@ -79,8 +72,8 @@
extern const char kUIDebugToolsName[];
extern const char kUIDebugToolsDescription[];
-@@ -4655,7 +4655,7 @@ extern const char kComposeTextSelectionName[];
- extern const char kComposeTextSelectionDescription[];
+@@ -4651,7 +4651,7 @@ extern const char kComposeProactiveNudgeName[];
+ extern const char kComposeProactiveNudgeDescription[];
#endif // BUILDFLAG(ENABLE_COMPOSE)
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__log__uploader.cc b/www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__log__uploader.cc
index 5fb1f8f16b15..273183a4a136 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__log__uploader.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__log__uploader.cc
@@ -1,6 +1,6 @@
---- chrome/browser/media/webrtc/webrtc_log_uploader.cc.orig 2024-02-03 15:42:55 UTC
+--- chrome/browser/media/webrtc/webrtc_log_uploader.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/media/webrtc/webrtc_log_uploader.cc
-@@ -100,7 +100,7 @@ std::string GetLogUploadProduct() {
+@@ -101,7 +101,7 @@ std::string GetLogUploadProduct() {
const char product[] = "Chrome_Mac";
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__logging__controller.cc b/www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__logging__controller.cc
index e954a3a19498..4f5c0cd2cacb 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__logging__controller.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_media_webrtc_webrtc__logging__controller.cc
@@ -1,4 +1,4 @@
---- chrome/browser/media/webrtc/webrtc_logging_controller.cc.orig 2024-02-03 15:42:55 UTC
+--- chrome/browser/media/webrtc/webrtc_logging_controller.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/media/webrtc/webrtc_logging_controller.cc
@@ -25,10 +25,10 @@
#include "components/webrtc_logging/browser/text_log_list.h"
@@ -30,4 +30,4 @@
+#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
void WebRtcLoggingController::OnRtpPacket(
- std::unique_ptr<uint8_t[]> packet_header,
+ base::HeapArray<uint8_t> packet_header,
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc b/www/ungoogled-chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc
index dee6be7d3a5f..e4f0c05ece90 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc
@@ -1,6 +1,6 @@
---- chrome/browser/metrics/chrome_metrics_service_client.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/metrics/chrome_metrics_service_client.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/metrics/chrome_metrics_service_client.cc
-@@ -194,7 +194,7 @@
+@@ -195,7 +195,7 @@
#include "chrome/notification_helper/notification_helper_constants.h"
#endif
@@ -9,7 +9,7 @@
#include "components/metrics/motherboard_metrics_provider.h"
#endif
-@@ -211,7 +211,7 @@
+@@ -212,7 +212,7 @@
#include "chrome/browser/metrics/power/power_metrics_provider_mac.h"
#endif
@@ -18,7 +18,7 @@
#include "chrome/browser/metrics/bluetooth_metrics_provider.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
-@@ -577,7 +577,7 @@ void ChromeMetricsServiceClient::RegisterPrefs(PrefReg
+@@ -574,7 +574,7 @@ void ChromeMetricsServiceClient::RegisterPrefs(PrefReg
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -27,7 +27,7 @@
metrics::structured::StructuredMetricsService::RegisterPrefs(registry);
#if !BUILDFLAG(IS_CHROMEOS_ASH)
-@@ -749,7 +749,7 @@ void ChromeMetricsServiceClient::Initialize() {
+@@ -746,7 +746,7 @@ void ChromeMetricsServiceClient::Initialize() {
RegisterUKMProviders();
}
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
@@ -36,7 +36,7 @@
metrics::structured::Recorder::GetInstance()->SetUiTaskRunner(
base::SequencedTaskRunner::GetCurrentDefault());
#endif
-@@ -796,7 +796,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic
+@@ -797,7 +797,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic
metrics_service_->RegisterMetricsProvider(
std::make_unique<metrics::CPUMetricsProvider>());
@@ -45,7 +45,7 @@
metrics_service_->RegisterMetricsProvider(
std::make_unique<metrics::MotherboardMetricsProvider>());
#endif
-@@ -881,7 +881,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic
+@@ -882,7 +882,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
@@ -54,7 +54,7 @@
metrics_service_->RegisterMetricsProvider(
std::make_unique<DesktopPlatformFeaturesMetricsProvider>());
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) ||
-@@ -991,7 +991,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic
+@@ -984,7 +984,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic
std::make_unique<PowerMetricsProvider>());
#endif
@@ -63,7 +63,7 @@
metrics_service_->RegisterMetricsProvider(
metrics::CreateDesktopSessionMetricsProvider());
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX)
-@@ -1170,7 +1170,7 @@ bool ChromeMetricsServiceClient::RegisterForProfileEve
+@@ -1167,7 +1167,7 @@ bool ChromeMetricsServiceClient::RegisterForProfileEve
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
@@ -72,7 +72,7 @@
// This creates the DesktopProfileSessionDurationsServices if it didn't exist
// already.
metrics::DesktopProfileSessionDurationsServiceFactory::GetForBrowserContext(
-@@ -1513,7 +1513,7 @@ void ChromeMetricsServiceClient::CreateStructuredMetri
+@@ -1514,7 +1514,7 @@ void ChromeMetricsServiceClient::CreateStructuredMetri
recorder =
std::make_unique<metrics::structured::AshStructuredMetricsRecorder>(
cros_system_profile_provider_.get());
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_metrics_perf_cpu__identity.cc b/www/ungoogled-chromium/files/patch-chrome_browser_metrics_perf_cpu__identity.cc
index 054b1db37160..51f7205b28b3 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_metrics_perf_cpu__identity.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_metrics_perf_cpu__identity.cc
@@ -1,6 +1,6 @@
---- chrome/browser/metrics/perf/cpu_identity.cc.orig 2023-02-11 09:11:04 UTC
+--- chrome/browser/metrics/perf/cpu_identity.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/metrics/perf/cpu_identity.cc
-@@ -141,7 +141,7 @@ CPUIdentity GetCPUIdentity() {
+@@ -142,7 +142,7 @@ CPUIdentity GetCPUIdentity() {
result.release =
#if BUILDFLAG(IS_CHROMEOS_ASH)
base::SysInfo::KernelVersion();
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_metrics_power_process__monitor.cc b/www/ungoogled-chromium/files/patch-chrome_browser_metrics_power_process__monitor.cc
index 17c12aa4968c..34af08b0c9b9 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_metrics_power_process__monitor.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_metrics_power_process__monitor.cc
@@ -1,7 +1,7 @@
---- chrome/browser/metrics/power/process_monitor.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/metrics/power/process_monitor.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/metrics/power/process_monitor.cc
-@@ -61,7 +61,7 @@ ProcessMonitor::Metrics SampleMetrics(base::ProcessMet
- metrics.cpu_usage = process_metrics.GetPlatformIndependentCPUUsage();
+@@ -64,7 +64,7 @@ ProcessMonitor::Metrics SampleMetrics(base::ProcessMet
+ process_metrics.GetPlatformIndependentCPUUsage());
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
- BUILDFLAG(IS_AIX)
@@ -9,7 +9,7 @@
metrics.idle_wakeups = process_metrics.GetIdleWakeupsPerSecond();
#endif
#if BUILDFLAG(IS_MAC)
-@@ -79,7 +79,7 @@ void ScaleMetrics(ProcessMonitor::Metrics* metrics, do
+@@ -82,7 +82,7 @@ void ScaleMetrics(ProcessMonitor::Metrics* metrics, do
}
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -18,7 +18,7 @@
metrics->idle_wakeups *= factor;
#endif
-@@ -167,7 +167,7 @@ ProcessMonitor::Metrics& operator+=(ProcessMonitor::Me
+@@ -170,7 +170,7 @@ ProcessMonitor::Metrics& operator+=(ProcessMonitor::Me
}
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_new__tab__page_modules_drive_drive__service.cc b/www/ungoogled-chromium/files/patch-chrome_browser_new__tab__page_modules_file__suggestion_drive__service.cc
index 5a6f7530d16c..9a7deb39d6c3 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_new__tab__page_modules_drive_drive__service.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_new__tab__page_modules_file__suggestion_drive__service.cc
@@ -1,5 +1,5 @@
---- chrome/browser/new_tab_page/modules/drive/drive_service.cc.orig 2023-09-17 07:59:53 UTC
-+++ chrome/browser/new_tab_page/modules/drive/drive_service.cc
+--- chrome/browser/new_tab_page/modules/file_suggestion/drive_service.cc.orig 2024-05-23 20:04:36 UTC
++++ chrome/browser/new_tab_page/modules/file_suggestion/drive_service.cc
@@ -32,7 +32,7 @@
#include "services/network/public/cpp/resource_request.h"
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc b/www/ungoogled-chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc
index 050911b82314..506c889811f8 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc
@@ -1,6 +1,6 @@
---- chrome/browser/password_manager/chrome_password_manager_client.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/password_manager/chrome_password_manager_client.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/password_manager/chrome_password_manager_client.cc
-@@ -467,7 +467,7 @@ bool ChromePasswordManagerClient::ShowKeyboardReplacin
+@@ -479,7 +479,7 @@ bool ChromePasswordManagerClient::ShowKeyboardReplacin
bool ChromePasswordManagerClient::CanUseBiometricAuthForFilling(
device_reauth::DeviceAuthenticator* authenticator) {
@@ -9,7 +9,7 @@
if (!GetLocalStatePrefs() || !GetPrefs() || !authenticator) {
return false;
}
-@@ -690,7 +690,7 @@ void ChromePasswordManagerClient::NotifyUserCredential
+@@ -702,7 +702,7 @@ void ChromePasswordManagerClient::NotifyUserCredential
}
void ChromePasswordManagerClient::NotifyKeychainError() {
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc b/www/ungoogled-chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc
index bd756567e331..385b989701ae 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc
@@ -1,4 +1,4 @@
---- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/policy/configuration_policy_handler_list_factory.cc
@@ -231,19 +231,20 @@
#include "components/spellcheck/browser/pref_names.h"
@@ -57,8 +57,8 @@
{ key::kFullscreenAllowed,
prefs::kFullscreenAllowed,
base::Value::Type::BOOLEAN },
-@@ -1625,7 +1626,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
- },
+@@ -1630,7 +1631,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+ base::Value::Type::BOOLEAN },
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
-#if BUILDFLAG(IS_LINUX)
@@ -66,7 +66,7 @@
{ key::kGSSAPILibraryName,
prefs::kGSSAPILibraryName,
base::Value::Type::STRING },
-@@ -1673,7 +1674,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+@@ -1681,7 +1682,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
base::Value::Type::BOOLEAN },
#endif // BUILDFLAG(IS_WIN)
@@ -75,7 +75,7 @@
{ key::kNetworkServiceSandboxEnabled,
prefs::kNetworkServiceSandboxEnabled,
base::Value::Type::BOOLEAN },
-@@ -1699,12 +1700,12 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+@@ -1707,18 +1708,18 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
prefs::kTotalMemoryLimitMb,
base::Value::Type::INTEGER },
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
@@ -90,8 +90,6 @@
{ key::kUnmanagedDeviceSignalsConsentFlowEnabled,
device_signals::prefs::kUnmanagedDeviceSignalsConsentFlowEnabled,
base::Value::Type::BOOLEAN },
-@@ -1713,7 +1714,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
- base::Value::Type::STRING },
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) \
- || BUILDFLAG(IS_FUCHSIA)
@@ -99,7 +97,7 @@
{ key::kDefaultBrowserSettingEnabled,
prefs::kDefaultBrowserSettingEnabled,
base::Value::Type::BOOLEAN },
-@@ -1726,7 +1727,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+@@ -1731,7 +1732,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
// || BUILDFLAG(IS_FUCHSIA)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) \
@@ -108,7 +106,7 @@
{ key::kAutoplayAllowed,
prefs::kAutoplayAllowed,
base::Value::Type::BOOLEAN },
-@@ -1824,7 +1825,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+@@ -1829,7 +1830,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
base::Value::Type::BOOLEAN },
#endif // !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS)
@@ -117,16 +115,16 @@
{ key::kAlternativeBrowserPath,
browser_switcher::prefs::kAlternativeBrowserPath,
base::Value::Type::STRING },
-@@ -1931,7 +1932,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+@@ -1934,7 +1935,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
base::Value::Type::LIST },
- #endif // BUILDFLAG(IS_CHROMEOS)
+ #endif // BUILDFLAG(IS_CHROMEOS_ASH)
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
{ key::kAuthNegotiateDelegateByKdcPolicy,
prefs::kAuthNegotiateDelegateByKdcPolicy,
base::Value::Type::BOOLEAN },
-@@ -1956,7 +1957,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+@@ -1959,7 +1960,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
#endif // BUILDFLAG(ENABLE_EXTENSIONS)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -135,7 +133,7 @@
{ key::kEnforceLocalAnchorConstraintsEnabled,
prefs::kEnforceLocalAnchorConstraintsEnabled,
base::Value::Type::BOOLEAN },
-@@ -2014,7 +2015,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+@@ -2017,7 +2018,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
ash::prefs::kUrlParameterToAutofillSAMLUsername,
base::Value::Type::STRING },
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
@@ -144,16 +142,16 @@
{ key::kTabDiscardingExceptions,
performance_manager::user_tuning::prefs::kManagedTabDiscardingExceptions,
base::Value::Type::LIST },
-@@ -2042,7 +2043,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
- prefs::kCloudApAuthEnabled,
- base::Value::Type::INTEGER },
+@@ -2048,7 +2049,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+ prefs::kUiAutomationProviderEnabled,
+ base::Value::Type::BOOLEAN },
#endif // BUILDFLAG(IS_WIN)
-#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
{ key::kOutOfProcessSystemDnsResolutionEnabled,
prefs::kOutOfProcessSystemDnsResolutionEnabled,
base::Value::Type::BOOLEAN },
-@@ -2068,7 +2069,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+@@ -2074,7 +2075,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
prefs::kManagedPrivateNetworkAccessRestrictionsEnabled,
base::Value::Type::BOOLEAN },
#if BUILDFLAG(ENABLE_EXTENSIONS)
@@ -162,7 +160,7 @@
{ key::kExtensionInstallTypeBlocklist,
extensions::pref_names::kExtensionInstallTypeBlocklist,
base::Value::Type::LIST},
-@@ -2089,7 +2090,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
+@@ -2095,7 +2096,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] =
optimization_guide::model_execution::prefs::kWallpaperSearchEnterprisePolicyAllowed,
base::Value::Type::INTEGER},
#endif
@@ -171,7 +169,7 @@
{ key::kChromeForTestingAllowed,
prefs::kChromeForTestingAllowed,
base::Value::Type::BOOLEAN },
-@@ -2208,7 +2209,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
+@@ -2214,7 +2215,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
// Policies for all platforms - End
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -180,7 +178,7 @@
handlers->AddHandler(
std::make_unique<performance_manager::MemorySaverPolicyHandler>());
// Note: This needs to be created after `DefaultSearchPolicyHandler`.
-@@ -2216,7 +2217,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
+@@ -2222,7 +2223,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
// BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -189,7 +187,7 @@
handlers->AddHandler(
std::make_unique<SiteSearchPolicyHandler>(chrome_schema));
-@@ -2405,7 +2406,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
+@@ -2411,7 +2412,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -198,7 +196,7 @@
handlers->AddHandler(
std::make_unique<enterprise_idle::IdleTimeoutPolicyHandler>());
handlers->AddHandler(
-@@ -2463,7 +2464,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
+@@ -2469,7 +2470,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
key::kBrowsingDataLifetime, browsing_data::prefs::kBrowsingDataLifetime,
chrome_schema));
@@ -207,7 +205,7 @@
handlers->AddHandler(std::make_unique<LocalSyncPolicyHandler>());
handlers->AddHandler(std::make_unique<ThemeColorPolicyHandler>());
handlers->AddHandler(
-@@ -2498,7 +2499,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
+@@ -2530,7 +2531,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
SimpleSchemaValidatingPolicyHandler::RECOMMENDED_PROHIBITED,
SimpleSchemaValidatingPolicyHandler::MANDATORY_ALLOWED)));
@@ -216,7 +214,7 @@
handlers->AddHandler(
std::make_unique<ManagedAccountRestrictionsPolicyHandler>(chrome_schema));
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
-@@ -2875,7 +2876,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
+@@ -2909,7 +2910,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
#endif
#if BUILDFLAG(ENABLE_SPELLCHECK)
@@ -225,7 +223,7 @@
handlers->AddHandler(std::make_unique<SpellcheckLanguagePolicyHandler>());
handlers->AddHandler(
std::make_unique<SpellcheckLanguageBlocklistPolicyHandler>(
-@@ -2883,7 +2884,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
+@@ -2917,7 +2918,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
#endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
#endif // BUILDFLAG(ENABLE_SPELLCHECK)
@@ -234,7 +232,7 @@
handlers->AddHandler(std::make_unique<SimplePolicyHandler>(
key::kAllowSystemNotifications, prefs::kAllowSystemNotifications,
base::Value::Type::BOOLEAN));
-@@ -2900,7 +2901,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
+@@ -2934,7 +2935,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
/*new_policy_handler=*/std::make_unique<
first_party_sets::FirstPartySetsOverridesPolicyHandler>(
key::kRelatedWebsiteSetsOverrides, chrome_schema)));
@@ -243,7 +241,7 @@
BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_ANDROID)
handlers->AddHandler(std::make_unique<PrivacySandboxPolicyHandler>());
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ||
-@@ -2927,7 +2928,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
+@@ -2959,7 +2960,7 @@ std::unique_ptr<ConfigurationPolicyHandlerList> BuildH
base::Value::Type::BOOLEAN)));
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_prefs_browser__prefs.cc b/www/ungoogled-chromium/files/patch-chrome_browser_prefs_browser__prefs.cc
index ae840bbf1d89..afdf689efc1d 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_prefs_browser__prefs.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_prefs_browser__prefs.cc
@@ -1,6 +1,6 @@
---- chrome/browser/prefs/browser_prefs.cc.orig 2024-05-11 05:39:22 UTC
+--- chrome/browser/prefs/browser_prefs.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/prefs/browser_prefs.cc
-@@ -485,18 +485,18 @@
+@@ -484,18 +484,18 @@
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -22,7 +22,7 @@
#include "chrome/browser/enterprise/signin/enterprise_signin_prefs.h"
#endif
-@@ -531,7 +531,7 @@
+@@ -530,7 +530,7 @@
#include "chrome/browser/sessions/session_service_log.h"
#endif
@@ -31,7 +31,7 @@
#include "ui/color/system_theme.h"
#endif
-@@ -1718,7 +1718,7 @@ void RegisterLocalState(PrefRegistrySimple* registry)
+@@ -1767,7 +1767,7 @@ void RegisterLocalState(PrefRegistrySimple* registry)
registry->RegisterBooleanPref(prefs::kOopPrintDriversAllowedByPolicy, true);
#endif
@@ -40,7 +40,7 @@
registry->RegisterBooleanPref(prefs::kChromeForTestingAllowed, true);
#endif
-@@ -2060,12 +2060,12 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync
+@@ -2111,12 +2111,12 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_prefs_pref__service__incognito__allowlist.cc b/www/ungoogled-chromium/files/patch-chrome_browser_prefs_pref__service__incognito__allowlist.cc
index df798fa0d4eb..bad8a1ca8954 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_prefs_pref__service__incognito__allowlist.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_prefs_pref__service__incognito__allowlist.cc
@@ -1,6 +1,6 @@
---- chrome/browser/prefs/pref_service_incognito_allowlist.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/prefs/pref_service_incognito_allowlist.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/prefs/pref_service_incognito_allowlist.cc
-@@ -184,7 +184,7 @@ const char* const kPersistentPrefNames[] = {
+@@ -185,7 +185,7 @@ const char* const kPersistentPrefNames[] = {
prefs::kShowFullscreenToolbar,
#endif
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_printing_print__backend__service__manager.cc b/www/ungoogled-chromium/files/patch-chrome_browser_printing_print__backend__service__manager.cc
index 508fabb9ad37..f57ecb6e3d50 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_printing_print__backend__service__manager.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_printing_print__backend__service__manager.cc
@@ -1,6 +1,6 @@
---- chrome/browser/printing/print_backend_service_manager.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/printing/print_backend_service_manager.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/printing/print_backend_service_manager.cc
-@@ -34,7 +34,7 @@
+@@ -35,7 +35,7 @@
#include "printing/printing_context.h"
#include "printing/printing_features.h"
@@ -9,7 +9,7 @@
#include "content/public/common/content_switches.h"
#endif
-@@ -861,7 +861,7 @@ PrintBackendServiceManager::GetServiceFromBundle(
+@@ -862,7 +862,7 @@ PrintBackendServiceManager::GetServiceFromBundle(
host.BindNewPipeAndPassReceiver(),
content::ServiceProcessHost::Options()
.WithDisplayName(IDS_UTILITY_PROCESS_PRINT_BACKEND_SERVICE_NAME)
@@ -18,7 +18,7 @@
.WithExtraCommandLineSwitches({switches::kMessageLoopTypeUi})
#endif
.Pass());
-@@ -1038,7 +1038,7 @@ PrintBackendServiceManager::DetermineIdleTimeoutUpdate
+@@ -1039,7 +1039,7 @@ PrintBackendServiceManager::DetermineIdleTimeoutUpdate
return kNoClientsRegisteredResetOnIdleTimeout;
case ClientType::kQueryWithUi:
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc b/www/ungoogled-chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc
index 1359d7429c32..9cd5deb96b23 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc
@@ -1,6 +1,6 @@
---- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
-@@ -320,7 +320,7 @@
+@@ -325,7 +325,7 @@
#include "chromeos/constants/chromeos_features.h"
#endif
@@ -9,8 +9,8 @@
#include "chrome/browser/policy/messaging_layer/util/manual_test_heartbeat_event_factory.h"
#endif
-@@ -411,18 +411,18 @@
-
+@@ -409,18 +409,18 @@
+ #endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
- BUILDFLAG(IS_CHROMEOS_ASH)
@@ -31,7 +31,7 @@
#include "chrome/browser/browser_switcher/browser_switcher_service_factory.h"
#include "chrome/browser/enterprise/client_certificates/certificate_provisioning_service_factory.h"
#include "chrome/browser/enterprise/client_certificates/certificate_store_factory.h"
-@@ -657,7 +657,7 @@ void ChromeBrowserMainExtraPartsProfiles::
+@@ -656,7 +656,7 @@ void ChromeBrowserMainExtraPartsProfiles::
DiceBoundSessionCookieServiceFactory::GetInstance();
#endif // BUILDFLAG(ENABLE_DICE_SUPPORT)
#endif // BUILDFLAG(ENABLE_BOUND_SESSION_CREDENTIALS)
@@ -40,7 +40,7 @@
browser_switcher::BrowserSwitcherServiceFactory::GetInstance();
#endif
browser_sync::UserEventServiceFactory::GetInstance();
-@@ -780,26 +780,26 @@ void ChromeBrowserMainExtraPartsProfiles::
+@@ -778,26 +778,26 @@ void ChromeBrowserMainExtraPartsProfiles::
enterprise_commands::UserRemoteCommandsServiceFactory::GetInstance();
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -72,7 +72,7 @@
enterprise_signin::EnterpriseSigninServiceFactory::GetInstance();
#endif
#if BUILDFLAG(ENABLE_SESSION_SERVICE)
-@@ -923,7 +923,7 @@ void ChromeBrowserMainExtraPartsProfiles::
+@@ -921,7 +921,7 @@ void ChromeBrowserMainExtraPartsProfiles::
#endif
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -81,7 +81,7 @@
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
metrics::DesktopProfileSessionDurationsServiceFactory::GetInstance();
#endif
-@@ -1026,7 +1026,7 @@ void ChromeBrowserMainExtraPartsProfiles::
+@@ -1024,7 +1024,7 @@ void ChromeBrowserMainExtraPartsProfiles::
#if BUILDFLAG(IS_CHROMEOS)
policy::PolicyCertServiceFactory::GetInstance();
#endif
@@ -90,7 +90,7 @@
policy::ProfileTokenPolicyWebSigninServiceFactory::GetInstance();
policy::UserPolicyOidcSigninServiceFactory::GetInstance();
#endif
-@@ -1068,7 +1068,7 @@ void ChromeBrowserMainExtraPartsProfiles::
+@@ -1066,7 +1066,7 @@ void ChromeBrowserMainExtraPartsProfiles::
#if !BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_ANDROID)
ProfileStatisticsFactory::GetInstance();
#endif
@@ -99,7 +99,7 @@
ProfileTokenWebSigninInterceptorFactory::GetInstance();
OidcAuthenticationSigninInterceptorFactory::GetInstance();
#endif
-@@ -1087,7 +1087,7 @@ void ChromeBrowserMainExtraPartsProfiles::
+@@ -1085,7 +1085,7 @@ void ChromeBrowserMainExtraPartsProfiles::
#endif
ReduceAcceptLanguageFactory::GetInstance();
RendererUpdaterFactory::GetInstance();
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_profiles_profile__impl.cc b/www/ungoogled-chromium/files/patch-chrome_browser_profiles_profile__impl.cc
index 074ade11f8c2..c741dc1bf197 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_profiles_profile__impl.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_profiles_profile__impl.cc
@@ -1,6 +1,6 @@
---- chrome/browser/profiles/profile_impl.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/profiles/profile_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/profiles/profile_impl.cc
-@@ -265,6 +265,10 @@
+@@ -261,6 +261,10 @@
#include "chrome/browser/spellchecker/spellcheck_service.h"
#endif
@@ -11,7 +11,7 @@
using bookmarks::BookmarkModel;
using content::BrowserThread;
using content::DownloadManagerDelegate;
-@@ -598,7 +602,7 @@ void ProfileImpl::LoadPrefsForNormalStartup(bool async
+@@ -595,7 +599,7 @@ void ProfileImpl::LoadPrefsForNormalStartup(bool async
#else
{
#endif // BUILDFLAG(IS_CHROMEOS_LACROS)
@@ -20,7 +20,7 @@
ProfileManager* profile_manager = g_browser_process->profile_manager();
ProfileAttributesEntry* entry =
profile_manager->GetProfileAttributesStorage()
-@@ -880,7 +884,17 @@ void ProfileImpl::DoFinalInit(CreateMode create_mode)
+@@ -877,7 +881,17 @@ void ProfileImpl::DoFinalInit(CreateMode create_mode)
}
base::FilePath ProfileImpl::last_selected_directory() {
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_safe__browsing_cloud__content__scanning_binary__upload__service.cc b/www/ungoogled-chromium/files/patch-chrome_browser_safe__browsing_cloud__content__scanning_binary__upload__service.cc
index 9d9077489c9b..c8fb0cb0faa4 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_safe__browsing_cloud__content__scanning_binary__upload__service.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_safe__browsing_cloud__content__scanning_binary__upload__service.cc
@@ -1,4 +1,4 @@
---- chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc.orig 2024-02-03 15:42:55 UTC
+--- chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc
@@ -18,7 +18,7 @@
#include "net/base/url_util.h"
@@ -9,7 +9,7 @@
#include "chrome/browser/enterprise/connectors/analysis/local_binary_upload_service_factory.h"
#endif
-@@ -417,7 +417,7 @@ BinaryUploadService* BinaryUploadService::GetForProfil
+@@ -423,7 +423,7 @@ BinaryUploadService* BinaryUploadService::GetForProfil
Profile* profile,
const enterprise_connectors::AnalysisSettings& settings) {
// Local content analysis is supported only on desktop platforms.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_search__engine__choice_search__engine__choice__service__factory.cc b/www/ungoogled-chromium/files/patch-chrome_browser_search__engine__choice_search__engine__choice__service__factory.cc
deleted file mode 100644
index a05a1a5e4917..000000000000
--- a/www/ungoogled-chromium/files/patch-chrome_browser_search__engine__choice_search__engine__choice__service__factory.cc
+++ /dev/null
@@ -1,20 +0,0 @@
---- chrome/browser/search_engine_choice/search_engine_choice_service_factory.cc.orig 2024-02-25 20:22:18 UTC
-+++ chrome/browser/search_engine_choice/search_engine_choice_service_factory.cc
-@@ -11,7 +11,7 @@
- #include "components/country_codes/country_codes.h"
- #include "components/search_engines/search_engine_choice/search_engine_choice_service.h"
-
--#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- #include "chrome/browser/browser_process.h"
- #include "components/variations/service/variations_service.h"
- #endif
-@@ -21,7 +21,7 @@ namespace {
- std::unique_ptr<KeyedService> BuildSearchEngineChoiceService(
- content::BrowserContext* context) {
- int variations_country_id = country_codes::kCountryIDUnknown;
--#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- if (g_browser_process->variations_service()) {
- variations_country_id =
- country_codes::CountryStringToCountryID(base::ToUpperASCII(
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_sharing_sharing__handler__registry__impl.cc b/www/ungoogled-chromium/files/patch-chrome_browser_sharing_sharing__handler__registry__impl.cc
index c0d8d0ca902d..0710b556642e 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_sharing_sharing__handler__registry__impl.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_sharing_sharing__handler__registry__impl.cc
@@ -1,6 +1,6 @@
---- chrome/browser/sharing/sharing_handler_registry_impl.cc.orig 2024-02-25 20:22:18 UTC
+--- chrome/browser/sharing/sharing_handler_registry_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/sharing/sharing_handler_registry_impl.cc
-@@ -23,7 +23,7 @@
+@@ -22,7 +22,7 @@
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -9,8 +9,8 @@
#include "chrome/browser/sharing/shared_clipboard/remote_copy_message_handler.h"
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) ||
// BUILDFLAG(IS_CHROMEOS_LACROS)) BUILDFLAG(IS_CHROMEOS)
-@@ -78,7 +78,7 @@ SharingHandlerRegistryImpl::SharingHandlerRegistryImpl
- }
+@@ -74,7 +74,7 @@ SharingHandlerRegistryImpl::SharingHandlerRegistryImpl
+ #endif // !BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
- BUILDFLAG(IS_CHROMEOS)
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_supervised__user_supervised__user__extensions__manager.cc b/www/ungoogled-chromium/files/patch-chrome_browser_supervised__user_supervised__user__extensions__manager.cc
index cb892c797c1d..9026d6859d4a 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_supervised__user_supervised__user__extensions__manager.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_supervised__user_supervised__user__extensions__manager.cc
@@ -1,6 +1,6 @@
---- chrome/browser/supervised_user/supervised_user_extensions_manager.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/supervised_user/supervised_user_extensions_manager.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/supervised_user/supervised_user_extensions_manager.cc
-@@ -305,7 +305,7 @@ void SupervisedUserExtensionsManager::
+@@ -346,7 +346,7 @@ void SupervisedUserExtensionsManager::
ActivateManagementPolicyAndUpdateRegistration() {
SetActiveForSupervisedUsers();
UpdateManagementPolicyRegistration();
@@ -9,7 +9,7 @@
MaybeMarkExtensionsLocallyParentApproved();
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
}
-@@ -417,7 +417,7 @@ bool SupervisedUserExtensionsManager::ShouldBlockExten
+@@ -458,7 +458,7 @@ bool SupervisedUserExtensionsManager::ShouldBlockExten
return false;
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_sync_chrome__sync__client.cc b/www/ungoogled-chromium/files/patch-chrome_browser_sync_chrome__sync__client.cc
index c4597335b674..8861a079f16c 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_sync_chrome__sync__client.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_sync_chrome__sync__client.cc
@@ -1,6 +1,6 @@
---- chrome/browser/sync/chrome_sync_client.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/sync/chrome_sync_client.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/sync/chrome_sync_client.cc
-@@ -112,7 +112,7 @@
+@@ -108,7 +108,7 @@
#endif // BUILDFLAG(ENABLE_SPELLCHECK)
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
@@ -8,17 +8,17 @@
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_keyed_service.h"
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_service_factory.h"
- #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) ||
-@@ -460,7 +460,7 @@ ChromeSyncClient::CreateDataTypeControllers(syncer::Sy
- #endif // !BUILDFLAG(IS_ANDROID)
-
+ #elif BUILDFLAG(IS_ANDROID)
+@@ -463,7 +463,7 @@ ChromeSyncClient::CreateModelTypeControllers(
+ // platforms.
+ bool enable_tab_group_sync = false;
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
- BUILDFLAG(IS_WIN)
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
- if (base::FeatureList::IsEnabled(features::kTabGroupsSave)) {
- controllers.push_back(std::make_unique<syncer::ModelTypeController>(
- syncer::SAVED_TAB_GROUP,
-@@ -473,7 +473,7 @@ ChromeSyncClient::CreateDataTypeControllers(syncer::Sy
+ enable_tab_group_sync = true;
+ #elif BUILDFLAG(IS_ANDROID)
+ enable_tab_group_sync =
+@@ -481,7 +481,7 @@ ChromeSyncClient::CreateModelTypeControllers(
// Chrome prefers OS provided spell checkers where they exist. So only sync the
// custom dictionary on platforms that typically don't provide one.
@@ -27,12 +27,12 @@
// Dictionary sync is enabled by default.
if (GetPrefService()->GetBoolean(spellcheck::prefs::kSpellCheckEnable)) {
controllers.push_back(
-@@ -629,7 +629,7 @@ base::WeakPtr<syncer::ModelTypeControllerDelegate>
- ChromeSyncClient::GetControllerDelegateForModelType(syncer::ModelType type) {
+@@ -638,7 +638,7 @@ ChromeSyncClient::GetControllerDelegateForModelType(sy
switch (type) {
+ case syncer::SAVED_TAB_GROUP: {
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
- BUILDFLAG(IS_WIN)
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
- case syncer::SAVED_TAB_GROUP: {
- DCHECK(base::FeatureList::IsEnabled(features::kTabGroupsSave));
- return tab_groups::SavedTabGroupServiceFactory::GetForProfile(profile_)
+ auto* keyed_service =
+ tab_groups::SavedTabGroupServiceFactory::GetForProfile(profile_);
+ CHECK(keyed_service);
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__factory.cc b/www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__factory.cc
index a78e4f5220b5..e9b237a3b9ae 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__factory.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__factory.cc
@@ -1,15 +1,15 @@
---- chrome/browser/sync/sync_service_factory.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/sync/sync_service_factory.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/sync/sync_service_factory.cc
-@@ -84,7 +84,7 @@
+@@ -81,7 +81,7 @@
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
- BUILDFLAG(IS_WIN)
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_service_factory.h"
- #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) ||
- // BUILDFLAG(IS_WIN)
-@@ -130,7 +130,7 @@ std::unique_ptr<KeyedService> BuildSyncService(
+ #elif BUILDFLAG(IS_ANDROID)
+ #include "chrome/browser/tab_group_sync/tab_group_sync_service_factory.h"
+@@ -132,7 +132,7 @@ std::unique_ptr<KeyedService> BuildSyncService(
// TODO(crbug.com/1052397): Reassess whether the following block needs to be
// included in lacros-chrome once build flag switch of lacros-chrome is
// complete.
@@ -18,12 +18,12 @@
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
syncer::SyncPrefs prefs(profile->GetPrefs());
local_sync_backend_enabled = prefs.IsLocalSyncEnabled();
-@@ -264,7 +264,7 @@ SyncServiceFactory::SyncServiceFactory()
+@@ -267,7 +267,7 @@ SyncServiceFactory::SyncServiceFactory()
DependsOn(ProfilePasswordStoreFactory::GetInstance());
DependsOn(PowerBookmarkServiceFactory::GetInstance());
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
- BUILDFLAG(IS_WIN)
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
DependsOn(tab_groups::SavedTabGroupServiceFactory::GetInstance());
- #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) ||
- // BUILDFLAG(IS_WIN)
+ #elif BUILDFLAG(IS_ANDROID)
+ DependsOn(tab_groups::TabGroupSyncServiceFactory::GetInstance());
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__util.cc b/www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__util.cc
index 1550b617bd48..36fad2422657 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__util.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_sync_sync__service__util.cc
@@ -1,4 +1,4 @@
---- chrome/browser/sync/sync_service_util.cc.orig 2023-12-23 12:33:28 UTC
+--- chrome/browser/sync/sync_service_util.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/sync/sync_service_util.cc
@@ -9,7 +9,7 @@
#include "components/sync/base/features.h"
@@ -9,7 +9,7 @@
#include "components/variations/service/variations_service.h"
#endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) ||
// BUILDFLAG(IS_WIN)
-@@ -22,7 +22,7 @@ bool IsDesktopEnUSLocaleOnlySyncPollFeatureEnabled() {
+@@ -21,7 +21,7 @@ bool IsDesktopEnUSLocaleOnlySyncPollFeatureEnabled() {
}
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.cc
index f1c3176d602c..dae4203ed7b4 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/autofill/payments/desktop_payments_window_manager.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/autofill/payments/desktop_payments_window_manager.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/autofill/payments/desktop_payments_window_manager.cc
-@@ -25,7 +25,7 @@ namespace autofill::payments {
+@@ -44,7 +44,7 @@ gfx::Rect GetPopupSizeForVcn3ds() {
DesktopPaymentsWindowManager::DesktopPaymentsWindowManager(
ContentAutofillClient* client)
: client_(CHECK_DEREF(client)) {
@@ -9,7 +9,7 @@
scoped_observation_.Observe(BrowserList::GetInstance());
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
}
-@@ -48,7 +48,7 @@ void DesktopPaymentsWindowManager::WebContentsDestroye
+@@ -72,7 +72,7 @@ void DesktopPaymentsWindowManager::WebContentsDestroye
}
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.h b/www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.h
index d799dd88a600..bf4fb7805cf9 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_autofill_payments_desktop__payments__window__manager.h
@@ -1,6 +1,6 @@
---- chrome/browser/ui/autofill/payments/desktop_payments_window_manager.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/autofill/payments/desktop_payments_window_manager.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/autofill/payments/desktop_payments_window_manager.h
-@@ -11,7 +11,7 @@
+@@ -13,7 +13,7 @@
#include "components/autofill/core/browser/payments/payments_window_manager.h"
#include "content/public/browser/web_contents_observer.h"
@@ -9,7 +9,7 @@
#include "base/scoped_observation.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_list_observer.h"
-@@ -30,7 +30,7 @@ namespace payments {
+@@ -34,7 +34,7 @@ class PaymentsWindowUserConsentDialogControllerImpl;
// WebContents of the original tab that the pop-up is created in. If there is a
// pop-up currently present, `this` will observe the WebContents of that pop-up.
class DesktopPaymentsWindowManager : public PaymentsWindowManager,
@@ -18,7 +18,7 @@
public BrowserListObserver,
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
public content::WebContentsObserver {
-@@ -47,7 +47,7 @@ class DesktopPaymentsWindowManager : public PaymentsWi
+@@ -51,7 +51,7 @@ class DesktopPaymentsWindowManager : public PaymentsWi
// content::WebContentsObserver:
void WebContentsDestroyed() override;
@@ -27,9 +27,9 @@
// BrowserListObserver:
void OnBrowserSetLastActive(Browser* browser) override;
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
-@@ -99,7 +99,7 @@ class DesktopPaymentsWindowManager : public PaymentsWi
- // ContentAutofillClient that owns `this`.
- const raw_ref<ContentAutofillClient> client_;
+@@ -118,7 +118,7 @@ class DesktopPaymentsWindowManager : public PaymentsWi
+ std::unique_ptr<PaymentsWindowUserConsentDialogControllerImpl>
+ payments_window_user_consent_dialog_controller_;
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser.h b/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser.h
index 4c9bdc14287d..3c8cfd75f2b3 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser.h
@@ -1,6 +1,6 @@
---- chrome/browser/ui/browser.h.orig 2024-02-25 20:22:18 UTC
+--- chrome/browser/ui/browser.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/browser.h
-@@ -310,7 +310,7 @@ class Browser : public TabStripModelObserver,
+@@ -328,7 +328,7 @@ class Browser : public TabStripModelObserver,
std::optional<int64_t> display_id;
#endif
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__command__controller.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__command__controller.cc
index 7d34b8fac8b2..8f645758d2f7 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__command__controller.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__command__controller.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/browser_command_controller.cc.orig 2024-03-22 14:16:19 UTC
+--- chrome/browser/ui/browser_command_controller.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/browser_command_controller.cc
-@@ -120,7 +120,7 @@
+@@ -123,7 +123,7 @@
#include "components/user_manager/user_manager.h"
#endif
@@ -9,7 +9,7 @@
#include "ui/base/ime/text_input_flags.h"
#include "ui/linux/linux_ui.h"
#endif
-@@ -302,7 +302,7 @@ bool BrowserCommandController::IsReservedCommandOrKey(
+@@ -305,7 +305,7 @@ bool BrowserCommandController::IsReservedCommandOrKey(
#endif
}
@@ -18,7 +18,7 @@
// If this key was registered by the user as a content editing hotkey, then
// it is not reserved.
auto* linux_ui = ui::LinuxUi::instance();
-@@ -554,7 +554,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
+@@ -557,7 +557,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -27,7 +27,7 @@
case IDC_MINIMIZE_WINDOW:
browser_->window()->Minimize();
break;
-@@ -566,7 +566,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
+@@ -569,7 +569,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo
break;
#endif
@@ -36,7 +36,7 @@
case IDC_USE_SYSTEM_TITLE_BAR: {
PrefService* prefs = profile()->GetPrefs();
prefs->SetBoolean(prefs::kUseCustomChromeFrame,
-@@ -1230,12 +1230,12 @@ void BrowserCommandController::InitCommandState() {
+@@ -1259,12 +1259,12 @@ void BrowserCommandController::InitCommandState() {
#endif
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__ui__prefs.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__ui__prefs.cc
index 0a28278f77d8..17768e0f8f88 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__ui__prefs.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_browser__ui__prefs.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/browser_ui_prefs.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/browser_ui_prefs.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/browser_ui_prefs.cc
-@@ -168,7 +168,7 @@ void RegisterBrowserUserPrefs(user_prefs::PrefRegistry
+@@ -175,7 +175,7 @@ void RegisterBrowserUserPrefs(user_prefs::PrefRegistry
registry->RegisterDictionaryPref(prefs::kHttpsUpgradeFallbacks);
registry->RegisterDictionaryPref(prefs::kHttpsUpgradeNavigations);
registry->RegisterBooleanPref(prefs::kHttpsOnlyModeAutoEnabled, false);
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.cc
index 5d61535c8af5..730dd5720110 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/chrome_pages.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/chrome_pages.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/chrome_pages.cc
-@@ -81,7 +81,7 @@
+@@ -84,7 +84,7 @@
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -9,7 +9,7 @@
#include "chrome/browser/web_applications/web_app_utils.h"
#endif
-@@ -715,7 +715,7 @@ void ShowShortcutCustomizationApp(Profile* profile,
+@@ -719,7 +719,7 @@ void ShowShortcutCustomizationApp(Profile* profile,
}
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.h b/www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.h
index cb815572f574..35a7b6805ca9 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_chrome__pages.h
@@ -1,4 +1,4 @@
---- chrome/browser/ui/chrome_pages.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/chrome_pages.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/chrome_pages.h
@@ -38,7 +38,7 @@ enum class ConsentLevel;
} // namespace signin
@@ -9,7 +9,7 @@
namespace web_app {
enum class AppSettingsPageEntryPoint;
} // namespace web_app
-@@ -262,7 +262,7 @@ void ShowShortcutCustomizationApp(Profile* profile,
+@@ -263,7 +263,7 @@ void ShowShortcutCustomizationApp(Profile* profile,
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_passwords_manage__passwords__ui__controller.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_passwords_manage__passwords__ui__controller.cc
index 6ee8dab4b1bf..54d65abff2ba 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_passwords_manage__passwords__ui__controller.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_passwords_manage__passwords__ui__controller.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/passwords/manage_passwords_ui_controller.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/passwords/manage_passwords_ui_controller.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
-@@ -88,7 +88,7 @@ int ManagePasswordsUIController::save_fallback_timeout
+@@ -92,7 +92,7 @@ int ManagePasswordsUIController::save_fallback_timeout
namespace {
@@ -9,7 +9,7 @@
// Should be kept in sync with constant declared in
// bubble_controllers/relaunch_chrome_bubble_controller.cc.
constexpr int kMaxNumberOfTimesKeychainErrorBubbleIsShown = 3;
-@@ -477,7 +477,7 @@ void ManagePasswordsUIController::OnBiometricAuthBefor
+@@ -481,7 +481,7 @@ void ManagePasswordsUIController::OnBiometricAuthBefor
}
void ManagePasswordsUIController::OnKeychainError() {
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_signin_signin__view__controller.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_signin_signin__view__controller.cc
index edc0c2ce74d6..6a131499b189 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_signin_signin__view__controller.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_signin_signin__view__controller.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/signin/signin_view_controller.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/signin/signin_view_controller.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/signin/signin_view_controller.cc
-@@ -255,7 +255,7 @@ void SigninViewController::ShowModalManagedUserNoticeD
+@@ -325,7 +325,7 @@ void SigninViewController::ShowModalManagedUserNoticeD
bool show_link_data_option,
signin::SigninChoiceCallback callback) {
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_bad__flags__prompt.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_bad__flags__prompt.cc
index 3d742fe162c2..31c7e5c4e25f 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_bad__flags__prompt.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_bad__flags__prompt.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/startup/bad_flags_prompt.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/startup/bad_flags_prompt.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/startup/bad_flags_prompt.cc
-@@ -104,7 +104,7 @@ const char* const kBadFlags[] = {
+@@ -105,7 +105,7 @@ const char* const kBadFlags[] = {
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_startup__browser__creator.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_startup__browser__creator.cc
index e14424f680a5..96e68e01cb84 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_startup__browser__creator.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_startup_startup__browser__creator.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/startup/startup_browser_creator.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/startup/startup_browser_creator.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/startup/startup_browser_creator.cc
-@@ -135,7 +135,7 @@
+@@ -136,7 +136,7 @@
#include "chrome/credential_provider/common/gcp_strings.h"
#endif // BUILDFLAG(IS_WIN)
@@ -9,7 +9,7 @@
#include "chrome/browser/headless/headless_mode_util.h"
#include "chrome/browser/ui/startup/web_app_info_recorder_utils.h"
#include "components/headless/policy/headless_mode_policy.h"
-@@ -962,7 +962,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
+@@ -964,7 +964,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
TRACE_EVENT0("startup", "StartupBrowserCreator::ProcessCmdLineImpl");
ComputeAndRecordLaunchMode(command_line);
@@ -18,7 +18,7 @@
if (headless::IsHeadlessMode() &&
headless::HeadlessModePolicy::IsHeadlessModeDisabled(
g_browser_process->local_state())) {
-@@ -1060,7 +1060,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
+@@ -1077,7 +1077,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
silent_launch = true;
}
@@ -27,7 +27,7 @@
// Writes open and installed web apps to the specified file without
// launching a new browser window or tab.
if (base::FeatureList::IsEnabled(features::kListWebAppsSwitch) &&
-@@ -1270,7 +1270,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
+@@ -1287,7 +1287,7 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
CHECK_EQ(profile_info.mode, StartupProfileMode::kBrowserWindow)
<< "Failed launch with app: couldn't pick a profile";
std::string app_id = command_line.GetSwitchValueASCII(switches::kAppId);
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_tab__helpers.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_tab__helpers.cc
index 403a95a60210..ade488b593d0 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_tab__helpers.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_tab__helpers.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/tab_helpers.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/tab_helpers.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/tab_helpers.cc
-@@ -233,7 +233,7 @@
+@@ -236,7 +236,7 @@
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -9,7 +9,7 @@
#include "chrome/browser/ui/blocked_content/framebust_block_tab_helper.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/hats/hats_helper.h"
-@@ -656,12 +656,12 @@ void TabHelpers::AttachTabHelpers(WebContents* web_con
+@@ -666,12 +666,12 @@ void TabHelpers::AttachTabHelpers(WebContents* web_con
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_task__manager_task__manager__table__model.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_task__manager_task__manager__table__model.cc
index 79b7169ca6cb..3d60d15ad445 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_task__manager_task__manager__table__model.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_task__manager_task__manager__table__model.cc
@@ -1,4 +1,4 @@
---- chrome/browser/ui/task_manager/task_manager_table_model.cc.orig 2023-12-23 12:33:28 UTC
+--- chrome/browser/ui/task_manager/task_manager_table_model.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/task_manager/task_manager_table_model.cc
@@ -454,7 +454,7 @@ std::u16string TaskManagerTableModel::GetText(size_t r
? stringifier_->backgrounded_string()
@@ -18,7 +18,7 @@
case IDS_TASK_MANAGER_OPEN_FD_COUNT_COLUMN: {
const int proc1_fd_count =
observed_task_manager()->GetOpenFdCount(tasks_[row1]);
-@@ -799,7 +799,7 @@ void TaskManagerTableModel::UpdateRefreshTypes(int col
+@@ -806,7 +806,7 @@ void TaskManagerTableModel::UpdateRefreshTypes(int col
type = REFRESH_TYPE_KEEPALIVE_COUNT;
break;
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_test_test__browser__ui.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_test_test__browser__ui.cc
index 08f226935cf7..061ce3f01bfd 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_test_test__browser__ui.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_test_test__browser__ui.cc
@@ -1,4 +1,4 @@
---- chrome/browser/ui/test/test_browser_ui.cc.orig 2023-08-18 10:26:52 UTC
+--- chrome/browser/ui/test/test_browser_ui.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/test/test_browser_ui.cc
@@ -22,7 +22,7 @@
@@ -10,7 +10,7 @@
#include "content/public/common/content_switches.h"
#include "ui/base/test/skia_gold_matching_algorithm.h"
@@ -35,7 +35,7 @@
- // TODO(https://crbug.com/958242) support Mac for pixel tests.
+ // TODO(crbug.com/40625383) support Mac for pixel tests.
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
-#if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.cc
index 8ca662ecc227..1c80fadf6b29 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/ui_features.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/ui_features.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/ui_features.cc
-@@ -410,7 +410,7 @@ BASE_FEATURE(kTopChromeWebUIUsesSpareRenderer,
+@@ -426,7 +426,7 @@ BASE_FEATURE(kTopChromeWebUIUsesSpareRenderer,
"TopChromeWebUIUsesSpareRenderer",
base::FEATURE_ENABLED_BY_DEFAULT);
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.h b/www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.h
index 4646275a0a88..e19854d1a10a 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_ui__features.h
@@ -1,6 +1,6 @@
---- chrome/browser/ui/ui_features.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/ui_features.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/ui_features.h
-@@ -264,7 +264,7 @@ BASE_DECLARE_FEATURE(kToolbarUseHardwareBitmapDraw);
+@@ -279,7 +279,7 @@ bool IsToolbarPinningEnabled();
BASE_DECLARE_FEATURE(kTopChromeWebUIUsesSpareRenderer);
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_chrome__views__delegate__linux.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_chrome__views__delegate__linux.cc
index 7cfeaf148f28..a894ed200cbf 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_chrome__views__delegate__linux.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_chrome__views__delegate__linux.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/views/chrome_views_delegate_linux.cc.orig 2022-10-01 07:40:07 UTC
+--- chrome/browser/ui/views/chrome_views_delegate_linux.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/chrome_views_delegate_linux.cc
-@@ -23,7 +23,7 @@ bool IsDesktopEnvironmentUnity() {
+@@ -26,7 +26,7 @@ bool IsDesktopEnvironmentUnity() {
return desktop_env == base::nix::DESKTOP_ENVIRONMENT_UNITY;
}
@@ -9,7 +9,7 @@
int GetWindowIconResourceId() {
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
switch (chrome::GetChannel()) {
-@@ -67,7 +67,7 @@ views::NativeWidget* ChromeViewsDelegate::CreateNative
+@@ -80,7 +80,7 @@ views::NativeWidget* ChromeViewsDelegate::CreateNative
delegate);
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc
index e23f67e418ee..19cd0e1244b3 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/views/frame/browser_view.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/views/frame/browser_view.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/frame/browser_view.cc
-@@ -2238,7 +2238,7 @@ void BrowserView::TabDraggingStatusChanged(bool is_dra
+@@ -2231,7 +2231,7 @@ void BrowserView::TabDraggingStatusChanged(bool is_dra
// CrOS cleanup is done.
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_omnibox_omnibox__view__views.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_omnibox_omnibox__view__views.cc
new file mode 100644
index 000000000000..77ce21b1f8a2
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_omnibox_omnibox__view__views.cc
@@ -0,0 +1,11 @@
+--- chrome/browser/ui/views/omnibox/omnibox_view_views.cc.orig 2024-05-23 20:04:36 UTC
++++ chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+@@ -1951,7 +1951,7 @@ void OmniboxViewViews::MaybeAddSendTabToSelfItem(
+ }
+
+ void OmniboxViewViews::OnPopupOpened() {
+-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ // It's not great for promos to overlap the omnibox if the user opens the
+ // drop-down after showing the promo. This especially causes issues on Mac and
+ // Linux due to z-order/rendering issues, see crbug.com/1225046 and
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_profile__menu__view__base.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_profile__menu__view__base.cc
index ff12b140fed6..6e0ee2242a81 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_profile__menu__view__base.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_profile__menu__view__base.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/views/profiles/profile_menu_view_base.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/views/profiles/profile_menu_view_base.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/profiles/profile_menu_view_base.cc
-@@ -726,7 +726,7 @@ void ProfileMenuViewBase::SetProfileIdentityInfo(
+@@ -723,7 +723,7 @@ void ProfileMenuViewBase::SetProfileIdentityInfo(
// TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is
// complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.cc
index 77c21ceeaca4..e51fc6408523 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc.orig 2024-02-25 20:22:18 UTC
+--- chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc
-@@ -55,7 +55,7 @@ namespace {
+@@ -58,7 +58,7 @@ namespace {
const int kModalDialogWidth = 448;
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -8,8 +8,8 @@
+ BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
const int kManagedUserNoticeConfirmationDialogWidth = 512;
const int kManagedUserNoticeConfirmationDialogHeight = 576;
- #endif
-@@ -182,7 +182,7 @@ SigninViewControllerDelegateViews::CreateProfileCustom
+ const int kManagedUserNoticeConfirmationUpdatedDialogWidth = 1024;
+@@ -187,7 +187,7 @@ SigninViewControllerDelegateViews::CreateProfileCustom
#endif // BUILDFLAG(ENABLE_DICE_SUPPORT) || BUILDFLAG(IS_CHROMEOS_LACROS)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -18,7 +18,7 @@
// static
std::unique_ptr<views::WebView>
SigninViewControllerDelegateViews::CreateManagedUserNoticeConfirmationWebView(
-@@ -328,7 +328,7 @@ SigninViewControllerDelegateViews::SigninViewControlle
+@@ -348,7 +348,7 @@ SigninViewControllerDelegateViews::SigninViewControlle
SetButtons(ui::DIALOG_BUTTON_NONE);
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -27,7 +27,7 @@
// On the local profile creation dialog, cancelling the dialog (for instance
// through the VKEY_ESCAPE accelerator) should delete the profile.
if (delete_profile_on_cancel) {
-@@ -418,7 +418,7 @@ void SigninViewControllerDelegateViews::DisplayModal()
+@@ -438,7 +438,7 @@ void SigninViewControllerDelegateViews::DisplayModal()
}
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -36,7 +36,7 @@
void SigninViewControllerDelegateViews::DeleteProfileOnCancel() {
ProfileAttributesEntry* entry =
g_browser_process->profile_manager()
-@@ -491,7 +491,7 @@ SigninViewControllerDelegate::CreateProfileCustomizati
+@@ -511,7 +511,7 @@ SigninViewControllerDelegate::CreateProfileCustomizati
#endif // BUILDFLAG(ENABLE_DICE_SUPPORT) || BUILDFLAG(IS_CHROMEOS_LACROS)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.h b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.h
index 8e053f4da333..615f4f46efe8 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_profiles_signin__view__controller__delegate__views.h
@@ -1,4 +1,4 @@
---- chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.h.orig 2024-02-25 20:22:18 UTC
+--- chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.h
@@ -73,7 +73,7 @@ class SigninViewControllerDelegateViews
#endif // BUILDFLAG(ENABLE_DICE_SUPPORT) || BUILDFLAG(IS_CHROMEOS_LACROS)
@@ -9,7 +9,7 @@
static std::unique_ptr<views::WebView>
CreateManagedUserNoticeConfirmationWebView(
Browser* browser,
-@@ -138,7 +138,7 @@ class SigninViewControllerDelegateViews
+@@ -139,7 +139,7 @@ class SigninViewControllerDelegateViews
InitializeSigninWebDialogUI initialize_signin_web_dialog_ui);
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tab__search__bubble__host.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tab__search__bubble__host.cc
index 2940f726d88a..dc415bf8a7e4 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tab__search__bubble__host.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tab__search__bubble__host.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/views/tab_search_bubble_host.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/views/tab_search_bubble_host.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/tab_search_bubble_host.cc
-@@ -263,7 +263,7 @@ bool TabSearchBubbleHost::ShouldTabSearchRenderBeforeT
+@@ -268,7 +268,7 @@ bool TabSearchBubbleHost::ShouldTabSearchRenderBeforeT
// Mac should have tabsearch on the right side. Windows >= Win10 has the
// Tab Search button as a FrameCaptionButton, but it still needs to be on the
// left if it exists.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab.cc
index a96fa71c4fb1..36bebc0a5e28 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab.cc
@@ -1,4 +1,4 @@
---- chrome/browser/ui/views/tabs/tab.cc.orig 2024-04-26 05:03:53 UTC
+--- chrome/browser/ui/views/tabs/tab.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/tabs/tab.cc
@@ -622,7 +622,7 @@ void Tab::MaybeUpdateHoverStatus(const ui::MouseEvent&
return;
@@ -8,4 +8,4 @@
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
// Move the hit test area for hovering up so that it is not overlapped by tab
// hover cards when they are shown.
- // TODO(crbug.com/978134): Once Linux/CrOS widget transparency is solved,
+ // TODO(crbug.com/41467565): Once Linux/CrOS widget transparency is solved,
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__drag__controller.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__drag__controller.cc
index 9fec2f64158e..57659e87e510 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__drag__controller.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__drag__controller.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/views/tabs/tab_drag_controller.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/views/tabs/tab_drag_controller.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/tabs/tab_drag_controller.cc
-@@ -93,7 +93,7 @@
+@@ -95,7 +95,7 @@
#include "components/remote_cocoa/browser/window.h"
#endif
@@ -9,7 +9,7 @@
#include "ui/aura/client/drag_drop_client.h"
#endif
-@@ -213,7 +213,7 @@ bool IsWindowDragUsingSystemDragDropAllowed() {
+@@ -215,7 +215,7 @@ bool IsWindowDragUsingSystemDragDropAllowed() {
void UpdateSystemDnDDragImage(TabDragContext* attached_context,
const gfx::ImageSkia& image) {
@@ -18,7 +18,7 @@
aura::Window* root_window =
attached_context->GetWidget()->GetNativeWindow()->GetRootWindow();
if (aura::client::GetDragDropClient(root_window)) {
-@@ -403,7 +403,7 @@ TabDragController::Liveness TabDragController::Init(
+@@ -405,7 +405,7 @@ TabDragController::Liveness TabDragController::Init(
// synchronous on desktop Linux, so use that.
// - ChromeOS Ash
// Releasing capture on Ash cancels gestures so avoid it.
@@ -27,7 +27,7 @@
ref->can_release_capture_ = false;
#endif
ref->start_point_in_screen_ =
-@@ -1051,7 +1051,7 @@ TabDragController::DragBrowserToNewTabStrip(TabDragCon
+@@ -1069,7 +1069,7 @@ TabDragController::DragBrowserToNewTabStrip(TabDragCon
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -36,7 +36,7 @@
// EndMoveLoop is going to snap the window back to its original location.
// Hide it so users don't see this. Hiding a window in Linux aura causes
// it to lose capture so skip it.
-@@ -2103,7 +2103,7 @@ void TabDragController::CompleteDrag() {
+@@ -2143,7 +2143,7 @@ void TabDragController::CompleteDrag() {
}
// If source window was maximized - maximize the new window as well.
@@ -45,7 +45,7 @@
// Keeping maximized state breaks snap to Grid on Windows when dragging
// tabs from maximized windows. TODO:(crbug.com/727051) Explore doing this
// for other desktop OS's. kMaximizedStateRetainedOnTabDrag in
-@@ -2533,7 +2533,7 @@ TabDragController::Liveness TabDragController::GetLoca
+@@ -2573,7 +2573,7 @@ TabDragController::Liveness TabDragController::GetLoca
}
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__hover__card__bubble__view.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__hover__card__bubble__view.cc
index 8f626d7784df..4b0378e0fc39 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__hover__card__bubble__view.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_tabs_tab__hover__card__bubble__view.cc
@@ -1,11 +1,11 @@
---- chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.cc
@@ -371,7 +371,7 @@ TabHoverCardBubbleView::TabHoverCardBubbleView(Tab* ta
// not become active. Setting this to false creates the need to explicitly
// hide the hovercard on press, touch, and keyboard events.
SetCanActivate(false);
--#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
set_accept_events(false);
#endif
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_user__education_browser__user__education__service.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_user__education_browser__user__education__service.cc
index 2c308ed1e182..e66eda5ccaff 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_user__education_browser__user__education__service.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_user__education_browser__user__education__service.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/views/user_education/browser_user_education_service.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/views/user_education/browser_user_education_service.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/user_education/browser_user_education_service.cc
-@@ -790,7 +790,7 @@ void MaybeRegisterChromeFeaturePromos(
+@@ -794,7 +794,7 @@ void MaybeRegisterChromeFeaturePromos(
FeaturePromoSpecification::AcceleratorInfo())
.SetBubbleArrow(HelpBubbleArrow::kTopLeft)));
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_web__apps_web__app__integration__test__driver.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_web__apps_web__app__integration__test__driver.cc
index 6230a259e2ad..7fb0a5265d65 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_web__apps_web__app__integration__test__driver.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_views_web__apps_web__app__integration__test__driver.cc
@@ -1,42 +1,42 @@
---- chrome/browser/ui/views/web_apps/web_app_integration_test_driver.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/views/web_apps/web_app_integration_test_driver.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/views/web_apps/web_app_integration_test_driver.cc
-@@ -514,7 +514,7 @@ std::string GetFileExtension(FileExtension file_extens
+@@ -515,7 +515,7 @@ std::string GetFileExtension(FileExtension file_extens
}
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
- BUILDFLAG(IS_CHROMEOS)
-+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) || BUILDFLAG(IS_BSD)
++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
SiteConfig GetSiteConfigurationFromAppName(const std::string& app_name) {
SiteConfig config;
bool is_app_found = false;
-@@ -2101,7 +2101,7 @@ void WebAppIntegrationTestDriver::DeletePlatformShortc
+@@ -2105,7 +2105,7 @@ void WebAppIntegrationTestDriver::DeletePlatformShortc
if (app_name.empty()) {
app_name = GetSiteConfiguration(site).app_name;
}
-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- ASSERT_TRUE(override_registration_->test_override->IsShortcutCreated(
+ ASSERT_TRUE(override_registration_->test_override().IsShortcutCreated(
profile(), app_id, app_name));
ASSERT_TRUE(
-@@ -3415,7 +3415,7 @@ void WebAppIntegrationTestDriver::CheckRunOnOsLoginEna
+@@ -3419,7 +3419,7 @@ void WebAppIntegrationTestDriver::CheckRunOnOsLoginEna
app_state->id, app_state->name);
ASSERT_TRUE(icon_color.has_value());
ASSERT_THAT(site_config.icon_color, testing::Eq(icon_color.value()));
-#elif BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- ASSERT_TRUE(override_registration_->test_override->IsRunOnOsLoginEnabled(
+ ASSERT_TRUE(override_registration_->test_override().IsRunOnOsLoginEnabled(
profile(), app_state->id, app_state->name));
#endif
-@@ -3430,7 +3430,7 @@ void WebAppIntegrationTestDriver::CheckRunOnOsLoginDis
+@@ -3434,7 +3434,7 @@ void WebAppIntegrationTestDriver::CheckRunOnOsLoginDis
GetAppBySiteMode(after_state_change_action_state_.get(), profile(), site);
ASSERT_TRUE(app_state);
base::ScopedAllowBlockingForTesting allow_blocking;
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- ASSERT_FALSE(override_registration_->test_override->IsRunOnOsLoginEnabled(
+ ASSERT_FALSE(override_registration_->test_override().IsRunOnOsLoginEnabled(
profile(), app_state->id, app_state->name));
#endif
-@@ -3440,7 +3440,7 @@ void WebAppIntegrationTestDriver::CheckRunOnOsLoginDis
+@@ -3444,7 +3444,7 @@ void WebAppIntegrationTestDriver::CheckRunOnOsLoginDis
void WebAppIntegrationTestDriver::CheckSiteHandlesFile(
Site site,
FileExtension file_extension) {
@@ -45,7 +45,7 @@
if (!BeforeStateCheckAction(__FUNCTION__)) {
return;
}
-@@ -3456,7 +3456,7 @@ void WebAppIntegrationTestDriver::CheckSiteHandlesFile
+@@ -3460,7 +3460,7 @@ void WebAppIntegrationTestDriver::CheckSiteHandlesFile
void WebAppIntegrationTestDriver::CheckSiteNotHandlesFile(
Site site,
FileExtension file_extension) {
@@ -54,25 +54,25 @@
if (!BeforeStateCheckAction(__FUNCTION__)) {
return;
}
-@@ -4279,7 +4279,7 @@ base::FilePath WebAppIntegrationTestDriver::GetShortcu
+@@ -4283,7 +4283,7 @@ base::FilePath WebAppIntegrationTestDriver::GetShortcu
base::FilePath shortcut_dir,
const std::string& app_name,
const webapps::AppId& app_id) {
-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
- return override_registration_->test_override->GetShortcutPath(
+ return override_registration_->test_override().GetShortcutPath(
profile(), shortcut_dir, app_id, app_name);
#else
-@@ -4479,7 +4479,7 @@ bool WebAppIntegrationTestDriver::IsShortcutAndIconCre
+@@ -4483,7 +4483,7 @@ bool WebAppIntegrationTestDriver::IsShortcutAndIconCre
const webapps::AppId& id) {
base::ScopedAllowBlockingForTesting allow_blocking;
bool is_shortcut_and_icon_correct = false;
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
bool is_shortcut_correct =
- override_registration_->test_override->IsShortcutCreated(profile, id,
- name);
-@@ -4523,7 +4523,7 @@ bool WebAppIntegrationTestDriver::DoIconColorsMatch(Pr
+ override_registration_->test_override().IsShortcutCreated(profile, id,
+ name);
+@@ -4527,7 +4527,7 @@ bool WebAppIntegrationTestDriver::DoIconColorsMatch(Pr
do_icon_colors_match =
(expected_icon_pixel_color == shortcut_pixel_color_apps_folder.value());
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_web__applications_web__app__ui__manager__impl.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_web__applications_web__app__ui__manager__impl.cc
index a1d7fc960a5b..b0e1361db18b 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_web__applications_web__app__ui__manager__impl.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_web__applications_web__app__ui__manager__impl.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/web_applications/web_app_ui_manager_impl.cc.orig 2024-02-25 20:22:18 UTC
+--- chrome/browser/ui/web_applications/web_app_ui_manager_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/web_applications/web_app_ui_manager_impl.cc
-@@ -586,7 +586,7 @@ void WebAppUiManagerImpl::MaybeShowIPHPromoForAppsLaun
+@@ -578,7 +578,7 @@ void WebAppUiManagerImpl::MaybeShowIPHPromoForAppsLaun
content::WebContents* web_contents,
Profile* profile,
const std::string& app_id) {
@@ -9,7 +9,7 @@
WebAppProvider* provider = WebAppProvider::GetForWebApps(profile);
CHECK(provider);
-@@ -806,7 +806,7 @@ void WebAppUiManagerImpl::ClearWebAppSiteDataIfNeeded(
+@@ -798,7 +798,7 @@ void WebAppUiManagerImpl::ClearWebAppSiteDataIfNeeded(
}
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_app__home_app__home__page__handler.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_app__home_app__home__page__handler.cc
index a174e6672e55..7e2866483ca7 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_app__home_app__home__page__handler.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_app__home_app__home__page__handler.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/webui/app_home/app_home_page_handler.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/webui/app_home/app_home_page_handler.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/webui/app_home/app_home_page_handler.cc
-@@ -391,7 +391,7 @@ app_home::mojom::AppInfoPtr AppHomePageHandler::Create
+@@ -376,7 +376,7 @@ app_home::mojom::AppInfoPtr AppHomePageHandler::Create
app_info->start_url = start_url;
bool deprecated_app = false;
@@ -9,7 +9,7 @@
auto* context = extension_system_->extension_service()->GetBrowserContext();
deprecated_app =
extensions::IsExtensionUnsupportedDeprecatedApp(context, extension->id());
-@@ -454,7 +454,7 @@ void AppHomePageHandler::FillExtensionInfoList(
+@@ -439,7 +439,7 @@ void AppHomePageHandler::FillExtensionInfoList(
continue;
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc
index 8e3bfeb1e0a8..1160d1b0b3a8 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
-@@ -202,7 +202,7 @@
+@@ -206,7 +206,7 @@
#include "chrome/browser/ui/webui/chromeos/chrome_url_disabled/chrome_url_disabled_ui.h"
#endif
@@ -9,7 +9,7 @@
#include "chrome/browser/ui/webui/webui_js_error/webui_js_error_ui.h"
#endif
-@@ -228,17 +228,17 @@
+@@ -232,17 +232,17 @@
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -30,7 +30,7 @@
#include "chrome/browser/ui/webui/connectors_internals/connectors_internals_ui.h"
#endif
-@@ -390,7 +390,7 @@ bool IsAboutUI(const GURL& url) {
+@@ -386,7 +386,7 @@ bool IsAboutUI(const GURL& url) {
#if !BUILDFLAG(IS_ANDROID)
|| url.host_piece() == chrome::kChromeUITermsHost
#endif
@@ -39,7 +39,7 @@
|| url.host_piece() == chrome::kChromeUILinuxProxyConfigHost
#endif
#if BUILDFLAG(IS_CHROMEOS_ASH)
-@@ -625,7 +625,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we
+@@ -606,7 +606,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we
if (url.host_piece() == chrome::kChromeUIMobileSetupHost)
return &NewWebUI<ash::cellular_setup::MobileSetupUI>;
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
@@ -48,7 +48,7 @@
if (url.host_piece() == chrome::kChromeUIWebUIJsErrorHost)
return &NewWebUI<WebUIJsErrorUI>;
#endif
-@@ -681,7 +681,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we
+@@ -662,7 +662,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we
if (url.host_piece() == chrome::kChromeUINaClHost)
return &NewWebUI<NaClUI>;
#endif
@@ -57,7 +57,7 @@
defined(TOOLKIT_VIEWS)) || \
defined(USE_AURA)
if (url.host_piece() == chrome::kChromeUITabModalConfirmDialogHost)
-@@ -736,27 +736,27 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we
+@@ -710,27 +710,27 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we
}
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_connectors__internals_device__trust__utils.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_connectors__internals_device__trust__utils.cc
index 9c45d8a0a559..3deb9ce1bf30 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_connectors__internals_device__trust__utils.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_connectors__internals_device__trust__utils.cc
@@ -1,4 +1,4 @@
---- chrome/browser/ui/webui/connectors_internals/device_trust_utils.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/webui/connectors_internals/device_trust_utils.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/webui/connectors_internals/device_trust_utils.cc
@@ -7,7 +7,7 @@
#include "build/build_config.h"
@@ -18,7 +18,7 @@
connectors_internals::mojom::KeyTrustLevel ParseTrustLevel(
BPKUR::KeyTrustLevel trust_level) {
-@@ -189,7 +189,7 @@ connectors_internals::mojom::CertificateMetadataPtr Co
+@@ -173,7 +173,7 @@ connectors_internals::mojom::CertificateMetadataPtr Co
} // namespace
connectors_internals::mojom::KeyInfoPtr GetKeyInfo() {
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_management_management__ui__handler.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_management_management__ui__handler.cc
index aa32a9431415..67f0951ba6ff 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_management_management__ui__handler.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_management_management__ui__handler.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/webui/management/management_ui_handler.cc.orig 2024-02-25 20:22:18 UTC
+--- chrome/browser/ui/webui/management/management_ui_handler.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/webui/management/management_ui_handler.cc
-@@ -94,7 +94,7 @@
+@@ -95,7 +95,7 @@
#include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
@@ -9,7 +9,7 @@
#include "chrome/browser/enterprise/signals/user_permission_service_factory.h"
#include "components/device_signals/core/browser/user_permission_service.h" // nogncheck
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
-@@ -190,12 +190,12 @@ enum class ReportingType {
+@@ -191,12 +191,12 @@ enum class ReportingType {
kLegacyTech,
};
@@ -24,7 +24,7 @@
const char kManagementDeviceSignalsDisclosure[] =
"managementDeviceSignalsDisclosure";
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
-@@ -829,7 +829,7 @@ void ManagementUIHandler::AddReportingInfo(base::Value
+@@ -830,7 +830,7 @@ void ManagementUIHandler::AddReportingInfo(base::Value
GetReportingTypeValue(report_definition.reporting_type));
report_sources->Append(std::move(data));
}
@@ -33,7 +33,7 @@
// Insert the device signals consent disclosure at the end of browser
// reporting section.
auto* user_permission_service = GetUserPermissionService();
-@@ -1111,7 +1111,7 @@ base::Value::Dict ManagementUIHandler::GetThreatProtec
+@@ -1100,7 +1100,7 @@ base::Value::Dict ManagementUIHandler::GetThreatProtec
&info);
}
@@ -42,7 +42,7 @@
if (capture_policy::IsGetAllScreensMediaAllowedForAnySite(profile)) {
AddThreatProtectionPermission(kManagementScreenCaptureEvent,
kManagementScreenCaptureData, &info);
-@@ -1195,7 +1195,7 @@ policy::PolicyService* ManagementUIHandler::GetPolicyS
+@@ -1184,7 +1184,7 @@ policy::PolicyService* ManagementUIHandler::GetPolicyS
->policy_service();
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_searchbox_searchbox__handler.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_searchbox_searchbox__handler.cc
new file mode 100644
index 000000000000..ddb38b954b6f
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_searchbox_searchbox__handler.cc
@@ -0,0 +1,29 @@
+--- chrome/browser/ui/webui/searchbox/searchbox_handler.cc.orig 2024-05-23 20:04:36 UTC
++++ chrome/browser/ui/webui/searchbox/searchbox_handler.cc
+@@ -101,7 +101,7 @@ const char* kMacShareIconResourceName =
+ #elif BUILDFLAG(IS_WIN)
+ const char* kWinShareIconResourceName =
+ "//resources/cr_components/searchbox/icons/win_share.svg";
+-#elif BUILDFLAG(IS_LINUX)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ const char* kLinuxShareIconResourceName =
+ "//resources/cr_components/searchbox/icons/share.svg";
+ #else
+@@ -161,7 +161,7 @@ static void DefineChromeRefreshRealboxIcons() {
+ #elif BUILDFLAG(IS_WIN)
+ kWinShareIconResourceName =
+ "//resources/cr_components/searchbox/icons/win_share_cr23.svg";
+-#elif BUILDFLAG(IS_LINUX)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ kLinuxShareIconResourceName =
+ "//resources/cr_components/searchbox/icons/share_cr23.svg";
+ #else
+@@ -662,7 +662,7 @@ std::string SearchboxHandler::ActionVectorIconToResour
+ icon.name == omnibox::kShareWinChromeRefreshIcon.name) {
+ return kWinShareIconResourceName;
+ }
+-#elif BUILDFLAG(IS_LINUX)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ if (icon.name == omnibox::kShareIcon.name ||
+ icon.name == omnibox::kShareLinuxChromeRefreshIcon.name) {
+ return kLinuxShareIconResourceName;
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc
index 3073a959eeeb..6a30c771d258 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc
@@ -1,7 +1,7 @@
---- chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
-@@ -137,7 +137,7 @@
- #include "ash/webui/settings/public/constants/routes.mojom.h"
+@@ -134,7 +134,7 @@
+ #include "chrome/browser/ui/chrome_pages.h"
#endif
-#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS)
@@ -9,7 +9,7 @@
#include "ui/display/screen.h"
#endif
-@@ -156,7 +156,7 @@
+@@ -153,7 +153,7 @@
#include "chrome/browser/ui/webui/certificate_manager_localized_strings_provider.h"
#endif
@@ -18,16 +18,7 @@
#include "ui/linux/linux_ui_factory.h"
#include "ui/ozone/public/ozone_platform.h"
#endif
-@@ -259,7 +259,7 @@ void AddCommonStrings(content::WebUIDataSource* html_s
-
- html_source->AddBoolean("isChildAccount", profile->IsChild());
-
--#if BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- bool allow_qt_theme = base::FeatureList::IsEnabled(ui::kAllowQt);
- #else
- bool allow_qt_theme = false;
-@@ -289,7 +289,7 @@ void AddA11yStrings(content::WebUIDataSource* html_sou
+@@ -266,7 +266,7 @@ void AddA11yStrings(content::WebUIDataSource* html_sou
{"focusHighlightLabel",
IDS_SETTINGS_ACCESSIBILITY_FOCUS_HIGHLIGHT_DESCRIPTION},
#endif
@@ -36,7 +27,7 @@
{"overscrollHistoryNavigationTitle",
IDS_SETTINGS_OVERSCROLL_HISTORY_NAVIGATION_TITLE},
{"overscrollHistoryNavigationSubtitle",
-@@ -432,7 +432,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht
+@@ -404,7 +404,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht
{"huge", IDS_SETTINGS_HUGE_FONT_SIZE},
{"sidePanelAlignLeft", IDS_SETTINGS_SIDE_PANEL_ALIGN_LEFT},
{"sidePanelAlignRight", IDS_SETTINGS_SIDE_PANEL_ALIGN_RIGHT},
@@ -45,7 +36,7 @@
{"gtkTheme", IDS_SETTINGS_GTK_THEME},
{"useGtkTheme", IDS_SETTINGS_USE_GTK_THEME},
{"qtTheme", IDS_SETTINGS_QT_THEME},
-@@ -442,7 +442,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht
+@@ -414,7 +414,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht
#else
{"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME},
#endif
@@ -54,7 +45,7 @@
{"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS},
#endif
#if BUILDFLAG(IS_MAC)
-@@ -467,7 +467,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht
+@@ -435,7 +435,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_ui_window__sizer_window__sizer.cc b/www/ungoogled-chromium/files/patch-chrome_browser_ui_window__sizer_window__sizer.cc
index d2fc8efc82d2..a1edfca913ea 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_ui_window__sizer_window__sizer.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_ui_window__sizer_window__sizer.cc
@@ -1,6 +1,6 @@
---- chrome/browser/ui/window_sizer/window_sizer.cc.orig 2023-09-17 07:59:53 UTC
+--- chrome/browser/ui/window_sizer/window_sizer.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/ui/window_sizer/window_sizer.cc
-@@ -216,7 +216,7 @@ void WindowSizer::GetBrowserWindowBoundsAndShowState(
+@@ -210,7 +210,7 @@ void WindowSizer::GetBrowserWindowBoundsAndShowState(
browser, window_bounds, show_state);
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_commands_install__app__locally__command.cc b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_commands_install__app__locally__command.cc
deleted file mode 100644
index 9867fae6b246..000000000000
--- a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_commands_install__app__locally__command.cc
+++ /dev/null
@@ -1,11 +0,0 @@
---- chrome/browser/web_applications/commands/install_app_locally_command.cc.orig 2024-02-25 20:22:18 UTC
-+++ chrome/browser/web_applications/commands/install_app_locally_command.cc
-@@ -75,7 +75,7 @@ void InstallAppLocallyCommand::StartWithLock(
- options.os_hooks[OsHookType::kUninstallationViaOsSettings] =
- web_app->CanUserUninstallWebApp();
-
--#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
-+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \
- (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS))
- options.os_hooks[web_app::OsHookType::kUrlHandlers] = true;
- #else
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_extensions_extension__status__utils.cc b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_extensions_extension__status__utils.cc
index 6541452ab81a..d500e42c8d1c 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_extensions_extension__status__utils.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_extensions_extension__status__utils.cc
@@ -1,4 +1,4 @@
---- chrome/browser/web_applications/extensions/extension_status_utils.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/web_applications/extensions/extension_status_utils.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/web_applications/extensions/extension_status_utils.cc
@@ -25,7 +25,7 @@ namespace {
@@ -9,7 +9,7 @@
// TODO(b/268221237): Remove this allow-list.
const char kDefaultAllowedExtensionIds[] =
"alhngdkjgnedakdlnamimgfihgkmenbh,"
-@@ -114,7 +114,7 @@ bool ClearExternalExtensionUninstalled(content::Browse
+@@ -113,7 +113,7 @@ bool ClearExternalExtensionUninstalled(content::Browse
extension_id);
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_os__integration_os__integration__test__override.h b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_os__integration_os__integration__test__override.h
index 97c97794e89e..2a0899732850 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_os__integration_os__integration__test__override.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_os__integration_os__integration__test__override.h
@@ -1,11 +1,11 @@
---- chrome/browser/web_applications/os_integration/os_integration_test_override.h.orig 2023-12-23 12:33:28 UTC
+--- chrome/browser/web_applications/os_integration/os_integration_test_override.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/web_applications/os_integration/os_integration_test_override.h
-@@ -92,7 +92,7 @@ class OsIntegrationTestOverride
- virtual const base::FilePath& chrome_apps_folder() = 0;
+@@ -97,7 +97,7 @@ class OsIntegrationTestOverride
+ virtual base::FilePath chrome_apps_folder() = 0;
virtual void EnableOrDisablePathOnLogin(const base::FilePath& file_path,
bool enable_on_login) = 0;
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- virtual const base::FilePath& desktop() = 0;
- virtual const base::FilePath& startup() = 0;
- virtual const base::FilePath& applications_dir() = 0;
+ virtual base::Environment* environment() = 0;
+ #endif
+
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_policy_web__app__policy__manager.cc b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_policy_web__app__policy__manager.cc
index 4a10e8f67117..3ced30ec1e50 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_policy_web__app__policy__manager.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_policy_web__app__policy__manager.cc
@@ -1,6 +1,6 @@
---- chrome/browser/web_applications/policy/web_app_policy_manager.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/web_applications/policy/web_app_policy_manager.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/web_applications/policy/web_app_policy_manager.cc
-@@ -111,7 +111,7 @@ namespace web_app {
+@@ -101,7 +101,7 @@ namespace web_app {
BASE_FEATURE(kDesktopPWAsForceUnregisterOSIntegration,
"DesktopPWAsForceUnregisterOSIntegration",
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.cc b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.cc
index f2b4b5f9f7d4..ce99102b8a26 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.cc
@@ -1,6 +1,15 @@
---- chrome/browser/web_applications/test/os_integration_test_override_impl.cc.orig 2024-02-25 20:22:18 UTC
+--- chrome/browser/web_applications/test/os_integration_test_override_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/web_applications/test/os_integration_test_override_impl.cc
-@@ -127,7 +127,7 @@ std::vector<std::wstring> GetFileExtensionsForProgId(
+@@ -46,7 +46,7 @@
+ #include "third_party/skia/include/core/SkBitmap.h"
+ #include "third_party/skia/include/core/SkColor.h"
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ #include "base/nix/xdg_util.h"
+ #endif
+
+@@ -131,7 +131,7 @@ std::vector<std::wstring> GetFileExtensionsForProgId(
}
#endif
@@ -9,7 +18,7 @@
// Performs a blocking read of app icons from the disk.
SkColor IconManagerReadIconTopLeftColorForSize(WebAppIconManager& icon_manager,
const webapps::AppId& app_id,
-@@ -224,7 +224,7 @@ bool OsIntegrationTestOverrideImpl::SimulateDeleteShor
+@@ -266,7 +266,7 @@ bool OsIntegrationTestOverrideImpl::SimulateDeleteShor
GetShortcutPath(profile, chrome_apps_folder(), app_id, app_name);
CHECK(base::PathExists(app_folder_shortcut_path));
return base::DeletePathRecursively(app_folder_shortcut_path);
@@ -18,7 +27,7 @@
base::FilePath desktop_shortcut_path =
GetShortcutPath(profile, desktop(), app_id, app_name);
LOG(INFO) << desktop_shortcut_path;
-@@ -264,7 +264,7 @@ bool OsIntegrationTestOverrideImpl::DeleteApplicationM
+@@ -306,7 +306,7 @@ bool OsIntegrationTestOverrideImpl::DeleteApplicationM
}
#endif // BUILDFLAG(IS_WIN)
@@ -27,7 +36,7 @@
bool OsIntegrationTestOverrideImpl::DeleteDesktopDirOnLinux() {
if (desktop_.IsValid()) {
return desktop_.Delete();
-@@ -278,7 +278,7 @@ bool OsIntegrationTestOverrideImpl::IsRunOnOsLoginEnab
+@@ -320,7 +320,7 @@ bool OsIntegrationTestOverrideImpl::IsRunOnOsLoginEnab
Profile* profile,
const webapps::AppId& app_id,
const std::string& app_name) {
@@ -36,16 +45,16 @@
std::string shortcut_filename =
"chrome-" + app_id + "-" + profile->GetBaseName().value() + ".desktop";
return base::PathExists(startup().Append(shortcut_filename));
-@@ -334,7 +334,7 @@ bool OsIntegrationTestOverrideImpl::IsFileExtensionHan
+@@ -376,7 +376,7 @@ bool OsIntegrationTestOverrideImpl::IsFileExtensionHan
is_file_handled =
shell_integration::CanApplicationHandleURL(app_path, test_file_url);
base::DeleteFile(test_file_path);
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- base::FilePath user_applications_dir =
- applications_dir().Append("applications");
+ base::FilePath user_applications_dir = applications();
bool database_update_called = false;
-@@ -378,7 +378,7 @@ OsIntegrationTestOverrideImpl::GetShortcutIconTopLeftC
+ for (const LinuxFileRegistration& command : linux_file_registration_) {
+@@ -419,7 +419,7 @@ OsIntegrationTestOverrideImpl::GetShortcutIconTopLeftC
return std::nullopt;
}
return GetIconTopLeftColorFromShortcutFile(shortcut_path);
@@ -54,7 +63,7 @@
WebAppProvider* provider = WebAppProvider::GetForLocalAppsUnchecked(profile);
if (!provider) {
return std::nullopt;
-@@ -428,7 +428,7 @@ base::FilePath OsIntegrationTestOverrideImpl::GetShort
+@@ -469,7 +469,7 @@ base::FilePath OsIntegrationTestOverrideImpl::GetShort
app_installed_profiles.end()) {
return shortcut_path;
}
@@ -63,7 +72,7 @@
std::string shortcut_filename =
"chrome-" + app_id + "-" + profile->GetBaseName().value() + ".desktop";
base::FilePath shortcut_path = shortcut_dir.Append(shortcut_filename);
-@@ -454,7 +454,7 @@ bool OsIntegrationTestOverrideImpl::IsShortcutCreated(
+@@ -495,7 +495,7 @@ bool OsIntegrationTestOverrideImpl::IsShortcutCreated(
base::FilePath app_shortcut_path =
GetShortcutPath(profile, chrome_apps_folder(), app_id, app_name);
return base::PathExists(app_shortcut_path);
@@ -72,48 +81,39 @@
base::FilePath desktop_shortcut_path =
GetShortcutPath(profile, desktop(), app_id, app_name);
return base::PathExists(desktop_shortcut_path);
-@@ -643,7 +643,7 @@ void OsIntegrationTestOverrideImpl::EnableOrDisablePat
+@@ -683,7 +683,7 @@ void OsIntegrationTestOverrideImpl::EnableOrDisablePat
}
#endif // BUILDFLAG(IS_MAC)
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- const base::FilePath& OsIntegrationTestOverrideImpl::desktop() {
+ base::FilePath OsIntegrationTestOverrideImpl::desktop() {
return desktop_.GetPath();
}
-@@ -678,7 +678,7 @@ OsIntegrationTestOverrideImpl::OsIntegrationTestOverri
- #elif BUILDFLAG(IS_MAC)
- bool success = chrome_apps_folder_.CreateUniqueTempDirUnderPath(base_path);
- CHECK(success);
+@@ -734,7 +734,7 @@ OsIntegrationTestOverrideImpl::OsIntegrationTestOverri
+ success = chrome_apps_folder_.CreateUniqueTempDirUnderPath(
+ outer_temp_dir_.GetPath());
+ CHECK(success);
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- bool success = desktop_.CreateUniqueTempDirUnderPath(base_path);
- CHECK(success);
- success = startup_.CreateUniqueTempDirUnderPath(base_path);
-@@ -699,7 +699,7 @@ OsIntegrationTestOverrideImpl::OsIntegrationTestOverri
- #elif BUILDFLAG(IS_MAC)
- bool success = chrome_apps_folder_.CreateUniqueTempDir();
- CHECK(success);
--#elif BUILDFLAG(IS_LINUX)
-+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- bool success = desktop_.CreateUniqueTempDir();
- CHECK(success);
- success = startup_.CreateUniqueTempDir();
-@@ -709,7 +709,7 @@ OsIntegrationTestOverrideImpl::OsIntegrationTestOverri
+ success = desktop_.CreateUniqueTempDirUnderPath(outer_temp_dir_.GetPath());
+ CHECK(success);
+ success = startup_.CreateUniqueTempDirUnderPath(outer_temp_dir_.GetPath());
+@@ -747,7 +747,7 @@ OsIntegrationTestOverrideImpl::OsIntegrationTestOverri
+ CHECK(success);
#endif
- }
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
auto callback = base::BindRepeating([](base::FilePath filename_in,
std::string xdg_command,
std::string file_contents) {
-@@ -756,7 +756,7 @@ OsIntegrationTestOverrideImpl::~OsIntegrationTestOverr
- }
- }
- }
+@@ -819,7 +819,7 @@ OsIntegrationTestOverrideImpl::~OsIntegrationTestOverr
+ EXPECT_TRUE(!startup_.IsValid() || startup_.Delete());
+ #elif BUILDFLAG(IS_MAC)
+ EXPECT_TRUE(!chrome_apps_folder_.IsValid() || chrome_apps_folder_.Delete());
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- // Reset the file handling callback.
- SetUpdateMimeInfoDatabaseOnLinuxCallbackForTesting(
- UpdateMimeInfoDatabaseOnLinuxCallback());
+ EXPECT_TRUE(!desktop_.IsValid() || desktop_.Delete());
+ EXPECT_TRUE(!startup_.IsValid() || startup_.Delete());
+ EXPECT_TRUE(!xdg_data_home_dir_.IsValid() || xdg_data_home_dir_.Delete());
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.h b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.h
index 2181408dbff8..256362ff74f4 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.h
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_web__applications_test_os__integration__test__override__impl.h
@@ -1,6 +1,6 @@
---- chrome/browser/web_applications/test/os_integration_test_override_impl.h.orig 2023-12-23 12:33:28 UTC
+--- chrome/browser/web_applications/test/os_integration_test_override_impl.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/web_applications/test/os_integration_test_override_impl.h
-@@ -38,7 +38,7 @@ class ShellLinkItem;
+@@ -40,7 +40,7 @@ class ShellLinkItem;
namespace web_app {
@@ -9,7 +9,7 @@
struct LinuxFileRegistration {
base::FilePath file_name;
std::string xdg_command;
-@@ -112,7 +112,7 @@ class OsIntegrationTestOverrideImpl : public OsIntegra
+@@ -116,7 +116,7 @@ class OsIntegrationTestOverrideImpl : public OsIntegra
bool DeleteApplicationMenuDirOnWin();
#endif // BUILDFLAG(IS_WIN)
@@ -18,16 +18,16 @@
bool DeleteDesktopDirOnLinux();
#endif // BUILDFLAG(IS_LINUX)
-@@ -231,7 +231,7 @@ class OsIntegrationTestOverrideImpl : public OsIntegra
- const base::FilePath& chrome_apps_folder() override;
+@@ -235,7 +235,7 @@ class OsIntegrationTestOverrideImpl : public OsIntegra
+ base::FilePath chrome_apps_folder() override;
void EnableOrDisablePathOnLogin(const base::FilePath& file_path,
bool enable_on_login) override;
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- const base::FilePath& desktop() override;
- const base::FilePath& startup() override;
- const base::FilePath& applications_dir() override;
-@@ -278,7 +278,7 @@ class OsIntegrationTestOverrideImpl : public OsIntegra
+ base::FilePath desktop();
+ base::FilePath startup();
+ base::FilePath applications();
+@@ -315,7 +315,7 @@ class OsIntegrationTestOverrideImpl : public OsIntegra
base::ScopedTempDir chrome_apps_folder_;
std::map<base::FilePath, bool> startup_enabled_;
@@ -35,4 +35,4 @@
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
base::ScopedTempDir desktop_;
base::ScopedTempDir startup_;
- base::ScopedTempDir applications_dir_;
+ base::ScopedTempDir xdg_data_home_dir_;
diff --git a/www/ungoogled-chromium/files/patch-chrome_browser_webauthn_chrome__authenticator__request__delegate.cc b/www/ungoogled-chromium/files/patch-chrome_browser_webauthn_chrome__authenticator__request__delegate.cc
index 66bff4b00c84..e8f86a6a2753 100644
--- a/www/ungoogled-chromium/files/patch-chrome_browser_webauthn_chrome__authenticator__request__delegate.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_browser_webauthn_chrome__authenticator__request__delegate.cc
@@ -1,6 +1,6 @@
---- chrome/browser/webauthn/chrome_authenticator_request_delegate.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/browser/webauthn/chrome_authenticator_request_delegate.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/browser/webauthn/chrome_authenticator_request_delegate.cc
-@@ -859,7 +859,7 @@ void ChromeAuthenticatorRequestDelegate::ConfigureDisc
+@@ -798,7 +798,7 @@ void ChromeAuthenticatorRequestDelegate::ConfigureDisc
g_observer->ConfiguringCable(request_type);
}
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_chrome__features.cc b/www/ungoogled-chromium/files/patch-chrome_common_chrome__features.cc
index cb2784be8c59..ba1e6feaf6b8 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_chrome__features.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_common_chrome__features.cc
@@ -1,4 +1,4 @@
---- chrome/common/chrome_features.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/common/chrome_features.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/chrome_features.cc
@@ -81,7 +81,7 @@ BASE_FEATURE(kUseAdHocSigningForWebAppShims,
#endif // BUILDFLAG(IS_MAC)
@@ -18,7 +18,7 @@
// Enables the Restart background mode optimization. When all Chrome UI is
// closed and it goes in the background, allows to restart the browser to
// discard memory.
-@@ -302,7 +302,7 @@ BASE_FEATURE(kDesktopPWAsEnforceWebAppSettingsPolicy,
+@@ -300,7 +300,7 @@ BASE_FEATURE(kDesktopPWAsEnforceWebAppSettingsPolicy,
BASE_FEATURE(kDesktopPWAsRunOnOsLogin,
"DesktopPWAsRunOnOsLogin",
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -27,7 +27,7 @@
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
-@@ -341,7 +341,7 @@ BASE_FEATURE(kDesktopPWAsTabStripSettings,
+@@ -339,7 +339,7 @@ BASE_FEATURE(kDesktopPWAsTabStripSettings,
base::FEATURE_DISABLED_BY_DEFAULT);
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -36,7 +36,7 @@
// Controls whether Chrome Apps are supported. See https://crbug.com/1221251.
// If the feature is disabled, Chrome Apps continue to work. If enabled, Chrome
// Apps will not launch and will be marked in the UI as deprecated.
-@@ -375,7 +375,7 @@ const base::FeatureParam<bool> kDnsOverHttpsFallbackPa
+@@ -373,7 +373,7 @@ const base::FeatureParam<bool> kDnsOverHttpsFallbackPa
const base::FeatureParam<bool> kDnsOverHttpsShowUiParam{&kDnsOverHttps,
"ShowUi",
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
@@ -45,16 +45,16 @@
true
#else
false
-@@ -913,7 +913,7 @@ BASE_FEATURE(kLacrosSharedComponentsDir,
+@@ -905,7 +905,7 @@ BASE_FEATURE(kKAnonymityServiceStorage,
+ "KAnonymityServiceStorage",
base::FEATURE_ENABLED_BY_DEFAULT);
- #endif // BUILDFLAG(IS_CHROMEOS_ASH)
-#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)
+#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD)
BASE_FEATURE(kLinuxLowMemoryMonitor,
"LinuxLowMemoryMonitor",
base::FEATURE_DISABLED_BY_DEFAULT);
-@@ -926,7 +926,7 @@ constexpr base::FeatureParam<int> kLinuxLowMemoryMonit
+@@ -918,7 +918,7 @@ constexpr base::FeatureParam<int> kLinuxLowMemoryMonit
&kLinuxLowMemoryMonitor, "critical_level", 255};
#endif // BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_chrome__features.h b/www/ungoogled-chromium/files/patch-chrome_common_chrome__features.h
index b5c64493a67c..bc58c5b5e131 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_chrome__features.h
+++ b/www/ungoogled-chromium/files/patch-chrome_common_chrome__features.h
@@ -1,4 +1,4 @@
---- chrome/common/chrome_features.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/common/chrome_features.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/chrome_features.h
@@ -60,13 +60,13 @@ BASE_DECLARE_FEATURE(kUseAdHocSigningForWebAppShims);
#endif // BUILDFLAG(IS_MAC)
@@ -16,7 +16,7 @@
COMPONENT_EXPORT(CHROME_FEATURES)
BASE_DECLARE_FEATURE(kBackgroundModeAllowRestart);
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
-@@ -216,7 +216,7 @@ COMPONENT_EXPORT(CHROME_FEATURES)
+@@ -220,7 +220,7 @@ COMPONENT_EXPORT(CHROME_FEATURES)
BASE_DECLARE_FEATURE(kDesktopPWAsTabStripSettings);
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -25,16 +25,16 @@
COMPONENT_EXPORT(CHROME_FEATURES) BASE_DECLARE_FEATURE(kChromeAppsDeprecation);
COMPONENT_EXPORT(CHROME_FEATURES)
BASE_DECLARE_FEATURE(kShortcutsNotApps);
-@@ -543,7 +543,7 @@ COMPONENT_EXPORT(CHROME_FEATURES)
- BASE_DECLARE_FEATURE(kLacrosSharedComponentsDir);
- #endif // BUILDFLAG(IS_CHROMEOS_ASH)
+@@ -552,7 +552,7 @@ BASE_DECLARE_FEATURE(kKAnonymityServiceOHTTPRequests);
+ COMPONENT_EXPORT(CHROME_FEATURES)
+ BASE_DECLARE_FEATURE(kKAnonymityServiceStorage);
-#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)
+#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD)
COMPONENT_EXPORT(CHROME_FEATURES) BASE_DECLARE_FEATURE(kLinuxLowMemoryMonitor);
COMPONENT_EXPORT(CHROME_FEATURES)
extern const base::FeatureParam<int> kLinuxLowMemoryMonitorModerateLevel;
-@@ -551,7 +551,7 @@ COMPONENT_EXPORT(CHROME_FEATURES)
+@@ -560,7 +560,7 @@ COMPONENT_EXPORT(CHROME_FEATURES)
extern const base::FeatureParam<int> kLinuxLowMemoryMonitorCriticalLevel;
#endif // BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_chrome__paths.cc b/www/ungoogled-chromium/files/patch-chrome_common_chrome__paths.cc
index 2ddd25f06338..8db86abf78a5 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_chrome__paths.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_common_chrome__paths.cc
@@ -1,4 +1,4 @@
---- chrome/common/chrome_paths.cc.orig 2024-03-22 14:16:19 UTC
+--- chrome/common/chrome_paths.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/chrome_paths.cc
@@ -30,7 +30,7 @@
#include "base/apple/foundation_util.h"
@@ -36,7 +36,7 @@
if (!GetUserDownloadsDirectorySafe(&cur)) {
return false;
}
-@@ -544,7 +544,7 @@ bool PathProvider(int key, base::FilePath* result) {
+@@ -541,7 +541,7 @@ bool PathProvider(int key, base::FilePath* result) {
return false;
}
break;
@@ -45,7 +45,7 @@
case chrome::DIR_POLICY_FILES: {
cur = base::FilePath(policy::kPolicyPath);
break;
-@@ -555,7 +555,7 @@ bool PathProvider(int key, base::FilePath* result) {
+@@ -552,7 +552,7 @@ bool PathProvider(int key, base::FilePath* result) {
#if BUILDFLAG(IS_CHROMEOS_ASH) || \
((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \
BUILDFLAG(CHROMIUM_BRANDING)) || \
@@ -54,7 +54,7 @@
case chrome::DIR_USER_EXTERNAL_EXTENSIONS: {
if (!base::PathService::Get(chrome::DIR_USER_DATA, &cur)) {
return false;
-@@ -564,7 +564,7 @@ bool PathProvider(int key, base::FilePath* result) {
+@@ -561,7 +561,7 @@ bool PathProvider(int key, base::FilePath* result) {
break;
}
#endif
@@ -63,7 +63,7 @@
case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: {
cur = base::FilePath(kFilepathSinglePrefExtensions);
break;
-@@ -612,7 +612,7 @@ bool PathProvider(int key, base::FilePath* result) {
+@@ -609,7 +609,7 @@ bool PathProvider(int key, base::FilePath* result) {
#endif
#if BUILDFLAG(ENABLE_EXTENSIONS) && \
@@ -72,7 +72,7 @@
case chrome::DIR_NATIVE_MESSAGING:
#if BUILDFLAG(IS_MAC)
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
-@@ -626,9 +626,12 @@ bool PathProvider(int key, base::FilePath* result) {
+@@ -623,9 +623,12 @@ bool PathProvider(int key, base::FilePath* result) {
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
cur = base::FilePath(
FILE_PATH_LITERAL("/etc/opt/chrome/native-messaging-hosts"));
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.cc b/www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.cc
index 38eed01451e2..bcaa3c52ef76 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.cc
@@ -1,6 +1,6 @@
---- chrome/common/chrome_switches.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/common/chrome_switches.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/chrome_switches.cc
-@@ -881,14 +881,14 @@ const char kAllowNaClSocketAPI[] = "allow-nacl-socket-
+@@ -872,14 +872,14 @@ const char kAllowNaClSocketAPI[] = "allow-nacl-socket-
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.h b/www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.h
index 4355b4577b29..7516b3588b7b 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.h
+++ b/www/ungoogled-chromium/files/patch-chrome_common_chrome__switches.h
@@ -1,6 +1,6 @@
---- chrome/common/chrome_switches.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/common/chrome_switches.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/chrome_switches.h
-@@ -277,12 +277,12 @@ extern const char kAllowNaClSocketAPI[];
+@@ -275,12 +275,12 @@ extern const char kAllowNaClSocketAPI[];
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_media_cdm__registration.cc b/www/ungoogled-chromium/files/patch-chrome_common_media_cdm__registration.cc
index 3ad0289702a9..2f6f7d638796 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_media_cdm__registration.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_common_media_cdm__registration.cc
@@ -1,6 +1,6 @@
---- chrome/common/media/cdm_registration.cc.orig 2024-04-04 19:16:34 UTC
+--- chrome/common/media/cdm_registration.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/media/cdm_registration.cc
-@@ -26,11 +26,11 @@
+@@ -30,11 +30,11 @@
#if BUILDFLAG(ENABLE_WIDEVINE)
#include "third_party/widevine/cdm/widevine_cdm_common.h" // nogncheck
@@ -14,7 +14,7 @@
#include "base/no_destructor.h"
#include "chrome/common/media/component_widevine_cdm_hint_file_linux.h"
#include "media/cdm/supported_audio_codecs.h"
-@@ -56,7 +56,7 @@ using Robustness = content::CdmInfo::Robustness;
+@@ -60,7 +60,7 @@ using Robustness = content::CdmInfo::Robustness;
#if BUILDFLAG(ENABLE_WIDEVINE)
#if (BUILDFLAG(BUNDLE_WIDEVINE_CDM) || \
BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT)) && \
@@ -23,25 +23,25 @@
// Create a CdmInfo for a Widevine CDM, using |version|, |cdm_library_path|, and
// |capability|.
std::unique_ptr<content::CdmInfo> CreateWidevineCdmInfo(
-@@ -101,7 +101,7 @@ std::unique_ptr<content::CdmInfo> CreateCdmInfoFromWid
+@@ -105,7 +105,7 @@ std::unique_ptr<content::CdmInfo> CreateCdmInfoFromWid
// BUILDFLAG(IS_CHROMEOS))
#if BUILDFLAG(BUNDLE_WIDEVINE_CDM) && \
- (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS))
+ (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD))
// On Linux/ChromeOS we have to preload the CDM since it uses the zygote
- // sandbox. On Windows and Mac, the bundled CDM is handled by the component
- // updater.
-@@ -125,7 +125,7 @@ content::CdmInfo* GetBundledWidevine() {
+ // sandbox. On Windows and Mac, CDM registration is handled by Component
+ // Update (as the CDM can be loaded only when needed).
+@@ -129,7 +129,7 @@ content::CdmInfo* GetBundledWidevine() {
// (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS))
#if BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT) && \
- (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS))
+ (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD))
- // This code checks to see if a component updated Widevine CDM can be found. If
- // there is one and it looks valid, return the CdmInfo for that CDM. Otherwise
- // return nullptr.
-@@ -160,7 +160,7 @@ void AddSoftwareSecureWidevine(std::vector<content::Cd
+ // This code checks to see if Component Updater picked a version of the Widevine
+ // CDM to be used last time it ran. (Component Updater may choose the bundled
+ // CDM if there is not a new version available for download.) If there is one
+@@ -171,7 +171,7 @@ void AddSoftwareSecureWidevine(std::vector<content::Cd
/*supports_sub_key_systems=*/false, kWidevineCdmDisplayName,
kWidevineCdmType, base::Version(), base::FilePath());
@@ -50,3 +50,12 @@
#if defined(WIDEVINE_CDM_MIN_GLIBC_VERSION)
base::Version glibc_version(gnu_get_libc_version());
DCHECK(glibc_version.IsValid());
+@@ -429,7 +429,7 @@ void RegisterCdmInfo(std::vector<content::CdmInfo>* cd
+ DVLOG(3) << __func__ << " done with " << cdms->size() << " cdms";
+ }
+
+-#if BUILDFLAG(ENABLE_WIDEVINE) && BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(ENABLE_WIDEVINE) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD))
+ std::vector<content::CdmInfo> GetSoftwareSecureWidevineForTesting() {
+ std::vector<content::CdmInfo> cdms;
+ AddSoftwareSecureWidevine(&cdms);
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_media_cdm__registration.h b/www/ungoogled-chromium/files/patch-chrome_common_media_cdm__registration.h
new file mode 100644
index 000000000000..9f67d8df8175
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-chrome_common_media_cdm__registration.h
@@ -0,0 +1,11 @@
+--- chrome/common/media/cdm_registration.h.orig 2024-05-23 20:04:36 UTC
++++ chrome/common/media/cdm_registration.h
+@@ -14,7 +14,7 @@
+ // Register CdmInfo for Content Decryption Modules (CDM) supported.
+ void RegisterCdmInfo(std::vector<content::CdmInfo>* cdms);
+
+-#if BUILDFLAG(ENABLE_WIDEVINE) && BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(ENABLE_WIDEVINE) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD))
+ // Returns the software secure Widevine CDM.
+ std::vector<content::CdmInfo> GetSoftwareSecureWidevineForTesting();
+ #endif
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_media_component__widevine__cdm__hint__file__linux.h b/www/ungoogled-chromium/files/patch-chrome_common_media_component__widevine__cdm__hint__file__linux.h
index ffcbde91973d..7b4bed1176f7 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_media_component__widevine__cdm__hint__file__linux.h
+++ b/www/ungoogled-chromium/files/patch-chrome_common_media_component__widevine__cdm__hint__file__linux.h
@@ -1,6 +1,6 @@
---- chrome/common/media/component_widevine_cdm_hint_file_linux.h.orig 2024-04-04 19:16:34 UTC
+--- chrome/common/media/component_widevine_cdm_hint_file_linux.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/media/component_widevine_cdm_hint_file_linux.h
-@@ -15,7 +15,7 @@
+@@ -17,7 +17,7 @@
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_pref__names.h b/www/ungoogled-chromium/files/patch-chrome_common_pref__names.h
index 1344c214d1a1..dca1753420e2 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_pref__names.h
+++ b/www/ungoogled-chromium/files/patch-chrome_common_pref__names.h
@@ -1,6 +1,6 @@
---- chrome/common/pref_names.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/common/pref_names.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/pref_names.h
-@@ -1288,7 +1288,7 @@ inline constexpr char kUseAshProxy[] = "lacros.proxy.u
+@@ -1299,7 +1299,7 @@ inline constexpr char kUseAshProxy[] = "lacros.proxy.u
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -9,7 +9,7 @@
// Linux specific preference on whether we should match the system theme.
inline constexpr char kSystemTheme[] = "extensions.theme.system_theme";
#endif
-@@ -1428,7 +1428,7 @@ inline constexpr char kShowUpdatePromotionInfoBar[] =
+@@ -1443,7 +1443,7 @@ inline constexpr char kShowUpdatePromotionInfoBar[] =
"browser.show_update_promotion_info_bar";
#endif
@@ -18,7 +18,7 @@
// Boolean that is false if we should show window manager decorations. If
// true, we draw a custom chrome frame (thicker title bar and blue border).
inline constexpr char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
-@@ -1997,7 +1997,7 @@ inline constexpr char kDownloadDefaultDirectory[] =
+@@ -2026,7 +2026,7 @@ inline constexpr char kDownloadDefaultDirectory[] =
inline constexpr char kDownloadDirUpgraded[] = "download.directory_upgrade";
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -27,7 +27,7 @@
inline constexpr char kOpenPdfDownloadInSystemReader[] =
"download.open_pdf_in_system_reader";
#endif
-@@ -2431,14 +2431,14 @@ inline constexpr char kMediaStorageIdSalt[] = "media.s
+@@ -2462,14 +2462,14 @@ inline constexpr char kMediaStorageIdSalt[] = "media.s
inline constexpr char kMediaCdmOriginData[] = "media.cdm.origin_data";
#endif // BUILDFLAG(IS_WIN)
@@ -44,7 +44,7 @@
// Records whether the user has seen an HTTP auth "negotiate" header.
inline constexpr char kReceivedHttpAuthNegotiateHeader[] =
"net.received_http_auth_negotiate_headers";
-@@ -2516,7 +2516,7 @@ inline constexpr char kAmbientAuthenticationInPrivateM
+@@ -2547,7 +2547,7 @@ inline constexpr char kAmbientAuthenticationInPrivateM
inline constexpr char kBasicAuthOverHttpEnabled[] =
"auth.basic_over_http_enabled";
@@ -53,7 +53,7 @@
// Boolean that specifies whether OK-AS-DELEGATE flag from KDC is respected
// along with kAuthNegotiateDelegateAllowlist.
inline constexpr char kAuthNegotiateDelegateByKdcPolicy[] =
-@@ -3034,7 +3034,7 @@ inline constexpr char kDeviceWeeklyScheduledSuspend[]
+@@ -3061,7 +3061,7 @@ inline constexpr char kDeviceWeeklyScheduledSuspend[]
#endif // BUILDFLAG(IS_CHROMEOS)
@@ -62,7 +62,7 @@
// Defines administrator-set availability of Chrome for Testing.
inline constexpr char kChromeForTestingAllowed[] = "chrome_for_testing.allowed";
#endif
-@@ -3584,7 +3584,7 @@ inline constexpr char kFileOrDirectoryPickerWithoutGes
+@@ -3626,7 +3626,7 @@ inline constexpr char kFileOrDirectoryPickerWithoutGes
inline constexpr char kSandboxExternalProtocolBlocked[] =
"profile.sandbox_external_protocol_blocked";
@@ -71,7 +71,7 @@
// Boolean that indicates if system notifications are allowed to be used in
// place of Chrome notifications.
inline constexpr char kAllowSystemNotifications[] =
-@@ -3633,7 +3633,7 @@ inline constexpr char kCACertificateManagementAllowed[
+@@ -3675,7 +3675,7 @@ inline constexpr char kCACertificateManagementAllowed[
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -80,9 +80,9 @@
inline constexpr char kEnforceLocalAnchorConstraintsEnabled[] =
"enforce_local_anchor_constraints_enabled";
#endif
-@@ -3941,7 +3941,7 @@ inline constexpr char kPrintingOAuth2AuthorizationServ
- inline constexpr char kNewBaseUrlInheritanceBehaviorAllowed[] =
- "new_base_url_inheritance_behavior_allowed";
+@@ -3974,7 +3974,7 @@ inline constexpr char kPrintingOAuth2AuthorizationServ
+ "printing.oauth2_authorization_servers";
+ #endif
-#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_url__constants.h b/www/ungoogled-chromium/files/patch-chrome_common_url__constants.h
index 34cfd1b1e1ef..a1764bbd32d5 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_url__constants.h
+++ b/www/ungoogled-chromium/files/patch-chrome_common_url__constants.h
@@ -1,6 +1,6 @@
---- chrome/common/url_constants.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/common/url_constants.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/url_constants.h
-@@ -848,7 +848,7 @@ inline constexpr char kPhoneHubPermissionLearnMoreURL[
+@@ -863,7 +863,7 @@ inline constexpr char kPhoneHubPermissionLearnMoreURL[
"https://support.9oo91e.qjz9zk/chromebook?p=multidevice";
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.cc b/www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.cc
index 747435509fbe..d7776004f868 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.cc
@@ -1,6 +1,6 @@
---- chrome/common/webui_url_constants.cc.orig 2024-04-23 07:42:17 UTC
+--- chrome/common/webui_url_constants.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/webui_url_constants.cc
-@@ -518,18 +518,18 @@ const char kOsUISystemURL[] = "os://system";
+@@ -516,18 +516,18 @@ const char kOsUISystemURL[] = "os://system";
const char kOsUIVersionURL[] = "os://version";
#endif
@@ -22,7 +22,7 @@
const char kChromeUIDiscardsHost[] = "discards";
const char kChromeUIDiscardsURL[] = "chrome://discards/";
#endif
-@@ -544,14 +544,14 @@ const char kChromeUILinuxProxyConfigHost[] = "linux-pr
+@@ -542,14 +542,14 @@ const char kChromeUILinuxProxyConfigHost[] = "linux-pr
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -39,7 +39,7 @@
const char kChromeUIBrowserSwitchHost[] = "browser-switch";
const char kChromeUIBrowserSwitchURL[] = "chrome://browser-switch/";
const char kChromeUIIntroHost[] = "intro";
-@@ -570,7 +570,7 @@ const char kChromeUIProfilePickerUrl[] = "chrome://pro
+@@ -568,7 +568,7 @@ const char kChromeUIProfilePickerUrl[] = "chrome://pro
const char kChromeUIProfilePickerStartupQuery[] = "startup";
#endif
@@ -48,7 +48,7 @@
defined(TOOLKIT_VIEWS)) || \
defined(USE_AURA)
const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog";
-@@ -650,7 +650,7 @@ const char kCookiesSubPagePath[] = "/cookies";
+@@ -648,7 +648,7 @@ const char kCookiesSubPagePath[] = "/cookies";
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -57,7 +57,7 @@
const char kChromeUIWebAppSettingsURL[] = "chrome://app-settings/";
const char kChromeUIWebAppSettingsHost[] = "app-settings";
#endif
-@@ -879,7 +879,7 @@ const char* const kChromeDebugURLs[] = {
+@@ -875,7 +875,7 @@ const char* const kChromeDebugURLs[] = {
blink::kChromeUIGpuJavaCrashURL,
kChromeUIJavaCrashURL,
#endif
diff --git a/www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.h b/www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.h
index 2ce79c5a4fd2..118c1ccac2d9 100644
--- a/www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.h
+++ b/www/ungoogled-chromium/files/patch-chrome_common_webui__url__constants.h
@@ -1,6 +1,6 @@
---- chrome/common/webui_url_constants.h.orig 2024-04-23 07:42:17 UTC
+--- chrome/common/webui_url_constants.h.orig 2024-05-23 20:04:36 UTC
+++ chrome/common/webui_url_constants.h
-@@ -437,24 +437,24 @@ extern const char kOsUISystemURL[];
+@@ -435,24 +435,24 @@ extern const char kOsUISystemURL[];
extern const char kOsUIVersionURL[];
#endif
@@ -29,7 +29,7 @@
extern const char kChromeUIWebAppSettingsURL[];
extern const char kChromeUIWebAppSettingsHost[];
#endif
-@@ -469,14 +469,14 @@ extern const char kChromeUILinuxProxyConfigHost[];
+@@ -467,14 +467,14 @@ extern const char kChromeUILinuxProxyConfigHost[];
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
@@ -46,7 +46,7 @@
extern const char kChromeUIBrowserSwitchHost[];
extern const char kChromeUIBrowserSwitchURL[];
extern const char kChromeUIIntroHost[];
-@@ -492,7 +492,7 @@ extern const char kChromeUIProfilePickerUrl[];
+@@ -490,7 +490,7 @@ extern const char kChromeUIProfilePickerUrl[];
extern const char kChromeUIProfilePickerStartupQuery[];
#endif
diff --git a/www/ungoogled-chromium/files/patch-chrome_renderer_chrome__render__frame__observer.cc b/www/ungoogled-chromium/files/patch-chrome_renderer_chrome__render__frame__observer.cc
deleted file mode 100644
index edbb866dc46e..000000000000
--- a/www/ungoogled-chromium/files/patch-chrome_renderer_chrome__render__frame__observer.cc
+++ /dev/null
@@ -1,11 +0,0 @@
---- chrome/renderer/chrome_render_frame_observer.cc.orig 2024-04-23 07:42:17 UTC
-+++ chrome/renderer/chrome_render_frame_observer.cc
-@@ -360,7 +360,7 @@ void ChromeRenderFrameObserver::WillDetach(blink::Deta
-
- void ChromeRenderFrameObserver::DraggableRegionsChanged() {
- #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
-- BUILDFLAG(IS_CHROMEOS)
-+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
- // Only the main frame is allowed to control draggable regions, to avoid other
- // frames manipulate the regions in the browser process.
- if (!render_frame()->IsMainFrame())
diff --git a/www/ungoogled-chromium/files/patch-chrome_utility_services.cc b/www/ungoogled-chromium/files/patch-chrome_utility_services.cc
index ad62c380579c..78198ab34249 100644
--- a/www/ungoogled-chromium/files/patch-chrome_utility_services.cc
+++ b/www/ungoogled-chromium/files/patch-chrome_utility_services.cc
@@ -1,6 +1,6 @@
---- chrome/utility/services.cc.orig 2024-03-22 14:16:19 UTC
+--- chrome/utility/services.cc.orig 2024-05-23 20:04:36 UTC
+++ chrome/utility/services.cc
-@@ -55,7 +55,7 @@
+@@ -57,7 +57,7 @@
#include "chrome/services/system_signals/mac/mac_system_signals_service.h"
#endif // BUILDFLAG(IS_MAC)
@@ -9,7 +9,7 @@
#include "chrome/services/system_signals/linux/linux_system_signals_service.h"
#endif // BUILDFLAG(IS_LINUX)
-@@ -81,7 +81,7 @@
+@@ -78,7 +78,7 @@
#include "chrome/services/file_util/file_util_service.h" // nogncheck
#endif
@@ -18,7 +18,7 @@
#include "chrome/services/file_util/document_analysis_service.h" // nogncheck
#endif
-@@ -212,7 +212,7 @@ auto RunMacNotificationService(
+@@ -217,7 +217,7 @@ auto RunMacNotificationService(
}
#endif // BUILDFLAG(IS_MAC)
@@ -27,7 +27,7 @@
auto RunSystemSignalsService(
mojo::PendingReceiver<device_signals::mojom::SystemSignalsService>
receiver) {
-@@ -272,7 +272,7 @@ auto RunCupsIppParser(
+@@ -277,7 +277,7 @@ auto RunCupsIppParser(
}
#endif
@@ -36,7 +36,7 @@
auto RunDocumentAnalysis(
mojo::PendingReceiver<chrome::mojom::DocumentAnalysisService> receiver) {
return std::make_unique<DocumentAnalysisService>(std::move(receiver));
-@@ -465,7 +465,7 @@ void RegisterMainThreadServices(mojo::ServiceFactory&
+@@ -483,7 +483,7 @@ void RegisterMainThreadServices(mojo::ServiceFactory&
services.Add(RunWindowsIconReader);
#endif // BUILDFLAG(IS_WIN)
@@ -45,7 +45,7 @@
services.Add(RunSystemSignalsService);
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
-@@ -481,7 +481,7 @@ void RegisterMainThreadServices(mojo::ServiceFactory&
+@@ -499,7 +499,7 @@ void RegisterMainThreadServices(mojo::ServiceFactory&
services.Add(RunFileUtil);
#endif
diff --git a/www/ungoogled-chromium/files/patch-chromecast_browser_cast__browser__main__parts.cc b/www/ungoogled-chromium/files/patch-chromecast_browser_cast__browser__main__parts.cc
index df258d883526..4c48ba90f7b2 100644
--- a/www/ungoogled-chromium/files/patch-chromecast_browser_cast__browser__main__parts.cc
+++ b/www/ungoogled-chromium/files/patch-chromecast_browser_cast__browser__main__parts.cc
@@ -1,15 +1,15 @@
---- chromecast/browser/cast_browser_main_parts.cc.orig 2023-07-21 09:49:17 UTC
+--- chromecast/browser/cast_browser_main_parts.cc.orig 2024-05-23 20:04:36 UTC
+++ chromecast/browser/cast_browser_main_parts.cc
-@@ -90,7 +90,7 @@
- #include "ui/base/ui_base_switches.h"
- #include "ui/gl/gl_switches.h"
+@@ -94,7 +94,7 @@
+ #include "ui/ozone/public/ozone_platform.h"
+ #endif // BUILDFLAG(IS_OZONE)
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
#include <fontconfig/fontconfig.h>
#include <signal.h>
#include <sys/prctl.h>
-@@ -263,7 +263,7 @@ class CastViewsDelegate : public views::ViewsDelegate
+@@ -267,7 +267,7 @@ class CastViewsDelegate : public views::ViewsDelegate
#endif // defined(USE_AURA)
@@ -18,7 +18,7 @@
base::FilePath GetApplicationFontsDir() {
std::unique_ptr<base::Environment> env(base::Environment::Create());
-@@ -309,7 +309,7 @@ const DefaultCommandLineSwitch kDefaultSwitches[] = {
+@@ -313,7 +313,7 @@ const DefaultCommandLineSwitch kDefaultSwitches[] = {
{cc::switches::kDisableThreadedAnimation, ""},
#endif // BUILDFLAG(IS_ANDROID)
#endif // BUILDFLAG(IS_CAST_AUDIO_ONLY)
@@ -27,7 +27,7 @@
#if defined(ARCH_CPU_X86_FAMILY)
// This is needed for now to enable the x11 Ozone platform to work with
// current Linux/NVidia OpenGL drivers.
-@@ -479,7 +479,7 @@ void CastBrowserMainParts::ToolkitInitialized() {
+@@ -490,7 +490,7 @@ void CastBrowserMainParts::ToolkitInitialized() {
views_delegate_ = std::make_unique<CastViewsDelegate>();
#endif // defined(USE_AURA)
diff --git a/www/ungoogled-chromium/files/patch-chromecast_browser_cast__content__browser__client.cc b/www/ungoogled-chromium/files/patch-chromecast_browser_cast__content__browser__client.cc
index 39a9cc204e2b..390411df1415 100644
--- a/www/ungoogled-chromium/files/patch-chromecast_browser_cast__content__browser__client.cc
+++ b/www/ungoogled-chromium/files/patch-chromecast_browser_cast__content__browser__client.cc
@@ -1,6 +1,6 @@
---- chromecast/browser/cast_content_browser_client.cc.orig 2024-03-22 14:16:19 UTC
+--- chromecast/browser/cast_content_browser_client.cc.orig 2024-05-23 20:04:36 UTC
+++ chromecast/browser/cast_content_browser_client.cc
-@@ -434,7 +434,7 @@ void CastContentBrowserClient::AppendExtraCommandLineS
+@@ -431,7 +431,7 @@ void CastContentBrowserClient::AppendExtraCommandLineS
switches::kAudioOutputChannels));
}
} else if (process_type == switches::kGpuProcess) {
diff --git a/www/ungoogled-chromium/files/patch-components_autofill_core_browser_payments__data__manager.cc b/www/ungoogled-chromium/files/patch-components_autofill_core_browser_payments__data__manager.cc
new file mode 100644
index 000000000000..3211ed76f02e
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-components_autofill_core_browser_payments__data__manager.cc
@@ -0,0 +1,11 @@
+--- components/autofill/core/browser/payments_data_manager.cc.orig 2024-05-23 20:04:36 UTC
++++ components/autofill/core/browser/payments_data_manager.cc
+@@ -1060,7 +1060,7 @@ bool PaymentsDataManager::ShouldShowCardsFromAccountOp
+ // The feature is only for Linux, Windows, Mac, and Fuchsia.
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) || \
+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA)
+ // This option should only be shown for users that have not enabled the Sync
+ // Feature and that have server credit cards available.
diff --git a/www/ungoogled-chromium/files/patch-components_autofill_core_browser_personal__data__manager.cc b/www/ungoogled-chromium/files/patch-components_autofill_core_browser_personal__data__manager.cc
deleted file mode 100644
index a7abfe0ac55f..000000000000
--- a/www/ungoogled-chromium/files/patch-components_autofill_core_browser_personal__data__manager.cc
+++ /dev/null
@@ -1,12 +0,0 @@
---- components/autofill/core/browser/personal_data_manager.cc.orig 2024-04-23 07:42:17 UTC
-+++ components/autofill/core/browser/personal_data_manager.cc
-@@ -1022,7 +1022,8 @@ bool PersonalDataManager::ShouldShowCardsFromAccountOp
- // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
- // of lacros-chrome is complete.
- #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || \
-- BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA)
-+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) || \
-+ BUILDFLAG(IS_BSD)
- // This option should only be shown for users that have not enabled the Sync
- // Feature and that have server credit cards available.
- // TODO(crbug.com/40066949): Simplify once ConsentLevel::kSync and
diff --git a/www/ungoogled-chromium/files/patch-components_autofill_core_common_autofill__payments__features.cc b/www/ungoogled-chromium/files/patch-components_autofill_core_common_autofill__payments__features.cc
index e8cd08ce914e..0dd4fdb792c1 100644
--- a/www/ungoogled-chromium/files/patch-components_autofill_core_common_autofill__payments__features.cc
+++ b/www/ungoogled-chromium/files/patch-components_autofill_core_common_autofill__payments__features.cc
@@ -1,6 +1,6 @@
---- components/autofill/core/common/autofill_payments_features.cc.orig 2024-04-23 07:42:17 UTC
+--- components/autofill/core/common/autofill_payments_features.cc.orig 2024-05-23 20:04:36 UTC
+++ components/autofill/core/common/autofill_payments_features.cc
-@@ -276,7 +276,7 @@ BASE_FEATURE(kAutofillEnableVirtualCards,
+@@ -272,7 +272,7 @@ BASE_FEATURE(kAutofillEnableVirtualCards,
bool ShouldShowImprovedUserConsentForCreditCardSave() {
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-components_commerce_core_commerce__feature__list.cc b/www/ungoogled-chromium/files/patch-components_commerce_core_commerce__feature__list.cc
index 51326b27eaf5..7806085fb8d6 100644
--- a/www/ungoogled-chromium/files/patch-components_commerce_core_commerce__feature__list.cc
+++ b/www/ungoogled-chromium/files/patch-components_commerce_core_commerce__feature__list.cc
@@ -1,4 +1,4 @@
---- components/commerce/core/commerce_feature_list.cc.orig 2024-03-22 14:16:19 UTC
+--- components/commerce/core/commerce_feature_list.cc.orig 2024-05-23 20:04:36 UTC
+++ components/commerce/core/commerce_feature_list.cc
@@ -168,7 +168,7 @@ BASE_FEATURE(kPriceInsights,
"PriceInsights",
@@ -9,7 +9,7 @@
BASE_FEATURE(kPriceInsightsRegionLaunched,
"PriceInsightsRegionLaunched",
base::FEATURE_ENABLED_BY_DEFAULT);
-@@ -244,7 +244,7 @@ const base::FeatureParam<bool> kDeleteAllMerchantsOnCl
+@@ -248,7 +248,7 @@ const base::FeatureParam<bool> kDeleteAllMerchantsOnCl
BASE_FEATURE(kShoppingList, "ShoppingList", base::FEATURE_DISABLED_BY_DEFAULT);
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
diff --git a/www/ungoogled-chromium/files/patch-components_device__signals_core_browser_user__permission__service__impl.cc b/www/ungoogled-chromium/files/patch-components_device__signals_core_browser_user__permission__service__impl.cc
index a1dd7e7a187d..aef5fb772152 100644
--- a/www/ungoogled-chromium/files/patch-components_device__signals_core_browser_user__permission__service__impl.cc
+++ b/www/ungoogled-chromium/files/patch-components_device__signals_core_browser_user__permission__service__impl.cc
@@ -1,6 +1,6 @@
---- components/device_signals/core/browser/user_permission_service_impl.cc.orig 2023-10-13 13:20:35 UTC
+--- components/device_signals/core/browser/user_permission_service_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ components/device_signals/core/browser/user_permission_service_impl.cc
-@@ -92,7 +92,7 @@ bool UserPermissionServiceImpl::ShouldCollectConsent()
+@@ -93,7 +93,7 @@ bool UserPermissionServiceImpl::ShouldCollectConsent()
consent_required_by_dependent_policy;
}
diff --git a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__configurations.cc b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__configurations.cc
index 9a4e2e7ffd4c..c3fe15890809 100644
--- a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__configurations.cc
+++ b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__configurations.cc
@@ -1,4 +1,4 @@
---- components/feature_engagement/public/feature_configurations.cc.orig 2024-04-23 07:42:17 UTC
+--- components/feature_engagement/public/feature_configurations.cc.orig 2024-05-23 20:04:36 UTC
+++ components/feature_engagement/public/feature_configurations.cc
@@ -94,7 +94,7 @@ std::optional<FeatureConfig> CreateNewUserGestureInPro
@@ -18,22 +18,12 @@
if (kIPHPasswordsAccountStorageFeature.name == feature->name) {
std::optional<FeatureConfig> config = FeatureConfig();
config->valid = true;
-@@ -1393,7 +1393,8 @@ std::optional<FeatureConfig> GetClientSideFeatureConfi
- #endif // BUILDFLAG(IS_ANDROID)
+@@ -1392,7 +1392,7 @@ std::optional<FeatureConfig> GetClientSideFeatureConfi
- #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
-- BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
-+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \
-+ BUILDFLAG(IS_BSD)
+ #endif // BUILDFLAG(IS_ANDROID)
- if (kIPHAutofillExternalAccountProfileSuggestionFeature.name ==
- feature->name) {
-@@ -1965,7 +1966,7 @@ std::optional<FeatureConfig> GetClientSideFeatureConfi
- }
+-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \
+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
- #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
-- BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
-+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
- if (kIPHDeepScanPromptRemovalFeature.name == feature->name) {
- std::optional<FeatureConfig> config = FeatureConfig();
- config->valid = true;
+ if (kIPHAutofillCreditCardBenefitFeature.name == feature->name) {
diff --git a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.cc b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.cc
index 61c514c4142d..a20cd8a2444f 100644
--- a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.cc
+++ b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.cc
@@ -1,4 +1,4 @@
---- components/feature_engagement/public/feature_constants.cc.orig 2024-04-23 07:42:17 UTC
+--- components/feature_engagement/public/feature_constants.cc.orig 2024-05-23 20:04:36 UTC
+++ components/feature_engagement/public/feature_constants.cc
@@ -18,7 +18,7 @@ BASE_FEATURE(kIPHDemoMode, "IPH_DemoMode", base::FEATU
BASE_FEATURE(kIPHDummyFeature, "IPH_Dummy", base::FEATURE_DISABLED_BY_DEFAULT);
@@ -9,17 +9,16 @@
BASE_FEATURE(kIPHBatterySaverModeFeature,
"IPH_BatterySaverMode",
base::FEATURE_ENABLED_BY_DEFAULT);
-@@ -584,7 +584,8 @@ BASE_FEATURE(kDefaultBrowserTriggerCriteriaExperiment,
+@@ -577,7 +577,7 @@ BASE_FEATURE(kDefaultBrowserTriggerCriteriaExperiment,
+
#endif // BUILDFLAG(IS_IOS)
- #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
-- BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
-+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \
-+ BUILDFLAG(IS_BSD)
- BASE_FEATURE(kIPHAutofillExternalAccountProfileSuggestionFeature,
- "IPH_AutofillExternalAccountProfileSuggestion",
- base::FEATURE_ENABLED_BY_DEFAULT);
-@@ -712,7 +713,7 @@ BASE_FEATURE(kIPHScalableIphGamingFeature,
+-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \
+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
+ BASE_FEATURE(kIPHAutofillCreditCardBenefitFeature,
+ "IPH_AutofillCreditCardBenefit",
+@@ -712,7 +712,7 @@ BASE_FEATURE(kIPHScalableIphGamingFeature,
base::FEATURE_DISABLED_BY_DEFAULT);
#endif
diff --git a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.h b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.h
index aeb469101d29..53e554de7cf6 100644
--- a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.h
+++ b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__constants.h
@@ -1,4 +1,4 @@
---- components/feature_engagement/public/feature_constants.h.orig 2024-04-23 07:42:17 UTC
+--- components/feature_engagement/public/feature_constants.h.orig 2024-05-23 20:04:36 UTC
+++ components/feature_engagement/public/feature_constants.h
@@ -20,7 +20,7 @@ BASE_DECLARE_FEATURE(kIPHDemoMode);
BASE_DECLARE_FEATURE(kIPHDummyFeature);
@@ -9,15 +9,15 @@
BASE_DECLARE_FEATURE(kIPHBatterySaverModeFeature);
BASE_DECLARE_FEATURE(kIPHCompanionSidePanelFeature);
BASE_DECLARE_FEATURE(kIPHCompanionSidePanelRegionSearchFeature);
-@@ -244,7 +244,7 @@ BASE_DECLARE_FEATURE(kDefaultBrowserTriggerCriteriaExp
+@@ -242,7 +242,7 @@ BASE_DECLARE_FEATURE(kDefaultBrowserTriggerCriteriaExp
#endif // BUILDFLAG(IS_IOS)
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \
BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
+ BASE_DECLARE_FEATURE(kIPHAutofillCreditCardBenefitFeature);
BASE_DECLARE_FEATURE(kIPHAutofillExternalAccountProfileSuggestionFeature);
- BASE_DECLARE_FEATURE(kIPHAutofillManualFallbackFeature);
@@ -293,7 +293,7 @@ BASE_DECLARE_FEATURE(kIPHScalableIphHelpAppBasedTenFea
BASE_DECLARE_FEATURE(kIPHScalableIphGamingFeature);
#endif
diff --git a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.cc b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.cc
index 430bf66ae3cd..b6c58c6ad68e 100644
--- a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.cc
+++ b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.cc
@@ -1,7 +1,7 @@
---- components/feature_engagement/public/feature_list.cc.orig 2024-04-23 07:42:17 UTC
+--- components/feature_engagement/public/feature_list.cc.orig 2024-05-23 20:04:36 UTC
+++ components/feature_engagement/public/feature_list.cc
@@ -147,7 +147,7 @@ const base::Feature* const kAllFeatures[] = {
- &kIPHiOSOverflowMenuCustomizationFeature,
+ &kIPHiOSInlineEnhancedSafeBrowsingPromoFeature,
#endif // BUILDFLAG(IS_IOS)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
- BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
@@ -9,15 +9,15 @@
&kIPHBatterySaverModeFeature,
&kIPHCompanionSidePanelFeature,
&kIPHCompanionSidePanelRegionSearchFeature,
-@@ -203,7 +203,7 @@ const base::Feature* const kAllFeatures[] = {
+@@ -201,7 +201,7 @@ const base::Feature* const kAllFeatures[] = {
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) ||
// BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \
BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
+ &kIPHAutofillCreditCardBenefitFeature,
&kIPHAutofillExternalAccountProfileSuggestionFeature,
- &kIPHAutofillManualFallbackFeature,
@@ -252,7 +252,7 @@ const base::Feature* const kAllFeatures[] = {
&kIPHScalableIphGamingFeature,
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
diff --git a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.h b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.h
index ca5ea46ce725..53df6ea3c51b 100644
--- a/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.h
+++ b/www/ungoogled-chromium/files/patch-components_feature__engagement_public_feature__list.h
@@ -1,6 +1,6 @@
---- components/feature_engagement/public/feature_list.h.orig 2024-04-23 07:42:17 UTC
+--- components/feature_engagement/public/feature_list.h.orig 2024-05-23 20:04:36 UTC
+++ components/feature_engagement/public/feature_list.h
-@@ -266,7 +266,7 @@ DEFINE_VARIATION_PARAM(kIPHiOSOverflowMenuCustomizatio
+@@ -265,7 +265,7 @@ DEFINE_VARIATION_PARAM(kIPHiOSInlineEnhancedSafeBrowsi
#endif // BUILDFLAG(IS_IOS)
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
@@ -9,16 +9,16 @@
DEFINE_VARIATION_PARAM(kIPHBatterySaverModeFeature, "IPH_BatterySaverMode");
DEFINE_VARIATION_PARAM(kIPHCompanionSidePanelFeature, "IPH_CompanionSidePanel");
DEFINE_VARIATION_PARAM(kIPHCompanionSidePanelRegionSearchFeature,
-@@ -362,7 +362,7 @@ DEFINE_VARIATION_PARAM(kIPHBackNavigationMenuFeature,
+@@ -358,7 +358,7 @@ DEFINE_VARIATION_PARAM(kIPHBackNavigationMenuFeature,
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) ||
// BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \
BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
- DEFINE_VARIATION_PARAM(kIPHAutofillExternalAccountProfileSuggestionFeature,
- "IPH_AutofillExternalAccountProfileSuggestion");
-@@ -448,7 +448,7 @@ DEFINE_VARIATION_PARAM(kIPHScalableIphHelpAppBasedTenF
+ DEFINE_VARIATION_PARAM(kIPHAutofillCreditCardBenefitFeature,
+ "IPH_AutofillCreditCardBenefit");
+@@ -447,7 +447,7 @@ DEFINE_VARIATION_PARAM(kIPHScalableIphHelpAppBasedTenF
DEFINE_VARIATION_PARAM(kIPHScalableIphGamingFeature, "IPH_ScalableIphGaming");
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
@@ -27,7 +27,7 @@
DEFINE_VARIATION_PARAM(kIPHDesktopPWAsLinkCapturingLaunch,
"IPH_DesktopPWAsLinkCapturingLaunch");
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
-@@ -598,7 +598,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation
+@@ -595,7 +595,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation
VARIATION_ENTRY(kIPHiOSPromoGenericDefaultBrowserFeature),
VARIATION_ENTRY(kIPHiOSOverflowMenuCustomizationFeature),
#elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -36,16 +36,16 @@
VARIATION_ENTRY(kIPHBatterySaverModeFeature),
VARIATION_ENTRY(kIPHCompanionSidePanelFeature),
VARIATION_ENTRY(kIPHCompanionSidePanelRegionSearchFeature),
-@@ -654,7 +654,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation
+@@ -649,7 +649,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ||
// BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \
BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
+ VARIATION_ENTRY(kIPHAutofillCreditCardBenefitFeature),
VARIATION_ENTRY(kIPHAutofillExternalAccountProfileSuggestionFeature),
- VARIATION_ENTRY(kIPHAutofillManualFallbackFeature),
-@@ -703,7 +703,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation
+@@ -700,7 +700,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation
VARIATION_ENTRY(kIPHScalableIphGamingFeature),
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
diff --git a/www/ungoogled-chromium/files/patch-components_gwp__asan_client_gwp__asan.cc b/www/ungoogled-chromium/files/patch-components_gwp__asan_client_gwp__asan.cc
index 27613fd82fc5..fafc67016d8e 100644
--- a/www/ungoogled-chromium/files/patch-components_gwp__asan_client_gwp__asan.cc
+++ b/www/ungoogled-chromium/files/patch-components_gwp__asan_client_gwp__asan.cc
@@ -1,6 +1,6 @@
---- components/gwp_asan/client/gwp_asan.cc.orig 2024-04-23 07:42:17 UTC
+--- components/gwp_asan/client/gwp_asan.cc.orig 2024-05-23 20:04:36 UTC
+++ components/gwp_asan/client/gwp_asan.cc
-@@ -72,7 +72,7 @@ namespace {
+@@ -74,7 +74,7 @@ namespace {
// ProcessSamplingBoost is the multiplier to increase the
// ProcessSamplingProbability in scenarios where we want to perform additional
// testing (e.g., on canary/dev builds).
diff --git a/www/ungoogled-chromium/files/patch-components_live__caption_caption__util.cc b/www/ungoogled-chromium/files/patch-components_live__caption_caption__util.cc
index 275e89c148a8..a67aaf671989 100644
--- a/www/ungoogled-chromium/files/patch-components_live__caption_caption__util.cc
+++ b/www/ungoogled-chromium/files/patch-components_live__caption_caption__util.cc
@@ -1,15 +1,6 @@
---- components/live_caption/caption_util.cc.orig 2023-07-21 09:49:17 UTC
+--- components/live_caption/caption_util.cc.orig 2024-05-23 20:04:36 UTC
+++ components/live_caption/caption_util.cc
-@@ -145,7 +145,7 @@ bool IsLiveCaptionFeatureSupported() {
- return false;
- #endif
-
--#if BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- // Check if the CPU has the required instruction set to run the Speech
- // On-Device API (SODA) library.
- static bool has_sse41 = base::CPU().has_sse41();
-@@ -167,7 +167,7 @@ std::string GetCaptionSettingsUrl() {
+@@ -144,7 +144,7 @@ std::string GetCaptionSettingsUrl() {
return "chrome://os-settings/audioAndCaptions";
#endif // BUILDFLAG(IS_CHROMEOS)
diff --git a/www/ungoogled-chromium/files/patch-components_metrics_metrics__log.cc b/www/ungoogled-chromium/files/patch-components_metrics_metrics__log.cc
index 2b99ebbca668..8fd3dad1713f 100644
--- a/www/ungoogled-chromium/files/patch-components_metrics_metrics__log.cc
+++ b/www/ungoogled-chromium/files/patch-components_metrics_metrics__log.cc
@@ -1,6 +1,6 @@
---- components/metrics/metrics_log.cc.orig 2024-02-03 15:42:55 UTC
+--- components/metrics/metrics_log.cc.orig 2024-05-23 20:04:36 UTC
+++ components/metrics/metrics_log.cc
-@@ -53,7 +53,7 @@
+@@ -56,7 +56,7 @@
#include "base/win/current_module.h"
#endif
@@ -9,7 +9,7 @@
#include "base/environment.h"
#include "base/nix/xdg_util.h"
#endif
-@@ -142,7 +142,7 @@ void RecordCurrentTime(
+@@ -146,7 +146,7 @@ void RecordCurrentTime(
}
}
@@ -18,7 +18,7 @@
metrics::SystemProfileProto::OS::XdgSessionType ToProtoSessionType(
base::nix::SessionType session_type) {
switch (session_type) {
-@@ -393,7 +393,7 @@ void MetricsLog::RecordCoreSystemProfile(
+@@ -415,7 +415,7 @@ void MetricsLog::RecordCoreSystemProfile(
// OperatingSystemVersion refers to the ChromeOS release version.
#if BUILDFLAG(IS_CHROMEOS_ASH)
os->set_kernel_version(base::SysInfo::KernelVersion());
@@ -27,7 +27,7 @@
// Linux operating system version is copied over into kernel version to be
// consistent.
os->set_kernel_version(base::SysInfo::OperatingSystemVersion());
-@@ -410,7 +410,7 @@ void MetricsLog::RecordCoreSystemProfile(
+@@ -432,7 +432,7 @@ void MetricsLog::RecordCoreSystemProfile(
os->set_build_number(base::SysInfo::GetIOSBuildNumber());
#endif
diff --git a/www/ungoogled-chromium/files/patch-components_optimization__guide_core_optimization__guide__util.cc b/www/ungoogled-chromium/files/patch-components_optimization__guide_core_optimization__guide__util.cc
index 06b3bd133710..158b5981c004 100644
--- a/www/ungoogled-chromium/files/patch-components_optimization__guide_core_optimization__guide__util.cc
+++ b/www/ungoogled-chromium/files/patch-components_optimization__guide_core_optimization__guide__util.cc
@@ -1,6 +1,6 @@
---- components/optimization_guide/core/optimization_guide_util.cc.orig 2024-02-03 15:42:55 UTC
+--- components/optimization_guide/core/optimization_guide_util.cc.orig 2024-05-23 20:04:36 UTC
+++ components/optimization_guide/core/optimization_guide_util.cc
-@@ -39,7 +39,7 @@ optimization_guide::proto::Platform GetPlatform() {
+@@ -40,7 +40,7 @@ optimization_guide::proto::Platform GetPlatform() {
return optimization_guide::proto::PLATFORM_CHROMEOS;
#elif BUILDFLAG(IS_ANDROID)
return optimization_guide::proto::PLATFORM_ANDROID;
diff --git a/www/ungoogled-chromium/files/patch-components_os__crypt_sync_libsecret__util__linux.cc b/www/ungoogled-chromium/files/patch-components_os__crypt_sync_libsecret__util__linux.cc
index 284da3550cb7..620845344f2d 100644
--- a/www/ungoogled-chromium/files/patch-components_os__crypt_sync_libsecret__util__linux.cc
+++ b/www/ungoogled-chromium/files/patch-components_os__crypt_sync_libsecret__util__linux.cc
@@ -1,4 +1,4 @@
---- components/os_crypt/sync/libsecret_util_linux.cc.orig 2023-05-05 12:12:41 UTC
+--- components/os_crypt/sync/libsecret_util_linux.cc.orig 2024-05-23 20:04:36 UTC
+++ components/os_crypt/sync/libsecret_util_linux.cc
@@ -99,16 +99,22 @@ bool LibsecretLoader::EnsureLibsecretLoaded() {
@@ -19,9 +19,9 @@
// We wanted to use libsecret, but we couldn't load it. Warn, because
// either the user asked for this, or we autodetected it incorrectly. (Or
// the system has broken libraries, which is also good to warn about.)
- // TODO(crbug.com/607435): Channel this message to the user-facing log
+ // TODO(crbug.com/40467093): Channel this message to the user-facing log
- VLOG(1) << "Could not load libsecret-1.so.0: " << dlerror();
-+ VLOG(1) << "Could not load << " << kSecretLib << ": " << dlerror();
++ VLOG(1) << "Could not load " << kSecretLib << ": " << dlerror();
return false;
}
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.cc b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.cc
index 59b0e71e5110..b429e7fe6fab 100644
--- a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.cc
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.cc
@@ -1,6 +1,6 @@
---- components/password_manager/core/browser/features/password_features.cc.orig 2024-04-23 07:42:17 UTC
+--- components/password_manager/core/browser/features/password_features.cc.orig 2024-05-23 20:04:36 UTC
+++ components/password_manager/core/browser/features/password_features.cc
-@@ -30,7 +30,7 @@ BASE_FEATURE(kButterOnDesktopFollowup,
+@@ -36,7 +36,7 @@ BASE_FEATURE(kClearUndecryptablePasswords,
BASE_FEATURE(kClearUndecryptablePasswordsOnSync,
"ClearUndecryptablePasswordsInSync",
@@ -9,7 +9,7 @@
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
-@@ -99,7 +99,7 @@ BASE_FEATURE(kPasswordManualFallbackAvailable,
+@@ -100,7 +100,7 @@ BASE_FEATURE(kPasswordManualFallbackAvailable,
"PasswordManualFallbackAvailable",
base::FEATURE_DISABLED_BY_DEFAULT);
@@ -17,4 +17,4 @@
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
BASE_FEATURE(kRestartToGainAccessToKeychain,
"RestartToGainAccessToKeychain",
- base::FEATURE_ENABLED_BY_DEFAULT);
+ #if BUILDFLAG(IS_MAC)
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.h b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.h
index 4ca7fe5a0eb8..9588a5887ec0 100644
--- a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.h
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_features_password__features.h
@@ -1,6 +1,6 @@
---- components/password_manager/core/browser/features/password_features.h.orig 2024-04-23 07:42:17 UTC
+--- components/password_manager/core/browser/features/password_features.h.orig 2024-05-23 20:04:36 UTC
+++ components/password_manager/core/browser/features/password_features.h
-@@ -94,7 +94,7 @@ BASE_DECLARE_FEATURE(kPasswordManagerLogToTerminal);
+@@ -88,7 +88,7 @@ BASE_DECLARE_FEATURE(kPasswordManagerLogToTerminal);
// Enables triggering password suggestions through the context menu.
BASE_DECLARE_FEATURE(kPasswordManualFallbackAvailable);
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__form__manager.cc b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__form__manager.cc
index f0a52bb5f267..17c00c1b5e0a 100644
--- a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__form__manager.cc
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__form__manager.cc
@@ -1,4 +1,4 @@
---- components/password_manager/core/browser/password_form_manager.cc.orig 2024-04-23 07:42:17 UTC
+--- components/password_manager/core/browser/password_form_manager.cc.orig 2024-05-23 20:04:36 UTC
+++ components/password_manager/core/browser/password_form_manager.cc
@@ -58,7 +58,7 @@
#include "components/webauthn/android/webauthn_cred_man_delegate.h"
@@ -9,7 +9,7 @@
#include "components/os_crypt/sync/os_crypt.h"
#endif
-@@ -229,7 +229,7 @@ bool ShouldUploadCrowdsourcingVotes(const FormOrDigest
+@@ -227,7 +227,7 @@ bool ShouldUploadCrowdsourcingVotes(const FormOrDigest
return false;
}
@@ -18,7 +18,7 @@
bool ShouldShowKeychainErrorBubble(
std::optional<PasswordStoreBackendError> backend_error) {
if (!backend_error.has_value()) {
-@@ -833,7 +833,7 @@ void PasswordFormManager::OnFetchCompleted() {
+@@ -834,7 +834,7 @@ void PasswordFormManager::OnFetchCompleted() {
error.value().type);
}
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__manager.cc b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__manager.cc
index 60e78499983f..2d545ce53fb0 100644
--- a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__manager.cc
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__manager.cc
@@ -1,6 +1,6 @@
---- components/password_manager/core/browser/password_manager.cc.orig 2024-04-23 07:42:17 UTC
+--- components/password_manager/core/browser/password_manager.cc.orig 2024-05-23 20:04:36 UTC
+++ components/password_manager/core/browser/password_manager.cc
-@@ -363,7 +363,7 @@ void PasswordManager::RegisterProfilePrefs(
+@@ -373,7 +373,7 @@ void PasswordManager::RegisterProfilePrefs(
registry->RegisterListPref(prefs::kPasswordManagerPromoCardsList);
#endif // BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
registry->RegisterBooleanPref(prefs::kPasswordSharingEnabled, true);
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__manager__client.h b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__manager__client.h
new file mode 100644
index 000000000000..036f58dfbfce
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__manager__client.h
@@ -0,0 +1,20 @@
+--- components/password_manager/core/browser/password_manager_client.h.orig 2024-05-23 20:04:36 UTC
++++ components/password_manager/core/browser/password_manager_client.h
+@@ -30,7 +30,7 @@
+ #include "net/cert/cert_status_flags.h"
+
+ #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
+- BUILDFLAG(IS_CHROMEOS)
++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ #include "base/i18n/rtl.h"
+ #include "components/password_manager/core/browser/password_cross_domain_confirmation_popup_controller.h"
+ #include "ui/gfx/geometry/rect_f.h"
+@@ -507,7 +507,7 @@ class PasswordManagerClient {
+ virtual void RefreshPasswordManagerSettingsIfNeeded() const;
+
+ #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
+- BUILDFLAG(IS_CHROMEOS)
++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // Creates and show the cross domain confirmation popup.
+ virtual std::unique_ptr<PasswordCrossDomainConfirmationPopupController>
+ ShowCrossDomainConfirmationPopup(const gfx::RectF& element_bounds,
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__store_login__database__async__helper.cc b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__store_login__database__async__helper.cc
index 66cd7b98ab16..de600c4721ab 100644
--- a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__store_login__database__async__helper.cc
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_password__store_login__database__async__helper.cc
@@ -1,6 +1,6 @@
---- components/password_manager/core/browser/password_store/login_database_async_helper.cc.orig 2024-02-25 20:22:18 UTC
+--- components/password_manager/core/browser/password_store/login_database_async_helper.cc.orig 2024-05-23 20:04:36 UTC
+++ components/password_manager/core/browser/password_store/login_database_async_helper.cc
-@@ -135,7 +135,7 @@ LoginsResultOrError LoginDatabaseAsyncHelper::FillMatc
+@@ -149,7 +149,7 @@ LoginsResultOrError LoginDatabaseAsyncHelper::FillMatc
std::vector<PasswordForm> matched_forms;
if (!login_db_ ||
!login_db_->GetLogins(form, include_psl, &matched_forms)) {
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_stub__password__manager__client.cc b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_stub__password__manager__client.cc
new file mode 100644
index 000000000000..ea3cd3c2fe2c
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_stub__password__manager__client.cc
@@ -0,0 +1,11 @@
+--- components/password_manager/core/browser/stub_password_manager_client.cc.orig 2024-05-23 20:04:36 UTC
++++ components/password_manager/core/browser/stub_password_manager_client.cc
+@@ -175,7 +175,7 @@ version_info::Channel StubPasswordManagerClient::GetCh
+ }
+
+ #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
+- BUILDFLAG(IS_CHROMEOS)
++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ std::unique_ptr<
+ password_manager::PasswordCrossDomainConfirmationPopupController>
+ StubPasswordManagerClient::ShowCrossDomainConfirmationPopup(
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_stub__password__manager__client.h b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_stub__password__manager__client.h
new file mode 100644
index 000000000000..c791501effb8
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_stub__password__manager__client.h
@@ -0,0 +1,11 @@
+--- components/password_manager/core/browser/stub_password_manager_client.h.orig 2024-05-23 20:04:36 UTC
++++ components/password_manager/core/browser/stub_password_manager_client.h
+@@ -74,7 +74,7 @@ class StubPasswordManagerClient : public PasswordManag
+ MockPasswordFeatureManager* GetPasswordFeatureManager();
+ version_info::Channel GetChannel() const override;
+ #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
+- BUILDFLAG(IS_CHROMEOS)
++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ std::unique_ptr<
+ password_manager::PasswordCrossDomainConfirmationPopupController>
+ ShowCrossDomainConfirmationPopup(
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_sync_password__sync__bridge.cc b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_sync_password__sync__bridge.cc
index c0548274b6df..706d37b69c48 100644
--- a/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_sync_password__sync__bridge.cc
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_browser_sync_password__sync__bridge.cc
@@ -1,6 +1,6 @@
---- components/password_manager/core/browser/sync/password_sync_bridge.cc.orig 2024-03-22 14:16:19 UTC
+--- components/password_manager/core/browser/sync/password_sync_bridge.cc.orig 2024-05-23 20:04:36 UTC
+++ components/password_manager/core/browser/sync/password_sync_bridge.cc
-@@ -195,7 +195,7 @@ bool ShouldRecoverPasswordsDuringMerge() {
+@@ -194,7 +194,7 @@ bool ShouldRecoverPasswordsDuringMerge() {
}
bool ShouldCleanSyncMetadataDuringStartupWhenDecryptionFails() {
diff --git a/www/ungoogled-chromium/files/patch-components_password__manager_core_common_password__manager__pref__names.h b/www/ungoogled-chromium/files/patch-components_password__manager_core_common_password__manager__pref__names.h
index 79e0d79ccc37..972e721cebe1 100644
--- a/www/ungoogled-chromium/files/patch-components_password__manager_core_common_password__manager__pref__names.h
+++ b/www/ungoogled-chromium/files/patch-components_password__manager_core_common_password__manager__pref__names.h
@@ -1,6 +1,6 @@
---- components/password_manager/core/common/password_manager_pref_names.h.orig 2024-04-23 07:42:17 UTC
+--- components/password_manager/core/common/password_manager_pref_names.h.orig 2024-05-23 20:04:36 UTC
+++ components/password_manager/core/common/password_manager_pref_names.h
-@@ -332,7 +332,7 @@ inline constexpr char kPasswordManagerPromoCardsList[]
+@@ -320,7 +320,7 @@ inline constexpr char kPasswordManagerPromoCardsList[]
inline constexpr char kPasswordSharingEnabled[] =
"password_manager.password_sharing_enabled";
diff --git a/www/ungoogled-chromium/files/patch-components_performance__manager_public_features.h b/www/ungoogled-chromium/files/patch-components_performance__manager_public_features.h
index 9fc2c363f39d..0d7bae0e98b8 100644
--- a/www/ungoogled-chromium/files/patch-components_performance__manager_public_features.h
+++ b/www/ungoogled-chromium/files/patch-components_performance__manager_public_features.h
@@ -1,6 +1,6 @@
---- components/performance_manager/public/features.h.orig 2023-11-04 07:08:51 UTC
+--- components/performance_manager/public/features.h.orig 2024-05-23 20:04:36 UTC
+++ components/performance_manager/public/features.h
-@@ -28,7 +28,7 @@ BASE_DECLARE_FEATURE(kRunOnDedicatedThreadPoolThread);
+@@ -28,7 +28,7 @@ BASE_DECLARE_FEATURE(kRunOnMainThreadSync);
#if !BUILDFLAG(IS_ANDROID)
diff --git a/www/ungoogled-chromium/files/patch-components_policy_core_common_cloud_cloud__policy__client.cc b/www/ungoogled-chromium/files/patch-components_policy_core_common_cloud_cloud__policy__client.cc
index 7396ce2d1029..b50c2f815ab9 100644
--- a/www/ungoogled-chromium/files/patch-components_policy_core_common_cloud_cloud__policy__client.cc
+++ b/www/ungoogled-chromium/files/patch-components_policy_core_common_cloud_cloud__policy__client.cc
@@ -1,6 +1,6 @@
---- components/policy/core/common/cloud/cloud_policy_client.cc.orig 2024-04-23 07:42:17 UTC
+--- components/policy/core/common/cloud/cloud_policy_client.cc.orig 2024-05-23 20:04:36 UTC
+++ components/policy/core/common/cloud/cloud_policy_client.cc
-@@ -594,7 +594,7 @@ void CloudPolicyClient::FetchPolicy(PolicyFetchReason
+@@ -597,7 +597,7 @@ void CloudPolicyClient::FetchPolicy(PolicyFetchReason
fetch_request->set_invalidation_payload(invalidation_payload_);
}
}
diff --git a/www/ungoogled-chromium/files/patch-components_safe__browsing_core_common_features.cc b/www/ungoogled-chromium/files/patch-components_safe__browsing_core_common_features.cc
new file mode 100644
index 000000000000..6873a8b14375
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-components_safe__browsing_core_common_features.cc
@@ -0,0 +1,11 @@
+--- components/safe_browsing/core/common/features.cc.orig 2024-05-23 20:04:36 UTC
++++ components/safe_browsing/core/common/features.cc
+@@ -133,7 +133,7 @@ BASE_FEATURE(kFriendlierSafeBrowsingSettingsStandardPr
+ BASE_FEATURE(kHashPrefixRealTimeLookups,
+ "SafeBrowsingHashPrefixRealTimeLookups",
+ #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
+- BUILDFLAG(IS_CHROMEOS)
++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ base::FEATURE_ENABLED_BY_DEFAULT
+ #else
+ base::FEATURE_DISABLED_BY_DEFAULT
diff --git a/www/ungoogled-chromium/files/patch-components_search__engines_search__engine__choice_search__engine__choice__service.cc b/www/ungoogled-chromium/files/patch-components_search__engines_search__engine__choice_search__engine__choice__service.cc
index c48c313c388d..c1084ca195ba 100644
--- a/www/ungoogled-chromium/files/patch-components_search__engines_search__engine__choice_search__engine__choice__service.cc
+++ b/www/ungoogled-chromium/files/patch-components_search__engines_search__engine__choice_search__engine__choice__service.cc
@@ -1,6 +1,6 @@
---- components/search_engines/search_engine_choice/search_engine_choice_service.cc.orig 2024-04-23 07:42:17 UTC
+--- components/search_engines/search_engine_choice/search_engine_choice_service.cc.orig 2024-05-23 20:04:36 UTC
+++ components/search_engines/search_engine_choice/search_engine_choice_service.cc
-@@ -437,7 +437,7 @@ void SearchEngineChoiceService::PreprocessPrefsForRepr
+@@ -539,7 +539,7 @@ void SearchEngineChoiceService::ProcessPendingChoiceSc
int SearchEngineChoiceService::GetCountryIdInternal() {
// `country_codes::kCountryIDAtInstall` may not be set yet.
diff --git a/www/ungoogled-chromium/files/patch-components_search__engines_template__url__service.cc b/www/ungoogled-chromium/files/patch-components_search__engines_template__url__service.cc
index d67edc64a7b8..c623ee8cbbca 100644
--- a/www/ungoogled-chromium/files/patch-components_search__engines_template__url__service.cc
+++ b/www/ungoogled-chromium/files/patch-components_search__engines_template__url__service.cc
@@ -1,6 +1,6 @@
---- components/search_engines/template_url_service.cc.orig 2024-04-23 07:42:17 UTC
+--- components/search_engines/template_url_service.cc.orig 2024-05-23 20:04:36 UTC
+++ components/search_engines/template_url_service.cc
-@@ -2945,7 +2945,7 @@ bool TemplateURLService::MatchesDefaultSearchProvider(
+@@ -2976,7 +2976,7 @@ bool TemplateURLService::MatchesDefaultSearchProvider(
std::unique_ptr<EnterpriseSiteSearchManager>
TemplateURLService::GetEnterpriseSiteSearchManager(PrefService* prefs) {
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.cc b/www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.cc
index 269067073062..59e871fa1230 100644
--- a/www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.cc
+++ b/www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.cc
@@ -1,6 +1,6 @@
---- components/signin/public/base/signin_switches.cc.orig 2024-04-23 07:42:17 UTC
+--- components/signin/public/base/signin_switches.cc.orig 2024-05-23 20:04:36 UTC
+++ components/signin/public/base/signin_switches.cc
-@@ -126,7 +126,7 @@ bool IsExplicitBrowserSigninUIOnDesktopEnabled(
+@@ -139,7 +139,7 @@ bool IsExplicitBrowserSigninUIOnDesktopEnabled(
}
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \
@@ -9,7 +9,7 @@
BASE_FEATURE(kMinorModeRestrictionsForHistorySyncOptIn,
"MinorModeRestrictionsForHistorySyncOptIn",
base::FEATURE_DISABLED_BY_DEFAULT);
-@@ -135,7 +135,7 @@ constexpr int kMinorModeRestrictionsFetchDeadlineDefau
+@@ -148,7 +148,7 @@ constexpr int kMinorModeRestrictionsFetchDeadlineDefau
#if BUILDFLAG(IS_ANDROID)
// Based on Signin.AccountCapabilities.UserVisibleLatency
400;
diff --git a/www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.h b/www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.h
index 35eddfece45e..2c7ce959d722 100644
--- a/www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.h
+++ b/www/ungoogled-chromium/files/patch-components_signin_public_base_signin__switches.h
@@ -1,6 +1,6 @@
---- components/signin/public/base/signin_switches.h.orig 2024-04-23 07:42:17 UTC
+--- components/signin/public/base/signin_switches.h.orig 2024-05-23 20:04:36 UTC
+++ components/signin/public/base/signin_switches.h
-@@ -123,7 +123,7 @@ bool IsExplicitBrowserSigninUIOnDesktopEnabled(
+@@ -130,7 +130,7 @@ bool IsExplicitBrowserSigninUIOnDesktopEnabled(
// Controls the view mode for (history) sync screen.
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \
diff --git a/www/ungoogled-chromium/files/patch-components_soda_soda__util.cc b/www/ungoogled-chromium/files/patch-components_soda_soda__util.cc
new file mode 100644
index 000000000000..28fd0bd8a6d0
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-components_soda_soda__util.cc
@@ -0,0 +1,11 @@
+--- components/soda/soda_util.cc.orig 2024-05-23 20:04:36 UTC
++++ components/soda/soda_util.cc
+@@ -35,7 +35,7 @@ bool IsOnDeviceSpeechRecognitionSupported() {
+ }
+ #endif
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ // Check if the CPU has the required instruction set to run the Speech
+ // On-Device API (SODA) library.
+ static bool has_sse41 = base::CPU().has_sse41();
diff --git a/www/ungoogled-chromium/files/patch-components_startup__metric__utils_common_startup__metric__utils.cc b/www/ungoogled-chromium/files/patch-components_startup__metric__utils_common_startup__metric__utils.cc
index 386cf8225193..38bcb7aa5009 100644
--- a/www/ungoogled-chromium/files/patch-components_startup__metric__utils_common_startup__metric__utils.cc
+++ b/www/ungoogled-chromium/files/patch-components_startup__metric__utils_common_startup__metric__utils.cc
@@ -1,8 +1,8 @@
---- components/startup_metric_utils/common/startup_metric_utils.cc.orig 2024-02-25 20:22:18 UTC
+--- components/startup_metric_utils/common/startup_metric_utils.cc.orig 2024-05-23 20:04:36 UTC
+++ components/startup_metric_utils/common/startup_metric_utils.cc
@@ -85,7 +85,7 @@ base::TimeTicks CommonStartupMetricRecorder::StartupTi
// Enabling this logic on OS X causes a significant performance regression.
- // TODO(crbug.com/601270): Remove IS_APPLE ifdef once priority changes are
+ // TODO(crbug.com/40464036): Remove IS_APPLE ifdef once priority changes are
// ignored on Mac main thread.
-#if !BUILDFLAG(IS_APPLE)
+#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD)
diff --git a/www/ungoogled-chromium/files/patch-components_supervised__user_core_browser_supervised__user__service.cc b/www/ungoogled-chromium/files/patch-components_supervised__user_core_browser_supervised__user__service.cc
index db718badd013..cadbec426149 100644
--- a/www/ungoogled-chromium/files/patch-components_supervised__user_core_browser_supervised__user__service.cc
+++ b/www/ungoogled-chromium/files/patch-components_supervised__user_core_browser_supervised__user__service.cc
@@ -1,6 +1,6 @@
---- components/supervised_user/core/browser/supervised_user_service.cc.orig 2024-04-23 07:42:17 UTC
+--- components/supervised_user/core/browser/supervised_user_service.cc.orig 2024-05-23 20:04:36 UTC
+++ components/supervised_user/core/browser/supervised_user_service.cc
-@@ -170,7 +170,7 @@ FirstTimeInterstitialBannerState SupervisedUserService
+@@ -175,7 +175,7 @@ FirstTimeInterstitialBannerState SupervisedUserService
const FirstTimeInterstitialBannerState original_state) {
FirstTimeInterstitialBannerState target_state = original_state;
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.cc b/www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.cc
index ca44cedea3b8..f681f77fcb78 100644
--- a/www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.cc
+++ b/www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.cc
@@ -1,7 +1,7 @@
---- components/supervised_user/core/common/features.cc.orig 2024-04-23 07:42:17 UTC
+--- components/supervised_user/core/common/features.cc.orig 2024-05-23 20:04:36 UTC
+++ components/supervised_user/core/common/features.cc
-@@ -63,7 +63,7 @@ BASE_FEATURE(kEnableSupervisedUserSkipParentApprovalTo
- "EnableSupervisedUserSkipParentApprovalToInstallExtensions",
+@@ -62,7 +62,7 @@ BASE_FEATURE(kUpdatedSupervisedUserExtensionApprovalSt
+ "UpdatedSupervisedUserExtensionApprovalStrings",
base::FEATURE_DISABLED_BY_DEFAULT);
-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
@@ -9,7 +9,7 @@
BASE_FEATURE(kEnableExtensionsPermissionsForSupervisedUsersOnDesktop,
"EnableExtensionsPermissionsForSupervisedUsersOnDesktop",
base::FEATURE_DISABLED_BY_DEFAULT);
-@@ -74,7 +74,7 @@ bool IsSupervisedUserSkipParentApprovalToInstallExtens
+@@ -73,7 +73,7 @@ bool IsSupervisedUserSkipParentApprovalToInstallExtens
#if BUILDFLAG(IS_CHROMEOS)
return base::FeatureList::IsEnabled(
kEnableSupervisedUserSkipParentApprovalToInstallExtensions);
diff --git a/www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.h b/www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.h
index 79b595a9b2e6..c3bb43b363e5 100644
--- a/www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.h
+++ b/www/ungoogled-chromium/files/patch-components_supervised__user_core_common_features.h
@@ -1,8 +1,8 @@
---- components/supervised_user/core/common/features.h.orig 2024-04-23 07:42:17 UTC
+--- components/supervised_user/core/common/features.h.orig 2024-05-23 20:04:36 UTC
+++ components/supervised_user/core/common/features.h
-@@ -23,7 +23,7 @@ BASE_DECLARE_FEATURE(kLocalWebApprovals);
- BASE_DECLARE_FEATURE(
- kEnableSupervisedUserSkipParentApprovalToInstallExtensions);
+@@ -26,7 +26,7 @@ BASE_DECLARE_FEATURE(
+ // Applies new informative strings during the parental extension approval flow.
+ BASE_DECLARE_FEATURE(kUpdatedSupervisedUserExtensionApprovalStrings);
-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
diff --git a/www/ungoogled-chromium/files/patch-components_sync_base_features.cc b/www/ungoogled-chromium/files/patch-components_sync_base_features.cc
index 529dd9a24636..d148e1b02552 100644
--- a/www/ungoogled-chromium/files/patch-components_sync_base_features.cc
+++ b/www/ungoogled-chromium/files/patch-components_sync_base_features.cc
@@ -1,6 +1,6 @@
---- components/sync/base/features.cc.orig 2024-04-23 07:42:17 UTC
+--- components/sync/base/features.cc.orig 2024-05-23 20:04:36 UTC
+++ components/sync/base/features.cc
-@@ -126,7 +126,7 @@ BASE_FEATURE(kEnablePreferencesAccountStorage,
+@@ -116,7 +116,7 @@ BASE_FEATURE(kEnablePreferencesAccountStorage,
BASE_FEATURE(kSyncPollImmediatelyOnEveryStartup,
"SyncPollImmediatelyOnEveryStartup2",
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
diff --git a/www/ungoogled-chromium/files/patch-components_viz_host_host__display__client.cc b/www/ungoogled-chromium/files/patch-components_viz_host_host__display__client.cc
index 5114daf0ae4a..f03c036bf452 100644
--- a/www/ungoogled-chromium/files/patch-components_viz_host_host__display__client.cc
+++ b/www/ungoogled-chromium/files/patch-components_viz_host_host__display__client.cc
@@ -1,6 +1,6 @@
---- components/viz/host/host_display_client.cc.orig 2024-02-03 15:42:55 UTC
+--- components/viz/host/host_display_client.cc.orig 2024-05-23 20:04:36 UTC
+++ components/viz/host/host_display_client.cc
-@@ -64,7 +64,7 @@ void HostDisplayClient::AddChildWindowToBrowser(
+@@ -65,7 +65,7 @@ void HostDisplayClient::AddChildWindowToBrowser(
}
#endif
diff --git a/www/ungoogled-chromium/files/patch-components_viz_service_display__embedder_skia__output__surface__impl.cc b/www/ungoogled-chromium/files/patch-components_viz_service_display__embedder_skia__output__surface__impl.cc
index 991d6c2912ef..67e9aa330152 100644
--- a/www/ungoogled-chromium/files/patch-components_viz_service_display__embedder_skia__output__surface__impl.cc
+++ b/www/ungoogled-chromium/files/patch-components_viz_service_display__embedder_skia__output__surface__impl.cc
@@ -1,6 +1,6 @@
---- components/viz/service/display_embedder/skia_output_surface_impl.cc.orig 2024-04-26 05:03:53 UTC
+--- components/viz/service/display_embedder/skia_output_surface_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ components/viz/service/display_embedder/skia_output_surface_impl.cc
-@@ -1527,7 +1527,7 @@ GrBackendFormat SkiaOutputSurfaceImpl::GetGrBackendFor
+@@ -1503,7 +1503,7 @@ GrBackendFormat SkiaOutputSurfaceImpl::GetGrBackendFor
->GetVulkanPhysicalDevice(),
VK_IMAGE_TILING_OPTIMAL, vk_format,
si_format, yuv_color_space, ycbcr_info);
diff --git a/www/ungoogled-chromium/files/patch-components_viz_service_display_skia__renderer.cc b/www/ungoogled-chromium/files/patch-components_viz_service_display_skia__renderer.cc
index 270456b4ef67..addfc0159a37 100644
--- a/www/ungoogled-chromium/files/patch-components_viz_service_display_skia__renderer.cc
+++ b/www/ungoogled-chromium/files/patch-components_viz_service_display_skia__renderer.cc
@@ -1,6 +1,6 @@
---- components/viz/service/display/skia_renderer.cc.orig 2024-04-23 07:42:17 UTC
+--- components/viz/service/display/skia_renderer.cc.orig 2024-05-23 20:04:36 UTC
+++ components/viz/service/display/skia_renderer.cc
-@@ -1448,7 +1448,7 @@ void SkiaRenderer::ClearFramebuffer() {
+@@ -1478,7 +1478,7 @@ void SkiaRenderer::ClearFramebuffer() {
if (current_frame()->current_render_pass->has_transparent_background) {
ClearCanvas(SkColors::kTransparent);
} else {
diff --git a/www/ungoogled-chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc b/www/ungoogled-chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc
index c39bcd0099e4..3feb816a5bb4 100644
--- a/www/ungoogled-chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc
+++ b/www/ungoogled-chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc
@@ -1,4 +1,4 @@
---- components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc.orig 2024-04-23 07:42:17 UTC
+--- components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc
@@ -111,7 +111,7 @@ RootCompositorFrameSinkImpl::Create(
output_surface->SetNeedsSwapSizeNotifications(
@@ -9,7 +9,7 @@
// For X11, we need notify client about swap completion after resizing, so the
// client can use it for synchronize with X11 WM.
output_surface->SetNeedsSwapSizeNotifications(true);
-@@ -649,7 +649,7 @@ void RootCompositorFrameSinkImpl::DisplayDidCompleteSw
+@@ -654,7 +654,7 @@ void RootCompositorFrameSinkImpl::DisplayDidCompleteSw
if (display_client_ && enable_swap_completion_callback_) {
display_client_->DidCompleteSwapWithSize(pixel_size);
}
diff --git a/www/ungoogled-chromium/files/patch-content_app_content__main.cc b/www/ungoogled-chromium/files/patch-content_app_content__main.cc
index cd137edbecd6..59cb94318a53 100644
--- a/www/ungoogled-chromium/files/patch-content_app_content__main.cc
+++ b/www/ungoogled-chromium/files/patch-content_app_content__main.cc
@@ -1,6 +1,6 @@
---- content/app/content_main.cc.orig 2024-02-25 20:22:18 UTC
+--- content/app/content_main.cc.orig 2024-05-23 20:04:36 UTC
+++ content/app/content_main.cc
-@@ -207,7 +207,7 @@ RunContentProcess(ContentMainParams params,
+@@ -206,7 +206,7 @@ RunContentProcess(ContentMainParams params,
#endif
base::EnableTerminationOnOutOfMemory();
diff --git a/www/ungoogled-chromium/files/patch-content_app_content__main__runner__impl.cc b/www/ungoogled-chromium/files/patch-content_app_content__main__runner__impl.cc
index a460ca5c3f78..9659f9663449 100644
--- a/www/ungoogled-chromium/files/patch-content_app_content__main__runner__impl.cc
+++ b/www/ungoogled-chromium/files/patch-content_app_content__main__runner__impl.cc
@@ -1,6 +1,6 @@
---- content/app/content_main_runner_impl.cc.orig 2024-03-22 14:16:19 UTC
+--- content/app/content_main_runner_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ content/app/content_main_runner_impl.cc
-@@ -143,13 +143,13 @@
+@@ -144,13 +144,13 @@
#include "content/browser/posix_file_descriptor_info_impl.h"
#include "content/public/common/content_descriptors.h"
@@ -16,7 +16,7 @@
#include "base/files/file_path_watcher_inotify.h"
#include "base/native_library.h"
#include "base/rand_util.h"
-@@ -187,6 +187,10 @@
+@@ -188,6 +188,10 @@
#include "media/base/media_switches.h"
#endif
@@ -27,7 +27,7 @@
#if BUILDFLAG(IS_ANDROID)
#include "base/system/sys_info.h"
#include "content/browser/android/battery_metrics.h"
-@@ -373,7 +377,7 @@ void InitializeZygoteSandboxForBrowserProcess(
+@@ -374,7 +378,7 @@ void InitializeZygoteSandboxForBrowserProcess(
}
#endif // BUILDFLAG(USE_ZYGOTE)
@@ -36,7 +36,7 @@
#if BUILDFLAG(ENABLE_PPAPI)
// Loads the (native) libraries but does not initialize them (i.e., does not
-@@ -411,7 +415,10 @@ void PreloadLibraryCdms() {
+@@ -412,7 +416,10 @@ void PreloadLibraryCdms() {
void PreSandboxInit() {
// Ensure the /dev/urandom is opened.
@@ -47,7 +47,7 @@
// May use sysinfo(), sched_getaffinity(), and open various /sys/ and /proc/
// files.
-@@ -423,9 +430,16 @@ void PreSandboxInit() {
+@@ -424,9 +431,16 @@ void PreSandboxInit() {
// https://boringssl.9oo91esource.qjz9zk/boringssl/+/HEAD/SANDBOXING.md
CRYPTO_pre_sandbox_init();
@@ -64,7 +64,7 @@
#if BUILDFLAG(ENABLE_PPAPI)
// Ensure access to the Pepper plugins before the sandbox is turned on.
-@@ -838,11 +852,10 @@ int ContentMainRunnerImpl::Initialize(ContentMainParam
+@@ -837,11 +851,10 @@ int ContentMainRunnerImpl::Initialize(ContentMainParam
base::GlobalDescriptors::kBaseDescriptor);
#endif // !BUILDFLAG(IS_ANDROID)
@@ -78,7 +78,7 @@
#endif // !BUILDFLAG(IS_WIN)
-@@ -1035,8 +1048,20 @@ int ContentMainRunnerImpl::Initialize(ContentMainParam
+@@ -1034,8 +1047,20 @@ int ContentMainRunnerImpl::Initialize(ContentMainParam
process_type == switches::kZygoteProcess) {
PreSandboxInit();
}
@@ -99,7 +99,7 @@
delegate_->SandboxInitialized(process_type);
#if BUILDFLAG(USE_ZYGOTE)
-@@ -1104,7 +1129,7 @@ int NO_STACK_PROTECTOR ContentMainRunnerImpl::Run() {
+@@ -1103,7 +1128,7 @@ int NO_STACK_PROTECTOR ContentMainRunnerImpl::Run() {
->ReconfigureAfterFeatureListInit(process_type);
}
@@ -108,7 +108,7 @@
// If dynamic Mojo Core is being used, ensure that it's loaded very early in
// the child/zygote process, before any sandbox is initialized. The library
// is not fully initialized with IPC support until a ChildProcess is later
-@@ -1139,6 +1164,11 @@ int NO_STACK_PROTECTOR ContentMainRunnerImpl::Run() {
+@@ -1138,6 +1163,11 @@ int NO_STACK_PROTECTOR ContentMainRunnerImpl::Run() {
content_main_params_.reset();
RegisterMainThreadFactories();
diff --git a/www/ungoogled-chromium/files/patch-content_browser_BUILD.gn b/www/ungoogled-chromium/files/patch-content_browser_BUILD.gn
index a5e887fab3d4..fb5729be2bfe 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-content_browser_BUILD.gn
@@ -1,6 +1,6 @@
---- content/browser/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- content/browser/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ content/browser/BUILD.gn
-@@ -2406,6 +2406,13 @@ source_set("browser") {
+@@ -2407,6 +2407,13 @@ source_set("browser") {
deps += [ "//media/mojo/mojom/stable:stable_video_decoder" ]
}
diff --git a/www/ungoogled-chromium/files/patch-content_browser_audio_audio__service.cc b/www/ungoogled-chromium/files/patch-content_browser_audio_audio__service.cc
index 2370dd8827f4..0e746a2d8101 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_audio_audio__service.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_audio_audio__service.cc
@@ -1,6 +1,6 @@
---- content/browser/audio/audio_service.cc.orig 2024-02-25 20:22:18 UTC
+--- content/browser/audio/audio_service.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/audio/audio_service.cc
-@@ -34,7 +34,7 @@
+@@ -32,7 +32,7 @@
#if BUILDFLAG(ENABLE_PASSTHROUGH_AUDIO_CODECS)
#include "ui/display/util/edid_parser.h"
@@ -9,7 +9,7 @@
#include "ui/display/display_util.h"
#endif // BUILDFLAG(IS_LINUX)
-@@ -202,7 +202,7 @@ audio::mojom::AudioService& GetAudioService() {
+@@ -200,7 +200,7 @@ audio::mojom::AudioService& GetAudioService() {
->PostTaskAndReplyWithResult(
FROM_HERE, base::BindOnce(&ScanEdidBitstreams),
base::BindOnce(&LaunchAudioService, std::move(receiver)));
diff --git a/www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.cc b/www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.cc
index 8ad6967fbc39..7bcb5a05c602 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.cc
@@ -1,4 +1,4 @@
---- content/browser/browser_child_process_host_impl.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/browser_child_process_host_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/browser_child_process_host_impl.cc
@@ -329,6 +329,7 @@ void BrowserChildProcessHostImpl::LaunchWithoutExtraCo
switches::kMojoCoreLibraryPath,
@@ -8,7 +8,7 @@
};
cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches);
-@@ -644,7 +645,7 @@ void BrowserChildProcessHostImpl::OnProcessLaunched()
+@@ -657,7 +658,7 @@ void BrowserChildProcessHostImpl::OnProcessLaunched()
->child_process());
#endif
diff --git a/www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.h b/www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.h
index da44b4e68971..382b148e5aa1 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.h
+++ b/www/ungoogled-chromium/files/patch-content_browser_browser__child__process__host__impl.h
@@ -1,6 +1,6 @@
---- content/browser/browser_child_process_host_impl.h.orig 2024-04-23 07:42:17 UTC
+--- content/browser/browser_child_process_host_impl.h.orig 2024-05-23 20:04:36 UTC
+++ content/browser/browser_child_process_host_impl.h
-@@ -34,7 +34,7 @@
+@@ -35,7 +35,7 @@
#include "base/win/object_watcher.h"
#endif
@@ -9,7 +9,7 @@
#include "content/browser/child_thread_type_switcher_linux.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
-@@ -266,7 +266,7 @@ class BrowserChildProcessHostImpl
+@@ -273,7 +273,7 @@ class BrowserChildProcessHostImpl
std::unique_ptr<tracing::SystemTracingService> system_tracing_service_;
#endif
diff --git a/www/ungoogled-chromium/files/patch-content_browser_browser__main__loop.cc b/www/ungoogled-chromium/files/patch-content_browser_browser__main__loop.cc
index 55a9fcf3ee7e..3330e75132cf 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_browser__main__loop.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_browser__main__loop.cc
@@ -1,6 +1,6 @@
---- content/browser/browser_main_loop.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/browser_main_loop.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/browser_main_loop.cc
-@@ -251,6 +251,12 @@
+@@ -249,6 +249,12 @@
#include "mojo/public/cpp/bindings/lib/test_random_mojo_delays.h"
#endif
@@ -13,7 +13,7 @@
// One of the linux specific headers defines this as a macro.
#ifdef DestroyAll
#undef DestroyAll
-@@ -556,6 +562,12 @@ int BrowserMainLoop::EarlyInitialization() {
+@@ -554,6 +560,12 @@ int BrowserMainLoop::EarlyInitialization() {
// by now since a thread to start the ServiceManager has been created
// before the browser main loop starts.
DCHECK(SandboxHostLinux::GetInstance()->IsInitialized());
@@ -26,7 +26,7 @@
#endif
// GLib's spawning of new processes is buggy, so it's important that at this
-@@ -593,7 +605,7 @@ int BrowserMainLoop::EarlyInitialization() {
+@@ -591,7 +603,7 @@ int BrowserMainLoop::EarlyInitialization() {
base::PlatformThread::SetCurrentThreadType(base::ThreadType::kCompositing);
#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
diff --git a/www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper.h b/www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper.h
index 420b0d56b14b..499dc3c72960 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper.h
+++ b/www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper.h
@@ -1,8 +1,8 @@
---- content/browser/child_process_launcher_helper.h.orig 2024-04-23 07:42:17 UTC
+--- content/browser/child_process_launcher_helper.h.orig 2024-05-23 20:04:36 UTC
+++ content/browser/child_process_launcher_helper.h
-@@ -293,7 +293,7 @@ class ChildProcessLauncherHelper
- std::unique_ptr<SandboxedProcessLauncherDelegate> delegate_;
- base::WeakPtr<ChildProcessLauncher> child_process_launcher_;
+@@ -304,7 +304,7 @@ class ChildProcessLauncherHelper
+ std::optional<base::ProcessId> process_id_ = std::nullopt;
+ #endif // BUILDFLAG(IS_CHROMEOS)
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
diff --git a/www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper__linux.cc b/www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper__linux.cc
index cfc3fa60ec67..e22280cc32b2 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper__linux.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_child__process__launcher__helper__linux.cc
@@ -1,6 +1,6 @@
---- content/browser/child_process_launcher_helper_linux.cc.orig 2023-11-04 07:08:51 UTC
+--- content/browser/child_process_launcher_helper_linux.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/child_process_launcher_helper_linux.cc
-@@ -21,7 +21,9 @@
+@@ -22,7 +22,9 @@
#include "content/public/common/result_codes.h"
#include "content/public/common/sandboxed_process_launcher_delegate.h"
#include "content/public/common/zygote/sandbox_support_linux.h"
@@ -10,7 +10,7 @@
#include "sandbox/policy/linux/sandbox_linux.h"
namespace content {
-@@ -46,14 +48,20 @@ ChildProcessLauncherHelper::GetFilesToMap() {
+@@ -47,14 +49,20 @@ ChildProcessLauncherHelper::GetFilesToMap() {
}
bool ChildProcessLauncherHelper::IsUsingLaunchOptions() {
@@ -31,7 +31,7 @@
// Convert FD mapping to FileHandleMappingVector
options->fds_to_remap = files_to_register.GetMappingWithIDAdjustment(
base::GlobalDescriptors::kBaseDescriptor);
-@@ -65,7 +73,9 @@ bool ChildProcessLauncherHelper::BeforeLaunchOnLaunche
+@@ -66,7 +74,9 @@ bool ChildProcessLauncherHelper::BeforeLaunchOnLaunche
options->environment = delegate_->GetEnvironment();
} else {
@@ -41,7 +41,7 @@
// Environment variables could be supported in the future, but are not
// currently supported when launching with the zygote.
DCHECK(delegate_->GetEnvironment().empty());
-@@ -82,6 +92,7 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThr
+@@ -83,6 +93,7 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThr
int* launch_result) {
*is_synchronous_launch = true;
Process process;
@@ -49,7 +49,7 @@
ZygoteCommunication* zygote_handle = GetZygoteForLaunch();
if (zygote_handle) {
// TODO(crbug.com/569191): If chrome supported multiple zygotes they could
-@@ -92,7 +103,6 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThr
+@@ -93,7 +104,6 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThr
GetProcessType());
*launch_result = LAUNCH_RESULT_SUCCESS;
@@ -57,7 +57,7 @@
if (handle) {
// It could be a renderer process or an utility process.
int oom_score = content::kMiscOomScore;
-@@ -101,15 +111,17 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThr
+@@ -102,15 +112,17 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThr
oom_score = content::kLowestRendererOomScore;
ZygoteHostImpl::GetInstance()->AdjustRendererOOMScore(handle, oom_score);
}
@@ -75,8 +75,8 @@
+#endif
#if BUILDFLAG(IS_CHROMEOS)
- if (GetProcessType() == switches::kRendererProcess) {
-@@ -131,10 +143,14 @@ ChildProcessTerminationInfo ChildProcessLauncherHelper
+ process_id_ = process.process.Pid();
+@@ -134,10 +146,14 @@ ChildProcessTerminationInfo ChildProcessLauncherHelper
const ChildProcessLauncherHelper::Process& process,
bool known_dead) {
ChildProcessTerminationInfo info;
@@ -91,7 +91,7 @@
info.status = base::GetKnownDeadTerminationStatus(process.process.Handle(),
&info.exit_code);
} else {
-@@ -160,13 +176,17 @@ void ChildProcessLauncherHelper::ForceNormalProcessTer
+@@ -163,13 +179,17 @@ void ChildProcessLauncherHelper::ForceNormalProcessTer
DCHECK(CurrentlyOnProcessLauncherTaskRunner());
process.process.Terminate(RESULT_CODE_NORMAL_EXIT, false);
// On POSIX, we must additionally reap the child.
@@ -109,7 +109,7 @@
}
void ChildProcessLauncherHelper::SetProcessPriorityOnLauncherThread(
-@@ -179,11 +199,13 @@ void ChildProcessLauncherHelper::SetProcessPriorityOnL
+@@ -182,11 +202,13 @@ void ChildProcessLauncherHelper::SetProcessPriorityOnL
}
}
diff --git a/www/ungoogled-chromium/files/patch-content_browser_child__thread__type__switcher__linux.cc b/www/ungoogled-chromium/files/patch-content_browser_child__thread__type__switcher__linux.cc
index 9f1fb40dca25..ecb58f1f18d2 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_child__thread__type__switcher__linux.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_child__thread__type__switcher__linux.cc
@@ -1,4 +1,4 @@
---- content/browser/child_thread_type_switcher_linux.cc.orig 2023-12-23 12:33:28 UTC
+--- content/browser/child_thread_type_switcher_linux.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/child_thread_type_switcher_linux.cc
@@ -20,6 +20,9 @@ void SetThreadTypeOnLauncherThread(base::ProcessId pee
base::ThreadType thread_type) {
@@ -10,7 +10,7 @@
bool ns_pid_supported = false;
pid_t peer_tid = base::FindThreadID(peer_pid, ns_tid, &ns_pid_supported);
if (peer_tid == -1) {
-@@ -37,6 +40,7 @@ void SetThreadTypeOnLauncherThread(base::ProcessId pee
+@@ -38,6 +41,7 @@ void SetThreadTypeOnLauncherThread(base::ProcessId pee
base::PlatformThread::SetThreadType(peer_pid, peer_tid, thread_type,
base::IsViaIPC(true));
diff --git a/www/ungoogled-chromium/files/patch-content_browser_devtools_devtools__frontend__host__impl.h b/www/ungoogled-chromium/files/patch-content_browser_devtools_devtools__frontend__host__impl.h
index 07af3b6176ed..964dc11c114f 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_devtools_devtools__frontend__host__impl.h
+++ b/www/ungoogled-chromium/files/patch-content_browser_devtools_devtools__frontend__host__impl.h
@@ -1,6 +1,6 @@
---- content/browser/devtools/devtools_frontend_host_impl.h.orig 2023-11-04 07:08:51 UTC
+--- content/browser/devtools/devtools_frontend_host_impl.h.orig 2024-05-23 20:04:36 UTC
+++ content/browser/devtools/devtools_frontend_host_impl.h
-@@ -33,7 +33,7 @@ class DevToolsFrontendHostImpl : public DevToolsFronte
+@@ -34,7 +34,7 @@ class DevToolsFrontendHostImpl : public DevToolsFronte
void BadMessageReceived() override;
diff --git a/www/ungoogled-chromium/files/patch-content_browser_devtools_protocol_system__info__handler.cc b/www/ungoogled-chromium/files/patch-content_browser_devtools_protocol_system__info__handler.cc
index 15a57cd92ad3..51933eb51709 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_devtools_protocol_system__info__handler.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_devtools_protocol_system__info__handler.cc
@@ -1,6 +1,6 @@
---- content/browser/devtools/protocol/system_info_handler.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/devtools/protocol/system_info_handler.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/devtools/protocol/system_info_handler.cc
-@@ -50,7 +50,7 @@ std::unique_ptr<SystemInfo::Size> GfxSizeToSystemInfoS
+@@ -51,7 +51,7 @@ std::unique_ptr<SystemInfo::Size> GfxSizeToSystemInfoS
// 1046598, and 1153667.
// Windows builds need more time -- see Issue 873112 and 1004472.
// Mac builds need more time - see Issue angleproject:6182.
diff --git a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.cc b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.cc
index 8106794460c1..706d82082e11 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.cc
@@ -1,6 +1,6 @@
---- content/browser/gpu/gpu_data_manager_impl.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/gpu/gpu_data_manager_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/gpu/gpu_data_manager_impl.cc
-@@ -394,7 +394,7 @@ void GpuDataManagerImpl::OnDisplayMetricsChanged(
+@@ -396,7 +396,7 @@ void GpuDataManagerImpl::OnDisplayMetricsChanged(
private_->OnDisplayMetricsChanged(display, changed_metrics);
}
diff --git a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.h b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.h
index a8531c24dbb3..3b95d414a8aa 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.h
+++ b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl.h
@@ -1,6 +1,6 @@
---- content/browser/gpu/gpu_data_manager_impl.h.orig 2024-04-23 07:42:17 UTC
+--- content/browser/gpu/gpu_data_manager_impl.h.orig 2024-05-23 20:04:36 UTC
+++ content/browser/gpu/gpu_data_manager_impl.h
-@@ -217,7 +217,7 @@ class CONTENT_EXPORT GpuDataManagerImpl : public GpuDa
+@@ -219,7 +219,7 @@ class CONTENT_EXPORT GpuDataManagerImpl : public GpuDa
void OnDisplayMetricsChanged(const display::Display& display,
uint32_t changed_metrics) override;
diff --git a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.cc b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.cc
index aad32b7ea410..cdad33beee6d 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.cc
@@ -1,6 +1,6 @@
---- content/browser/gpu/gpu_data_manager_impl_private.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/gpu/gpu_data_manager_impl_private.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/gpu/gpu_data_manager_impl_private.cc
-@@ -1673,7 +1673,7 @@ void GpuDataManagerImplPrivate::RecordCompositingMode(
+@@ -1694,7 +1694,7 @@ void GpuDataManagerImplPrivate::RecordCompositingMode(
UMA_HISTOGRAM_ENUMERATION("GPU.CompositingMode", compositing_mode);
}
diff --git a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.h b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.h
index 0e11afc86c42..b0540daac5df 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.h
+++ b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.h
@@ -1,6 +1,6 @@
---- content/browser/gpu/gpu_data_manager_impl_private.h.orig 2024-04-23 07:42:17 UTC
+--- content/browser/gpu/gpu_data_manager_impl_private.h.orig 2024-05-23 20:04:36 UTC
+++ content/browser/gpu/gpu_data_manager_impl_private.h
-@@ -149,7 +149,7 @@ class CONTENT_EXPORT GpuDataManagerImplPrivate {
+@@ -150,7 +150,7 @@ class CONTENT_EXPORT GpuDataManagerImplPrivate {
void OnDisplayMetricsChanged(const display::Display& display,
uint32_t changed_metrics);
@@ -9,7 +9,7 @@
bool IsGpuMemoryBufferNV12Supported();
void SetGpuMemoryBufferNV12Supported(bool supported);
#endif // BUILDFLAG(IS_LINUX)
-@@ -301,7 +301,7 @@ class CONTENT_EXPORT GpuDataManagerImplPrivate {
+@@ -302,7 +302,7 @@ class CONTENT_EXPORT GpuDataManagerImplPrivate {
bool application_is_visible_ = true;
bool disable_gpu_compositing_ = false;
diff --git a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__process__host.cc b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__process__host.cc
index 938aa90f9eeb..b0a390ab081a 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__process__host.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_gpu_gpu__process__host.cc
@@ -1,6 +1,6 @@
---- content/browser/gpu/gpu_process_host.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/gpu/gpu_process_host.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/gpu/gpu_process_host.cc
-@@ -264,6 +264,7 @@ static const char* const kSwitchNames[] = {
+@@ -265,6 +265,7 @@ static const char* const kSwitchNames[] = {
switches::kEnableLowEndDeviceMode,
switches::kDisableSkiaGraphite,
switches::kDisableLowEndDeviceMode,
@@ -8,7 +8,7 @@
switches::kProfilingAtStart,
switches::kProfilingFile,
switches::kProfilingFlush,
-@@ -290,7 +291,7 @@ static const char* const kSwitchNames[] = {
+@@ -292,7 +293,7 @@ static const char* const kSwitchNames[] = {
switches::kDisableExplicitDmaFences,
switches::kOzoneDumpFile,
#endif
diff --git a/www/ungoogled-chromium/files/patch-content_browser_media_frameless__media__interface__proxy.h b/www/ungoogled-chromium/files/patch-content_browser_media_frameless__media__interface__proxy.h
index 20fd917593ce..3ee2b481f1fd 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_media_frameless__media__interface__proxy.h
+++ b/www/ungoogled-chromium/files/patch-content_browser_media_frameless__media__interface__proxy.h
@@ -1,4 +1,4 @@
---- content/browser/media/frameless_media_interface_proxy.h.orig 2022-10-29 17:50:56 UTC
+--- content/browser/media/frameless_media_interface_proxy.h.orig 2024-05-23 20:04:36 UTC
+++ content/browser/media/frameless_media_interface_proxy.h
@@ -19,7 +19,7 @@
#include "mojo/public/cpp/bindings/receiver_set.h"
@@ -9,7 +9,7 @@
#include "media/mojo/mojom/stable/stable_video_decoder.mojom.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
-@@ -100,7 +100,7 @@ class FramelessMediaInterfaceProxy final
+@@ -105,7 +105,7 @@ class FramelessMediaInterfaceProxy final
// Connections to the renderer.
mojo::ReceiverSet<media::mojom::InterfaceFactory> receivers_;
diff --git a/www/ungoogled-chromium/files/patch-content_browser_network__service__instance__impl.cc b/www/ungoogled-chromium/files/patch-content_browser_network__service__instance__impl.cc
index c6858e9796e0..942bed869368 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_network__service__instance__impl.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_network__service__instance__impl.cc
@@ -1,6 +1,6 @@
---- content/browser/network_service_instance_impl.cc.orig 2024-02-03 15:42:55 UTC
+--- content/browser/network_service_instance_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/network_service_instance_impl.cc
-@@ -81,7 +81,7 @@
+@@ -82,7 +82,7 @@
#include "content/browser/network/network_service_process_tracker_win.h"
#endif
@@ -9,7 +9,7 @@
#include "content/browser/system_dns_resolution/system_dns_resolver.h"
#include "services/network/public/mojom/system_dns_resolution.mojom-forward.h"
#endif
-@@ -359,7 +359,7 @@ void CreateInProcessNetworkService(
+@@ -360,7 +360,7 @@ void CreateInProcessNetworkService(
std::move(receiver)));
}
@@ -18,7 +18,7 @@
// Runs a self-owned SystemDnsResolverMojoImpl. This is meant to run on a
// high-priority thread pool.
void RunSystemDnsResolverOnThreadPool(
-@@ -428,7 +428,7 @@ network::mojom::NetworkServiceParamsPtr CreateNetworkS
+@@ -429,7 +429,7 @@ network::mojom::NetworkServiceParamsPtr CreateNetworkS
}
#endif // BUILDFLAG(IS_POSIX)
diff --git a/www/ungoogled-chromium/files/patch-content_browser_renderer__host_media_service__video__capture__device__launcher.cc b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_media_service__video__capture__device__launcher.cc
index e4baaad86c4a..924e53fa3f87 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_renderer__host_media_service__video__capture__device__launcher.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_media_service__video__capture__device__launcher.cc
@@ -1,4 +1,4 @@
---- content/browser/renderer_host/media/service_video_capture_device_launcher.cc.orig 2023-12-23 12:33:28 UTC
+--- content/browser/renderer_host/media/service_video_capture_device_launcher.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/renderer_host/media/service_video_capture_device_launcher.cc
@@ -25,7 +25,7 @@
#include "media/base/media_switches.h"
@@ -9,7 +9,7 @@
#include "content/browser/gpu/gpu_data_manager_impl.h"
#endif
-@@ -172,7 +172,7 @@ void ServiceVideoCaptureDeviceLauncher::LaunchDeviceAs
+@@ -173,7 +173,7 @@ void ServiceVideoCaptureDeviceLauncher::LaunchDeviceAs
}
#else
if (switches::IsVideoCaptureUseGpuMemoryBufferEnabled()) {
diff --git a/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc
index 70154c2919a9..007003dfe763 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc
@@ -1,4 +1,4 @@
---- content/browser/renderer_host/render_process_host_impl.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/renderer_host/render_process_host_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/renderer_host/render_process_host_impl.cc
@@ -226,7 +226,7 @@
#include "third_party/blink/public/mojom/android_font_lookup/android_font_lookup.mojom.h"
@@ -18,7 +18,7 @@
struct rlimit limit;
if (getrlimit(RLIMIT_NPROC, &limit) != 0)
return kUnknownPlatformProcessLimit;
-@@ -1150,7 +1150,7 @@ class RenderProcessHostImpl::IOThreadHostImpl : public
+@@ -1154,7 +1154,7 @@ class RenderProcessHostImpl::IOThreadHostImpl : public
IOThreadHostImpl& operator=(const IOThreadHostImpl& other) = delete;
void SetPid(base::ProcessId child_pid) {
@@ -27,7 +27,7 @@
child_thread_type_switcher_.SetPid(child_pid);
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
}
-@@ -1167,7 +1167,7 @@ class RenderProcessHostImpl::IOThreadHostImpl : public
+@@ -1171,7 +1171,7 @@ class RenderProcessHostImpl::IOThreadHostImpl : public
return;
}
@@ -36,7 +36,7 @@
if (auto font_receiver = receiver.As<font_service::mojom::FontService>()) {
ConnectToFontService(std::move(font_receiver));
return;
-@@ -1261,7 +1261,7 @@ class RenderProcessHostImpl::IOThreadHostImpl : public
+@@ -1265,7 +1265,7 @@ class RenderProcessHostImpl::IOThreadHostImpl : public
std::unique_ptr<service_manager::BinderRegistry> binders_;
mojo::Receiver<mojom::ChildProcessHost> receiver_{this};
@@ -45,7 +45,7 @@
mojo::Remote<media::mojom::VideoEncodeAcceleratorProviderFactory>
video_encode_accelerator_factory_remote_;
ChildThreadTypeSwitcher child_thread_type_switcher_;
-@@ -3354,7 +3354,7 @@ void RenderProcessHostImpl::AppendRendererCommandLine(
+@@ -3363,7 +3363,7 @@ void RenderProcessHostImpl::AppendRendererCommandLine(
base::TimeTicks::UnixEpoch().since_origin().InMicroseconds()));
}
@@ -54,7 +54,7 @@
// Append `kDisableVideoCaptureUseGpuMemoryBuffer` flag if there is no support
// for NV12 GPU memory buffer.
if (switches::IsVideoCaptureUseGpuMemoryBufferEnabled() &&
-@@ -3413,6 +3413,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLin
+@@ -3422,6 +3422,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLin
switches::kDisableSpeechAPI,
switches::kDisableThreadedCompositing,
switches::kDisableTouchDragDrop,
diff --git a/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.h b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.h
index 84124cfd59e1..94c174f330e1 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.h
+++ b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__process__host__impl.h
@@ -1,6 +1,6 @@
---- content/browser/renderer_host/render_process_host_impl.h.orig 2024-03-22 14:16:19 UTC
+--- content/browser/renderer_host/render_process_host_impl.h.orig 2024-05-23 20:04:36 UTC
+++ content/browser/renderer_host/render_process_host_impl.h
-@@ -548,7 +548,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
+@@ -592,7 +592,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
// Sets this RenderProcessHost to be guest only. For Testing only.
void SetForGuestsOnlyForTesting();
diff --git a/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__widget__host__view__aura.cc b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__widget__host__view__aura.cc
index 77857e5975fc..44e85c8724e1 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__widget__host__view__aura.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_renderer__host_render__widget__host__view__aura.cc
@@ -1,6 +1,6 @@
---- content/browser/renderer_host/render_widget_host_view_aura.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/renderer_host/render_widget_host_view_aura.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/renderer_host/render_widget_host_view_aura.cc
-@@ -119,7 +119,7 @@
+@@ -120,7 +120,7 @@
#include "ui/gfx/gdi_util.h"
#endif
@@ -9,7 +9,7 @@
#include "content/browser/accessibility/browser_accessibility_auralinux.h"
#include "ui/base/ime/linux/text_edit_command_auralinux.h"
#include "ui/base/ime/text_input_flags.h"
-@@ -452,7 +452,7 @@ gfx::NativeViewAccessible RenderWidgetHostViewAura::Ge
+@@ -453,7 +453,7 @@ gfx::NativeViewAccessible RenderWidgetHostViewAura::Ge
return ToBrowserAccessibilityWin(manager->GetBrowserAccessibilityRoot())
->GetCOM();
@@ -18,8 +18,8 @@
BrowserAccessibilityManager* manager =
host()->GetOrCreateRootBrowserAccessibilityManager();
if (manager && manager->GetBrowserAccessibilityRoot())
-@@ -1705,7 +1705,7 @@ bool RenderWidgetHostViewAura::ShouldDoLearning() {
- return host_->delegate() && host_->delegate()->ShouldDoLearning();
+@@ -1704,7 +1704,7 @@ bool RenderWidgetHostViewAura::ShouldDoLearning() {
+ return host() && host()->delegate() && host()->delegate()->ShouldDoLearning();
}
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
@@ -27,7 +27,7 @@
bool RenderWidgetHostViewAura::SetCompositionFromExistingText(
const gfx::Range& range,
const std::vector<ui::ImeTextSpan>& ui_ime_text_spans) {
-@@ -2538,7 +2538,7 @@ bool RenderWidgetHostViewAura::NeedsInputGrab() {
+@@ -2537,7 +2537,7 @@ bool RenderWidgetHostViewAura::NeedsInputGrab() {
}
bool RenderWidgetHostViewAura::NeedsMouseCapture() {
@@ -36,7 +36,7 @@
return NeedsInputGrab();
#else
return false;
-@@ -2722,7 +2722,7 @@ void RenderWidgetHostViewAura::ForwardKeyboardEventWit
+@@ -2721,7 +2721,7 @@ void RenderWidgetHostViewAura::ForwardKeyboardEventWit
if (!target_host)
return;
diff --git a/www/ungoogled-chromium/files/patch-content_browser_utility__process__host.cc b/www/ungoogled-chromium/files/patch-content_browser_utility__process__host.cc
index a353191680e8..a1a8b41a238e 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_utility__process__host.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_utility__process__host.cc
@@ -1,4 +1,4 @@
---- content/browser/utility_process_host.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/utility_process_host.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/utility_process_host.cc
@@ -61,7 +61,7 @@
#include "content/browser/v8_snapshot_files.h"
@@ -36,7 +36,7 @@
allowed_gpu_(false),
gpu_client_(nullptr, base::OnTaskRunnerDeleter(nullptr)),
#endif
-@@ -234,7 +234,7 @@ void UtilityProcessHost::SetPinUser32() {
+@@ -209,7 +209,7 @@ void UtilityProcessHost::SetPreloadLibraries(
#endif // BUILDFLAG(IS_WIN)
void UtilityProcessHost::SetAllowGpuClient() {
@@ -45,7 +45,17 @@
allowed_gpu_ = true;
#endif
}
-@@ -434,7 +434,7 @@ bool UtilityProcessHost::StartProcess() {
+@@ -349,6 +349,9 @@ bool UtilityProcessHost::StartProcess() {
+ switches::kFailAudioStreamCreation,
+ switches::kMuteAudio,
+ switches::kUseFileForFakeAudioCapture,
++#if BUILDFLAG(IS_BSD)
++ switches::kAudioBackend,
++#endif
+ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FREEBSD) || \
+ BUILDFLAG(IS_SOLARIS)
+ switches::kAlsaInputDevice,
+@@ -409,7 +412,7 @@ bool UtilityProcessHost::StartProcess() {
file_data_->files_to_preload.merge(GetV8SnapshotFilesToPreload());
#endif // BUILDFLAG(IS_POSIX)
@@ -54,7 +64,7 @@
// The network service should have access to the parent directories
// necessary for its usage.
if (sandbox_type_ == sandbox::mojom::Sandbox::kNetwork) {
-@@ -445,13 +445,13 @@ bool UtilityProcessHost::StartProcess() {
+@@ -420,13 +423,13 @@ bool UtilityProcessHost::StartProcess() {
}
#endif // BUILDFLAG(IS_LINUX)
diff --git a/www/ungoogled-chromium/files/patch-content_browser_utility__process__host.h b/www/ungoogled-chromium/files/patch-content_browser_utility__process__host.h
index 19ddef6dd68b..6e063367c502 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_utility__process__host.h
+++ b/www/ungoogled-chromium/files/patch-content_browser_utility__process__host.h
@@ -1,6 +1,6 @@
---- content/browser/utility_process_host.h.orig 2024-04-23 07:42:17 UTC
+--- content/browser/utility_process_host.h.orig 2024-05-23 20:04:36 UTC
+++ content/browser/utility_process_host.h
-@@ -39,7 +39,7 @@ namespace base {
+@@ -33,7 +33,7 @@ namespace base {
class Thread;
} // namespace base
@@ -9,9 +9,9 @@
namespace viz {
class GpuClient;
} // namespace viz
-@@ -228,7 +228,7 @@ class CONTENT_EXPORT UtilityProcessHost
- std::vector<RunServiceDeprecatedCallback> pending_run_service_callbacks_;
- #endif
+@@ -200,7 +200,7 @@ class CONTENT_EXPORT UtilityProcessHost
+ };
+ LaunchState launch_state_ = LaunchState::kLaunchInProgress;
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
diff --git a/www/ungoogled-chromium/files/patch-content_browser_web__contents_web__contents__view__aura.cc b/www/ungoogled-chromium/files/patch-content_browser_web__contents_web__contents__view__aura.cc
index b78f00441e37..175616513732 100644
--- a/www/ungoogled-chromium/files/patch-content_browser_web__contents_web__contents__view__aura.cc
+++ b/www/ungoogled-chromium/files/patch-content_browser_web__contents_web__contents__view__aura.cc
@@ -1,4 +1,4 @@
---- content/browser/web_contents/web_contents_view_aura.cc.orig 2024-04-23 07:42:17 UTC
+--- content/browser/web_contents/web_contents_view_aura.cc.orig 2024-05-23 20:04:36 UTC
+++ content/browser/web_contents/web_contents_view_aura.cc
@@ -174,7 +174,7 @@ class WebDragSourceAura : public content::WebContentsO
raw_ptr<aura::Window> window_;
@@ -18,7 +18,7 @@
// We set the file contents before the URL because the URL also sets file
// contents (to a .URL shortcut). We want to prefer file content data over
// a shortcut so we add it first.
-@@ -1330,7 +1330,7 @@ void WebContentsViewAura::OnMouseEvent(ui::MouseEvent*
+@@ -1334,7 +1334,7 @@ void WebContentsViewAura::OnMouseEvent(ui::MouseEvent*
// Linux window managers like to handle raise-on-click themselves. If we
// raise-on-click manually, this may override user settings that prevent
// focus-stealing.
diff --git a/www/ungoogled-chromium/files/patch-content_child_BUILD.gn b/www/ungoogled-chromium/files/patch-content_child_BUILD.gn
index 40a9084ff1c2..c44fbc0f09a9 100644
--- a/www/ungoogled-chromium/files/patch-content_child_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-content_child_BUILD.gn
@@ -1,6 +1,6 @@
---- content/child/BUILD.gn.orig 2024-02-25 20:22:18 UTC
+--- content/child/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ content/child/BUILD.gn
-@@ -132,6 +132,13 @@ target(link_target_type, "child") {
+@@ -131,6 +131,13 @@ target(link_target_type, "child") {
]
}
diff --git a/www/ungoogled-chromium/files/patch-content_common_features.cc b/www/ungoogled-chromium/files/patch-content_common_features.cc
index 85d164b84d8b..eeac6c542b26 100644
--- a/www/ungoogled-chromium/files/patch-content_common_features.cc
+++ b/www/ungoogled-chromium/files/patch-content_common_features.cc
@@ -1,6 +1,6 @@
---- content/common/features.cc.orig 2024-04-23 07:42:17 UTC
+--- content/common/features.cc.orig 2024-05-23 20:04:36 UTC
+++ content/common/features.cc
-@@ -169,7 +169,7 @@ BASE_FEATURE(kEnableBackForwardCacheForOngoingSubframe
+@@ -162,7 +162,7 @@ BASE_FEATURE(kEnableBackForwardCacheForOngoingSubframe
base::FEATURE_DISABLED_BY_DEFAULT);
// Enables error reporting for JS errors inside DevTools frontend host
@@ -9,7 +9,7 @@
BASE_FEATURE(kEnableDevToolsJsErrorReporting,
"EnableDevToolsJsErrorReporting",
base::FEATURE_DISABLED_BY_DEFAULT);
-@@ -272,7 +272,7 @@ BASE_FEATURE(kGroupNIKByJoiningOrigin,
+@@ -258,7 +258,7 @@ BASE_FEATURE(kGroupNIKByJoiningOrigin,
// process and having browser process handle adjusting thread properties (nice
// value, c-group, latency sensitivity...) for children which have sandbox
// restrictions.
diff --git a/www/ungoogled-chromium/files/patch-content_common_features.h b/www/ungoogled-chromium/files/patch-content_common_features.h
index ed4a115874ef..b1254c043a5e 100644
--- a/www/ungoogled-chromium/files/patch-content_common_features.h
+++ b/www/ungoogled-chromium/files/patch-content_common_features.h
@@ -1,6 +1,6 @@
---- content/common/features.h.orig 2024-04-23 07:42:17 UTC
+--- content/common/features.h.orig 2024-05-23 20:04:36 UTC
+++ content/common/features.h
-@@ -38,7 +38,7 @@ CONTENT_EXPORT BASE_DECLARE_FEATURE(kDocumentPolicyNeg
+@@ -37,7 +37,7 @@ CONTENT_EXPORT BASE_DECLARE_FEATURE(kDocumentPolicyNeg
CONTENT_EXPORT BASE_DECLARE_FEATURE(kEnableBackForwardCacheForScreenReader);
CONTENT_EXPORT BASE_DECLARE_FEATURE(
kEnableBackForwardCacheForOngoingSubframeNavigation);
@@ -9,7 +9,7 @@
CONTENT_EXPORT BASE_DECLARE_FEATURE(kEnableDevToolsJsErrorReporting);
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
CONTENT_EXPORT BASE_DECLARE_FEATURE(kEnsureAllowBindingsIsAlwaysForWebUI);
-@@ -63,7 +63,7 @@ CONTENT_EXPORT extern const base::FeatureParam<int>
+@@ -61,7 +61,7 @@ CONTENT_EXPORT extern const base::FeatureParam<int>
CONTENT_EXPORT BASE_DECLARE_FEATURE(kGpuInfoCollectionSeparatePrefetch);
#endif
CONTENT_EXPORT BASE_DECLARE_FEATURE(kGroupNIKByJoiningOrigin);
@@ -17,4 +17,4 @@
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
CONTENT_EXPORT BASE_DECLARE_FEATURE(kHandleChildThreadTypeChangesInBrowser);
#endif
- CONTENT_EXPORT BASE_DECLARE_FEATURE(kHighPriorityBeforeUnload);
+
diff --git a/www/ungoogled-chromium/files/patch-content_common_font__list__unittest.cc b/www/ungoogled-chromium/files/patch-content_common_font__list__unittest.cc
index 0978584f9227..7d382cfa515e 100644
--- a/www/ungoogled-chromium/files/patch-content_common_font__list__unittest.cc
+++ b/www/ungoogled-chromium/files/patch-content_common_font__list__unittest.cc
@@ -1,6 +1,6 @@
---- content/common/font_list_unittest.cc.orig 2023-02-11 09:11:04 UTC
+--- content/common/font_list_unittest.cc.orig 2024-05-23 20:04:36 UTC
+++ content/common/font_list_unittest.cc
-@@ -47,7 +47,7 @@ TEST(FontList, GetFontList) {
+@@ -48,7 +48,7 @@ TEST(FontList, GetFontList) {
EXPECT_TRUE(HasFontWithName(fonts, "MS Gothic", "MS Gothic"));
EXPECT_TRUE(HasFontWithName(fonts, "Segoe UI", "Segoe UI"));
EXPECT_TRUE(HasFontWithName(fonts, "Verdana", "Verdana"));
diff --git a/www/ungoogled-chromium/files/patch-content_gpu_gpu__main.cc b/www/ungoogled-chromium/files/patch-content_gpu_gpu__main.cc
index 37d107e05902..967c74da5280 100644
--- a/www/ungoogled-chromium/files/patch-content_gpu_gpu__main.cc
+++ b/www/ungoogled-chromium/files/patch-content_gpu_gpu__main.cc
@@ -1,6 +1,6 @@
---- content/gpu/gpu_main.cc.orig 2024-04-23 07:42:17 UTC
+--- content/gpu/gpu_main.cc.orig 2024-05-23 20:04:36 UTC
+++ content/gpu/gpu_main.cc
-@@ -91,10 +91,14 @@
+@@ -93,10 +93,14 @@
#include "sandbox/win/src/sandbox.h"
#endif
@@ -16,7 +16,7 @@
#include "sandbox/policy/sandbox_type.h"
#endif
-@@ -114,7 +118,7 @@ namespace content {
+@@ -116,7 +120,7 @@ namespace content {
namespace {
@@ -25,7 +25,7 @@
bool StartSandboxLinux(gpu::GpuWatchdogThread*,
const gpu::GPUInfo*,
const gpu::GpuPreferences&);
-@@ -179,7 +183,7 @@ class ContentSandboxHelper : public gpu::GpuSandboxHel
+@@ -181,7 +185,7 @@ class ContentSandboxHelper : public gpu::GpuSandboxHel
bool EnsureSandboxInitialized(gpu::GpuWatchdogThread* watchdog_thread,
const gpu::GPUInfo* gpu_info,
const gpu::GpuPreferences& gpu_prefs) override {
@@ -34,7 +34,7 @@
return StartSandboxLinux(watchdog_thread, gpu_info, gpu_prefs);
#elif BUILDFLAG(IS_WIN)
return StartSandboxWindows(sandbox_info_);
-@@ -291,7 +295,7 @@ int GpuMain(MainFunctionParams parameters) {
+@@ -293,7 +297,7 @@ int GpuMain(MainFunctionParams parameters) {
std::make_unique<base::SingleThreadTaskExecutor>(
gpu_preferences.message_pump_type);
}
@@ -43,17 +43,17 @@
#error "Unsupported Linux platform."
#elif BUILDFLAG(IS_MAC)
// Cross-process CoreAnimation requires a CFRunLoop to function at all, and
-@@ -328,7 +332,8 @@ int GpuMain(MainFunctionParams parameters) {
- // before it.
- InitializeSkia();
+@@ -315,7 +319,8 @@ int GpuMain(MainFunctionParams parameters) {
+
+ base::PlatformThread::SetName("CrGpuMain");
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+// XXX BSD
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !BUILDFLAG(IS_BSD)
// Thread type delegate of the process should be registered before
- // first thread type change in ChildProcess constructor.
- // It also needs to be registered before the process has multiple threads,
-@@ -436,7 +441,7 @@ int GpuMain(MainFunctionParams parameters) {
+ // thread type change below for the main thread and for thread pool in
+ // ChildProcess constructor.
+@@ -442,7 +447,7 @@ int GpuMain(MainFunctionParams parameters) {
namespace {
@@ -62,7 +62,7 @@
bool StartSandboxLinux(gpu::GpuWatchdogThread* watchdog_thread,
const gpu::GPUInfo* gpu_info,
const gpu::GpuPreferences& gpu_prefs) {
-@@ -476,7 +481,7 @@ bool StartSandboxLinux(gpu::GpuWatchdogThread* watchdo
+@@ -482,7 +487,7 @@ bool StartSandboxLinux(gpu::GpuWatchdogThread* watchdo
sandbox_options.accelerated_video_encode_enabled =
!gpu_prefs.disable_accelerated_video_encode;
diff --git a/www/ungoogled-chromium/files/patch-content_public_browser_content__browser__client.cc b/www/ungoogled-chromium/files/patch-content_public_browser_content__browser__client.cc
index f79deb130404..d587b0eb07c9 100644
--- a/www/ungoogled-chromium/files/patch-content_public_browser_content__browser__client.cc
+++ b/www/ungoogled-chromium/files/patch-content_public_browser_content__browser__client.cc
@@ -1,6 +1,6 @@
---- content/public/browser/content_browser_client.cc.orig 2024-04-23 07:42:17 UTC
+--- content/public/browser/content_browser_client.cc.orig 2024-05-23 20:04:36 UTC
+++ content/public/browser/content_browser_client.cc
-@@ -1283,7 +1283,7 @@ bool ContentBrowserClient::ShouldRunOutOfProcessSystem
+@@ -1293,7 +1293,7 @@ bool ContentBrowserClient::ShouldRunOutOfProcessSystem
// that can be adequately sandboxed.
// Currently Android's network service will not run out of process or sandboxed,
// so OutOfProcessSystemDnsResolution is not currently enabled on Android.
diff --git a/www/ungoogled-chromium/files/patch-content_public_browser_service__process__host.cc b/www/ungoogled-chromium/files/patch-content_public_browser_service__process__host.cc
index 3c1c972c95d8..700db717128b 100644
--- a/www/ungoogled-chromium/files/patch-content_public_browser_service__process__host.cc
+++ b/www/ungoogled-chromium/files/patch-content_public_browser_service__process__host.cc
@@ -1,6 +1,6 @@
---- content/public/browser/service_process_host.cc.orig 2024-04-23 07:42:17 UTC
+--- content/public/browser/service_process_host.cc.orig 2024-05-23 20:04:36 UTC
+++ content/public/browser/service_process_host.cc
-@@ -76,7 +76,7 @@ ServiceProcessHost::Options& ServiceProcessHost::Optio
+@@ -70,7 +70,7 @@ ServiceProcessHost::Options::WithPreloadedLibraries(
ServiceProcessHost::Options& ServiceProcessHost::Options::WithGpuClient(
base::PassKey<ServiceProcessHostGpuClient> passkey) {
diff --git a/www/ungoogled-chromium/files/patch-content_public_common_content__features.cc b/www/ungoogled-chromium/files/patch-content_public_common_content__features.cc
index f7938b68a9c1..f84c3db1e137 100644
--- a/www/ungoogled-chromium/files/patch-content_public_common_content__features.cc
+++ b/www/ungoogled-chromium/files/patch-content_public_common_content__features.cc
@@ -1,33 +1,27 @@
---- content/public/common/content_features.cc.orig 2024-04-23 07:42:17 UTC
+--- content/public/common/content_features.cc.orig 2024-05-23 20:04:36 UTC
+++ content/public/common/content_features.cc
-@@ -27,7 +27,7 @@ BASE_FEATURE(kAudioServiceOutOfProcess,
- "AudioServiceOutOfProcess",
+@@ -28,7 +28,7 @@ BASE_FEATURE(kAudioServiceOutOfProcess,
// TODO(crbug.com/1052397): Remove !IS_CHROMEOS_LACROS once lacros starts being
// built with OS_CHROMEOS instead of OS_LINUX.
--#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
-+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \
- (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS))
- base::FEATURE_ENABLED_BY_DEFAULT
- #else
-@@ -39,7 +39,7 @@ BASE_FEATURE(kAudioServiceOutOfProcess,
- // kAudioServiceOutOfProcess feature is enabled.
- BASE_FEATURE(kAudioServiceSandbox,
- "AudioServiceSandbox",
--#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA)
-+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
+ #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
+- (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS))
++ (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD))
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
-@@ -1199,7 +1199,7 @@ BASE_FEATURE(kWebAssemblyTiering,
+@@ -1085,9 +1085,9 @@ BASE_FEATURE(kWebAssemblyTiering,
BASE_FEATURE(kWebAssemblyTrapHandler,
"WebAssemblyTrapHandler",
- #if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \
-- BUILDFLAG(IS_MAC)) && \
-+ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD)) && \
- defined(ARCH_CPU_X86_64)) || \
- (BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64))
+ #if ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \
+- BUILDFLAG(IS_MAC)) && \
++ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD)) && \
+ defined(ARCH_CPU_X86_64)) || \
+- ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC)) && \
++ ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD)) && \
+ defined(ARCH_CPU_ARM64))
base::FEATURE_ENABLED_BY_DEFAULT
-@@ -1241,7 +1241,11 @@ BASE_FEATURE(kWebUICodeCache,
+ #else
+@@ -1128,7 +1128,11 @@ BASE_FEATURE(kWebUICodeCache,
// Controls whether the WebUSB API is enabled:
// https://wicg.github.io/webusb
diff --git a/www/ungoogled-chromium/files/patch-content_public_common_content__switches.cc b/www/ungoogled-chromium/files/patch-content_public_common_content__switches.cc
index 84749a2c073f..4f153365d383 100644
--- a/www/ungoogled-chromium/files/patch-content_public_common_content__switches.cc
+++ b/www/ungoogled-chromium/files/patch-content_public_common_content__switches.cc
@@ -1,6 +1,6 @@
---- content/public/common/content_switches.cc.orig 2024-04-23 07:42:17 UTC
+--- content/public/common/content_switches.cc.orig 2024-05-23 20:04:36 UTC
+++ content/public/common/content_switches.cc
-@@ -366,6 +366,8 @@ const char kEnableIsolatedWebAppsInRenderer[] =
+@@ -362,6 +362,8 @@ const char kEnableIsolatedWebAppsInRenderer[] =
// builds.
const char kEnableLogging[] = "enable-logging";
@@ -9,7 +9,7 @@
// Enables the type, downlinkMax attributes of the NetInfo API. Also, enables
// triggering of change attribute of the NetInfo API when there is a change in
// the connection type.
-@@ -1007,7 +1009,7 @@ const char kPreventResizingContentsForTesting[] =
+@@ -993,7 +995,7 @@ const char kPreventResizingContentsForTesting[] =
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-content_public_common_content__switches.h b/www/ungoogled-chromium/files/patch-content_public_common_content__switches.h
index 8a4a940c6759..1363122e9fe1 100644
--- a/www/ungoogled-chromium/files/patch-content_public_common_content__switches.h
+++ b/www/ungoogled-chromium/files/patch-content_public_common_content__switches.h
@@ -1,6 +1,6 @@
---- content/public/common/content_switches.h.orig 2024-04-23 07:42:17 UTC
+--- content/public/common/content_switches.h.orig 2024-05-23 20:04:36 UTC
+++ content/public/common/content_switches.h
-@@ -113,6 +113,7 @@ CONTENT_EXPORT extern const char kEnableGpuMemoryBuffe
+@@ -112,6 +112,7 @@ CONTENT_EXPORT extern const char kEnableGpuMemoryBuffe
CONTENT_EXPORT extern const char kEnableIsolatedWebAppsInRenderer[];
CONTENT_EXPORT extern const char kEnableLCDText[];
CONTENT_EXPORT extern const char kEnableLogging[];
@@ -8,7 +8,7 @@
CONTENT_EXPORT extern const char kEnableNetworkInformationDownlinkMax[];
CONTENT_EXPORT extern const char kEnableCanvas2DLayers[];
CONTENT_EXPORT extern const char kEnablePluginPlaceholderTesting[];
-@@ -268,7 +269,7 @@ CONTENT_EXPORT extern const char kPreventResizingConte
+@@ -266,7 +267,7 @@ CONTENT_EXPORT extern const char kPreventResizingConte
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-content_renderer_media_gpu_gpu__video__accelerator__factories__impl.cc b/www/ungoogled-chromium/files/patch-content_renderer_media_gpu_gpu__video__accelerator__factories__impl.cc
new file mode 100644
index 000000000000..2d5644a7f8d8
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-content_renderer_media_gpu_gpu__video__accelerator__factories__impl.cc
@@ -0,0 +1,11 @@
+--- content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc.orig 2024-05-23 20:04:36 UTC
++++ content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
+@@ -57,7 +57,7 @@ bool UseSingleNV12() {
+ #else
+ static BASE_FEATURE(kUseSingleNV12ForSoftwareGMB,
+ "UseSingleNV12ForSoftwareGMB",
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ base::FEATURE_ENABLED_BY_DEFAULT);
+ #else
+ base::FEATURE_DISABLED_BY_DEFAULT);
diff --git a/www/ungoogled-chromium/files/patch-content_renderer_render__thread__impl.cc b/www/ungoogled-chromium/files/patch-content_renderer_render__thread__impl.cc
index 1c0a0fbfd68b..44cd707ba04e 100644
--- a/www/ungoogled-chromium/files/patch-content_renderer_render__thread__impl.cc
+++ b/www/ungoogled-chromium/files/patch-content_renderer_render__thread__impl.cc
@@ -1,6 +1,6 @@
---- content/renderer/render_thread_impl.cc.orig 2024-04-23 07:42:17 UTC
+--- content/renderer/render_thread_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ content/renderer/render_thread_impl.cc
-@@ -203,6 +203,8 @@
+@@ -206,6 +206,8 @@
#if BUILDFLAG(IS_APPLE)
#include <malloc/malloc.h>
@@ -9,7 +9,7 @@
#else
#include <malloc.h>
#endif
-@@ -996,7 +998,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl:
+@@ -999,7 +1001,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl:
kGpuStreamIdMedia, kGpuStreamPriorityMedia);
const bool enable_video_decode_accelerator =
@@ -18,7 +18,7 @@
base::FeatureList::IsEnabled(media::kVaapiVideoDecodeLinux) &&
#endif // BUILDFLAG(IS_LINUX)
!cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode) &&
-@@ -1005,7 +1007,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl:
+@@ -1008,7 +1010,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl:
gpu::kGpuFeatureStatusEnabled);
const bool enable_video_encode_accelerator =
@@ -27,7 +27,7 @@
base::FeatureList::IsEnabled(media::kVaapiVideoEncodeLinux) &&
#else
!cmd_line->HasSwitch(switches::kDisableAcceleratedVideoEncode) &&
-@@ -1769,7 +1771,7 @@ std::unique_ptr<CodecFactory> RenderThreadImpl::Create
+@@ -1751,7 +1753,7 @@ std::unique_ptr<CodecFactory> RenderThreadImpl::Create
bool enable_video_encode_accelerator) {
mojo::PendingRemote<media::mojom::VideoEncodeAcceleratorProvider>
vea_provider;
diff --git a/www/ungoogled-chromium/files/patch-content_shell_BUILD.gn b/www/ungoogled-chromium/files/patch-content_shell_BUILD.gn
index 271e776f9ab3..8ccac1eeba31 100644
--- a/www/ungoogled-chromium/files/patch-content_shell_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-content_shell_BUILD.gn
@@ -1,6 +1,6 @@
---- content/shell/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- content/shell/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ content/shell/BUILD.gn
-@@ -1061,7 +1061,7 @@ group("content_shell_crash_test") {
+@@ -1054,7 +1054,7 @@ group("content_shell_crash_test") {
if (is_win) {
data_deps += [ "//build/win:copy_cdb_to_output" ]
}
diff --git a/www/ungoogled-chromium/files/patch-content_shell_app_shell__main__delegate.cc b/www/ungoogled-chromium/files/patch-content_shell_app_shell__main__delegate.cc
index 8e6aeb7466b1..9fb18448e54b 100644
--- a/www/ungoogled-chromium/files/patch-content_shell_app_shell__main__delegate.cc
+++ b/www/ungoogled-chromium/files/patch-content_shell_app_shell__main__delegate.cc
@@ -1,6 +1,6 @@
---- content/shell/app/shell_main_delegate.cc.orig 2024-04-23 07:42:17 UTC
+--- content/shell/app/shell_main_delegate.cc.orig 2024-05-23 20:04:36 UTC
+++ content/shell/app/shell_main_delegate.cc
-@@ -283,7 +283,7 @@ void ShellMainDelegate::PreSandboxStartup() {
+@@ -281,7 +281,7 @@ void ShellMainDelegate::PreSandboxStartup() {
// Reporting for sub-processes will be initialized in ZygoteForked.
if (process_type != switches::kZygoteProcess) {
crash_reporter::InitializeCrashpad(process_type.empty(), process_type);
diff --git a/www/ungoogled-chromium/files/patch-content_renderer_render__process__impl.cc b/www/ungoogled-chromium/files/patch-content_shell_renderer_shell__content__renderer__client.cc
index 9dffb196f1e7..405dd7378232 100644
--- a/www/ungoogled-chromium/files/patch-content_renderer_render__process__impl.cc
+++ b/www/ungoogled-chromium/files/patch-content_shell_renderer_shell__content__renderer__client.cc
@@ -1,11 +1,11 @@
---- content/renderer/render_process_impl.cc.orig 2024-02-03 15:42:55 UTC
-+++ content/renderer/render_process_impl.cc
-@@ -44,7 +44,7 @@
- #include "third_party/blink/public/web/web_frame.h"
- #include "v8/include/v8-initialization.h"
+--- content/shell/renderer/shell_content_renderer_client.cc.orig 2024-05-23 20:04:36 UTC
++++ content/shell/renderer/shell_content_renderer_client.cc
+@@ -54,7 +54,7 @@
+ #include "media/base/media_switches.h"
+ #endif
-#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && \
(defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_ARM64))
#define ENABLE_WEB_ASSEMBLY_TRAP_HANDLER_LINUX
- #endif
+ #include "base/debug/stack_trace.h"
diff --git a/www/ungoogled-chromium/files/patch-content_utility_services.cc b/www/ungoogled-chromium/files/patch-content_utility_services.cc
index d239c642fe19..6b99083db21f 100644
--- a/www/ungoogled-chromium/files/patch-content_utility_services.cc
+++ b/www/ungoogled-chromium/files/patch-content_utility_services.cc
@@ -1,4 +1,4 @@
---- content/utility/services.cc.orig 2024-04-23 07:42:17 UTC
+--- content/utility/services.cc.orig 2024-05-23 20:04:36 UTC
+++ content/utility/services.cc
@@ -74,7 +74,7 @@
extern sandbox::TargetServices* g_utility_target_services;
@@ -52,7 +52,7 @@
#if BUILDFLAG(IS_CHROMEOS_ASH)
{
#else
-@@ -407,7 +407,7 @@ auto RunOOPArcVideoAcceleratorFactoryService(
+@@ -384,7 +384,7 @@ auto RunOOPArcVideoAcceleratorFactoryService(
#endif // BUILDFLAG(IS_CHROMEOS_ASH) && (BUILDFLAG(USE_VAAPI) ||
// BUILDFLAG(USE_V4L2_CODEC))
@@ -61,7 +61,7 @@
(BUILDFLAG(USE_VAAPI) || BUILDFLAG(USE_V4L2_CODEC))
auto RunStableVideoDecoderFactoryProcessService(
mojo::PendingReceiver<
-@@ -418,7 +418,7 @@ auto RunStableVideoDecoderFactoryProcessService(
+@@ -395,7 +395,7 @@ auto RunStableVideoDecoderFactoryProcessService(
#endif // (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)) &&
// (BUILDFLAG(USE_VAAPI) || BUILDFLAG(USE_V4L2_CODEC))
@@ -70,7 +70,7 @@
auto RunVideoEncodeAcceleratorProviderFactory(
mojo::PendingReceiver<media::mojom::VideoEncodeAcceleratorProviderFactory>
receiver) {
-@@ -441,7 +441,7 @@ void RegisterIOThreadServices(mojo::ServiceFactory& se
+@@ -418,7 +418,7 @@ void RegisterIOThreadServices(mojo::ServiceFactory& se
// loop of type IO that can get notified when pipes have data.
services.Add(RunNetworkService);
@@ -79,7 +79,7 @@
(BUILDFLAG(USE_VAAPI) || BUILDFLAG(USE_V4L2_CODEC))
if (base::FeatureList::IsEnabled(
features::kRunStableVideoDecoderFactoryProcessServiceOnIOThread)) {
-@@ -493,7 +493,7 @@ void RegisterMainThreadServices(mojo::ServiceFactory&
+@@ -470,7 +470,7 @@ void RegisterMainThreadServices(mojo::ServiceFactory&
#endif // BUILDFLAG(IS_CHROMEOS_ASH) && (BUILDFLAG(USE_VAAPI) ||
// BUILDFLAG(USE_V4L2_CODEC))
@@ -88,7 +88,7 @@
(BUILDFLAG(USE_VAAPI) || BUILDFLAG(USE_V4L2_CODEC))
if (!base::FeatureList::IsEnabled(
features::kRunStableVideoDecoderFactoryProcessServiceOnIOThread)) {
-@@ -502,7 +502,7 @@ void RegisterMainThreadServices(mojo::ServiceFactory&
+@@ -479,7 +479,7 @@ void RegisterMainThreadServices(mojo::ServiceFactory&
#endif // (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)) &&
// (BUILDFLAG(USE_VAAPI) || BUILDFLAG(USE_V4L2_CODEC))
diff --git a/www/ungoogled-chromium/files/patch-content_utility_utility__main.cc b/www/ungoogled-chromium/files/patch-content_utility_utility__main.cc
index 4cf4c0e16f7e..d5fa8851ef72 100644
--- a/www/ungoogled-chromium/files/patch-content_utility_utility__main.cc
+++ b/www/ungoogled-chromium/files/patch-content_utility_utility__main.cc
@@ -1,6 +1,6 @@
---- content/utility/utility_main.cc.orig 2024-04-23 07:42:17 UTC
+--- content/utility/utility_main.cc.orig 2024-05-23 20:04:36 UTC
+++ content/utility/utility_main.cc
-@@ -37,17 +37,21 @@
+@@ -38,17 +38,21 @@
#include "third_party/icu/source/common/unicode/unistr.h"
#include "third_party/icu/source/i18n/unicode/timezone.h"
@@ -23,7 +23,7 @@
#include "services/audio/audio_sandbox_hook_linux.h"
#include "services/network/network_sandbox_hook_linux.h"
// gn check is not smart enough to realize that this include only applies to
-@@ -59,10 +63,15 @@
+@@ -60,10 +64,15 @@
#endif
#endif
@@ -40,7 +40,7 @@
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chromeos/ash/components/assistant/buildflags.h"
#include "chromeos/ash/services/ime/ime_sandbox_hook.h"
-@@ -74,7 +83,7 @@
+@@ -75,7 +84,7 @@
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if (BUILDFLAG(ENABLE_SCREEN_AI_SERVICE) && \
@@ -49,7 +49,7 @@
#include "services/screen_ai/public/cpp/utilities.h" // nogncheck
#include "services/screen_ai/sandbox/screen_ai_sandbox_hook_linux.h" // nogncheck
#endif
-@@ -101,7 +110,7 @@ namespace content {
+@@ -102,7 +111,7 @@ namespace content {
namespace {
@@ -58,7 +58,7 @@
std::vector<std::string> GetNetworkContextsParentDirectories() {
base::MemoryMappedFile::Region region;
base::ScopedFD read_pipe_fd = base::FileDescriptorStore::GetInstance().TakeFD(
-@@ -127,9 +136,10 @@ std::vector<std::string> GetNetworkContextsParentDirec
+@@ -129,9 +138,10 @@ std::vector<std::string> GetNetworkContextsParentDirec
return dirs;
}
@@ -70,7 +70,7 @@
sandbox_type == sandbox::mojom::Sandbox::kHardwareVideoDecoding ||
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
sandbox_type == sandbox::mojom::Sandbox::kHardwareVideoEncoding;
-@@ -144,6 +154,7 @@ bool ShouldUseAmdGpuPolicy(sandbox::mojom::Sandbox san
+@@ -146,6 +156,7 @@ bool ShouldUseAmdGpuPolicy(sandbox::mojom::Sandbox san
return false;
}
@@ -78,16 +78,16 @@
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#if BUILDFLAG(IS_WIN)
-@@ -252,7 +263,8 @@ int UtilityMain(MainFunctionParams parameters) {
+@@ -251,7 +262,8 @@ int UtilityMain(MainFunctionParams parameters) {
}
}
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+// XXX BSD
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && !BUILDFLAG(IS_BSD)
- // Thread type delegate of the process should be registered before
- // first thread type change in ChildProcess constructor.
- // It also needs to be registered before the process has multiple threads,
+ // Thread type delegate of the process should be registered before first
+ // thread type change in ChildProcess constructor. It also needs to be
+ // registered before the process has multiple threads, which may race with
@@ -263,7 +275,7 @@ int UtilityMain(MainFunctionParams parameters) {
}
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
diff --git a/www/ungoogled-chromium/files/patch-content_utility_utility__thread__impl.cc b/www/ungoogled-chromium/files/patch-content_utility_utility__thread__impl.cc
index cc891c19b32f..fa3ac2c704d7 100644
--- a/www/ungoogled-chromium/files/patch-content_utility_utility__thread__impl.cc
+++ b/www/ungoogled-chromium/files/patch-content_utility_utility__thread__impl.cc
@@ -1,6 +1,6 @@
---- content/utility/utility_thread_impl.cc.orig 2024-02-25 20:22:18 UTC
+--- content/utility/utility_thread_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ content/utility/utility_thread_impl.cc
-@@ -32,7 +32,7 @@
+@@ -31,7 +31,7 @@
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/service_factory.h"
@@ -9,7 +9,7 @@
#include "content/child/sandboxed_process_thread_type_handler.h"
#endif
-@@ -252,7 +252,8 @@ void UtilityThreadImpl::Init() {
+@@ -251,7 +251,8 @@ void UtilityThreadImpl::Init() {
GetContentClient()->utility()->UtilityThreadStarted();
diff --git a/www/ungoogled-chromium/files/patch-content_zygote_zygote__linux.cc b/www/ungoogled-chromium/files/patch-content_zygote_zygote__linux.cc
index eb5637599396..dd08790aebaf 100644
--- a/www/ungoogled-chromium/files/patch-content_zygote_zygote__linux.cc
+++ b/www/ungoogled-chromium/files/patch-content_zygote_zygote__linux.cc
@@ -1,4 +1,4 @@
---- content/zygote/zygote_linux.cc.orig 2024-03-22 14:16:19 UTC
+--- content/zygote/zygote_linux.cc.orig 2024-05-23 20:04:36 UTC
+++ content/zygote/zygote_linux.cc
@@ -1,6 +1,7 @@
// Copyright 2012 The Chromium Authors
@@ -8,7 +8,7 @@
#include "content/zygote/zygote_linux.h"
-@@ -717,3 +718,4 @@ void Zygote::HandleReinitializeLoggingRequest(base::Pi
+@@ -720,3 +721,4 @@ void Zygote::HandleReinitializeLoggingRequest(base::Pi
}
} // namespace content
diff --git a/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_dawn__context__provider.cc b/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_dawn__context__provider.cc
index 12ef8dac0ad6..e9cd2e399063 100644
--- a/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_dawn__context__provider.cc
+++ b/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_dawn__context__provider.cc
@@ -1,6 +1,6 @@
---- gpu/command_buffer/service/dawn_context_provider.cc.orig 2024-04-23 07:42:17 UTC
+--- gpu/command_buffer/service/dawn_context_provider.cc.orig 2024-05-23 20:04:36 UTC
+++ gpu/command_buffer/service/dawn_context_provider.cc
-@@ -203,7 +203,7 @@ wgpu::BackendType DawnContextProvider::GetDefaultBacke
+@@ -204,7 +204,7 @@ wgpu::BackendType DawnContextProvider::GetDefaultBacke
return base::FeatureList::IsEnabled(features::kSkiaGraphiteDawnUseD3D12)
? wgpu::BackendType::D3D12
: wgpu::BackendType::D3D11;
diff --git a/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_gles2__cmd__decoder.cc b/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_gles2__cmd__decoder.cc
index 882f1b627785..ed75c574d0fd 100644
--- a/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_gles2__cmd__decoder.cc
+++ b/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_gles2__cmd__decoder.cc
@@ -1,6 +1,6 @@
---- gpu/command_buffer/service/gles2_cmd_decoder.cc.orig 2024-04-23 07:42:17 UTC
+--- gpu/command_buffer/service/gles2_cmd_decoder.cc.orig 2024-05-23 20:04:36 UTC
+++ gpu/command_buffer/service/gles2_cmd_decoder.cc
-@@ -2987,7 +2987,7 @@ GLES2Decoder* GLES2Decoder::Create(
+@@ -2978,7 +2978,7 @@ GLES2Decoder* GLES2Decoder::Create(
}
// Allow linux to run fuzzers.
diff --git a/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_shared__image_shared__image__manager.cc b/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_shared__image_shared__image__manager.cc
index e4f407aff4f2..47ab9928cbca 100644
--- a/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_shared__image_shared__image__manager.cc
+++ b/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_shared__image_shared__image__manager.cc
@@ -1,6 +1,6 @@
---- gpu/command_buffer/service/shared_image/shared_image_manager.cc.orig 2024-04-23 07:42:17 UTC
+--- gpu/command_buffer/service/shared_image/shared_image_manager.cc.orig 2024-05-23 20:04:36 UTC
+++ gpu/command_buffer/service/shared_image/shared_image_manager.cc
-@@ -569,7 +569,7 @@ bool SharedImageManager::SupportsScanoutImages() {
+@@ -572,7 +572,7 @@ bool SharedImageManager::SupportsScanoutImages() {
return true;
#elif BUILDFLAG(IS_ANDROID)
return base::AndroidHardwareBufferCompat::IsSupportAvailable();
diff --git a/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_webgpu__decoder__impl.cc b/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_webgpu__decoder__impl.cc
index 62ea65f7bc4b..c1ebe39a3eb3 100644
--- a/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_webgpu__decoder__impl.cc
+++ b/www/ungoogled-chromium/files/patch-gpu_command__buffer_service_webgpu__decoder__impl.cc
@@ -1,6 +1,6 @@
---- gpu/command_buffer/service/webgpu_decoder_impl.cc.orig 2024-04-23 07:42:17 UTC
+--- gpu/command_buffer/service/webgpu_decoder_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ gpu/command_buffer/service/webgpu_decoder_impl.cc
-@@ -1255,7 +1255,7 @@ void WebGPUDecoderImpl::RequestAdapterImpl(
+@@ -1257,7 +1257,7 @@ void WebGPUDecoderImpl::RequestAdapterImpl(
force_fallback_adapter = true;
}
@@ -9,7 +9,7 @@
if (!shared_context_state_->GrContextIsVulkan() &&
!shared_context_state_->IsGraphiteDawnVulkan() &&
use_webgpu_adapter_ != WebGPUAdapterName::kOpenGLES) {
-@@ -1922,7 +1922,7 @@ WebGPUDecoderImpl::AssociateMailboxDawn(
+@@ -1925,7 +1925,7 @@ WebGPUDecoderImpl::AssociateMailboxDawn(
}
#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_APPLE) && \
diff --git a/www/ungoogled-chromium/files/patch-gpu_ipc_service_gpu__init.cc b/www/ungoogled-chromium/files/patch-gpu_ipc_service_gpu__init.cc
index eaf99f9e3eda..2053ff987b35 100644
--- a/www/ungoogled-chromium/files/patch-gpu_ipc_service_gpu__init.cc
+++ b/www/ungoogled-chromium/files/patch-gpu_ipc_service_gpu__init.cc
@@ -1,6 +1,6 @@
---- gpu/ipc/service/gpu_init.cc.orig 2024-04-23 07:42:17 UTC
+--- gpu/ipc/service/gpu_init.cc.orig 2024-05-23 20:04:36 UTC
+++ gpu/ipc/service/gpu_init.cc
-@@ -391,7 +391,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+@@ -398,7 +398,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
enable_watchdog = false;
#endif
@@ -9,7 +9,7 @@
bool gpu_sandbox_start_early = gpu_preferences_.gpu_sandbox_start_early;
#else // !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS))
// For some reasons MacOSX's VideoToolbox might crash when called after
-@@ -428,7 +428,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+@@ -435,7 +435,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
}
bool attempted_startsandbox = false;
@@ -18,7 +18,7 @@
// On Chrome OS ARM Mali, GPU driver userspace creates threads when
// initializing a GL context, so start the sandbox early.
// TODO(zmo): Need to collect OS version before this.
-@@ -529,7 +529,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+@@ -544,7 +544,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
gpu_preferences_.gr_context_type = GrContextType::kGL;
}
@@ -27,7 +27,7 @@
// The ContentSandboxHelper is currently the only one implementation of
// GpuSandboxHelper and it has no dependency. Except on Linux where
// VaapiWrapper checks the GL implementation to determine which display
-@@ -611,7 +611,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+@@ -626,7 +626,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
command_line, gpu_feature_info_,
gpu_preferences_.disable_software_rasterizer, false);
if (gl_use_swiftshader_) {
@@ -36,7 +36,7 @@
VLOG(1) << "Quit GPU process launch to fallback to SwiftShader cleanly "
<< "on Linux";
return false;
-@@ -767,7 +767,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+@@ -782,7 +782,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
InitializePlatformOverlaySettings(&gpu_info_, gpu_feature_info_);
@@ -45,7 +45,7 @@
// Driver may create a compatibility profile context when collect graphics
// information on Linux platform. Try to collect graphics information
// based on core profile context after disabling platform extensions.
-@@ -822,7 +822,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
+@@ -837,7 +837,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL
}
}
}
@@ -54,7 +54,7 @@
(BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_CHROMEOS_DEVICE))
if (!gl_disabled && !gl_use_swiftshader_ && std::getenv("RUNNING_UNDER_RR")) {
// https://rr-project.org/ is a Linux-only record-and-replay debugger that
-@@ -989,7 +989,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c
+@@ -1025,7 +1025,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c
}
bool gl_disabled = gl::GetGLImplementation() == gl::kGLImplementationDisabled;
@@ -63,7 +63,7 @@
(BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_CHROMEOS_DEVICE))
if (!gl_disabled && !gl_use_swiftshader_ && std::getenv("RUNNING_UNDER_RR")) {
// https://rr-project.org/ is a Linux-only record-and-replay debugger that
-@@ -1049,7 +1049,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c
+@@ -1085,7 +1085,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c
}
}
diff --git a/www/ungoogled-chromium/files/patch-gpu_vulkan_vulkan__util.cc b/www/ungoogled-chromium/files/patch-gpu_vulkan_vulkan__util.cc
index 54f0239c28c1..14e46d1694af 100644
--- a/www/ungoogled-chromium/files/patch-gpu_vulkan_vulkan__util.cc
+++ b/www/ungoogled-chromium/files/patch-gpu_vulkan_vulkan__util.cc
@@ -1,6 +1,6 @@
---- gpu/vulkan/vulkan_util.cc.orig 2024-04-23 07:42:17 UTC
+--- gpu/vulkan/vulkan_util.cc.orig 2024-05-23 20:04:36 UTC
+++ gpu/vulkan/vulkan_util.cc
-@@ -467,7 +467,7 @@ bool CheckVulkanCompatibilities(
+@@ -468,7 +468,7 @@ bool CheckVulkanCompatibilities(
}
}
diff --git a/www/ungoogled-chromium/files/patch-ipc_ipc__message__utils.cc b/www/ungoogled-chromium/files/patch-ipc_ipc__message__utils.cc
index 415572ba73bf..1962c97713c7 100644
--- a/www/ungoogled-chromium/files/patch-ipc_ipc__message__utils.cc
+++ b/www/ungoogled-chromium/files/patch-ipc_ipc__message__utils.cc
@@ -1,6 +1,6 @@
---- ipc/ipc_message_utils.cc.orig 2024-02-25 20:22:18 UTC
+--- ipc/ipc_message_utils.cc.orig 2024-05-23 20:04:36 UTC
+++ ipc/ipc_message_utils.cc
-@@ -394,7 +394,7 @@ void ParamTraits<unsigned int>::Log(const param_type&
+@@ -395,7 +395,7 @@ void ParamTraits<unsigned int>::Log(const param_type&
}
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
diff --git a/www/ungoogled-chromium/files/patch-media_audio_pulse_pulse__util.cc b/www/ungoogled-chromium/files/patch-media_audio_pulse_pulse__util.cc
new file mode 100644
index 000000000000..d6780ab23ce6
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-media_audio_pulse_pulse__util.cc
@@ -0,0 +1,14 @@
+--- media/audio/pulse/pulse_util.cc.orig 2024-05-23 20:04:36 UTC
++++ media/audio/pulse/pulse_util.cc
+@@ -45,7 +45,11 @@ constexpr char kBrowserDisplayName[] = "chromium-brows
+
+ #if defined(DLOPEN_PULSEAUDIO)
+ static const base::FilePath::CharType kPulseLib[] =
++#if BUILDFLAG(IS_BSD)
++ FILE_PATH_LITERAL("libpulse.so");
++#else
+ FILE_PATH_LITERAL("libpulse.so.0");
++#endif
+ #endif
+
+ void DestroyMainloop(pa_threaded_mainloop* mainloop) {
diff --git a/www/ungoogled-chromium/files/patch-media_audio_sndio_audio__manager__sndio.cc b/www/ungoogled-chromium/files/patch-media_audio_sndio_audio__manager__sndio.cc
index 44304f6ecb96..35e8ab80fb77 100644
--- a/www/ungoogled-chromium/files/patch-media_audio_sndio_audio__manager__sndio.cc
+++ b/www/ungoogled-chromium/files/patch-media_audio_sndio_audio__manager__sndio.cc
@@ -1,6 +1,6 @@
---- media/audio/sndio/audio_manager_sndio.cc.orig 2022-10-29 17:50:56 UTC
+--- media/audio/sndio/audio_manager_sndio.cc.orig 2024-05-23 20:04:36 UTC
+++ media/audio/sndio/audio_manager_sndio.cc
-@@ -0,0 +1,181 @@
+@@ -0,0 +1,240 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
@@ -17,18 +17,19 @@
+#include "media/audio/sndio/sndio_input.h"
+#include "media/audio/sndio/sndio_output.h"
+#endif
++#if defined(USE_PULSEAUDIO)
++#include "media/audio/pulse/audio_manager_pulse.h"
++#include "media/audio/pulse/pulse_util.h"
++#endif
++#if defined(USE_ALSA)
++#include "media/audio/alsa/audio_manager_alsa.h"
++#endif
+#include "media/audio/fake_audio_manager.h"
+#include "media/base/limits.h"
+#include "media/base/media_switches.h"
+
+namespace media {
+
-+enum SndioAudioIO {
-+ kPulse,
-+ kSndio,
-+ kAudioIOMax = kSndio
-+};
-+
+#if defined(USE_SNDIO)
+// Maximum number of output streams that can be open simultaneously.
+static const int kMaxOutputStreams = 50;
@@ -36,6 +37,12 @@
+// Default sample rate for input and output streams.
+static const int kDefaultSampleRate = 48000;
+
++#if BUILDFLAG(IS_OPENBSD)
++static const std::string kDefaultAudioBackend = "sndio";
++#else
++static const std::string kDefaultAudioBackend = "auto";
++#endif
++
+void AddDefaultDevice(AudioDeviceNames* device_names) {
+ DCHECK(device_names->empty());
+ device_names->push_front(AudioDeviceName::CreateDefault());
@@ -164,21 +171,73 @@
+ std::unique_ptr<AudioThread> audio_thread,
+ AudioLogFactory* audio_log_factory) {
+ DLOG(WARNING) << "CreateAudioManager";
++ std::string audio_backend = kDefaultAudioBackend;
++
++ std::vector<std::string> kSupportedAudioBackends = {"auto"};
++
++#if defined(USE_SNDIO)
++ kSupportedAudioBackends.push_back(std::string("sndio"));
++#endif
++#if defined(USE_PULSEAUDIO)
++ kSupportedAudioBackends.push_back(std::string("pulse"));
++#endif
++#if defined(USE_ALSA)
++ kSupportedAudioBackends.push_back(std::string("alsa"));
++#endif
++
++ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
++ switches::kAudioBackend)) {
++ audio_backend = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
++ switches::kAudioBackend);
++ }
++
+ // For testing allow audio output to be disabled.
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableAudioOutput)) {
+ return std::make_unique<FakeAudioManager>(std::move(audio_thread),
+ audio_log_factory);
+ }
++
++ if (std::find(std::begin(kSupportedAudioBackends), std::end(kSupportedAudioBackends),
++ audio_backend) == std::end(kSupportedAudioBackends)) {
++ LOG(ERROR) << "Unsupported audio backend specified. Falling back to " << kDefaultAudioBackend;
++ audio_backend = kDefaultAudioBackend;
++ }
++
++#if defined(USE_PULSEAUDIO)
++ pa_threaded_mainloop* pa_mainloop = nullptr;
++ pa_context* pa_context = nullptr;
++ if (audio_backend != "sndio" && pulse::InitPulse(&pa_mainloop, &pa_context)) {
++ return std::make_unique<AudioManagerPulse>(
++ std::move(audio_thread), audio_log_factory, pa_mainloop, pa_context);
++ } else if (audio_backend == "auto") {
++ LOG(WARNING) << "Falling back to SNDIO for audio output. PulseAudio is not "
++ "available or could not be initialized.";
++ }
++#endif
++
+#if defined(USE_SNDIO)
-+ UMA_HISTOGRAM_ENUMERATION("Media.SndioAudioIO", kSndio, kAudioIOMax + 1);
-+ return std::make_unique<AudioManagerSndio>(std::move(audio_thread),
-+ audio_log_factory);
-+#else
-+ return std::make_unique<FakeAudioManager>(std::move(audio_thread),
-+ audio_log_factory);
++ if (audio_backend != "pulse") {
++ return std::make_unique<AudioManagerSndio>(std::move(audio_thread),
++ audio_log_factory);
++ } else if (audio_backend == "auto") {
++ LOG(WARNING) << "Falling back to ALSA audio output. SNDIO is not "
++ "available or could not be initialized.";
++ }
++#endif
++
++#if defined(USE_ALSA)
++ if (audio_backend != "pulse" && audio_backend != "sndio") {
++ return std::make_unique<AudioManagerAlsa>(std::move(audio_thread),
++ audio_log_factory);
++ } else if (audio_backend == "auto") {
++ LOG(WARNING) << "Falling back to fake audio output. ALSA is not "
++ "available or could not be initialized.";
++ }
+#endif
+
++ return std::make_unique<FakeAudioManager>(std::move(audio_thread),
++ audio_log_factory);
+}
+
+} // namespace media
diff --git a/www/ungoogled-chromium/files/patch-media_base_media__switches.cc b/www/ungoogled-chromium/files/patch-media_base_media__switches.cc
index 1a7c6ba7ffe0..4efa53256179 100644
--- a/www/ungoogled-chromium/files/patch-media_base_media__switches.cc
+++ b/www/ungoogled-chromium/files/patch-media_base_media__switches.cc
@@ -1,4 +1,4 @@
---- media/base/media_switches.cc.orig 2024-05-11 05:39:22 UTC
+--- media/base/media_switches.cc.orig 2024-05-23 20:04:36 UTC
+++ media/base/media_switches.cc
@@ -21,7 +21,7 @@
#include "ui/gl/gl_features.h"
@@ -9,7 +9,18 @@
#include "base/cpu.h"
#endif
-@@ -363,8 +363,8 @@ BASE_FEATURE(kMacLoopbackAudioForScreenShare,
+@@ -60,6 +60,10 @@ const char kDisableBackgroundMediaSuspend[] =
+ const char kReportVp9AsAnUnsupportedMimeType[] =
+ "report-vp9-as-an-unsupported-mime-type";
+
++#if BUILDFLAG(IS_BSD)
++const char kAudioBackend[] = "audio-backend";
++#endif
++
+ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FREEBSD) || \
+ BUILDFLAG(IS_SOLARIS)
+ // The Alsa device to use when opening an audio input stream.
+@@ -363,8 +367,8 @@ BASE_FEATURE(kMacLoopbackAudioForScreenShare,
"MacLoopbackAudioForScreenShare",
base::FEATURE_DISABLED_BY_DEFAULT);
#endif // BUILDFLAG(IS_MAC)
@@ -20,16 +31,7 @@
// Enables system audio mirroring using pulseaudio.
BASE_FEATURE(kPulseaudioLoopbackForCast,
"PulseaudioLoopbackForCast",
-@@ -597,7 +597,7 @@ BASE_FEATURE(kUseWritePixelsYUV,
- BASE_FEATURE(kUseMultiPlaneFormatForHardwareVideo,
- "UseMultiPlaneFormatForHardwareVideo",
- #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) || \
-- BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
-+ BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
- base::FEATURE_ENABLED_BY_DEFAULT
- #else
- base::FEATURE_DISABLED_BY_DEFAULT
-@@ -713,7 +713,7 @@ BASE_FEATURE(kFallbackAfterDecodeError,
+@@ -699,7 +703,7 @@ BASE_FEATURE(kFallbackAfterDecodeError,
// Show toolbar button that opens dialog for controlling media sessions.
BASE_FEATURE(kGlobalMediaControls,
"GlobalMediaControls",
@@ -38,7 +40,7 @@
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
-@@ -741,7 +741,7 @@ BASE_FEATURE(kGlobalMediaControlsUpdatedUI,
+@@ -727,7 +731,7 @@ BASE_FEATURE(kGlobalMediaControlsUpdatedUI,
// If enabled, users can request Media Remoting without fullscreen-in-tab.
BASE_FEATURE(kMediaRemotingWithoutFullscreen,
"MediaRemotingWithoutFullscreen",
@@ -47,7 +49,7 @@
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
-@@ -753,7 +753,7 @@ BASE_FEATURE(kMediaRemotingWithoutFullscreen,
+@@ -739,7 +743,7 @@ BASE_FEATURE(kMediaRemotingWithoutFullscreen,
BASE_FEATURE(kGlobalMediaControlsPictureInPicture,
"GlobalMediaControlsPictureInPicture",
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
@@ -56,7 +58,7 @@
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
-@@ -782,7 +782,7 @@ BASE_FEATURE(kUnifiedAutoplay,
+@@ -768,7 +772,7 @@ BASE_FEATURE(kUnifiedAutoplay,
"UnifiedAutoplay",
base::FEATURE_ENABLED_BY_DEFAULT);
@@ -65,16 +67,16 @@
// Enable vaapi video decoding on linux. This is already enabled by default on
// chromeos, but needs an experiment on linux.
BASE_FEATURE(kVaapiVideoDecodeLinux,
-@@ -873,7 +873,7 @@ BASE_FEATURE(kVaapiVp9SModeHWEncoding,
+@@ -859,7 +863,7 @@ BASE_FEATURE(kVaapiVp9SModeHWEncoding,
"VaapiVp9SModeHWEncoding",
- base::FEATURE_DISABLED_BY_DEFAULT);
+ base::FEATURE_ENABLED_BY_DEFAULT);
#endif // defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS)
-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Enables the new V4L2 flat video decoder clients instead of V4L2VideoDecoder.
// Owners: frkoenig@ch40m1um.qjz9zk, mcasas@ch40m1um.qjz9zk
// Expiry: When flat decoders are supported on all platforms and the legacy
-@@ -998,7 +998,7 @@ BASE_FEATURE(kLiveCaptionUseWaitK,
+@@ -989,7 +993,7 @@ BASE_FEATURE(kLiveCaptionUseWaitK,
// Live Caption can be used in multiple languages, as opposed to just English.
BASE_FEATURE(kLiveCaptionMultiLanguage,
"LiveCaptionMultiLanguage",
@@ -83,7 +85,7 @@
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
-@@ -1033,7 +1033,7 @@ BASE_FEATURE(kLiveCaptionSystemWideOnChromeOS,
+@@ -1024,7 +1028,7 @@ BASE_FEATURE(kLiveCaptionSystemWideOnChromeOS,
// Live Translate translates captions generated by Live Caption.
BASE_FEATURE(kLiveTranslate,
"LiveTranslate",
@@ -92,7 +94,7 @@
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
-@@ -1496,7 +1496,7 @@ BASE_FEATURE(kUseGTFOOutOfProcessVideoDecoding,
+@@ -1487,7 +1491,7 @@ BASE_FEATURE(kUseGTFOOutOfProcessVideoDecoding,
base::FEATURE_DISABLED_BY_DEFAULT);
#endif // BUILDFLAG(ALLOW_OOP_VIDEO_DECODER)
diff --git a/www/ungoogled-chromium/files/patch-media_base_media__switches.h b/www/ungoogled-chromium/files/patch-media_base_media__switches.h
index 30204b0dcd77..5e6232dc58c1 100644
--- a/www/ungoogled-chromium/files/patch-media_base_media__switches.h
+++ b/www/ungoogled-chromium/files/patch-media_base_media__switches.h
@@ -1,6 +1,17 @@
---- media/base/media_switches.h.orig 2024-04-23 07:42:17 UTC
+--- media/base/media_switches.h.orig 2024-05-23 20:04:36 UTC
+++ media/base/media_switches.h
-@@ -315,7 +315,7 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kPlatformHEVCEncoder
+@@ -43,6 +43,10 @@ MEDIA_EXPORT extern const char kDisableBackgroundMedia
+
+ MEDIA_EXPORT extern const char kReportVp9AsAnUnsupportedMimeType[];
+
++#if BUILDFLAG(IS_BSD)
++MEDIA_EXPORT extern const char kAudioBackend[];
++#endif
++
+ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FREEBSD) || \
+ BUILDFLAG(IS_SOLARIS)
+ MEDIA_EXPORT extern const char kAlsaInputDevice[];
+@@ -314,7 +318,7 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kPlatformHEVCEncoder
MEDIA_EXPORT BASE_DECLARE_FEATURE(kPlaybackSpeedButton);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kPreloadMediaEngagementData);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kPreloadMetadataSuspend);
@@ -9,7 +20,7 @@
MEDIA_EXPORT BASE_DECLARE_FEATURE(kPulseaudioLoopbackForCast);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kPulseaudioLoopbackForScreenShare);
#endif // BUILDFLAG(IS_LINUX)
-@@ -333,7 +333,7 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kUnifiedAutoplay);
+@@ -332,7 +336,7 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kUnifiedAutoplay);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kUseAndroidOverlayForSecureOnly);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kUseDecoderStreamForWebRTC);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kUseFakeDeviceForMediaStream);
@@ -18,7 +29,7 @@
MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiVideoDecodeLinux);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiVideoDecodeLinuxGL);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiVideoEncodeLinux);
-@@ -352,7 +352,7 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiH264TemporalLa
+@@ -351,7 +355,7 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiH264TemporalLa
MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiVp8TemporalLayerHWEncoding);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kVaapiVp9SModeHWEncoding);
#endif // defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS)
@@ -27,7 +38,7 @@
MEDIA_EXPORT BASE_DECLARE_FEATURE(kV4L2FlatVideoDecoder);
MEDIA_EXPORT BASE_DECLARE_FEATURE(kV4L2FlatStatefulVideoDecoder);
#endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
-@@ -491,7 +491,7 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kUseOutOfProcessVide
+@@ -490,7 +494,7 @@ MEDIA_EXPORT BASE_DECLARE_FEATURE(kUseOutOfProcessVide
MEDIA_EXPORT BASE_DECLARE_FEATURE(kUseGTFOOutOfProcessVideoDecoding);
#endif // BUILDFLAG(ALLOW_OOP_VIDEO_DECODER)
diff --git a/www/ungoogled-chromium/files/patch-media_base_video__frame.cc b/www/ungoogled-chromium/files/patch-media_base_video__frame.cc
index 879a17aa8862..229ff401b3f0 100644
--- a/www/ungoogled-chromium/files/patch-media_base_video__frame.cc
+++ b/www/ungoogled-chromium/files/patch-media_base_video__frame.cc
@@ -1,4 +1,4 @@
---- media/base/video_frame.cc.orig 2024-04-23 07:42:17 UTC
+--- media/base/video_frame.cc.orig 2024-05-23 20:04:36 UTC
+++ media/base/video_frame.cc
@@ -80,7 +80,7 @@ std::string VideoFrame::StorageTypeToString(
return "OWNED_MEMORY";
@@ -27,7 +27,7 @@
// This class allows us to embed a vector<ScopedFD> into a scoped_refptr, and
// thus to have several VideoFrames share the same set of DMABUF FDs.
class VideoFrame::DmabufHolder
-@@ -636,7 +636,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapExternalGpuM
+@@ -712,7 +712,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapExternalGpuM
for (size_t i = 0; i < num_planes; ++i)
planes[i].stride = gpu_memory_buffer->stride(i);
uint64_t modifier = gfx::NativePixmapHandle::kNoModifier;
@@ -36,7 +36,7 @@
if (gpu_memory_buffer->GetType() == gfx::NATIVE_PIXMAP) {
const auto gmb_handle = gpu_memory_buffer->CloneHandle();
if (gmb_handle.is_null() ||
-@@ -682,7 +682,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapExternalGpuM
+@@ -758,7 +758,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapExternalGpuM
return frame;
}
@@ -45,7 +45,7 @@
// static
scoped_refptr<VideoFrame> VideoFrame::WrapExternalDmabufs(
const VideoFrameLayout& layout,
-@@ -901,7 +901,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapVideoFrame(
+@@ -977,7 +977,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapVideoFrame(
}
}
@@ -54,8 +54,8 @@
DCHECK(frame->dmabuf_fds_);
// If there are any |dmabuf_fds_| plugged in, we should refer them too.
wrapping_frame->dmabuf_fds_ = frame->dmabuf_fds_;
-@@ -1345,7 +1345,7 @@ const gpu::MailboxHolder& VideoFrame::mailbox_holder(
- : mailbox_holders_[texture_index];
+@@ -1435,7 +1435,7 @@ scoped_refptr<gpu::ClientSharedImage> VideoFrame::shar
+ : shared_images_[texture_index];
}
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
@@ -63,7 +63,7 @@
size_t VideoFrame::NumDmabufFds() const {
return dmabuf_fds_->size();
}
-@@ -1462,7 +1462,7 @@ VideoFrame::VideoFrame(const VideoFrameLayout& layout,
+@@ -1552,7 +1552,7 @@ VideoFrame::VideoFrame(const VideoFrameLayout& layout,
storage_type_(storage_type),
visible_rect_(Intersection(visible_rect, gfx::Rect(layout.coded_size()))),
natural_size_(natural_size),
diff --git a/www/ungoogled-chromium/files/patch-media_base_video__frame.h b/www/ungoogled-chromium/files/patch-media_base_video__frame.h
index 2ff429c047a6..db5bbffff7da 100644
--- a/www/ungoogled-chromium/files/patch-media_base_video__frame.h
+++ b/www/ungoogled-chromium/files/patch-media_base_video__frame.h
@@ -1,6 +1,6 @@
---- media/base/video_frame.h.orig 2024-04-23 07:42:17 UTC
+--- media/base/video_frame.h.orig 2024-05-23 20:04:36 UTC
+++ media/base/video_frame.h
-@@ -44,7 +44,7 @@
+@@ -45,7 +45,7 @@
#include "base/apple/scoped_cftyperef.h"
#endif // BUILDFLAG(IS_APPLE)
@@ -9,7 +9,7 @@
#include "base/files/scoped_file.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
-@@ -110,7 +110,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
+@@ -111,7 +111,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
STORAGE_UNOWNED_MEMORY = 2, // External, non owned data pointers.
STORAGE_OWNED_MEMORY = 3, // VideoFrame has allocated its own data buffer.
STORAGE_SHMEM = 4, // Backed by read-only shared memory.
@@ -18,7 +18,7 @@
// TODO(mcasas): Consider turning this type into STORAGE_NATIVE
// based on the idea of using this same enum value for both DMA
// buffers on Linux and CVPixelBuffers on Mac (which currently use
-@@ -313,7 +313,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
+@@ -340,7 +340,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
ReleaseMailboxAndGpuMemoryBufferCB mailbox_holder_and_gmb_release_cb,
base::TimeDelta timestamp);
@@ -27,16 +27,16 @@
// Wraps provided dmabufs
// (https://www.kernel.org/doc/html/latest/driver-api/dma-buf.html) with a
// VideoFrame. The frame will take ownership of |dmabuf_fds|, and will
-@@ -598,7 +598,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
- // mailbox, the caller must wait for the included sync point.
- const gpu::MailboxHolder& mailbox_holder(size_t texture_index) const;
+@@ -635,7 +635,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
+ scoped_refptr<gpu::ClientSharedImage> shared_image(
+ size_t texture_index) const;
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
// The number of DmaBufs will be equal or less than the number of planes of
// the frame. If there are less, this means that the last FD contains the
// remaining planes. Should be > 0 for STORAGE_DMABUFS.
-@@ -816,7 +816,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
+@@ -864,7 +864,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
// GPU memory buffer, if this frame is STORAGE_GPU_MEMORY_BUFFER.
std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer_;
diff --git a/www/ungoogled-chromium/files/patch-media_capture_video_video__capture__device__client.cc b/www/ungoogled-chromium/files/patch-media_capture_video_video__capture__device__client.cc
index 9313bfa30d39..c86d2eb75be4 100644
--- a/www/ungoogled-chromium/files/patch-media_capture_video_video__capture__device__client.cc
+++ b/www/ungoogled-chromium/files/patch-media_capture_video_video__capture__device__client.cc
@@ -1,6 +1,6 @@
---- media/capture/video/video_capture_device_client.cc.orig 2024-04-23 07:42:17 UTC
+--- media/capture/video/video_capture_device_client.cc.orig 2024-05-23 20:04:36 UTC
+++ media/capture/video/video_capture_device_client.cc
-@@ -151,7 +151,7 @@ FourccAndFlip GetFourccAndFlipFromPixelFormat(
+@@ -154,7 +154,7 @@ FourccAndFlip GetFourccAndFlipFromPixelFormat(
CHECK(!is_width_odd && !is_height_odd);
return {libyuv::FOURCC_UYVY};
case media::PIXEL_FORMAT_RGB24:
diff --git a/www/ungoogled-chromium/files/patch-third__party_ffmpeg_chromium_scripts_build__ffmpeg.py b/www/ungoogled-chromium/files/patch-media_ffmpeg_scripts_build__ffmpeg.py
index 612e37f98f30..ed41d729d13b 100644
--- a/www/ungoogled-chromium/files/patch-third__party_ffmpeg_chromium_scripts_build__ffmpeg.py
+++ b/www/ungoogled-chromium/files/patch-media_ffmpeg_scripts_build__ffmpeg.py
@@ -1,6 +1,6 @@
---- third_party/ffmpeg/chromium/scripts/build_ffmpeg.py.orig 2024-04-23 07:42:17 UTC
-+++ third_party/ffmpeg/chromium/scripts/build_ffmpeg.py
-@@ -32,7 +32,7 @@ NDK_ROOT_DIR = os.path.abspath(
+--- media/ffmpeg/scripts/build_ffmpeg.py.orig 2024-05-23 20:04:36 UTC
++++ media/ffmpeg/scripts/build_ffmpeg.py
+@@ -33,7 +33,7 @@ NDK_ROOT_DIR = os.path.abspath(
SUCCESS_TOKEN = 'THIS_BUILD_WORKED'
sys.path.append(os.path.join(CHROMIUM_ROOT_DIR, 'build'))
@@ -9,7 +9,7 @@
BRANDINGS = [
'Chrome',
-@@ -43,6 +43,8 @@ BRANDINGS = [
+@@ -44,6 +44,8 @@ BRANDINGS = [
ARCH_MAP = {
'android': ['ia32', 'x64', 'arm-neon', 'arm64'],
'linux': ['ia32', 'x64', 'noasm-x64', 'arm', 'arm-neon', 'arm64'],
@@ -18,7 +18,7 @@
'mac': ['x64', 'arm64'],
'win': ['ia32', 'x64', 'arm64'],
}
-@@ -122,7 +124,7 @@ def PrintAndCheckCall(argv, *args, **kwargs):
+@@ -123,7 +125,7 @@ def PrintAndCheckCall(argv, *args, **kwargs):
def GetDsoName(target_os, dso_name, dso_version):
@@ -27,7 +27,7 @@
return 'lib%s.so.%s' % (dso_name, dso_version)
elif target_os == 'mac':
return 'lib%s.%s.dylib' % (dso_name, dso_version)
-@@ -474,7 +476,7 @@ def BuildFFmpeg(target_os, target_arch, host_os, host_
+@@ -476,7 +478,7 @@ def BuildFFmpeg(target_os, target_arch, host_os, host_
# removing <sys/sysctl.h> soon, so this is needed to silence a deprecation
# #warning which will be converted to an error via -Werror.
# There is also no prctl.h
@@ -36,7 +36,7 @@
pre_make_rewrites += [
(r'(#define HAVE_SYSCTL [01])',
r'#define HAVE_SYSCTL 0 /* \1 -- forced to 0 for Fuchsia */'),
-@@ -597,7 +599,7 @@ def main(argv):
+@@ -599,7 +601,7 @@ def main(argv):
configure_args = args[2:]
if target_os not in ('android', 'linux', 'linux-noasm', 'mac', 'win',
@@ -45,7 +45,15 @@
parser.print_help()
return 1
-@@ -710,7 +712,7 @@ def ConfigureAndBuild(target_arch, target_os, host_os,
+@@ -672,7 +674,6 @@ def ConfigureAndBuild(target_arch, target_os, host_os,
+ '--disable-securetransport',
+ '--disable-faan',
+ '--disable-alsa',
+- '--disable-iamf',
+
+ # Disable automatically detected external libraries. This prevents
+ # automatic inclusion of things like hardware decoders. Each roll should
+@@ -713,7 +714,7 @@ def ConfigureAndBuild(target_arch, target_os, host_os,
'--optflags="-O2"',
])
@@ -54,17 +62,16 @@
if target_arch == 'x64':
if target_os == 'android':
configure_flags['Common'].extend([
-@@ -825,9 +827,6 @@ def ConfigureAndBuild(target_arch, target_os, host_os,
-
+@@ -829,8 +830,6 @@ def ConfigureAndBuild(target_arch, target_os, host_os,
configure_flags['Common'].extend([
'--target-os=linux',
-- '--sysroot=' +
+ '--sysroot=' +
- os.path.join(CHROMIUM_ROOT_DIR,
- 'build/linux/debian_bullseye_arm64-sysroot'),
# See crbug.com/1467681. These could be removed eventually
'--disable-dotprod',
'--disable-i8mm',
-@@ -1031,7 +1030,7 @@ def ConfigureAndBuild(target_arch, target_os, host_os,
+@@ -1034,7 +1033,7 @@ def ConfigureAndBuild(target_arch, target_os, host_os,
'Chrome', configure_flags['Common'] +
configure_flags['ChromeAndroid'] + configure_args)
diff --git a/www/ungoogled-chromium/files/patch-third__party_ffmpeg_chromium_scripts_robo__lib_config.py b/www/ungoogled-chromium/files/patch-media_ffmpeg_scripts_robo__lib_config.py
index 74d8d165b23f..219c203b4d9c 100644
--- a/www/ungoogled-chromium/files/patch-third__party_ffmpeg_chromium_scripts_robo__lib_config.py
+++ b/www/ungoogled-chromium/files/patch-media_ffmpeg_scripts_robo__lib_config.py
@@ -1,6 +1,6 @@
---- third_party/ffmpeg/chromium/scripts/robo_lib/config.py.orig 2024-04-23 07:42:17 UTC
-+++ third_party/ffmpeg/chromium/scripts/robo_lib/config.py
-@@ -51,18 +51,12 @@ class RoboConfiguration:
+--- media/ffmpeg/scripts/robo_lib/config.py.orig 2024-05-23 20:04:36 UTC
++++ media/ffmpeg/scripts/robo_lib/config.py
+@@ -54,19 +54,13 @@ class RoboConfiguration:
self._llvm_path = os.path.join(self.chrome_src(), "third_party",
"llvm-build", "Release+Asserts", "bin")
@@ -9,17 +9,18 @@
self.EnsureFFmpegHome()
self.EnsureASANConfig()
- self.ComputeBranchName()
+
if not quiet:
shell.log(f"Using chrome src: {self.chrome_src()}")
shell.log(f"Using script dir: {self._script_directory}")
- shell.log(f"Using ffmpeg home:{self.ffmpeg_home()}")
+ shell.log(f"Using ffmpeg home: {self.ffmpeg_home()}")
- shell.log(f"On branch: {self.branch_name()}")
- if self.sushi_branch_name():
- shell.log(f"On sushi branch: {self.sushi_branch_name()}")
# Filename that we'll ask generate_gn.py to write git commands to.
# TODO: Should this use script_directory, or stay with ffmpeg? As long as
-@@ -155,9 +149,9 @@ class RoboConfiguration:
+@@ -179,9 +173,9 @@ class RoboConfiguration:
if re.match(r"i.86", platform.machine()):
self._host_architecture = "ia32"
@@ -31,7 +32,7 @@
self._host_architecture = "arm64"
elif platform.machine() == "mips32":
self._host_architecture = "mipsel"
-@@ -192,6 +186,10 @@ class RoboConfiguration:
+@@ -216,6 +210,10 @@ class RoboConfiguration:
elif platform.system() == "Windows" or "CYGWIN_NT" in platform.system(
):
self._host_operating_system = "win"
@@ -42,7 +43,7 @@
else:
raise ValueError(f"Unsupported platform: {platform.system()}")
-@@ -200,8 +198,8 @@ class RoboConfiguration:
+@@ -224,8 +222,8 @@ class RoboConfiguration:
wd = os.getcwd()
# Walk up the tree until we find src/AUTHORS
while wd != "/":
diff --git a/www/ungoogled-chromium/files/patch-media_gpu_chromeos_libyuv__image__processor__backend.cc b/www/ungoogled-chromium/files/patch-media_gpu_chromeos_libyuv__image__processor__backend.cc
index da431ed1c374..39bf70bc0337 100644
--- a/www/ungoogled-chromium/files/patch-media_gpu_chromeos_libyuv__image__processor__backend.cc
+++ b/www/ungoogled-chromium/files/patch-media_gpu_chromeos_libyuv__image__processor__backend.cc
@@ -1,4 +1,4 @@
---- media/gpu/chromeos/libyuv_image_processor_backend.cc.orig 2024-04-23 07:42:17 UTC
+--- media/gpu/chromeos/libyuv_image_processor_backend.cc.orig 2024-05-23 20:04:36 UTC
+++ media/gpu/chromeos/libyuv_image_processor_backend.cc
@@ -48,7 +48,7 @@ static constexpr struct {
#define CONV(in, out, trans, result) \
@@ -9,7 +9,7 @@
CONV(NV12, AR24, kConversion, Supported),
#endif
CONV(NV12, NV12, kConversion, Supported),
-@@ -436,7 +436,7 @@ int LibYUVImageProcessorBackend::DoConversion(const Fr
+@@ -410,7 +410,7 @@ int LibYUVImageProcessorBackend::DoConversion(const Fr
fr->GetWritableVisibleData(VideoFrame::kUVPlane)), \
fr->stride(VideoFrame::kUVPlane)
@@ -18,7 +18,7 @@
#define ARGB_DATA(fr) \
fr->GetWritableVisibleData(VideoFrame::kARGBPlane), \
fr->stride(VideoFrame::kARGBPlane)
-@@ -597,7 +597,7 @@ int LibYUVImageProcessorBackend::DoConversion(const Fr
+@@ -571,7 +571,7 @@ int LibYUVImageProcessorBackend::DoConversion(const Fr
}
}
diff --git a/www/ungoogled-chromium/files/patch-media_gpu_chromeos_mailbox__video__frame__converter.cc b/www/ungoogled-chromium/files/patch-media_gpu_chromeos_mailbox__video__frame__converter.cc
index dbdf48a08bba..7d822a0529d6 100644
--- a/www/ungoogled-chromium/files/patch-media_gpu_chromeos_mailbox__video__frame__converter.cc
+++ b/www/ungoogled-chromium/files/patch-media_gpu_chromeos_mailbox__video__frame__converter.cc
@@ -1,6 +1,6 @@
---- media/gpu/chromeos/mailbox_video_frame_converter.cc.orig 2024-04-23 07:42:17 UTC
+--- media/gpu/chromeos/mailbox_video_frame_converter.cc.orig 2024-05-23 20:04:36 UTC
+++ media/gpu/chromeos/mailbox_video_frame_converter.cc
-@@ -63,7 +63,7 @@ viz::SharedImageFormat GetSharedImageFormat(gfx::Buffe
+@@ -65,7 +65,7 @@ viz::SharedImageFormat GetSharedImageFormat(gfx::Buffe
<< static_cast<int>(buffer_format);
NOTREACHED_NORETURN();
}
diff --git a/www/ungoogled-chromium/files/patch-media_gpu_chromeos_platform__video__frame__utils.cc b/www/ungoogled-chromium/files/patch-media_gpu_chromeos_platform__video__frame__utils.cc
index d17aebfe1c3f..6497a7fd1cc9 100644
--- a/www/ungoogled-chromium/files/patch-media_gpu_chromeos_platform__video__frame__utils.cc
+++ b/www/ungoogled-chromium/files/patch-media_gpu_chromeos_platform__video__frame__utils.cc
@@ -1,4 +1,4 @@
---- media/gpu/chromeos/platform_video_frame_utils.cc.orig 2024-04-23 07:42:17 UTC
+--- media/gpu/chromeos/platform_video_frame_utils.cc.orig 2024-05-23 20:04:36 UTC
+++ media/gpu/chromeos/platform_video_frame_utils.cc
@@ -68,7 +68,7 @@ static std::unique_ptr<ui::GbmDevice> CreateGbmDevice(
const base::FilePath dev_path(FILE_PATH_LITERAL(
@@ -18,7 +18,7 @@
false;
#endif
if (is_intel_media_compression_enabled) {
-@@ -347,7 +347,7 @@ scoped_refptr<VideoFrame> CreateVideoFrameFromGpuMemor
+@@ -349,7 +349,7 @@ scoped_refptr<VideoFrame> CreateVideoFrameFromGpuMemor
const bool is_intel_media_compression_enabled =
#if BUILDFLAG(IS_CHROMEOS)
base::FeatureList::IsEnabled(features::kEnableIntelMediaCompression);
diff --git a/www/ungoogled-chromium/files/patch-media_gpu_chromeos_video__decoder__pipeline.cc b/www/ungoogled-chromium/files/patch-media_gpu_chromeos_video__decoder__pipeline.cc
index 7a322913a12f..64333d63c165 100644
--- a/www/ungoogled-chromium/files/patch-media_gpu_chromeos_video__decoder__pipeline.cc
+++ b/www/ungoogled-chromium/files/patch-media_gpu_chromeos_video__decoder__pipeline.cc
@@ -1,4 +1,4 @@
---- media/gpu/chromeos/video_decoder_pipeline.cc.orig 2024-04-23 07:42:17 UTC
+--- media/gpu/chromeos/video_decoder_pipeline.cc.orig 2024-05-23 20:04:36 UTC
+++ media/gpu/chromeos/video_decoder_pipeline.cc
@@ -1038,7 +1038,7 @@ VideoDecoderPipeline::PickDecoderOutputFormat(
}
@@ -9,21 +9,21 @@
// Linux should always use a custom allocator (to allocate buffers using
// libva) and a PlatformVideoFramePool.
CHECK(allocator.has_value());
-@@ -1048,7 +1048,7 @@ VideoDecoderPipeline::PickDecoderOutputFormat(
- // to create NativePixmap-backed frames.
+@@ -1047,7 +1047,7 @@ VideoDecoderPipeline::PickDecoderOutputFormat(
+ // VideoFrame::StorageType of VideoFrame::STORAGE_DMABUFS.
main_frame_pool_->AsPlatformVideoFramePool()->SetCustomFrameAllocator(
- *allocator, VideoFrame::STORAGE_GPU_MEMORY_BUFFER);
+ *allocator, VideoFrame::STORAGE_DMABUFS);
-#elif BUILDFLAG(IS_LINUX) && BUILDFLAG(USE_V4L2_CODEC)
+#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && BUILDFLAG(USE_V4L2_CODEC)
// Linux w/ V4L2 should not use a custom allocator
// Only tested with video_decode_accelerator_tests
// TODO(wenst@) Test with full Chromium Browser
-@@ -1206,7 +1206,7 @@ VideoDecoderPipeline::PickDecoderOutputFormat(
+@@ -1205,7 +1205,7 @@ VideoDecoderPipeline::PickDecoderOutputFormat(
<< " VideoFrames";
auxiliary_frame_pool_->set_parent_task_runner(decoder_task_runner_);
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- // TODO(nhebert): Change the storage type argument when |allocator| switches
- // to create NativePixmap-backed frames.
+ // The custom allocator creates frames backed by NativePixmap, which uses a
+ // VideoFrame::StorageType of VideoFrame::STORAGE_DMABUFS.
auxiliary_frame_pool_->AsPlatformVideoFramePool()->SetCustomFrameAllocator(
diff --git a/www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__video__decoder.cc b/www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__video__decoder.cc
index b658f56f95ab..71f843adfdd6 100644
--- a/www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__video__decoder.cc
+++ b/www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__video__decoder.cc
@@ -1,6 +1,6 @@
---- media/gpu/vaapi/vaapi_video_decoder.cc.orig 2024-04-23 07:42:17 UTC
+--- media/gpu/vaapi/vaapi_video_decoder.cc.orig 2024-05-23 20:04:36 UTC
+++ media/gpu/vaapi/vaapi_video_decoder.cc
-@@ -780,7 +780,7 @@ void VaapiVideoDecoder::ApplyResolutionChangeWithScree
+@@ -774,7 +774,7 @@ void VaapiVideoDecoder::ApplyResolutionChangeWithScree
const gfx::Size decoder_natural_size =
aspect_ratio_.GetNaturalSize(decoder_visible_rect);
diff --git a/www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__wrapper.cc b/www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__wrapper.cc
index 012288a1391c..773a2593c0fb 100644
--- a/www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__wrapper.cc
+++ b/www/ungoogled-chromium/files/patch-media_gpu_vaapi_vaapi__wrapper.cc
@@ -1,6 +1,6 @@
---- media/gpu/vaapi/vaapi_wrapper.cc.orig 2024-03-22 14:16:19 UTC
+--- media/gpu/vaapi/vaapi_wrapper.cc.orig 2024-05-23 20:04:36 UTC
+++ media/gpu/vaapi/vaapi_wrapper.cc
-@@ -67,7 +67,7 @@
+@@ -70,7 +70,7 @@
using media_gpu_vaapi::kModuleVa_prot;
#endif
diff --git a/www/ungoogled-chromium/files/patch-media_media__options.gni b/www/ungoogled-chromium/files/patch-media_media__options.gni
index e243d9b79ec9..21c41d2fa9c7 100644
--- a/www/ungoogled-chromium/files/patch-media_media__options.gni
+++ b/www/ungoogled-chromium/files/patch-media_media__options.gni
@@ -1,4 +1,4 @@
---- media/media_options.gni.orig 2024-02-25 20:22:18 UTC
+--- media/media_options.gni.orig 2024-05-23 20:04:36 UTC
+++ media/media_options.gni
@@ -190,12 +190,15 @@ declare_args() {
# Enables runtime selection of ALSA library for audio.
@@ -17,14 +17,3 @@
(!is_castos || (target_cpu == "x86" || target_cpu == "x64") ||
is_cast_audio_only)) {
use_alsa = true
-@@ -211,6 +214,10 @@ declare_args() {
- if (!use_cras && !is_castos && !is_asan && !is_tsan) {
- use_pulseaudio = true
- }
-+ }
-+ if (is_openbsd) {
-+ use_sndio = true
-+ use_pulseaudio = false
- }
- }
-
diff --git a/www/ungoogled-chromium/files/patch-media_video_gpu__memory__buffer__video__frame__pool.cc b/www/ungoogled-chromium/files/patch-media_video_gpu__memory__buffer__video__frame__pool.cc
index ee9275a0ac0e..66bae0f7314b 100644
--- a/www/ungoogled-chromium/files/patch-media_video_gpu__memory__buffer__video__frame__pool.cc
+++ b/www/ungoogled-chromium/files/patch-media_video_gpu__memory__buffer__video__frame__pool.cc
@@ -1,6 +1,6 @@
---- media/video/gpu_memory_buffer_video_frame_pool.cc.orig 2024-04-23 07:42:17 UTC
+--- media/video/gpu_memory_buffer_video_frame_pool.cc.orig 2024-05-23 20:04:36 UTC
+++ media/video/gpu_memory_buffer_video_frame_pool.cc
-@@ -803,7 +803,7 @@ void GpuMemoryBufferVideoFramePool::PoolImpl::CreateHa
+@@ -802,7 +802,7 @@ void GpuMemoryBufferVideoFramePool::PoolImpl::CreateHa
}
bool is_software_backed_video_frame = !video_frame->HasTextures();
@@ -9,7 +9,7 @@
is_software_backed_video_frame &= !video_frame->HasDmaBufs();
#endif
-@@ -1285,7 +1285,7 @@ scoped_refptr<VideoFrame> GpuMemoryBufferVideoFramePoo
+@@ -1284,7 +1284,7 @@ scoped_refptr<VideoFrame> GpuMemoryBufferVideoFramePoo
}
#endif
@@ -18,7 +18,7 @@
is_webgpu_compatible = (gpu_memory_buffer != nullptr);
if (is_webgpu_compatible) {
is_webgpu_compatible &=
-@@ -1306,7 +1306,7 @@ scoped_refptr<VideoFrame> GpuMemoryBufferVideoFramePoo
+@@ -1303,7 +1303,7 @@ scoped_refptr<VideoFrame> GpuMemoryBufferVideoFramePoo
gpu::SHARED_IMAGE_USAGE_DISPLAY_READ |
gpu::SHARED_IMAGE_USAGE_SCANOUT;
diff --git a/www/ungoogled-chromium/files/patch-media_webrtc_helpers.cc b/www/ungoogled-chromium/files/patch-media_webrtc_helpers.cc
index 581d31d44a8d..2df54709543f 100644
--- a/www/ungoogled-chromium/files/patch-media_webrtc_helpers.cc
+++ b/www/ungoogled-chromium/files/patch-media_webrtc_helpers.cc
@@ -1,4 +1,4 @@
---- media/webrtc/helpers.cc.orig 2024-04-23 07:42:17 UTC
+--- media/webrtc/helpers.cc.orig 2024-05-23 20:04:36 UTC
+++ media/webrtc/helpers.cc
@@ -41,14 +41,14 @@ void ConfigAutomaticGainControl(const AudioProcessingS
return;
@@ -15,5 +15,5 @@
- BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
+ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
// Use AGC2 digital and input volume controller.
- // TODO(crbug.com/1375239): Remove `kWebRtcAllowInputVolumeAdjustment` safely.
- if (kInputVolumeAdjustmentOverrideAllowed &&
+ // TODO(crbug.com/1375239): Remove `kWebRtcAllowInputVolumeAdjustment` safely
+ // and set `input_volume_controller.enabled` true.
diff --git a/www/ungoogled-chromium/files/patch-mojo_core_channel.cc b/www/ungoogled-chromium/files/patch-mojo_core_channel.cc
index 625cee8ee3b0..2f3a57f427d0 100644
--- a/www/ungoogled-chromium/files/patch-mojo_core_channel.cc
+++ b/www/ungoogled-chromium/files/patch-mojo_core_channel.cc
@@ -1,6 +1,6 @@
---- mojo/core/channel.cc.orig 2023-03-10 11:01:21 UTC
+--- mojo/core/channel.cc.orig 2024-05-23 20:04:36 UTC
+++ mojo/core/channel.cc
-@@ -75,7 +75,11 @@ const size_t kMaxUnusedReadBufferCapacity = 4096;
+@@ -70,7 +70,11 @@ const size_t kMaxUnusedReadBufferCapacity = 4096;
// Fuchsia: The zx_channel_write() API supports up to 64 handles.
const size_t kMaxAttachedHandles = 64;
diff --git a/www/ungoogled-chromium/files/patch-mojo_public_tools_bindings_mojom.gni b/www/ungoogled-chromium/files/patch-mojo_public_tools_bindings_mojom.gni
index 58038ad0783d..0b932f1bc090 100644
--- a/www/ungoogled-chromium/files/patch-mojo_public_tools_bindings_mojom.gni
+++ b/www/ungoogled-chromium/files/patch-mojo_public_tools_bindings_mojom.gni
@@ -1,6 +1,6 @@
---- mojo/public/tools/bindings/mojom.gni.orig 2024-04-23 07:42:17 UTC
+--- mojo/public/tools/bindings/mojom.gni.orig 2024-05-23 20:04:36 UTC
+++ mojo/public/tools/bindings/mojom.gni
-@@ -748,6 +748,16 @@ template("mojom") {
+@@ -741,6 +741,16 @@ template("mojom") {
enabled_features += [ "is_apple" ]
}
diff --git a/www/ungoogled-chromium/files/patch-net_BUILD.gn b/www/ungoogled-chromium/files/patch-net_BUILD.gn
index 892683200692..692cce6e2130 100644
--- a/www/ungoogled-chromium/files/patch-net_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-net_BUILD.gn
@@ -1,4 +1,4 @@
---- net/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- net/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ net/BUILD.gn
@@ -123,7 +123,7 @@ net_configs = [
"//build/config/compiler:wexit_time_destructors",
@@ -9,7 +9,7 @@
net_configs += [ "//build/config/linux:libresolv" ]
}
-@@ -1190,6 +1190,19 @@ component("net") {
+@@ -1200,6 +1200,19 @@ component("net") {
]
}
@@ -29,7 +29,7 @@
if (is_mac) {
sources += [
"base/network_notification_thread_mac.cc",
-@@ -1346,7 +1359,7 @@ component("net") {
+@@ -1356,7 +1369,7 @@ component("net") {
}
# Use getifaddrs() on POSIX platforms, except Linux.
@@ -38,7 +38,7 @@
sources += [
"base/network_interfaces_getifaddrs.cc",
"base/network_interfaces_getifaddrs.h",
-@@ -2823,7 +2836,7 @@ test("net_unittests") {
+@@ -2840,7 +2853,7 @@ test("net_unittests") {
]
}
@@ -47,7 +47,7 @@
sources += [
"base/address_tracker_linux_unittest.cc",
"base/network_interfaces_linux_unittest.cc",
-@@ -2911,6 +2924,10 @@ test("net_unittests") {
+@@ -2928,6 +2941,10 @@ test("net_unittests") {
]
}
@@ -58,7 +58,7 @@
if (enable_websockets) {
deps += [ "//net/server:tests" ]
}
-@@ -2971,7 +2988,7 @@ test("net_unittests") {
+@@ -2988,7 +3005,7 @@ test("net_unittests") {
]
}
@@ -67,7 +67,7 @@
sources += [ "tools/quic/quic_simple_server_test.cc" ]
}
-@@ -3107,7 +3124,7 @@ test("net_unittests") {
+@@ -3124,7 +3141,7 @@ test("net_unittests") {
}
# Use getifaddrs() on POSIX platforms, except Linux.
diff --git a/www/ungoogled-chromium/files/patch-net_base_features.cc b/www/ungoogled-chromium/files/patch-net_base_features.cc
index 7ce3c59f32fd..1414e87a1885 100644
--- a/www/ungoogled-chromium/files/patch-net_base_features.cc
+++ b/www/ungoogled-chromium/files/patch-net_base_features.cc
@@ -1,4 +1,4 @@
---- net/base/features.cc.orig 2024-04-23 07:42:17 UTC
+--- net/base/features.cc.orig 2024-05-23 20:04:36 UTC
+++ net/base/features.cc
@@ -28,7 +28,7 @@ BASE_FEATURE(kCapReferrerToOriginOnCrossOrigin,
BASE_FEATURE(kAsyncDns,
@@ -9,7 +9,7 @@
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
-@@ -506,7 +506,12 @@ BASE_FEATURE(kSpdyHeadersToHttpResponseUseBuilder,
+@@ -534,7 +534,12 @@ BASE_FEATURE(kSpdyHeadersToHttpResponseUseBuilder,
"SpdyHeadersToHttpResponseUseBuilder",
base::FEATURE_DISABLED_BY_DEFAULT);
@@ -20,5 +20,5 @@
+BASE_FEATURE(kReceiveEcn, "ReceiveEcn", base::FEATURE_DISABLED_BY_DEFAULT);
+#endif
- // TODO(crbug.com/634470): Remove this feature flag in January 2024 if the new
- // limit sticks.
+ BASE_FEATURE(kUseNewAlpsCodepointHttp2,
+ "UseNewAlpsCodepointHttp2",
diff --git a/www/ungoogled-chromium/files/patch-net_dns_BUILD.gn b/www/ungoogled-chromium/files/patch-net_dns_BUILD.gn
index dd5a55548aa8..fd84ae1e8a2e 100644
--- a/www/ungoogled-chromium/files/patch-net_dns_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-net_dns_BUILD.gn
@@ -1,6 +1,6 @@
---- net/dns/BUILD.gn.orig 2024-04-30 23:47:00 UTC
+--- net/dns/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ net/dns/BUILD.gn
-@@ -136,7 +136,7 @@ source_set("dns") {
+@@ -138,7 +138,7 @@ source_set("dns") {
"dns_config_service_android.cc",
"dns_config_service_android.h",
]
@@ -9,17 +9,7 @@
sources += [
"dns_config_service_linux.cc",
"dns_config_service_linux.h",
-@@ -170,6 +170,9 @@ source_set("dns") {
- }
-
- deps = [ "//net:net_deps" ]
-+ if (is_bsd) {
-+ deps += [ "//services/screen_ai/buildflags" ]
-+ }
-
- public_deps = [
- ":dns_client",
-@@ -177,6 +180,7 @@ source_set("dns") {
+@@ -179,6 +179,7 @@ source_set("dns") {
":host_resolver_manager",
":mdns_client",
"//net:net_public_deps",
@@ -27,7 +17,7 @@
]
allow_circular_includes_from = [
-@@ -444,9 +448,9 @@ source_set("tests") {
+@@ -447,9 +448,9 @@ source_set("tests") {
if (is_android) {
sources += [ "dns_config_service_android_unittest.cc" ]
diff --git a/www/ungoogled-chromium/files/patch-net_dns_public_BUILD.gn b/www/ungoogled-chromium/files/patch-net_dns_public_BUILD.gn
index 20ec36316f49..3526b2f4bea2 100644
--- a/www/ungoogled-chromium/files/patch-net_dns_public_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-net_dns_public_BUILD.gn
@@ -1,6 +1,6 @@
---- net/dns/public/BUILD.gn.orig 2023-11-04 07:08:51 UTC
+--- net/dns/public/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ net/dns/public/BUILD.gn
-@@ -77,7 +77,7 @@ source_set("tests") {
+@@ -78,7 +78,7 @@ source_set("tests") {
"doh_provider_entry_unittest.cc",
]
diff --git a/www/ungoogled-chromium/files/patch-net_proxy__resolution_proxy__config__service__linux.cc b/www/ungoogled-chromium/files/patch-net_proxy__resolution_proxy__config__service__linux.cc
index cffa02018dad..849c6badc614 100644
--- a/www/ungoogled-chromium/files/patch-net_proxy__resolution_proxy__config__service__linux.cc
+++ b/www/ungoogled-chromium/files/patch-net_proxy__resolution_proxy__config__service__linux.cc
@@ -1,4 +1,4 @@
---- net/proxy_resolution/proxy_config_service_linux.cc.orig 2024-02-25 20:22:18 UTC
+--- net/proxy_resolution/proxy_config_service_linux.cc.orig 2024-05-23 20:04:36 UTC
+++ net/proxy_resolution/proxy_config_service_linux.cc
@@ -6,7 +6,9 @@
@@ -17,7 +17,7 @@
+#if !BUILDFLAG(IS_BSD)
// Converts |value| from a decimal string to an int. If there was a failure
// parsing, returns |default_value|.
- int StringToIntOrDefault(base::StringPiece value, int default_value) {
+ int StringToIntOrDefault(std::string_view value, int default_value) {
@@ -1033,6 +1036,7 @@ class SettingGetterImplKDE : public ProxyConfigService
// events on.
scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
diff --git a/www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc b/www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc
index c948fe276718..cc74e72a2604 100644
--- a/www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc
+++ b/www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc
@@ -1,6 +1,6 @@
---- net/tools/cert_verify_tool/cert_verify_comparision_tool.cc.orig 2024-02-25 20:22:18 UTC
+--- net/tools/cert_verify_tool/cert_verify_comparision_tool.cc.orig 2024-05-23 20:04:36 UTC
+++ net/tools/cert_verify_tool/cert_verify_comparision_tool.cc
-@@ -35,7 +35,7 @@
+@@ -36,7 +36,7 @@
#include "net/url_request/url_request_context_builder.h"
#include "net/url_request/url_request_context_getter.h"
@@ -9,7 +9,7 @@
#include "net/proxy_resolution/proxy_config.h"
#include "net/proxy_resolution/proxy_config_service_fixed.h"
#endif
-@@ -55,7 +55,7 @@ void SetUpOnNetworkThread(
+@@ -56,7 +56,7 @@ void SetUpOnNetworkThread(
base::WaitableEvent* initialization_complete_event) {
net::URLRequestContextBuilder url_request_context_builder;
url_request_context_builder.set_user_agent(GetUserAgent());
@@ -18,9 +18,9 @@
// On Linux, use a fixed ProxyConfigService, since the default one
// depends on glib.
//
-@@ -123,7 +123,7 @@ class CertVerifyImpl {
+@@ -124,7 +124,7 @@ class CertVerifyImpl {
std::unique_ptr<CertVerifyImpl> CreateCertVerifyImplFromName(
- base::StringPiece impl_name,
+ std::string_view impl_name,
scoped_refptr<net::CertNetFetcher> cert_net_fetcher) {
-#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || \
+#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \
diff --git a/www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__tool.cc b/www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__tool.cc
index 9820a89f1f57..a63d9ee9dc97 100644
--- a/www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__tool.cc
+++ b/www/ungoogled-chromium/files/patch-net_tools_cert__verify__tool_cert__verify__tool.cc
@@ -1,6 +1,6 @@
---- net/tools/cert_verify_tool/cert_verify_tool.cc.orig 2024-04-23 07:42:17 UTC
+--- net/tools/cert_verify_tool/cert_verify_tool.cc.orig 2024-05-23 20:04:36 UTC
+++ net/tools/cert_verify_tool/cert_verify_tool.cc
-@@ -33,7 +33,7 @@
+@@ -34,7 +34,7 @@
#include "third_party/boringssl/src/pki/trust_store.h"
#include "third_party/boringssl/src/pki/trust_store_collection.h"
@@ -9,7 +9,7 @@
#include "net/proxy_resolution/proxy_config.h"
#include "net/proxy_resolution/proxy_config_service_fixed.h"
#endif
-@@ -65,7 +65,7 @@ void SetUpOnNetworkThread(
+@@ -66,7 +66,7 @@ void SetUpOnNetworkThread(
base::WaitableEvent* initialization_complete_event) {
net::URLRequestContextBuilder url_request_context_builder;
url_request_context_builder.set_user_agent(GetUserAgent());
@@ -18,7 +18,7 @@
// On Linux, use a fixed ProxyConfigService, since the default one
// depends on glib.
//
-@@ -571,7 +571,7 @@ int main(int argc, char** argv) {
+@@ -572,7 +572,7 @@ int main(int argc, char** argv) {
std::string impls_str = command_line.GetSwitchValueASCII("impls");
if (impls_str.empty()) {
// Default value.
diff --git a/www/ungoogled-chromium/files/patch-net_url__request_url__request__context.cc b/www/ungoogled-chromium/files/patch-net_url__request_url__request__context.cc
index 5253d43e64a0..13315c6ca642 100644
--- a/www/ungoogled-chromium/files/patch-net_url__request_url__request__context.cc
+++ b/www/ungoogled-chromium/files/patch-net_url__request_url__request__context.cc
@@ -1,6 +1,6 @@
---- net/url_request/url_request_context.cc.orig 2024-02-25 20:22:18 UTC
+--- net/url_request/url_request_context.cc.orig 2024-05-23 20:04:36 UTC
+++ net/url_request/url_request_context.cc
-@@ -117,7 +117,7 @@ const HttpNetworkSessionContext* URLRequestContext::Ge
+@@ -121,7 +121,7 @@ const HttpNetworkSessionContext* URLRequestContext::Ge
// TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is
// complete.
#if !BUILDFLAG(IS_WIN) && \
diff --git a/www/ungoogled-chromium/files/patch-net_url__request_url__request__context.h b/www/ungoogled-chromium/files/patch-net_url__request_url__request__context.h
index f232a162e8bd..beb6d47cf15d 100644
--- a/www/ungoogled-chromium/files/patch-net_url__request_url__request__context.h
+++ b/www/ungoogled-chromium/files/patch-net_url__request_url__request__context.h
@@ -1,6 +1,6 @@
---- net/url_request/url_request_context.h.orig 2024-02-25 20:22:18 UTC
+--- net/url_request/url_request_context.h.orig 2024-05-23 20:04:36 UTC
+++ net/url_request/url_request_context.h
-@@ -85,7 +85,7 @@ class NET_EXPORT URLRequestContext final {
+@@ -89,7 +89,7 @@ class NET_EXPORT URLRequestContext final {
// TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is
// complete.
#if !BUILDFLAG(IS_WIN) && \
diff --git a/www/ungoogled-chromium/files/patch-net_url__request_url__request__context__builder.cc b/www/ungoogled-chromium/files/patch-net_url__request_url__request__context__builder.cc
index fc9c560f83f0..6c84624930c5 100644
--- a/www/ungoogled-chromium/files/patch-net_url__request_url__request__context__builder.cc
+++ b/www/ungoogled-chromium/files/patch-net_url__request_url__request__context__builder.cc
@@ -1,6 +1,6 @@
---- net/url_request/url_request_context_builder.cc.orig 2024-03-22 14:16:19 UTC
+--- net/url_request/url_request_context_builder.cc.orig 2024-05-23 20:04:36 UTC
+++ net/url_request/url_request_context_builder.cc
-@@ -429,7 +429,7 @@ std::unique_ptr<URLRequestContext> URLRequestContextBu
+@@ -440,7 +440,7 @@ std::unique_ptr<URLRequestContext> URLRequestContextBu
}
if (!proxy_resolution_service_) {
diff --git a/www/ungoogled-chromium/files/patch-remoting_host_client__session.cc b/www/ungoogled-chromium/files/patch-remoting_host_client__session.cc
index 30e41e1b0d69..3b8cdd23beb0 100644
--- a/www/ungoogled-chromium/files/patch-remoting_host_client__session.cc
+++ b/www/ungoogled-chromium/files/patch-remoting_host_client__session.cc
@@ -1,6 +1,6 @@
---- remoting/host/client_session.cc.orig 2024-04-23 07:42:17 UTC
+--- remoting/host/client_session.cc.orig 2024-05-23 20:04:36 UTC
+++ remoting/host/client_session.cc
-@@ -161,7 +161,7 @@ void ClientSession::NotifyClientResolution(
+@@ -157,7 +157,7 @@ void ClientSession::NotifyClientResolution(
if (desktop_environment_options_.enable_curtaining()) {
dpi_vector.set(resolution.x_dpi(), resolution.y_dpi());
}
diff --git a/www/ungoogled-chromium/files/patch-remoting_host_me2me__desktop__environment.cc b/www/ungoogled-chromium/files/patch-remoting_host_me2me__desktop__environment.cc
index ce7f94619d11..8d42963d4bd5 100644
--- a/www/ungoogled-chromium/files/patch-remoting_host_me2me__desktop__environment.cc
+++ b/www/ungoogled-chromium/files/patch-remoting_host_me2me__desktop__environment.cc
@@ -1,4 +1,4 @@
---- remoting/host/me2me_desktop_environment.cc.orig 2024-02-03 15:42:55 UTC
+--- remoting/host/me2me_desktop_environment.cc.orig 2024-05-23 20:04:36 UTC
+++ remoting/host/me2me_desktop_environment.cc
@@ -125,7 +125,7 @@ std::string Me2MeDesktopEnvironment::GetCapabilities()
capabilities += protocol::kRemoteWebAuthnCapability;
@@ -9,7 +9,7 @@
if (!IsRunningWayland()) {
capabilities += " ";
capabilities += protocol::kMultiStreamCapability;
-@@ -164,7 +164,7 @@ Me2MeDesktopEnvironment::Me2MeDesktopEnvironment(
+@@ -167,7 +167,7 @@ Me2MeDesktopEnvironment::Me2MeDesktopEnvironment(
// properly under Xvfb.
mutable_desktop_capture_options()->set_use_update_notifications(true);
@@ -18,7 +18,7 @@
// Setting this option to false means that the capture differ wrapper will not
// be used when the X11 capturer is selected. This reduces the X11 capture
// time by a few milliseconds per frame and is safe because we can rely on
-@@ -173,7 +173,7 @@ Me2MeDesktopEnvironment::Me2MeDesktopEnvironment(
+@@ -176,7 +176,7 @@ Me2MeDesktopEnvironment::Me2MeDesktopEnvironment(
mutable_desktop_capture_options()->set_detect_updated_region(false);
#endif
@@ -27,7 +27,7 @@
if (IsRunningWayland()) {
mutable_desktop_capture_options()->set_prefer_cursor_embedded(false);
}
-@@ -198,7 +198,7 @@ bool Me2MeDesktopEnvironment::InitializeSecurity(
+@@ -201,7 +201,7 @@ bool Me2MeDesktopEnvironment::InitializeSecurity(
// Otherwise, if the session is shared with the local user start monitoring
// the local input and create the in-session UI.
diff --git a/www/ungoogled-chromium/files/patch-remoting_host_setup_start__host__main.cc b/www/ungoogled-chromium/files/patch-remoting_host_setup_start__host__main.cc
index 449a2d969a55..b6af5d9bea72 100644
--- a/www/ungoogled-chromium/files/patch-remoting_host_setup_start__host__main.cc
+++ b/www/ungoogled-chromium/files/patch-remoting_host_setup_start__host__main.cc
@@ -1,6 +1,6 @@
---- remoting/host/setup/start_host_main.cc.orig 2024-02-25 20:22:18 UTC
+--- remoting/host/setup/start_host_main.cc.orig 2024-05-23 20:04:36 UTC
+++ remoting/host/setup/start_host_main.cc
-@@ -36,7 +36,7 @@
+@@ -38,7 +38,7 @@
#include <unistd.h>
#endif // BUILDFLAG(IS_POSIX)
@@ -9,7 +9,7 @@
#include "remoting/host/setup/daemon_controller_delegate_linux.h"
#include "remoting/host/setup/start_host_as_root.h"
#endif // BUILDFLAG(IS_LINUX)
-@@ -252,7 +252,7 @@ bool InitializeCorpMachineParams(HostStarter::Params&
+@@ -340,7 +340,7 @@ bool InitializeCloudMachineParams(HostStarter::Params&
} // namespace
int StartHostMain(int argc, char** argv) {
@@ -18,7 +18,7 @@
// Minimize the amount of code that runs as root on Posix systems.
if (getuid() == 0) {
return remoting::StartHostAsRoot(argc, argv);
-@@ -283,7 +283,7 @@ int StartHostMain(int argc, char** argv) {
+@@ -371,7 +371,7 @@ int StartHostMain(int argc, char** argv) {
mojo::core::Init();
diff --git a/www/ungoogled-chromium/files/patch-remoting_protocol_webrtc__video__stream.cc b/www/ungoogled-chromium/files/patch-remoting_protocol_webrtc__video__stream.cc
index 7b835d23c384..2d27c4f88d59 100644
--- a/www/ungoogled-chromium/files/patch-remoting_protocol_webrtc__video__stream.cc
+++ b/www/ungoogled-chromium/files/patch-remoting_protocol_webrtc__video__stream.cc
@@ -1,7 +1,7 @@
---- remoting/protocol/webrtc_video_stream.cc.orig 2023-12-23 12:33:28 UTC
+--- remoting/protocol/webrtc_video_stream.cc.orig 2024-05-23 20:04:36 UTC
+++ remoting/protocol/webrtc_video_stream.cc
-@@ -263,7 +263,7 @@ WebrtcVideoStream::WebrtcVideoStream(const std::string
- : stream_name_(stream_name), session_options_(session_options) {
+@@ -267,7 +267,7 @@ WebrtcVideoStream::WebrtcVideoStream(const SessionOpti
+ : session_options_(session_options) {
// TODO(joedow): Dig into the threading model on other platforms to see if they
// can also be updated to run on a dedicated thread.
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
diff --git a/www/ungoogled-chromium/files/patch-sandbox_linux_services_libc__interceptor.cc b/www/ungoogled-chromium/files/patch-sandbox_linux_services_libc__interceptor.cc
index e2cb20807964..53a54bdd00ae 100644
--- a/www/ungoogled-chromium/files/patch-sandbox_linux_services_libc__interceptor.cc
+++ b/www/ungoogled-chromium/files/patch-sandbox_linux_services_libc__interceptor.cc
@@ -1,4 +1,4 @@
---- sandbox/linux/services/libc_interceptor.cc.orig 2023-09-17 07:59:53 UTC
+--- sandbox/linux/services/libc_interceptor.cc.orig 2024-05-23 20:04:36 UTC
+++ sandbox/linux/services/libc_interceptor.cc
@@ -12,7 +12,9 @@
#include <stddef.h>
@@ -10,7 +10,7 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <time.h>
-@@ -167,7 +169,7 @@ bool ReadTimeStruct(base::PickleIterator* iter,
+@@ -168,7 +170,7 @@ bool ReadTimeStruct(base::PickleIterator* iter,
} else {
base::AutoLock lock(g_timezones_lock.Get());
auto ret_pair = g_timezones.Get().insert(timezone);
diff --git a/www/ungoogled-chromium/files/patch-sandbox_policy_features.cc b/www/ungoogled-chromium/files/patch-sandbox_policy_features.cc
index bb2ed2a0512f..cc9f18b9204e 100644
--- a/www/ungoogled-chromium/files/patch-sandbox_policy_features.cc
+++ b/www/ungoogled-chromium/files/patch-sandbox_policy_features.cc
@@ -1,4 +1,4 @@
---- sandbox/policy/features.cc.orig 2024-04-23 07:42:17 UTC
+--- sandbox/policy/features.cc.orig 2024-05-23 20:04:36 UTC
+++ sandbox/policy/features.cc
@@ -20,7 +20,11 @@ namespace sandbox::policy::features {
// (Only causes an effect when feature kNetworkServiceInProcess is disabled.)
@@ -12,7 +12,7 @@
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
// Enables a fine-grained seccomp-BPF syscall filter for the network service.
-@@ -126,7 +130,7 @@ BASE_FEATURE(kForceSpectreVariant2Mitigation,
+@@ -131,7 +135,7 @@ BASE_FEATURE(kForceSpectreVariant2Mitigation,
base::FEATURE_DISABLED_BY_DEFAULT);
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
diff --git a/www/ungoogled-chromium/files/patch-sandbox_policy_features.h b/www/ungoogled-chromium/files/patch-sandbox_policy_features.h
index d97d25d83241..e32367588168 100644
--- a/www/ungoogled-chromium/files/patch-sandbox_policy_features.h
+++ b/www/ungoogled-chromium/files/patch-sandbox_policy_features.h
@@ -1,6 +1,6 @@
---- sandbox/policy/features.h.orig 2024-04-23 07:42:17 UTC
+--- sandbox/policy/features.h.orig 2024-05-23 20:04:36 UTC
+++ sandbox/policy/features.h
-@@ -43,7 +43,7 @@ SANDBOX_POLICY_EXPORT BASE_DECLARE_FEATURE(kSpectreVar
+@@ -44,7 +44,7 @@ SANDBOX_POLICY_EXPORT BASE_DECLARE_FEATURE(kSpectreVar
SANDBOX_POLICY_EXPORT BASE_DECLARE_FEATURE(kForceSpectreVariant2Mitigation);
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
diff --git a/www/ungoogled-chromium/files/patch-services_device_geolocation_location__arbitrator.cc b/www/ungoogled-chromium/files/patch-services_device_geolocation_location__arbitrator.cc
deleted file mode 100644
index 06be31076c96..000000000000
--- a/www/ungoogled-chromium/files/patch-services_device_geolocation_location__arbitrator.cc
+++ /dev/null
@@ -1,11 +0,0 @@
---- services/device/geolocation/location_arbitrator.cc.orig 2024-04-23 07:42:17 UTC
-+++ services/device/geolocation/location_arbitrator.cc
-@@ -196,7 +196,7 @@ LocationArbitrator::NewNetworkLocationProvider(
-
- std::unique_ptr<LocationProvider>
- LocationArbitrator::NewSystemLocationProvider() {
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
- return nullptr;
- #else
- return device::NewSystemLocationProvider(
diff --git a/www/ungoogled-chromium/files/patch-services_device_usb_BUILD.gn b/www/ungoogled-chromium/files/patch-services_device_usb_BUILD.gn
index 04497c96078a..9765c1fe670a 100644
--- a/www/ungoogled-chromium/files/patch-services_device_usb_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-services_device_usb_BUILD.gn
@@ -1,6 +1,6 @@
---- services/device/usb/BUILD.gn.orig 2024-02-03 15:42:55 UTC
+--- services/device/usb/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ services/device/usb/BUILD.gn
-@@ -92,15 +92,17 @@ static_library("usb") {
+@@ -91,15 +91,17 @@ static_library("usb") {
deps += [ "//third_party/re2" ]
}
@@ -27,7 +27,7 @@
# These sources and deps are required for libusb.
# TODO(https://crbug.com/1096743) Remove these sources.
-@@ -124,6 +126,13 @@ static_library("usb") {
+@@ -123,6 +125,13 @@ static_library("usb") {
deps += [ "//third_party/libusb" ]
}
@@ -41,7 +41,7 @@
if (is_linux || is_chromeos) {
sources += [
"usb_device_linux.cc",
-@@ -141,7 +150,7 @@ static_library("usb") {
+@@ -140,7 +149,7 @@ static_library("usb") {
deps += [ "//device/udev_linux" ]
}
diff --git a/www/ungoogled-chromium/files/patch-services_network_BUILD.gn b/www/ungoogled-chromium/files/patch-services_network_BUILD.gn
index be3a215e3c75..9530c7dfa42c 100644
--- a/www/ungoogled-chromium/files/patch-services_network_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-services_network_BUILD.gn
@@ -1,6 +1,6 @@
---- services/network/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- services/network/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ services/network/BUILD.gn
-@@ -410,7 +410,6 @@ if (is_linux || is_chromeos) {
+@@ -412,7 +412,6 @@ if (is_linux || is_chromeos) {
]
deps = [
"//base:base",
diff --git a/www/ungoogled-chromium/files/patch-services_network_network__context.cc b/www/ungoogled-chromium/files/patch-services_network_network__context.cc
index 1d1612b5f961..8f82e4a4ae1c 100644
--- a/www/ungoogled-chromium/files/patch-services_network_network__context.cc
+++ b/www/ungoogled-chromium/files/patch-services_network_network__context.cc
@@ -1,6 +1,6 @@
---- services/network/network_context.cc.orig 2024-04-23 07:42:17 UTC
+--- services/network/network_context.cc.orig 2024-05-23 20:04:36 UTC
+++ services/network/network_context.cc
-@@ -523,7 +523,7 @@ NetworkContext::NetworkContextHttpAuthPreferences::
+@@ -527,7 +527,7 @@ NetworkContext::NetworkContextHttpAuthPreferences::
NetworkContext::NetworkContextHttpAuthPreferences::
~NetworkContextHttpAuthPreferences() = default;
@@ -9,7 +9,7 @@
bool NetworkContext::NetworkContextHttpAuthPreferences::AllowGssapiLibraryLoad()
const {
if (network_service_) {
-@@ -2277,7 +2277,7 @@ void NetworkContext::OnHttpAuthDynamicParamsChanged(
+@@ -2284,7 +2284,7 @@ void NetworkContext::OnHttpAuthDynamicParamsChanged(
http_auth_dynamic_network_service_params->android_negotiate_account_type);
#endif // BUILDFLAG(IS_ANDROID)
diff --git a/www/ungoogled-chromium/files/patch-services_network_network__context.h b/www/ungoogled-chromium/files/patch-services_network_network__context.h
index ecf1092338d9..f778b56cd6f0 100644
--- a/www/ungoogled-chromium/files/patch-services_network_network__context.h
+++ b/www/ungoogled-chromium/files/patch-services_network_network__context.h
@@ -1,6 +1,6 @@
---- services/network/network_context.h.orig 2024-04-23 07:42:17 UTC
+--- services/network/network_context.h.orig 2024-05-23 20:04:36 UTC
+++ services/network/network_context.h
-@@ -670,7 +670,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkContext
+@@ -672,7 +672,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkContext
public:
explicit NetworkContextHttpAuthPreferences(NetworkService* network_service);
~NetworkContextHttpAuthPreferences() override;
diff --git a/www/ungoogled-chromium/files/patch-services_network_network__service.cc b/www/ungoogled-chromium/files/patch-services_network_network__service.cc
index eb4b4d7d717c..0ff11260eaea 100644
--- a/www/ungoogled-chromium/files/patch-services_network_network__service.cc
+++ b/www/ungoogled-chromium/files/patch-services_network_network__service.cc
@@ -1,6 +1,6 @@
---- services/network/network_service.cc.orig 2024-04-23 07:42:17 UTC
+--- services/network/network_service.cc.orig 2024-05-23 20:04:36 UTC
+++ services/network/network_service.cc
-@@ -97,7 +97,7 @@
+@@ -99,7 +99,7 @@
#include "third_party/boringssl/src/include/openssl/cpu.h"
#endif
@@ -9,7 +9,7 @@
BUILDFLAG(IS_CHROMEOS_LACROS)
#include "components/os_crypt/sync/key_storage_config_linux.h"
-@@ -978,7 +978,7 @@ void NetworkService::SetExplicitlyAllowedPorts(
+@@ -983,7 +983,7 @@ void NetworkService::SetExplicitlyAllowedPorts(
net::SetExplicitlyAllowedPorts(ports);
}
@@ -18,7 +18,7 @@
void NetworkService::SetGssapiLibraryLoadObserver(
mojo::PendingRemote<mojom::GssapiLibraryLoadObserver>
gssapi_library_load_observer) {
-@@ -1060,7 +1060,7 @@ NetworkService::CreateHttpAuthHandlerFactory(NetworkCo
+@@ -1065,7 +1065,7 @@ NetworkService::CreateHttpAuthHandlerFactory(NetworkCo
);
}
diff --git a/www/ungoogled-chromium/files/patch-services_network_network__service.h b/www/ungoogled-chromium/files/patch-services_network_network__service.h
index 0259fa4bff97..5348fb20844e 100644
--- a/www/ungoogled-chromium/files/patch-services_network_network__service.h
+++ b/www/ungoogled-chromium/files/patch-services_network_network__service.h
@@ -1,15 +1,15 @@
---- services/network/network_service.h.orig 2024-04-23 07:42:17 UTC
+--- services/network/network_service.h.orig 2024-05-23 20:04:36 UTC
+++ services/network/network_service.h
-@@ -229,7 +229,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkService
- mojo::PendingReceiver<mojom::NetworkServiceTest> receiver) override;
- void SetFirstPartySets(net::GlobalFirstPartySets sets) override;
+@@ -238,7 +238,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkService
+ const std::vector<ContentSettingPatternSource>& settings) override;
+
void SetExplicitlyAllowedPorts(const std::vector<uint16_t>& ports) override;
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
void SetGssapiLibraryLoadObserver(
mojo::PendingRemote<mojom::GssapiLibraryLoadObserver>
gssapi_library_load_observer) override;
-@@ -255,7 +255,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkService
+@@ -264,7 +264,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkService
std::unique_ptr<net::HttpAuthHandlerFactory> CreateHttpAuthHandlerFactory(
NetworkContext* network_context);
@@ -18,7 +18,7 @@
// This is called just before a GSSAPI library may be loaded.
void OnBeforeGssapiLibraryLoad();
#endif // BUILDFLAG(IS_LINUX)
-@@ -481,7 +481,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkService
+@@ -494,7 +494,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkService
// leaking stale listeners between tests.
std::unique_ptr<net::NetworkChangeNotifier> mock_network_change_notifier_;
diff --git a/www/ungoogled-chromium/files/patch-services_network_public_cpp_BUILD.gn b/www/ungoogled-chromium/files/patch-services_network_public_cpp_BUILD.gn
index bbc21bf17721..43f8417c2afb 100644
--- a/www/ungoogled-chromium/files/patch-services_network_public_cpp_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-services_network_public_cpp_BUILD.gn
@@ -1,6 +1,6 @@
---- services/network/public/cpp/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- services/network/public/cpp/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ services/network/public/cpp/BUILD.gn
-@@ -486,7 +486,7 @@ component("cpp_base") {
+@@ -510,7 +510,7 @@ component("cpp_base") {
sources += [ "transferable_directory_fuchsia.cc" ]
}
diff --git a/www/ungoogled-chromium/files/patch-services_network_public_mojom_BUILD.gn b/www/ungoogled-chromium/files/patch-services_network_public_mojom_BUILD.gn
index 6fe61997cb4e..6358606d9683 100644
--- a/www/ungoogled-chromium/files/patch-services_network_public_mojom_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-services_network_public_mojom_BUILD.gn
@@ -1,4 +1,4 @@
---- services/network/public/mojom/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- services/network/public/mojom/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ services/network/public/mojom/BUILD.gn
@@ -522,11 +522,11 @@ mojom("url_loader_base") {
}
@@ -14,7 +14,7 @@
# TODO(crbug.com/1431866): Remove this once is_linux in the mojom IDL does
# not include lacros.
enabled_features += [ "use_network_interface_change_listener" ]
-@@ -1457,7 +1457,7 @@ mojom("mojom") {
+@@ -1471,7 +1471,7 @@ mojom("mojom") {
}
}
diff --git a/www/ungoogled-chromium/files/patch-services_on__device__model_ml_on__device__model__executor.cc b/www/ungoogled-chromium/files/patch-services_on__device__model_ml_on__device__model__executor.cc
new file mode 100644
index 000000000000..e9408aea4a04
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-services_on__device__model_ml_on__device__model__executor.cc
@@ -0,0 +1,11 @@
+--- services/on_device_model/ml/on_device_model_executor.cc.orig 2024-05-23 20:04:36 UTC
++++ services/on_device_model/ml/on_device_model_executor.cc
+@@ -60,7 +60,7 @@ const base::FeatureParam<bool> kAllowFp16{
+ &optimization_guide::features::kOptimizationGuideOnDeviceModel,
+ "on_device_model_allow_fp16",
+ // TODO(b/333406033): Fix Linux fp16 issues.
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ false
+ #else
+ true
diff --git a/www/ungoogled-chromium/files/patch-services_on__device__model_on__device__model__service.h b/www/ungoogled-chromium/files/patch-services_on__device__model_on__device__model__service.h
index 79f36284ba24..b7d349601f47 100644
--- a/www/ungoogled-chromium/files/patch-services_on__device__model_on__device__model__service.h
+++ b/www/ungoogled-chromium/files/patch-services_on__device__model_on__device__model__service.h
@@ -1,6 +1,6 @@
---- services/on_device_model/on_device_model_service.h.orig 2024-03-22 14:16:19 UTC
+--- services/on_device_model/on_device_model_service.h.orig 2024-05-23 20:04:36 UTC
+++ services/on_device_model/on_device_model_service.h
-@@ -20,6 +20,10 @@
+@@ -22,6 +22,10 @@
#include "sandbox/policy/linux/sandbox_linux.h"
#endif
@@ -11,7 +11,7 @@
namespace on_device_model {
class COMPONENT_EXPORT(ON_DEVICE_MODEL) OnDeviceModelService
-@@ -29,7 +33,7 @@ class COMPONENT_EXPORT(ON_DEVICE_MODEL) OnDeviceModelS
+@@ -31,7 +35,7 @@ class COMPONENT_EXPORT(ON_DEVICE_MODEL) OnDeviceModelS
// These are defined separately in pre_sandbox_init.cc for explicit security
// review coverage.
[[nodiscard]] static bool PreSandboxInit();
diff --git a/www/ungoogled-chromium/files/patch-services_on__device__model_pre__sandbox__init.cc b/www/ungoogled-chromium/files/patch-services_on__device__model_pre__sandbox__init.cc
index d0c11516d9e9..8b13e4f64585 100644
--- a/www/ungoogled-chromium/files/patch-services_on__device__model_pre__sandbox__init.cc
+++ b/www/ungoogled-chromium/files/patch-services_on__device__model_pre__sandbox__init.cc
@@ -1,4 +1,4 @@
---- services/on_device_model/pre_sandbox_init.cc.orig 2024-02-03 15:42:55 UTC
+--- services/on_device_model/pre_sandbox_init.cc.orig 2024-05-23 20:04:36 UTC
+++ services/on_device_model/pre_sandbox_init.cc
@@ -14,7 +14,7 @@
#include "services/on_device_model/ml/chrome_ml.h" // nogncheck
@@ -27,7 +27,7 @@
// Warm any relevant drivers before attempting to bring up the sandbox. For
// good measure we initialize a device instance for any adapter with an
// appropriate backend on top of any integrated or discrete GPU.
-@@ -100,7 +100,7 @@ bool OnDeviceModelService::PreSandboxInit() {
+@@ -102,7 +102,7 @@ bool OnDeviceModelService::PreSandboxInit() {
return true;
}
diff --git a/www/ungoogled-chromium/files/patch-services_service__manager_BUILD.gn b/www/ungoogled-chromium/files/patch-services_service__manager_BUILD.gn
index 28c441c81ecc..631e5a10ddd5 100644
--- a/www/ungoogled-chromium/files/patch-services_service__manager_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-services_service__manager_BUILD.gn
@@ -1,6 +1,6 @@
---- services/service_manager/BUILD.gn.orig 2022-10-01 07:40:07 UTC
+--- services/service_manager/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ services/service_manager/BUILD.gn
-@@ -67,7 +67,7 @@ source_set("service_manager") {
+@@ -66,7 +66,7 @@ source_set("service_manager") {
]
}
diff --git a/www/ungoogled-chromium/files/patch-services_video__capture_video__capture__service__impl.cc b/www/ungoogled-chromium/files/patch-services_video__capture_video__capture__service__impl.cc
index 54f25c97ea5b..4a68a93cb351 100644
--- a/www/ungoogled-chromium/files/patch-services_video__capture_video__capture__service__impl.cc
+++ b/www/ungoogled-chromium/files/patch-services_video__capture_video__capture__service__impl.cc
@@ -1,6 +1,6 @@
---- services/video_capture/video_capture_service_impl.cc.orig 2024-02-25 20:22:18 UTC
+--- services/video_capture/video_capture_service_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ services/video_capture/video_capture_service_impl.cc
-@@ -41,7 +41,7 @@
+@@ -40,7 +40,7 @@
#include "services/video_capture/lacros/device_factory_adapter_lacros.h"
#endif // BUILDFLAG(IS_CHROMEOS_LACROS)
@@ -9,7 +9,7 @@
#include "media/capture/capture_switches.h"
#include "media/capture/video/video_capture_gpu_channel_host.h"
#include "services/viz/public/cpp/gpu/context_provider_command_buffer.h"
-@@ -109,7 +109,7 @@ class VideoCaptureServiceImpl::GpuDependenciesContext
+@@ -108,7 +108,7 @@ class VideoCaptureServiceImpl::GpuDependenciesContext
this};
};
@@ -18,7 +18,7 @@
// Intended usage of this class is to create viz::Gpu in utility process and
// connect to viz::GpuClient of browser process, which will call to Gpu service.
// Also, this class holds the viz::ContextProvider to listen and monitor Gpu
-@@ -307,7 +307,7 @@ void VideoCaptureServiceImpl::LazyInitializeGpuDepende
+@@ -303,7 +303,7 @@ void VideoCaptureServiceImpl::LazyInitializeGpuDepende
gpu_dependencies_context_ = std::make_unique<GpuDependenciesContext>();
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH)
@@ -27,7 +27,7 @@
{
#else
if (switches::IsVideoCaptureUseGpuMemoryBufferEnabled()) {
-@@ -421,7 +421,7 @@ void VideoCaptureServiceImpl::OnGpuInfoUpdate(const CH
+@@ -415,7 +415,7 @@ void VideoCaptureServiceImpl::OnGpuInfoUpdate(const CH
}
#endif
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_controller_blink__initializer.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_controller_blink__initializer.cc
index 18ba9561e4de..e5975630beda 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_controller_blink__initializer.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_controller_blink__initializer.cc
@@ -1,6 +1,6 @@
---- third_party/blink/renderer/controller/blink_initializer.cc.orig 2024-04-23 07:42:17 UTC
+--- third_party/blink/renderer/controller/blink_initializer.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/controller/blink_initializer.cc
-@@ -80,12 +80,12 @@
+@@ -81,12 +81,12 @@
#include "third_party/blink/renderer/controller/private_memory_footprint_provider.h"
#endif
@@ -15,7 +15,7 @@
#include "third_party/blink/renderer/controller/highest_pmf_reporter.h"
#include "third_party/blink/renderer/controller/user_level_memory_pressure_signal_generator.h"
#endif
-@@ -255,7 +255,7 @@ void BlinkInitializer::RegisterInterfaces(mojo::Binder
+@@ -256,7 +256,7 @@ void BlinkInitializer::RegisterInterfaces(mojo::Binder
main_thread_task_runner);
#endif
@@ -24,7 +24,7 @@
binders.Add<mojom::blink::MemoryUsageMonitorLinux>(
ConvertToBaseRepeatingCallback(
CrossThreadBindRepeating(&MemoryUsageMonitorPosix::Bind)),
-@@ -294,7 +294,7 @@ void BlinkInitializer::RegisterMemoryWatchers(Platform
+@@ -306,7 +306,7 @@ void BlinkInitializer::RegisterMemoryWatchers(Platform
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_exported_web__view__impl.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_exported_web__view__impl.cc
index 1fc488e946a4..5c4b3a11728c 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_exported_web__view__impl.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_exported_web__view__impl.cc
@@ -1,4 +1,4 @@
---- third_party/blink/renderer/core/exported/web_view_impl.cc.orig 2024-04-23 07:42:17 UTC
+--- third_party/blink/renderer/core/exported/web_view_impl.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/core/exported/web_view_impl.cc
@@ -425,7 +425,7 @@ SkFontHinting RendererPreferencesToSkiaHinting(
const blink::RendererPreferences& prefs) {
@@ -9,7 +9,7 @@
if (!prefs.should_antialias_text) {
// When anti-aliasing is off, GTK maps all non-zero hinting settings to
// 'Normal' hinting so we do the same. Otherwise, folks who have 'Slight'
-@@ -3385,7 +3385,7 @@ void WebViewImpl::UpdateFontRenderingFromRendererPrefs
+@@ -3387,7 +3387,7 @@ void WebViewImpl::UpdateFontRenderingFromRendererPrefs
renderer_preferences_.use_subpixel_positioning);
// TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is
// complete.
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_frame_web__frame__test.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_frame_web__frame__test.cc
index d147997353bc..204b75959842 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_frame_web__frame__test.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_frame_web__frame__test.cc
@@ -1,6 +1,6 @@
---- third_party/blink/renderer/core/frame/web_frame_test.cc.orig 2024-03-22 14:16:19 UTC
+--- third_party/blink/renderer/core/frame/web_frame_test.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/core/frame/web_frame_test.cc
-@@ -6469,7 +6469,7 @@ TEST_F(WebFrameTest, DISABLED_PositionForPointTest) {
+@@ -6472,7 +6472,7 @@ TEST_F(WebFrameTest, DISABLED_PositionForPointTest) {
}
#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
@@ -9,7 +9,7 @@
// TODO(crbug.com/1090246): Fix these tests on Fuchsia and re-enable.
// TODO(crbug.com/1317375): Build these tests on all platforms.
#define MAYBE_SelectRangeStaysHorizontallyAlignedWhenMoved \
-@@ -6878,7 +6878,7 @@ TEST_F(CompositedSelectionBoundsTest, LargeSelectionSc
+@@ -6881,7 +6881,7 @@ TEST_F(CompositedSelectionBoundsTest, LargeSelectionSc
TEST_F(CompositedSelectionBoundsTest, LargeSelectionNoScroll) {
RunTest("composited_selection_bounds_large_selection_noscroll.html");
}
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_layout_layout__view.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_layout_layout__view.cc
index c3b51148e9ab..a1bee6589591 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_layout_layout__view.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_layout_layout__view.cc
@@ -1,4 +1,4 @@
---- third_party/blink/renderer/core/layout/layout_view.cc.orig 2024-04-23 07:42:17 UTC
+--- third_party/blink/renderer/core/layout/layout_view.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/core/layout/layout_view.cc
@@ -73,7 +73,7 @@
#include "ui/gfx/geometry/quad_f.h"
@@ -9,7 +9,7 @@
#include "third_party/blink/renderer/platform/fonts/font_cache.h"
#endif
-@@ -832,7 +832,7 @@ void LayoutView::UpdateLayout() {
+@@ -832,7 +832,7 @@ void LayoutView::LayoutRoot() {
intrinsic_logical_widths_ = LogicalWidth();
}
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_scroll_scrollbar__theme__aura.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_scroll_scrollbar__theme__aura.cc
index b87b5e356bba..04567a58f9a2 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_scroll_scrollbar__theme__aura.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_core_scroll_scrollbar__theme__aura.cc
@@ -1,4 +1,4 @@
---- third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc.orig 2024-03-22 14:16:19 UTC
+--- third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc
@@ -149,7 +149,7 @@ bool ScrollbarThemeAura::SupportsDragSnapBack() const
// is true for at least GTK and QT apps).
@@ -9,7 +9,7 @@
return false;
#else
return true;
-@@ -368,7 +368,7 @@ bool ScrollbarThemeAura::ShouldCenterOnThumb(const Scr
+@@ -370,7 +370,7 @@ bool ScrollbarThemeAura::ShouldCenterOnThumb(const Scr
const WebMouseEvent& event) {
// TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is
// complete.
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_peerconnection_webrtc__audio__renderer__test.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_peerconnection_webrtc__audio__renderer__test.cc
index 324c76b3187f..ac7bff065641 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_peerconnection_webrtc__audio__renderer__test.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_peerconnection_webrtc__audio__renderer__test.cc
@@ -1,6 +1,6 @@
---- third_party/blink/renderer/modules/peerconnection/webrtc_audio_renderer_test.cc.orig 2024-03-22 14:16:19 UTC
+--- third_party/blink/renderer/modules/peerconnection/webrtc_audio_renderer_test.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/modules/peerconnection/webrtc_audio_renderer_test.cc
-@@ -301,7 +301,7 @@ TEST_F(WebRtcAudioRendererTest, DISABLED_VerifySinkPar
+@@ -300,7 +300,7 @@ TEST_F(WebRtcAudioRendererTest, DISABLED_VerifySinkPar
SetupRenderer(kDefaultOutputDeviceId);
renderer_proxy_->Start();
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_APPLE) || \
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgl_webgl__rendering__context__base.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgl_webgl__rendering__context__base.cc
index addfa440c930..bde5c2df1138 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgl_webgl__rendering__context__base.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgl_webgl__rendering__context__base.cc
@@ -1,6 +1,6 @@
---- third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc.orig 2024-04-23 07:42:17 UTC
+--- third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
-@@ -6356,7 +6356,7 @@ void WebGLRenderingContextBase::TexImageHelperMediaVid
+@@ -6355,7 +6355,7 @@ void WebGLRenderingContextBase::TexImageHelperMediaVid
constexpr bool kAllowZeroCopyImages = true;
#endif
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgpu_gpu__queue.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgpu_gpu__queue.cc
index c9420916c1b7..c6cabd24cdca 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgpu_gpu__queue.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_modules_webgpu_gpu__queue.cc
@@ -1,6 +1,6 @@
---- third_party/blink/renderer/modules/webgpu/gpu_queue.cc.orig 2024-03-22 14:16:19 UTC
+--- third_party/blink/renderer/modules/webgpu/gpu_queue.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/modules/webgpu/gpu_queue.cc
-@@ -785,7 +785,7 @@ bool GPUQueue::CopyFromCanvasSourceImage(
+@@ -806,7 +806,7 @@ bool GPUQueue::CopyFromCanvasSourceImage(
// on linux platform.
// TODO(crbug.com/1424119): using a webgpu mailbox texture on the OpenGLES
// backend is failing for unknown reasons.
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_BUILD.gn b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_BUILD.gn
index 13b8b5672cd2..6e8eaea02a24 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_BUILD.gn
@@ -1,6 +1,6 @@
---- third_party/blink/renderer/platform/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- third_party/blink/renderer/platform/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/platform/BUILD.gn
-@@ -1950,7 +1950,7 @@ static_library("test_support") {
+@@ -1981,7 +1981,7 @@ static_library("test_support") {
]
# fuzzed_data_provider may not work with a custom toolchain.
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_graphics_video__frame__submitter.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_graphics_video__frame__submitter.cc
index e13ae9ed4fc3..deb44ebf8bed 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_graphics_video__frame__submitter.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_graphics_video__frame__submitter.cc
@@ -1,6 +1,6 @@
---- third_party/blink/renderer/platform/graphics/video_frame_submitter.cc.orig 2024-04-23 07:42:17 UTC
+--- third_party/blink/renderer/platform/graphics/video_frame_submitter.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/platform/graphics/video_frame_submitter.cc
-@@ -400,7 +400,7 @@ void VideoFrameSubmitter::OnBeginFrame(
+@@ -407,7 +407,7 @@ void VideoFrameSubmitter::OnBeginFrame(
continue;
auto& feedback =
timing_details.find(frame_token)->value.presentation_feedback;
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_runtime__enabled__features.json5 b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_runtime__enabled__features.json5
index 72a13e77567d..2c71bbab8945 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_runtime__enabled__features.json5
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_runtime__enabled__features.json5
@@ -1,6 +1,6 @@
---- third_party/blink/renderer/platform/runtime_enabled_features.json5.orig 2024-05-11 05:39:22 UTC
+--- third_party/blink/renderer/platform/runtime_enabled_features.json5.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/platform/runtime_enabled_features.json5
-@@ -313,7 +313,7 @@
+@@ -323,7 +323,7 @@
name: "AppTitle",
status: "experimental",
origin_trial_feature_name: "AppTitle",
@@ -9,7 +9,7 @@
base_feature: "WebAppEnableAppTitle",
},
{
-@@ -1970,7 +1970,7 @@
+@@ -1937,7 +1937,7 @@
base_feature_status: "enabled",
copied_from_base_feature_if: "overridden",
origin_trial_feature_name: "FullscreenPopupWindows",
@@ -18,7 +18,7 @@
},
{
name: "GamepadButtonAxisEvents",
-@@ -2891,7 +2891,7 @@
+@@ -2899,7 +2899,7 @@
name: "PaymentHandlerMinimalHeaderUX",
origin_trial_feature_name: "PaymentHandlerMinimalHeaderUX",
origin_trial_allows_third_party: true,
@@ -27,7 +27,7 @@
status: "stable",
},
{
-@@ -3083,7 +3083,7 @@
+@@ -3087,7 +3087,7 @@
{
name: "PrivateNetworkAccessPermissionPrompt",
origin_trial_feature_name: "PrivateNetworkAccessPermissionPrompt",
@@ -36,7 +36,7 @@
status: "stable",
public: true,
base_feature: "none",
-@@ -3951,7 +3951,7 @@
+@@ -3955,7 +3955,7 @@
name: "UnrestrictedSharedArrayBuffer",
base_feature: "none",
origin_trial_feature_name: "UnrestrictedSharedArrayBuffer",
@@ -45,7 +45,7 @@
},
// Enables using policy-controlled feature "usb-unrestricted" to allow
// isolated context to access protected USB interface classes and to
-@@ -4111,7 +4111,7 @@
+@@ -4122,7 +4122,7 @@
{
name: "WebAppScopeExtensions",
origin_trial_feature_name: "WebAppScopeExtensions",
diff --git a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_wtf_stack__util.cc b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_wtf_stack__util.cc
index dea3a80b7b8c..79bb6dd620bd 100644
--- a/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_wtf_stack__util.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_blink_renderer_platform_wtf_stack__util.cc
@@ -1,6 +1,6 @@
---- third_party/blink/renderer/platform/wtf/stack_util.cc.orig 2023-03-10 11:01:21 UTC
+--- third_party/blink/renderer/platform/wtf/stack_util.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/blink/renderer/platform/wtf/stack_util.cc
-@@ -18,6 +18,11 @@
+@@ -19,6 +19,11 @@
extern "C" void* __libc_stack_end; // NOLINT
#endif
@@ -12,7 +12,7 @@
namespace WTF {
size_t GetUnderestimatedStackSize() {
-@@ -62,6 +67,8 @@ size_t GetUnderestimatedStackSize() {
+@@ -63,6 +68,8 @@ size_t GetUnderestimatedStackSize() {
// low as 512k.
//
return 512 * 1024;
@@ -21,7 +21,7 @@
#elif BUILDFLAG(IS_APPLE)
// pthread_get_stacksize_np() returns too low a value for the main thread on
// OSX 10.9,
-@@ -148,6 +155,13 @@ void* GetStackStart() {
+@@ -149,6 +156,13 @@ void* GetStackStart() {
::GetCurrentThreadStackLimits(&lowLimit, &highLimit);
return reinterpret_cast<void*>(highLimit);
#endif
diff --git a/www/ungoogled-chromium/files/patch-third__party_boringssl_src_util_generate__build__files.py b/www/ungoogled-chromium/files/patch-third__party_boringssl_src_util_generate__build__files.py
deleted file mode 100644
index 7e8e531ada7e..000000000000
--- a/www/ungoogled-chromium/files/patch-third__party_boringssl_src_util_generate__build__files.py
+++ /dev/null
@@ -1,34 +0,0 @@
---- third_party/boringssl/src/util/generate_build_files.py.orig 2024-04-23 07:42:17 UTC
-+++ third_party/boringssl/src/util/generate_build_files.py
-@@ -807,10 +807,10 @@ def main(platforms):
- ]
-
- # Generate err_data.c
-- with open('err_data.c', 'w+') as err_data:
-- subprocess.check_call(['go', 'run', 'err_data_generate.go'],
-- cwd=os.path.join('src', 'crypto', 'err'),
-- stdout=err_data)
-+# with open('err_data.c', 'w+') as err_data:
-+# subprocess.check_call(['go', 'run', 'err_data_generate.go'],
-+# cwd=os.path.join('src', 'crypto', 'err'),
-+# stdout=err_data)
- crypto_c_files.append('err_data.c')
- crypto_c_files.sort()
-
-@@ -821,11 +821,11 @@ def main(platforms):
- crypto_test_files = []
- if EMBED_TEST_DATA:
- # Generate crypto_test_data.cc
-- with open('crypto_test_data.cc', 'w+') as out:
-- subprocess.check_call(
-- ['go', 'run', 'util/embed_test_data.go'] + cmake['CRYPTO_TEST_DATA'],
-- cwd='src',
-- stdout=out)
-+# with open('crypto_test_data.cc', 'w+') as out:
-+# subprocess.check_call(
-+# ['go', 'run', 'util/embed_test_data.go'] + cmake['CRYPTO_TEST_DATA'],
-+# cwd='src',
-+# stdout=out)
- crypto_test_files.append('crypto_test_data.cc')
-
- crypto_test_files += PrefixWithSrc(cmake['CRYPTO_TEST_SOURCES'])
diff --git a/www/ungoogled-chromium/files/patch-third__party_dawn_include_dawn_native_VulkanBackend.h b/www/ungoogled-chromium/files/patch-third__party_dawn_include_dawn_native_VulkanBackend.h
index de1b386bf721..0adc0b6b565c 100644
--- a/www/ungoogled-chromium/files/patch-third__party_dawn_include_dawn_native_VulkanBackend.h
+++ b/www/ungoogled-chromium/files/patch-third__party_dawn_include_dawn_native_VulkanBackend.h
@@ -1,6 +1,6 @@
---- third_party/dawn/include/dawn/native/VulkanBackend.h.orig 2023-12-23 12:33:28 UTC
+--- third_party/dawn/include/dawn/native/VulkanBackend.h.orig 2024-05-23 20:04:36 UTC
+++ third_party/dawn/include/dawn/native/VulkanBackend.h
-@@ -83,7 +83,7 @@ struct ExternalImageExportInfoVk : ExternalImageExport
+@@ -90,7 +90,7 @@ struct DAWN_NATIVE_EXPORT SamplerYCbCrVulkanDescriptor
};
// Can't use DAWN_PLATFORM_IS(LINUX) since header included in both Dawn and Chrome
diff --git a/www/ungoogled-chromium/files/patch-third__party_ffmpeg_configure b/www/ungoogled-chromium/files/patch-third__party_ffmpeg_configure
index 4ef45be429b6..4e966476fb72 100644
--- a/www/ungoogled-chromium/files/patch-third__party_ffmpeg_configure
+++ b/www/ungoogled-chromium/files/patch-third__party_ffmpeg_configure
@@ -1,6 +1,6 @@
---- third_party/ffmpeg/configure.orig 2024-04-25 07:48:13 UTC
+--- third_party/ffmpeg/configure.orig 2024-05-23 20:04:36 UTC
+++ third_party/ffmpeg/configure
-@@ -6713,8 +6713,8 @@ if ! disabled pthreads && ! enabled w32threads && ! en
+@@ -6769,8 +6769,8 @@ if ! disabled pthreads && ! enabled w32threads && ! en
if enabled pthread_np_h; then
hdrs="$hdrs pthread_np.h"
fi
diff --git a/www/ungoogled-chromium/files/patch-third__party_libusb_src_libusb_libusb.h b/www/ungoogled-chromium/files/patch-third__party_libusb_src_libusb_libusb.h
deleted file mode 100644
index 912f0f9f0fee..000000000000
--- a/www/ungoogled-chromium/files/patch-third__party_libusb_src_libusb_libusb.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- third_party/libusb/src/libusb/libusb.h.orig 2024-04-23 07:42:17 UTC
-+++ third_party/libusb/src/libusb/libusb.h
-@@ -60,7 +60,7 @@ typedef unsigned __int32 uint32_t;
- #include <sys/types.h>
- #endif
-
--#if defined(__linux) || defined(__APPLE__) || defined(__CYGWIN__)
-+#if defined(__linux) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__OpenBSD__) || defined(__FreeBSD__)
- #include <sys/time.h>
- #endif
-
diff --git a/www/ungoogled-chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c b/www/ungoogled-chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c
index b7886c1b37ba..95248681cf92 100644
--- a/www/ungoogled-chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c
+++ b/www/ungoogled-chromium/files/patch-third__party_libvpx_source_libvpx_vpx__ports_aarch64__cpudetect.c
@@ -1,6 +1,6 @@
---- third_party/libvpx/source/libvpx/vpx_ports/aarch64_cpudetect.c.orig 2024-02-03 15:42:55 UTC
+--- third_party/libvpx/source/libvpx/vpx_ports/aarch64_cpudetect.c.orig 2024-05-23 20:04:36 UTC
+++ third_party/libvpx/source/libvpx/vpx_ports/aarch64_cpudetect.c
-@@ -91,9 +91,23 @@ static int arm_get_cpu_caps(void) {
+@@ -92,9 +92,23 @@ static int arm_get_cpu_caps(void) {
return flags;
}
diff --git a/www/ungoogled-chromium/files/patch-third__party_pdfium_fxjs_fx__date__helpers.cpp b/www/ungoogled-chromium/files/patch-third__party_pdfium_fxjs_fx__date__helpers.cpp
index 5e6b3e0a2008..77ddfd3fee0f 100644
--- a/www/ungoogled-chromium/files/patch-third__party_pdfium_fxjs_fx__date__helpers.cpp
+++ b/www/ungoogled-chromium/files/patch-third__party_pdfium_fxjs_fx__date__helpers.cpp
@@ -1,6 +1,6 @@
---- third_party/pdfium/fxjs/fx_date_helpers.cpp.orig 2022-10-01 07:40:07 UTC
+--- third_party/pdfium/fxjs/fx_date_helpers.cpp.orig 2024-05-23 20:04:36 UTC
+++ third_party/pdfium/fxjs/fx_date_helpers.cpp
-@@ -37,6 +37,11 @@ double GetLocalTZA() {
+@@ -39,6 +39,11 @@ double GetLocalTZA() {
return 0;
time_t t = 0;
FXSYS_time(&t);
@@ -12,7 +12,7 @@
FXSYS_localtime(&t);
#if BUILDFLAG(IS_WIN)
// In gcc 'timezone' is a global variable declared in time.h. In VC++, that
-@@ -45,6 +50,7 @@ double GetLocalTZA() {
+@@ -47,6 +52,7 @@ double GetLocalTZA() {
_get_timezone(&timezone);
#endif
return (double)(-(timezone * 1000));
diff --git a/www/ungoogled-chromium/files/patch-third__party_perfetto_include_perfetto_base_time.h b/www/ungoogled-chromium/files/patch-third__party_perfetto_include_perfetto_base_time.h
index a90ffcda2fa5..6985305a9341 100644
--- a/www/ungoogled-chromium/files/patch-third__party_perfetto_include_perfetto_base_time.h
+++ b/www/ungoogled-chromium/files/patch-third__party_perfetto_include_perfetto_base_time.h
@@ -1,6 +1,6 @@
---- third_party/perfetto/include/perfetto/base/time.h.orig 2024-02-03 15:42:55 UTC
+--- third_party/perfetto/include/perfetto/base/time.h.orig 2024-05-23 20:04:36 UTC
+++ third_party/perfetto/include/perfetto/base/time.h
-@@ -193,6 +193,9 @@ inline TimeNanos GetTimeInternalNs(clockid_t clk_id) {
+@@ -201,6 +201,9 @@ inline TimeNanos GetTimeInternalNs(clockid_t clk_id) {
// Return ns from boot. Conversely to GetWallTimeNs, this clock counts also time
// during suspend (when supported).
inline TimeNanos GetBootTimeNs() {
@@ -10,7 +10,7 @@
// Determine if CLOCK_BOOTTIME is available on the first call.
static const clockid_t kBootTimeClockSource = [] {
struct timespec ts = {};
-@@ -200,6 +203,7 @@ inline TimeNanos GetBootTimeNs() {
+@@ -208,6 +211,7 @@ inline TimeNanos GetBootTimeNs() {
return res == 0 ? CLOCK_BOOTTIME : kWallTimeClockSource;
}();
return GetTimeInternalNs(kBootTimeClockSource);
@@ -18,7 +18,7 @@
}
inline TimeNanos GetWallTimeNs() {
-@@ -207,7 +211,13 @@ inline TimeNanos GetWallTimeNs() {
+@@ -215,7 +219,13 @@ inline TimeNanos GetWallTimeNs() {
}
inline TimeNanos GetWallTimeRawNs() {
diff --git a/www/ungoogled-chromium/files/patch-third__party_protobuf_src_google_protobuf_arenastring.cc b/www/ungoogled-chromium/files/patch-third__party_protobuf_src_google_protobuf_arenastring.cc
deleted file mode 100644
index 65cd3b9406d4..000000000000
--- a/www/ungoogled-chromium/files/patch-third__party_protobuf_src_google_protobuf_arenastring.cc
+++ /dev/null
@@ -1,12 +0,0 @@
---- third_party/protobuf/src/google/protobuf/arenastring.cc.orig 2022-10-01 07:40:07 UTC
-+++ third_party/protobuf/src/google/protobuf/arenastring.cc
-@@ -64,7 +64,9 @@ constexpr size_t kNewAlign = alignof(std::max_align_t)
- #endif
- constexpr size_t kStringAlign = alignof(std::string);
-
-+#if !(defined(__FreeBSD__) && defined(__i386__))
- static_assert((kStringAlign > kNewAlign ? kStringAlign : kNewAlign) >= 8, "");
-+#endif
- static_assert(alignof(ExplicitlyConstructedArenaString) >= 8, "");
-
- } // namespace
diff --git a/www/ungoogled-chromium/files/patch-third__party_protobuf_src_google_protobuf_stubs_platform__macros.h b/www/ungoogled-chromium/files/patch-third__party_protobuf_src_google_protobuf_stubs_platform__macros.h
index a7c53a562c25..102ff5b46939 100644
--- a/www/ungoogled-chromium/files/patch-third__party_protobuf_src_google_protobuf_stubs_platform__macros.h
+++ b/www/ungoogled-chromium/files/patch-third__party_protobuf_src_google_protobuf_stubs_platform__macros.h
@@ -1,11 +1,11 @@
---- third_party/protobuf/src/google/protobuf/stubs/platform_macros.h.orig 2022-10-01 07:40:07 UTC
+--- third_party/protobuf/src/google/protobuf/stubs/platform_macros.h.orig 2024-05-23 20:04:36 UTC
+++ third_party/protobuf/src/google/protobuf/stubs/platform_macros.h
@@ -122,7 +122,7 @@ GOOGLE_PROTOBUF_PLATFORM_ERROR
#undef GOOGLE_PROTOBUF_PLATFORM_ERROR
--#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE) || defined(__OpenBSD__)
-+#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE)
+-#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE)
++#if defined(GOOGLE_PROTOBUF_OS_ANDROID) || defined(GOOGLE_PROTOBUF_OS_IPHONE) || defined(__OpenBSD__)
// Android ndk does not support the __thread keyword very well yet. Here
// we use pthread_key_create()/pthread_getspecific()/... methods for
// TLS support on android.
diff --git a/www/ungoogled-chromium/files/patch-third__party_speech-dispatcher_libspeechd__version.h b/www/ungoogled-chromium/files/patch-third__party_speech-dispatcher_libspeechd__version.h
index 7257538c8d58..3f950715d06f 100644
--- a/www/ungoogled-chromium/files/patch-third__party_speech-dispatcher_libspeechd__version.h
+++ b/www/ungoogled-chromium/files/patch-third__party_speech-dispatcher_libspeechd__version.h
@@ -1,4 +1,4 @@
---- third_party/speech-dispatcher/libspeechd_version.h.orig 2024-04-23 07:42:17 UTC
+--- third_party/speech-dispatcher/libspeechd_version.h.orig 2024-05-23 20:04:36 UTC
+++ third_party/speech-dispatcher/libspeechd_version.h
@@ -0,0 +1,29 @@
+/*
@@ -19,7 +19,7 @@
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
-+ * $Id: patch-third_party_speech-dispatcher_libspeechd_version_h,v 1.5 2024/04/23 07:27:06 robert Exp $
++ * $Id: patch-third_party_speech-dispatcher_libspeechd_version_h,v 1.6 2024/05/23 19:49:21 robert Exp $
+ */
+
+#ifndef _LIBSPEECHD_VERSION_H
diff --git a/www/ungoogled-chromium/files/patch-third__party_sqlite_src_amalgamation_sqlite3.c b/www/ungoogled-chromium/files/patch-third__party_sqlite_src_amalgamation_sqlite3.c
index 73c620b75dca..32cc8d1f15f4 100644
--- a/www/ungoogled-chromium/files/patch-third__party_sqlite_src_amalgamation_sqlite3.c
+++ b/www/ungoogled-chromium/files/patch-third__party_sqlite_src_amalgamation_sqlite3.c
@@ -1,6 +1,6 @@
---- third_party/sqlite/src/amalgamation/sqlite3.c.orig 2024-04-23 07:42:17 UTC
+--- third_party/sqlite/src/amalgamation/sqlite3.c.orig 2024-05-23 20:04:36 UTC
+++ third_party/sqlite/src/amalgamation/sqlite3.c
-@@ -44768,7 +44768,12 @@ static int unixRandomness(sqlite3_vfs *NotUsed, int nB
+@@ -44777,7 +44777,12 @@ static int unixRandomness(sqlite3_vfs *NotUsed, int nB
memset(zBuf, 0, nBuf);
randomnessPid = osGetpid(0);
#if !defined(SQLITE_TEST) && !defined(SQLITE_OMIT_RANDOMNESS)
@@ -13,7 +13,7 @@
int fd, got;
fd = robust_open("/dev/urandom", O_RDONLY, 0);
if( fd<0 ){
-@@ -44783,6 +44788,7 @@ static int unixRandomness(sqlite3_vfs *NotUsed, int nB
+@@ -44792,6 +44797,7 @@ static int unixRandomness(sqlite3_vfs *NotUsed, int nB
robust_close(0, fd, __LINE__);
}
}
diff --git a/www/ungoogled-chromium/files/patch-third__party_unrar_src_crypt.cpp b/www/ungoogled-chromium/files/patch-third__party_unrar_src_crypt.cpp
index 4127c3d26cbc..5faf68585213 100644
--- a/www/ungoogled-chromium/files/patch-third__party_unrar_src_crypt.cpp
+++ b/www/ungoogled-chromium/files/patch-third__party_unrar_src_crypt.cpp
@@ -1,6 +1,6 @@
---- third_party/unrar/src/crypt.cpp.orig 2024-04-23 07:42:17 UTC
+--- third_party/unrar/src/crypt.cpp.orig 2024-05-23 20:04:36 UTC
+++ third_party/unrar/src/crypt.cpp
-@@ -117,6 +117,8 @@ void GetRnd(byte *RndBuf,size_t BufSize)
+@@ -114,6 +114,8 @@ void GetRnd(byte *RndBuf,size_t BufSize)
Success=CryptGenRandom(hProvider, (DWORD)BufSize, RndBuf) == TRUE;
CryptReleaseContext(hProvider, 0);
}
diff --git a/www/ungoogled-chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x11_x__server__pixel__buffer.cc b/www/ungoogled-chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x11_x__server__pixel__buffer.cc
index 3403dff16e22..c5ab5505ad8b 100644
--- a/www/ungoogled-chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x11_x__server__pixel__buffer.cc
+++ b/www/ungoogled-chromium/files/patch-third__party_webrtc_modules_desktop__capture_linux_x11_x__server__pixel__buffer.cc
@@ -1,23 +1,15 @@
---- third_party/webrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc.orig 2024-04-23 07:42:17 UTC
+--- third_party/webrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc.orig 2024-05-23 20:04:36 UTC
+++ third_party/webrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc
-@@ -201,6 +201,12 @@ bool XServerPixelBuffer::Init(XAtomCache* cache, Windo
- }
-
+@@ -203,6 +203,12 @@ bool XServerPixelBuffer::Init(XAtomCache* cache, Windo
void XServerPixelBuffer::InitShm(const XWindowAttributes& attributes) {
+ Visual* default_visual = attributes.visual;
+ int default_depth = attributes.depth;
+#if defined(__OpenBSD__)
+// pledge(2)
+ RTC_LOG(LS_WARNING) << "Unable to use shmget(2) while using pledge(2). "
+ "Performance may be degraded.";
+ return;
-+#else
- Visual* default_visual = attributes.visual;
- int default_depth = attributes.depth;
-
-@@ -261,6 +267,7 @@ void XServerPixelBuffer::InitShm(const XWindowAttribut
- RTC_LOG(LS_VERBOSE) << "Using X shared memory extension v" << major << "."
- << minor << " with" << (have_pixmaps ? "" : "out")
- << " pixmaps.";
+#endif
- }
- bool XServerPixelBuffer::InitPixmaps(int depth) {
+ int major, minor;
+ Bool have_pixmaps;
diff --git a/www/ungoogled-chromium/files/patch-tools_json__schema__compiler_feature__compiler.py b/www/ungoogled-chromium/files/patch-tools_json__schema__compiler_feature__compiler.py
index 1e4866d514f2..a1c5277057c4 100644
--- a/www/ungoogled-chromium/files/patch-tools_json__schema__compiler_feature__compiler.py
+++ b/www/ungoogled-chromium/files/patch-tools_json__schema__compiler_feature__compiler.py
@@ -1,6 +1,6 @@
---- tools/json_schema_compiler/feature_compiler.py.orig 2024-02-25 20:22:18 UTC
+--- tools/json_schema_compiler/feature_compiler.py.orig 2024-05-23 20:04:36 UTC
+++ tools/json_schema_compiler/feature_compiler.py
-@@ -276,6 +276,8 @@ FEATURE_GRAMMAR = ({
+@@ -277,6 +277,8 @@ FEATURE_GRAMMAR = ({
'linux': 'Feature::LINUX_PLATFORM',
'mac': 'Feature::MACOSX_PLATFORM',
'win': 'Feature::WIN_PLATFORM',
diff --git a/www/ungoogled-chromium/files/patch-tools_protoc__wrapper_protoc__wrapper.py b/www/ungoogled-chromium/files/patch-tools_protoc__wrapper_protoc__wrapper.py
index d8cbeba2d530..df12036df738 100644
--- a/www/ungoogled-chromium/files/patch-tools_protoc__wrapper_protoc__wrapper.py
+++ b/www/ungoogled-chromium/files/patch-tools_protoc__wrapper_protoc__wrapper.py
@@ -1,6 +1,6 @@
---- tools/protoc_wrapper/protoc_wrapper.py.orig 2023-10-13 13:20:35 UTC
+--- tools/protoc_wrapper/protoc_wrapper.py.orig 2024-05-23 20:04:36 UTC
+++ tools/protoc_wrapper/protoc_wrapper.py
-@@ -179,15 +179,19 @@ def main(argv):
+@@ -183,15 +183,19 @@ def main(argv):
if not options.exclude_imports:
protoc_cmd += ["--include_imports"]
diff --git a/www/ungoogled-chromium/files/patch-ui_base_ime_fake__text__input__client.cc b/www/ungoogled-chromium/files/patch-ui_base_ime_fake__text__input__client.cc
index dcce0418fcdf..413dd5afa088 100644
--- a/www/ungoogled-chromium/files/patch-ui_base_ime_fake__text__input__client.cc
+++ b/www/ungoogled-chromium/files/patch-ui_base_ime_fake__text__input__client.cc
@@ -1,6 +1,6 @@
---- ui/base/ime/fake_text_input_client.cc.orig 2024-03-22 14:16:19 UTC
+--- ui/base/ime/fake_text_input_client.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/base/ime/fake_text_input_client.cc
-@@ -205,7 +205,7 @@ bool FakeTextInputClient::ShouldDoLearning() {
+@@ -209,7 +209,7 @@ bool FakeTextInputClient::ShouldDoLearning() {
return false;
}
diff --git a/www/ungoogled-chromium/files/patch-ui_base_ime_init_input__method__initializer.cc b/www/ungoogled-chromium/files/patch-ui_base_ime_init_input__method__initializer.cc
index a57ff630f50f..798fd1c9f9cc 100644
--- a/www/ungoogled-chromium/files/patch-ui_base_ime_init_input__method__initializer.cc
+++ b/www/ungoogled-chromium/files/patch-ui_base_ime_init_input__method__initializer.cc
@@ -1,4 +1,4 @@
---- ui/base/ime/init/input_method_initializer.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/base/ime/init/input_method_initializer.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/base/ime/init/input_method_initializer.cc
@@ -10,7 +10,7 @@
#include "build/chromeos_buildflags.h"
@@ -9,7 +9,7 @@
#include "ui/base/ime/linux/fake_input_method_context.h"
#include "ui/base/ime/linux/linux_input_method_context_factory.h"
#elif BUILDFLAG(IS_WIN)
-@@ -43,7 +43,7 @@ void RestartInputMethod() {
+@@ -33,7 +33,7 @@ void ShutdownInputMethod() {
}
void InitializeInputMethodForTesting() {
@@ -18,7 +18,7 @@
GetInputMethodContextFactoryForTest() =
base::BindRepeating([](LinuxInputMethodContextDelegate* delegate)
-> std::unique_ptr<LinuxInputMethodContext> {
-@@ -56,7 +56,7 @@ void InitializeInputMethodForTesting() {
+@@ -46,7 +46,7 @@ void InitializeInputMethodForTesting() {
void ShutdownInputMethodForTesting() {
#if !BUILDFLAG(IS_CHROMEOS_ASH) && defined(USE_AURA) && \
diff --git a/www/ungoogled-chromium/files/patch-ui_base_resource_resource__bundle.cc b/www/ungoogled-chromium/files/patch-ui_base_resource_resource__bundle.cc
index 746f9ea3df89..73529a1a2662 100644
--- a/www/ungoogled-chromium/files/patch-ui_base_resource_resource__bundle.cc
+++ b/www/ungoogled-chromium/files/patch-ui_base_resource_resource__bundle.cc
@@ -1,6 +1,6 @@
---- ui/base/resource/resource_bundle.cc.orig 2024-02-03 15:42:55 UTC
+--- ui/base/resource/resource_bundle.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/base/resource/resource_bundle.cc
-@@ -926,7 +926,7 @@ void ResourceBundle::ReloadFonts() {
+@@ -927,7 +927,7 @@ void ResourceBundle::ReloadFonts() {
}
ResourceScaleFactor ResourceBundle::GetMaxResourceScaleFactor() const {
diff --git a/www/ungoogled-chromium/files/patch-ui_base_ui__base__features.cc b/www/ungoogled-chromium/files/patch-ui_base_ui__base__features.cc
index 59184e5e4f85..443c848f6fe2 100644
--- a/www/ungoogled-chromium/files/patch-ui_base_ui__base__features.cc
+++ b/www/ungoogled-chromium/files/patch-ui_base_ui__base__features.cc
@@ -1,6 +1,6 @@
---- ui/base/ui_base_features.cc.orig 2024-05-11 05:39:22 UTC
+--- ui/base/ui_base_features.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/base/ui_base_features.cc
-@@ -228,7 +228,7 @@ BASE_FEATURE(kExperimentalFlingAnimation,
+@@ -245,7 +245,7 @@ BASE_FEATURE(kExperimentalFlingAnimation,
"ExperimentalFlingAnimation",
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -9,7 +9,7 @@
(BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS_ASH) && \
!BUILDFLAG(IS_CHROMEOS_LACROS))
base::FEATURE_ENABLED_BY_DEFAULT
-@@ -327,7 +327,7 @@ bool IsForcedColorsEnabled() {
+@@ -339,7 +339,7 @@ bool IsForcedColorsEnabled() {
BASE_FEATURE(kEyeDropper,
"EyeDropper",
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
diff --git a/www/ungoogled-chromium/files/patch-ui_base_x_x11__cursor__loader.cc b/www/ungoogled-chromium/files/patch-ui_base_x_x11__cursor__loader.cc
index 812c50683302..7c4f49bc107f 100644
--- a/www/ungoogled-chromium/files/patch-ui_base_x_x11__cursor__loader.cc
+++ b/www/ungoogled-chromium/files/patch-ui_base_x_x11__cursor__loader.cc
@@ -1,6 +1,6 @@
---- ui/base/x/x11_cursor_loader.cc.orig 2024-02-03 15:42:55 UTC
+--- ui/base/x/x11_cursor_loader.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/base/x/x11_cursor_loader.cc
-@@ -31,7 +31,7 @@
+@@ -33,7 +33,7 @@
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/xproto.h"
@@ -9,7 +9,7 @@
#include "ui/linux/linux_ui.h"
#endif
-@@ -137,7 +137,11 @@ std::string CursorPathFromLibXcursor() {
+@@ -139,7 +139,11 @@ std::string CursorPathFromLibXcursor() {
void operator()(void* ptr) const { dlclose(ptr); }
};
@@ -21,7 +21,7 @@
if (!lib)
return "";
-@@ -248,7 +252,7 @@ scoped_refptr<base::RefCountedMemory> ReadCursorFile(
+@@ -250,7 +254,7 @@ scoped_refptr<base::RefCountedMemory> ReadCursorFile(
const std::string& rm_xcursor_theme) {
constexpr const char kDefaultTheme[] = "default";
std::string themes[] = {
@@ -30,7 +30,7 @@
// The toolkit theme has the highest priority.
LinuxUi::instance() ? LinuxUi::instance()->GetCursorThemeName()
: std::string(),
-@@ -440,7 +444,7 @@ uint32_t XCursorLoader::GetPreferredCursorSize() const
+@@ -442,7 +446,7 @@ uint32_t XCursorLoader::GetPreferredCursorSize() const
return size;
}
diff --git a/www/ungoogled-chromium/files/patch-ui_color_color__id.h b/www/ungoogled-chromium/files/patch-ui_color_color__id.h
index 7ed60ac72968..2d0ca1bc28f0 100644
--- a/www/ungoogled-chromium/files/patch-ui_color_color__id.h
+++ b/www/ungoogled-chromium/files/patch-ui_color_color__id.h
@@ -1,9 +1,9 @@
---- ui/color/color_id.h.orig 2024-03-22 14:16:19 UTC
+--- ui/color/color_id.h.orig 2024-05-23 20:04:36 UTC
+++ ui/color/color_id.h
-@@ -611,7 +611,7 @@
- E_CPONLY(kColorNativeColor6) \
- E_CPONLY(kColorNativeBaseColor) \
- E_CPONLY(kColorNativeSecondaryColor)
+@@ -626,7 +626,7 @@
+ \
+ E_CPONLY(kColorCrosSysPositive) \
+ E_CPONLY(kColorCrosSysComplementVariant)
-#elif BUILDFLAG(IS_LINUX)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#define PLATFORM_SPECIFIC_COLOR_IDS \
diff --git a/www/ungoogled-chromium/files/patch-ui_compositor_compositor.cc b/www/ungoogled-chromium/files/patch-ui_compositor_compositor.cc
index 9f4fdde29164..194a20c7afab 100644
--- a/www/ungoogled-chromium/files/patch-ui_compositor_compositor.cc
+++ b/www/ungoogled-chromium/files/patch-ui_compositor_compositor.cc
@@ -1,6 +1,6 @@
---- ui/compositor/compositor.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/compositor/compositor.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/compositor/compositor.cc
-@@ -910,7 +910,7 @@ void Compositor::OnResume() {
+@@ -922,7 +922,7 @@ void Compositor::OnResume() {
obs.ResetIfActive();
}
diff --git a/www/ungoogled-chromium/files/patch-ui_compositor_compositor.h b/www/ungoogled-chromium/files/patch-ui_compositor_compositor.h
index d8b23f87123a..c28c42cae304 100644
--- a/www/ungoogled-chromium/files/patch-ui_compositor_compositor.h
+++ b/www/ungoogled-chromium/files/patch-ui_compositor_compositor.h
@@ -1,6 +1,6 @@
---- ui/compositor/compositor.h.orig 2024-04-23 07:42:17 UTC
+--- ui/compositor/compositor.h.orig 2024-05-23 20:04:36 UTC
+++ ui/compositor/compositor.h
-@@ -455,7 +455,7 @@ class COMPOSITOR_EXPORT Compositor : public base::Powe
+@@ -456,7 +456,7 @@ class COMPOSITOR_EXPORT Compositor : public base::Powe
// base::PowerSuspendObserver:
void OnResume() override;
diff --git a/www/ungoogled-chromium/files/patch-ui_gfx_BUILD.gn b/www/ungoogled-chromium/files/patch-ui_gfx_BUILD.gn
index bbce308a2ab2..260db56537f4 100644
--- a/www/ungoogled-chromium/files/patch-ui_gfx_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-ui_gfx_BUILD.gn
@@ -1,6 +1,6 @@
---- ui/gfx/BUILD.gn.orig 2024-02-25 20:22:18 UTC
+--- ui/gfx/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ ui/gfx/BUILD.gn
-@@ -664,7 +664,7 @@ source_set("memory_buffer_sources") {
+@@ -663,7 +663,7 @@ source_set("memory_buffer_sources") {
deps += [ "//build/config/linux/libdrm" ]
}
diff --git a/www/ungoogled-chromium/files/patch-ui_gfx_codec_png__codec.cc b/www/ungoogled-chromium/files/patch-ui_gfx_codec_png__codec.cc
deleted file mode 100644
index c4bfbdc197fc..000000000000
--- a/www/ungoogled-chromium/files/patch-ui_gfx_codec_png__codec.cc
+++ /dev/null
@@ -1,11 +0,0 @@
---- ui/gfx/codec/png_codec.cc.orig 2023-10-13 13:20:35 UTC
-+++ ui/gfx/codec/png_codec.cc
-@@ -12,7 +12,7 @@
- #include "base/metrics/histogram_macros.h"
- #include "base/notreached.h"
- #include "base/strings/string_util.h"
--#include "third_party/libpng/png.h"
-+#include <png.h>
- #include "third_party/skia/include/core/SkBitmap.h"
- #include "third_party/skia/include/core/SkColorPriv.h"
- #include "third_party/skia/include/core/SkUnPreMultiply.h"
diff --git a/www/ungoogled-chromium/files/patch-ui_gfx_gpu__memory__buffer.cc b/www/ungoogled-chromium/files/patch-ui_gfx_gpu__memory__buffer.cc
index bcc4c454f111..fc12f3bfc223 100644
--- a/www/ungoogled-chromium/files/patch-ui_gfx_gpu__memory__buffer.cc
+++ b/www/ungoogled-chromium/files/patch-ui_gfx_gpu__memory__buffer.cc
@@ -1,6 +1,6 @@
---- ui/gfx/gpu_memory_buffer.cc.orig 2023-04-08 11:38:38 UTC
+--- ui/gfx/gpu_memory_buffer.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/gfx/gpu_memory_buffer.cc
-@@ -54,7 +54,7 @@ GpuMemoryBufferHandle GpuMemoryBufferHandle::Clone() c
+@@ -55,7 +55,7 @@ GpuMemoryBufferHandle GpuMemoryBufferHandle::Clone() c
handle.region = region.Duplicate();
handle.offset = offset;
handle.stride = stride;
diff --git a/www/ungoogled-chromium/files/patch-ui_gfx_linux_gbm__wrapper.cc b/www/ungoogled-chromium/files/patch-ui_gfx_linux_gbm__wrapper.cc
index 0f6469d480de..247b6b7579e6 100644
--- a/www/ungoogled-chromium/files/patch-ui_gfx_linux_gbm__wrapper.cc
+++ b/www/ungoogled-chromium/files/patch-ui_gfx_linux_gbm__wrapper.cc
@@ -1,6 +1,6 @@
---- ui/gfx/linux/gbm_wrapper.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/gfx/linux/gbm_wrapper.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/gfx/linux/gbm_wrapper.cc
-@@ -313,7 +313,7 @@ class Device final : public ui::GbmDevice {
+@@ -314,7 +314,7 @@ class Device final : public ui::GbmDevice {
// of 1x1 BOs which are destroyed before creating the final BO creation used
// to instantiate the returned GbmBuffer.
gfx::Size size_for_verification =
diff --git a/www/ungoogled-chromium/files/patch-ui_gl_BUILD.gn b/www/ungoogled-chromium/files/patch-ui_gl_BUILD.gn
index 9f526f802c86..e763c0d0ac8f 100644
--- a/www/ungoogled-chromium/files/patch-ui_gl_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-ui_gl_BUILD.gn
@@ -1,4 +1,4 @@
---- ui/gl/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- ui/gl/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ ui/gl/BUILD.gn
@@ -153,8 +153,6 @@ component("gl") {
defines += [ "GPU_ENABLE_SERVICE_LOGGING" ]
@@ -9,7 +9,7 @@
all_dependent_configs = [ ":gl_config" ]
public_configs = [ "//third_party/khronos:khronos_headers" ]
-@@ -172,7 +170,6 @@ component("gl") {
+@@ -171,7 +169,6 @@ component("gl") {
]
public_deps = [
"//base",
@@ -17,7 +17,7 @@
"//ui/events/platform",
"//ui/gfx",
"//ui/gfx/geometry",
-@@ -379,7 +376,6 @@ component("gl") {
+@@ -378,7 +375,6 @@ component("gl") {
data_deps += [
"//third_party/angle:libEGL",
"//third_party/angle:libGLESv2",
@@ -25,7 +25,7 @@
]
if (enable_swiftshader) {
data_deps += [
-@@ -579,7 +575,6 @@ test("gl_unittests") {
+@@ -578,7 +574,6 @@ test("gl_unittests") {
data_deps = [
"//testing/buildbot/filters:gl_unittests_filters",
diff --git a/www/ungoogled-chromium/files/patch-ui_gl_gl__switches.cc b/www/ungoogled-chromium/files/patch-ui_gl_gl__switches.cc
index 3673621aeac6..1c9c0670c5d3 100644
--- a/www/ungoogled-chromium/files/patch-ui_gl_gl__switches.cc
+++ b/www/ungoogled-chromium/files/patch-ui_gl_gl__switches.cc
@@ -1,4 +1,4 @@
---- ui/gl/gl_switches.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/gl/gl_switches.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/gl/gl_switches.cc
@@ -11,7 +11,7 @@
#include "base/android/build_info.h"
@@ -9,7 +9,7 @@
#include <vulkan/vulkan_core.h>
#include "third_party/angle/src/gpu_info_util/SystemInfo.h" // nogncheck
#endif
-@@ -298,7 +298,7 @@ bool IsDefaultANGLEVulkan() {
+@@ -288,7 +288,7 @@ bool IsDefaultANGLEVulkan() {
base::android::SDK_VERSION_Q)
return false;
#endif // BUILDFLAG(IS_ANDROID)
@@ -18,7 +18,7 @@
angle::SystemInfo system_info;
if (!angle::GetSystemInfoVulkan(&system_info))
return false;
-@@ -310,7 +310,7 @@ bool IsDefaultANGLEVulkan() {
+@@ -300,7 +300,7 @@ bool IsDefaultANGLEVulkan() {
const auto& active_gpu = system_info.gpus[system_info.activeGPUIndex];
diff --git a/www/ungoogled-chromium/files/patch-ui_native__theme_native__theme__base.cc b/www/ungoogled-chromium/files/patch-ui_native__theme_native__theme__base.cc
index c6aa18665be5..9e647c0e986c 100644
--- a/www/ungoogled-chromium/files/patch-ui_native__theme_native__theme__base.cc
+++ b/www/ungoogled-chromium/files/patch-ui_native__theme_native__theme__base.cc
@@ -1,6 +1,6 @@
---- ui/native_theme/native_theme_base.cc.orig 2023-11-04 07:08:51 UTC
+--- ui/native_theme/native_theme_base.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/native_theme/native_theme_base.cc
-@@ -235,7 +235,7 @@ void NativeThemeBase::Paint(cc::PaintCanvas* canvas,
+@@ -236,7 +236,7 @@ void NativeThemeBase::Paint(cc::PaintCanvas* canvas,
break;
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__connection.cc b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__connection.cc
index 3b545be8d8df..443648119bda 100644
--- a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__connection.cc
+++ b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__connection.cc
@@ -1,6 +1,6 @@
---- ui/ozone/platform/wayland/host/wayland_connection.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/ozone/platform/wayland/host/wayland_connection.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/ozone/platform/wayland/host/wayland_connection.cc
-@@ -539,7 +539,7 @@ bool WaylandConnection::ShouldUseOverlayDelegation() c
+@@ -536,7 +536,7 @@ bool WaylandConnection::ShouldUseOverlayDelegation() c
// isn't present on any non-exo Wayland compositors.
bool should_use_overlay_delegation =
IsWaylandOverlayDelegationEnabled() && !fractional_scale_manager_v1();
diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__popup.cc b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__popup.cc
new file mode 100644
index 000000000000..193fef70a28a
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__popup.cc
@@ -0,0 +1,11 @@
+--- ui/ozone/platform/wayland/host/wayland_popup.cc.orig 2024-05-23 20:04:36 UTC
++++ ui/ozone/platform/wayland/host/wayland_popup.cc
+@@ -34,7 +34,7 @@ WaylandPopup::WaylandPopup(PlatformWindowDelegate* del
+ WaylandWindow* parent)
+ : WaylandWindow(delegate, connection) {
+ set_parent_window(parent);
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ // TODO(crbug.com/330384470): Whether the popup appear depends on whether
+ // anchor point is outside of the parent xdg_surface. On Mutter the popup will
+ // not show when outside.
diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.cc b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.cc
index ef2bd6054065..d07496fa55e1 100644
--- a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.cc
+++ b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.cc
@@ -1,6 +1,6 @@
---- ui/ozone/platform/wayland/host/wayland_toplevel_window.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/ozone/platform/wayland/host/wayland_toplevel_window.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/ozone/platform/wayland/host/wayland_toplevel_window.cc
-@@ -606,7 +606,7 @@ void WaylandToplevelWindow::HandleAuraToplevelConfigur
+@@ -615,7 +615,7 @@ void WaylandToplevelWindow::HandleAuraToplevelConfigur
const bool did_active_change = is_active_ != window_states.is_activated;
is_active_ = window_states.is_activated;
diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.h b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.h
index ac9564d057f9..ec259e9ebf0b 100644
--- a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.h
+++ b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__toplevel__window.h
@@ -1,6 +1,6 @@
---- ui/ozone/platform/wayland/host/wayland_toplevel_window.h.orig 2024-04-23 07:42:17 UTC
+--- ui/ozone/platform/wayland/host/wayland_toplevel_window.h.orig 2024-05-23 20:04:36 UTC
+++ ui/ozone/platform/wayland/host/wayland_toplevel_window.h
-@@ -265,7 +265,7 @@ class WaylandToplevelWindow : public WaylandWindow,
+@@ -263,7 +263,7 @@ class WaylandToplevelWindow : public WaylandWindow,
// The display ID to switch to in case the state is `kFullscreen`.
int64_t fullscreen_display_id_ = display::kInvalidDisplayId;
diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.cc b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.cc
index 1bfccc93af47..49a10f708bfa 100644
--- a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.cc
+++ b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.cc
@@ -1,6 +1,6 @@
---- ui/ozone/platform/wayland/host/wayland_window.cc.orig 2024-03-22 14:16:19 UTC
+--- ui/ozone/platform/wayland/host/wayland_window.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/ozone/platform/wayland/host/wayland_window.cc
-@@ -245,7 +245,7 @@ void WaylandWindow::OnPointerFocusChanged(bool focused
+@@ -294,7 +294,7 @@ void WaylandWindow::OnPointerFocusChanged(bool focused
// Whenever the window gets the pointer focus back, the cursor shape must be
// updated. Otherwise, it is invalidated upon wl_pointer::leave and is not
// restored by the Wayland compositor.
@@ -9,7 +9,7 @@
if (focused && async_cursor_) {
async_cursor_->AddCursorLoadedCallback(
base::BindOnce(&WaylandWindow::OnCursorLoaded,
-@@ -506,7 +506,7 @@ bool WaylandWindow::ShouldUseNativeFrame() const {
+@@ -554,7 +554,7 @@ bool WaylandWindow::ShouldUseNativeFrame() const {
void WaylandWindow::SetCursor(scoped_refptr<PlatformCursor> platform_cursor) {
DCHECK(platform_cursor);
@@ -18,7 +18,7 @@
auto async_cursor = WaylandAsyncCursor::FromPlatformCursor(platform_cursor);
if (async_cursor_ == async_cursor) {
-@@ -716,7 +716,7 @@ std::string WaylandWindow::WindowStates::ToString() co
+@@ -776,7 +776,7 @@ std::string WaylandWindow::WindowStates::ToString() co
} else {
base::TrimString(states, " ", &states);
}
@@ -27,7 +27,7 @@
states += "; tiled_edges: ";
std::string tiled = "";
if (tiled_edges.left) {
-@@ -1185,12 +1185,12 @@ void WaylandWindow::UpdateCursorShape(scoped_refptr<Bi
+@@ -1258,12 +1258,12 @@ void WaylandWindow::UpdateCursorShape(scoped_refptr<Bi
cursor->bitmaps(), hotspot_in_dips,
std::ceil(cursor->cursor_image_scale_factor()));
}
diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.h b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.h
index 3ff13d374d05..bf67e5918261 100644
--- a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.h
+++ b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_host_wayland__window.h
@@ -1,4 +1,4 @@
---- ui/ozone/platform/wayland/host/wayland_window.h.orig 2024-04-23 07:42:17 UTC
+--- ui/ozone/platform/wayland/host/wayland_window.h.orig 2024-05-23 20:04:36 UTC
+++ ui/ozone/platform/wayland/host/wayland_window.h
@@ -40,7 +40,7 @@
#include "ui/platform_window/platform_window_init_properties.h"
@@ -9,7 +9,7 @@
#include "ui/ozone/platform/wayland/host/wayland_async_cursor.h"
#endif
-@@ -251,7 +251,7 @@ class WaylandWindow : public PlatformWindow,
+@@ -261,7 +261,7 @@ class WaylandWindow : public PlatformWindow,
bool is_snapped_primary = false;
bool is_snapped_secondary = false;
bool is_floated = false;
@@ -18,7 +18,7 @@
WindowTiledEdges tiled_edges;
#endif
-@@ -510,7 +510,7 @@ class WaylandWindow : public PlatformWindow,
+@@ -548,7 +548,7 @@ class WaylandWindow : public PlatformWindow,
void UpdateCursorShape(scoped_refptr<BitmapCursor> cursor);
@@ -27,7 +27,7 @@
void OnCursorLoaded(scoped_refptr<WaylandAsyncCursor> cursor,
scoped_refptr<BitmapCursor> bitmap_cursor);
#endif
-@@ -571,7 +571,7 @@ class WaylandWindow : public PlatformWindow,
+@@ -618,7 +618,7 @@ class WaylandWindow : public PlatformWindow,
wl::Object<zaura_surface> aura_surface_;
diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_ozone__platform__wayland.cc b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_ozone__platform__wayland.cc
index 0fe255a17488..4713852120e5 100644
--- a/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_ozone__platform__wayland.cc
+++ b/www/ungoogled-chromium/files/patch-ui_ozone_platform_wayland_ozone__platform__wayland.cc
@@ -1,4 +1,4 @@
---- ui/ozone/platform/wayland/ozone_platform_wayland.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/ozone/platform/wayland/ozone_platform_wayland.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/ozone/platform/wayland/ozone_platform_wayland.cc
@@ -67,13 +67,13 @@
#include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
@@ -43,7 +43,7 @@
// TODO(crbug.com/40800718): Revisit (and maybe remove) once proper
// support, probably backed by org.freedesktop.portal.Screenshot.PickColor
// API is implemented. Note: this is restricted to Linux Desktop as Lacros
-@@ -532,7 +532,7 @@ class OzonePlatformWayland : public OzonePlatform,
+@@ -535,7 +535,7 @@ class OzonePlatformWayland : public OzonePlatform,
DrmRenderNodePathFinder path_finder_;
#endif
diff --git a/www/ungoogled-chromium/files/patch-ui_ozone_platform_x11_x11__window.cc b/www/ungoogled-chromium/files/patch-ui_ozone_platform_x11_x11__window.cc
index 6c9ae9ed1a87..87b0f36fd541 100644
--- a/www/ungoogled-chromium/files/patch-ui_ozone_platform_x11_x11__window.cc
+++ b/www/ungoogled-chromium/files/patch-ui_ozone_platform_x11_x11__window.cc
@@ -1,6 +1,6 @@
---- ui/ozone/platform/x11/x11_window.cc.orig 2024-03-22 14:16:19 UTC
+--- ui/ozone/platform/x11/x11_window.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/ozone/platform/x11/x11_window.cc
-@@ -1501,7 +1501,7 @@ void X11Window::OnXWindowStateChanged() {
+@@ -1495,7 +1495,7 @@ void X11Window::OnXWindowStateChanged() {
WindowTiledEdges tiled_state = GetTiledState();
if (tiled_state != tiled_state_) {
tiled_state_ = tiled_state;
diff --git a/www/ungoogled-chromium/files/patch-ui_platform__window_platform__window__init__properties.h b/www/ungoogled-chromium/files/patch-ui_platform__window_platform__window__init__properties.h
index a909647277f2..d63def2b287c 100644
--- a/www/ungoogled-chromium/files/patch-ui_platform__window_platform__window__init__properties.h
+++ b/www/ungoogled-chromium/files/patch-ui_platform__window_platform__window__init__properties.h
@@ -1,4 +1,4 @@
---- ui/platform_window/platform_window_init_properties.h.orig 2024-03-22 14:16:19 UTC
+--- ui/platform_window/platform_window_init_properties.h.orig 2024-05-23 20:04:36 UTC
+++ ui/platform_window/platform_window_init_properties.h
@@ -56,7 +56,7 @@ class WorkspaceExtensionDelegate;
class ScenicWindowDelegate;
@@ -9,7 +9,7 @@
class X11ExtensionDelegate;
#endif
-@@ -121,7 +121,7 @@ struct COMPONENT_EXPORT(PLATFORM_WINDOW) PlatformWindo
+@@ -123,7 +123,7 @@ struct COMPONENT_EXPORT(PLATFORM_WINDOW) PlatformWindo
PlatformWindowShadowType shadow_type = PlatformWindowShadowType::kDefault;
diff --git a/www/ungoogled-chromium/files/patch-ui_views_focus_focus__manager.cc b/www/ungoogled-chromium/files/patch-ui_views_focus_focus__manager.cc
index 00d7a43377f9..8fff1f479de5 100644
--- a/www/ungoogled-chromium/files/patch-ui_views_focus_focus__manager.cc
+++ b/www/ungoogled-chromium/files/patch-ui_views_focus_focus__manager.cc
@@ -1,6 +1,6 @@
---- ui/views/focus/focus_manager.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/views/focus/focus_manager.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/views/focus/focus_manager.cc
-@@ -579,7 +579,7 @@ bool FocusManager::RedirectAcceleratorToBubbleAnchorWi
+@@ -582,7 +582,7 @@ bool FocusManager::RedirectAcceleratorToBubbleAnchorWi
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
@@ -9,7 +9,7 @@
// Processing an accelerator can delete things. Because we
// need these objects afterwards on Linux, save widget_ as weak pointer and
// save the close_on_deactivate property value of widget_delegate in a
-@@ -596,7 +596,7 @@ bool FocusManager::RedirectAcceleratorToBubbleAnchorWi
+@@ -599,7 +599,7 @@ bool FocusManager::RedirectAcceleratorToBubbleAnchorWi
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
// of lacros-chrome is complete.
diff --git a/www/ungoogled-chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.cc b/www/ungoogled-chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.cc
index d1fc4cb99f60..3cb0743b112d 100644
--- a/www/ungoogled-chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.cc
+++ b/www/ungoogled-chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.cc
@@ -1,6 +1,6 @@
---- ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
-@@ -47,7 +47,7 @@
+@@ -48,7 +48,7 @@
#include "ui/wm/core/window_util.h"
#include "ui/wm/public/window_move_client.h"
@@ -9,16 +9,7 @@
#include "ui/views/widget/desktop_aura/desktop_drag_drop_client_ozone_linux.h"
#endif
-@@ -272,7 +272,7 @@ void DesktopWindowTreeHostPlatform::Init(const Widget:
- if (params.type == Widget::InitParams::TYPE_WINDOW)
- GetContentWindow()->SetProperty(aura::client::kAnimationsDisabledKey, true);
-
--#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
-+#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD))
- const bool requires_accelerated_widget = params.requires_accelerated_widget;
- #else
- const bool requires_accelerated_widget = false;
-@@ -356,7 +356,7 @@ std::unique_ptr<aura::client::DragDropClient>
+@@ -362,7 +362,7 @@ std::unique_ptr<aura::client::DragDropClient>
DesktopWindowTreeHostPlatform::CreateDragDropClient() {
ui::WmDragHandler* drag_handler = ui::GetWmDragHandler(*(platform_window()));
std::unique_ptr<DesktopDragDropClientOzone> drag_drop_client =
@@ -27,7 +18,7 @@
std::make_unique<DesktopDragDropClientOzoneLinux>(window(), drag_handler);
#else
std::make_unique<DesktopDragDropClientOzone>(window(), drag_handler);
-@@ -1117,7 +1117,7 @@ bool DesktopWindowTreeHostPlatform::RotateFocusForWidg
+@@ -1141,7 +1141,7 @@ bool DesktopWindowTreeHostPlatform::RotateFocusForWidg
// DesktopWindowTreeHost:
// Linux subclasses this host and adds some Linux specific bits.
diff --git a/www/ungoogled-chromium/files/patch-ui_views_widget_widget.cc b/www/ungoogled-chromium/files/patch-ui_views_widget_widget.cc
index b517360535e3..e796f8f0b5f7 100644
--- a/www/ungoogled-chromium/files/patch-ui_views_widget_widget.cc
+++ b/www/ungoogled-chromium/files/patch-ui_views_widget_widget.cc
@@ -1,4 +1,4 @@
---- ui/views/widget/widget.cc.orig 2024-04-23 07:42:17 UTC
+--- ui/views/widget/widget.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/views/widget/widget.cc
@@ -54,7 +54,7 @@
#include "ui/views/window/custom_frame_view.h"
@@ -9,7 +9,7 @@
#include "ui/linux/linux_ui.h"
#endif
-@@ -2106,7 +2106,7 @@ const ui::NativeTheme* Widget::GetNativeTheme() const
+@@ -2140,7 +2140,7 @@ const ui::NativeTheme* Widget::GetNativeTheme() const
if (parent_)
return parent_->GetNativeTheme();
diff --git a/www/ungoogled-chromium/files/patch-ui_views_widget_widget.h b/www/ungoogled-chromium/files/patch-ui_views_widget_widget.h
deleted file mode 100644
index 5ccec4ab933d..000000000000
--- a/www/ungoogled-chromium/files/patch-ui_views_widget_widget.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- ui/views/widget/widget.h.orig 2024-04-23 07:42:17 UTC
-+++ ui/views/widget/widget.h
-@@ -427,7 +427,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWid
- // If set, the widget was created in headless mode.
- bool headless_mode = false;
-
--#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
-+#if defined(USE_AURA) && (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD))
- // Indicates whether the desktop native widget is required for the widget.
- // This may enforce changing the type of the underlying platform window.
- // See crbug.com/1280332
diff --git a/www/ungoogled-chromium/files/patch-ui_views_window_dialog__delegate.cc b/www/ungoogled-chromium/files/patch-ui_views_window_dialog__delegate.cc
index 83315a09556d..6d336c9cdb93 100644
--- a/www/ungoogled-chromium/files/patch-ui_views_window_dialog__delegate.cc
+++ b/www/ungoogled-chromium/files/patch-ui_views_window_dialog__delegate.cc
@@ -1,6 +1,6 @@
---- ui/views/window/dialog_delegate.cc.orig 2023-12-23 12:33:28 UTC
+--- ui/views/window/dialog_delegate.cc.orig 2024-05-23 20:04:36 UTC
+++ ui/views/window/dialog_delegate.cc
-@@ -79,7 +79,7 @@ Widget* DialogDelegate::CreateDialogWidget(
+@@ -103,7 +103,7 @@ Widget* DialogDelegate::CreateDialogWidget(
// static
bool DialogDelegate::CanSupportCustomFrame(gfx::NativeView parent) {
diff --git a/www/ungoogled-chromium/files/patch-v8_BUILD.gn b/www/ungoogled-chromium/files/patch-v8_BUILD.gn
index 453a9f8ed904..5dc141bead08 100644
--- a/www/ungoogled-chromium/files/patch-v8_BUILD.gn
+++ b/www/ungoogled-chromium/files/patch-v8_BUILD.gn
@@ -1,21 +1,28 @@
---- v8/BUILD.gn.orig 2024-04-23 07:42:17 UTC
+--- v8/BUILD.gn.orig 2024-05-23 20:04:36 UTC
+++ v8/BUILD.gn
-@@ -1455,6 +1455,14 @@ config("toolchain") {
- } else if (target_os == "chromeos") {
- defines += [ "V8_HAVE_TARGET_OS" ]
- defines += [ "V8_TARGET_OS_CHROMEOS" ]
-+ } else if (target_os == "openbsd") {
-+ defines += [ "V8_HAVE_TARGET_OS" ]
-+ defines += [ "V8_TARGET_OS_OPENBSD" ]
-+ defines += [ "V8_TARGET_OS_BSD" ]
-+ } else if (target_os == "freebsd") {
-+ defines += [ "V8_HAVE_TARGET_OS" ]
-+ defines += [ "V8_TARGET_OS_FREEBSD" ]
-+ defines += [ "V8_TARGET_OS_BSD" ]
- }
+@@ -883,6 +883,8 @@ external_v8_defines = [
+ "V8_TARGET_OS_MACOS",
+ "V8_TARGET_OS_WIN",
+ "V8_TARGET_OS_CHROMEOS",
++ "V8_TARGET_OS_OPENBSD",
++ "V8_TARGET_OS_FREEBSD",
+ ]
+
+ enabled_external_v8_defines = []
+@@ -955,6 +957,12 @@ if (target_os == "android") {
+ } else if (target_os == "chromeos") {
+ enabled_external_v8_defines += [ "V8_HAVE_TARGET_OS" ]
+ enabled_external_v8_defines += [ "V8_TARGET_OS_CHROMEOS" ]
++} else if (target_os == "openbsd") {
++ enabled_external_v8_defines += [ "V8_HAVE_TARGET_OS" ]
++ enabled_external_v8_defines += [ "V8_TARGET_OS_OPENBSD" ]
++} else if (target_os == "freebsd") {
++ enabled_external_v8_defines += [ "V8_HAVE_TARGET_OS" ]
++ enabled_external_v8_defines += [ "V8_TARGET_OS_FREEBSD" ]
+ }
- # TODO(infra): Support v8_enable_prof on Windows.
-@@ -2442,6 +2450,12 @@ template("run_mksnapshot") {
+ disabled_external_v8_defines = external_v8_defines - enabled_external_v8_defines
+@@ -2456,6 +2464,12 @@ template("run_mksnapshot") {
if (!v8_enable_builtins_profiling && v8_enable_builtins_reordering) {
args += [ "--reorder-builtins" ]
}
@@ -28,7 +35,7 @@
}
# This is needed to distinguish between generating code for the simulator
-@@ -6448,7 +6462,7 @@ v8_component("v8_libbase") {
+@@ -6479,7 +6493,7 @@ v8_component("v8_libbase") {
}
}
@@ -37,7 +44,7 @@
sources += [
"src/base/debug/stack_trace_posix.cc",
"src/base/platform/platform-linux.cc",
-@@ -6459,6 +6473,18 @@ v8_component("v8_libbase") {
+@@ -6490,6 +6504,18 @@ v8_component("v8_libbase") {
"dl",
"rt",
]
diff --git a/www/ungoogled-chromium/files/patch-v8_src_api_api.cc b/www/ungoogled-chromium/files/patch-v8_src_api_api.cc
index 9b46fde35328..cb3b2896b664 100644
--- a/www/ungoogled-chromium/files/patch-v8_src_api_api.cc
+++ b/www/ungoogled-chromium/files/patch-v8_src_api_api.cc
@@ -1,4 +1,4 @@
---- v8/src/api/api.cc.orig 2024-04-23 07:42:17 UTC
+--- v8/src/api/api.cc.orig 2024-05-23 20:04:36 UTC
+++ v8/src/api/api.cc
@@ -144,7 +144,7 @@
#include "src/wasm/wasm-serialization.h"
@@ -9,7 +9,7 @@
#include <signal.h>
#include <unistd.h>
-@@ -6396,7 +6396,7 @@ bool v8::V8::Initialize(const int build_config) {
+@@ -6393,7 +6393,7 @@ bool v8::V8::Initialize(const int build_config) {
return true;
}
diff --git a/www/ungoogled-chromium/files/patch-v8_src_base_platform_platform-posix.cc b/www/ungoogled-chromium/files/patch-v8_src_base_platform_platform-posix.cc
index db71a240bf92..f74e94a613d0 100644
--- a/www/ungoogled-chromium/files/patch-v8_src_base_platform_platform-posix.cc
+++ b/www/ungoogled-chromium/files/patch-v8_src_base_platform_platform-posix.cc
@@ -1,4 +1,4 @@
---- v8/src/base/platform/platform-posix.cc.orig 2024-03-22 14:16:19 UTC
+--- v8/src/base/platform/platform-posix.cc.orig 2024-05-23 20:04:36 UTC
+++ v8/src/base/platform/platform-posix.cc
@@ -54,7 +54,7 @@
#if V8_OS_DARWIN
@@ -18,7 +18,7 @@
#define MAP_ANONYMOUS MAP_ANON
#endif
-@@ -303,8 +303,15 @@ void OS::SetRandomMmapSeed(int64_t seed) {
+@@ -305,8 +305,15 @@ void OS::SetRandomMmapSeed(int64_t seed) {
}
}
@@ -34,7 +34,7 @@
uintptr_t raw_addr;
{
MutexGuard guard(rng_mutex.Pointer());
-@@ -399,6 +406,7 @@ void* OS::GetRandomMmapAddr() {
+@@ -401,6 +408,7 @@ void* OS::GetRandomMmapAddr() {
#endif
return reinterpret_cast<void*>(raw_addr);
}
diff --git a/www/ungoogled-chromium/files/patch-v8_src_execution_isolate.cc b/www/ungoogled-chromium/files/patch-v8_src_execution_isolate.cc
index 1f23ad3c794d..f4f565a2e448 100644
--- a/www/ungoogled-chromium/files/patch-v8_src_execution_isolate.cc
+++ b/www/ungoogled-chromium/files/patch-v8_src_execution_isolate.cc
@@ -1,6 +1,6 @@
---- v8/src/execution/isolate.cc.orig 2024-04-23 07:42:17 UTC
+--- v8/src/execution/isolate.cc.orig 2024-05-23 20:04:36 UTC
+++ v8/src/execution/isolate.cc
-@@ -153,6 +153,10 @@
+@@ -155,6 +155,10 @@
#include "src/execution/simulator-base.h"
#endif
@@ -11,7 +11,7 @@
extern "C" const uint8_t v8_Default_embedded_blob_code_[];
extern "C" uint32_t v8_Default_embedded_blob_code_size_;
extern "C" const uint8_t v8_Default_embedded_blob_data_[];
-@@ -4232,6 +4236,13 @@ void Isolate::InitializeDefaultEmbeddedBlob() {
+@@ -4477,6 +4481,13 @@ void Isolate::InitializeDefaultEmbeddedBlob() {
uint32_t code_size = DefaultEmbeddedBlobCodeSize();
const uint8_t* data = DefaultEmbeddedBlobData();
uint32_t data_size = DefaultEmbeddedBlobDataSize();
diff --git a/www/ungoogled-chromium/files/patch-v8_src_flags_flags.cc b/www/ungoogled-chromium/files/patch-v8_src_flags_flags.cc
index 3b48a7a947a9..030eb837d70b 100644
--- a/www/ungoogled-chromium/files/patch-v8_src_flags_flags.cc
+++ b/www/ungoogled-chromium/files/patch-v8_src_flags_flags.cc
@@ -1,4 +1,4 @@
---- v8/src/flags/flags.cc.orig 2024-04-23 07:42:17 UTC
+--- v8/src/flags/flags.cc.orig 2024-05-23 20:04:36 UTC
+++ v8/src/flags/flags.cc
@@ -15,6 +15,10 @@
#include <set>
@@ -23,7 +23,7 @@
// {v8_flags} needs to be aligned to a memory page, and the size needs to be a
// multiple of a page size. This is required for memory-protection of the memory
-@@ -789,6 +797,10 @@ void FlagList::FreezeFlags() {
+@@ -807,6 +815,10 @@ void FlagList::FreezeFlags() {
// Note that for string flags we only protect the pointer itself, but not the
// string storage. TODO(12887): Fix this.
base::OS::SetDataReadOnly(&v8_flags, sizeof(v8_flags));
diff --git a/www/ungoogled-chromium/files/patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32-inl.h b/www/ungoogled-chromium/files/patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32-inl.h
index e26bdc979fd8..4968cdfba05d 100644
--- a/www/ungoogled-chromium/files/patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32-inl.h
+++ b/www/ungoogled-chromium/files/patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32-inl.h
@@ -1,6 +1,6 @@
---- v8/src/wasm/baseline/ia32/liftoff-assembler-ia32-inl.h.orig 2024-04-23 07:42:17 UTC
+--- v8/src/wasm/baseline/ia32/liftoff-assembler-ia32-inl.h.orig 2024-05-23 20:04:36 UTC
+++ v8/src/wasm/baseline/ia32/liftoff-assembler-ia32-inl.h
-@@ -510,7 +510,7 @@ void LiftoffAssembler::StoreTaggedPointer(Register dst
+@@ -496,7 +496,7 @@ void LiftoffAssembler::StoreTaggedPointer(Register dst
}
void LiftoffAssembler::Load(LiftoffRegister dst, Register src_addr,
@@ -9,7 +9,7 @@
LoadType type, uint32_t* protected_load_pc,
bool /* is_load_mem */, bool /* i64_offset */,
bool needs_shift) {
-@@ -587,7 +587,7 @@ void LiftoffAssembler::Load(LiftoffRegister dst, Regis
+@@ -573,7 +573,7 @@ void LiftoffAssembler::Load(LiftoffRegister dst, Regis
}
void LiftoffAssembler::Store(Register dst_addr, Register offset_reg,
@@ -18,7 +18,7 @@
StoreType type, LiftoffRegList pinned,
uint32_t* protected_store_pc,
bool /* is_store_mem */, bool /* i64_offset */) {
-@@ -663,7 +663,7 @@ void LiftoffAssembler::Store(Register dst_addr, Regist
+@@ -649,7 +649,7 @@ void LiftoffAssembler::Store(Register dst_addr, Regist
}
void LiftoffAssembler::AtomicLoad(LiftoffRegister dst, Register src_addr,
@@ -27,7 +27,7 @@
LoadType type, LiftoffRegList /* pinned */,
bool /* i64_offset */) {
if (type.value() != LoadType::kI64Load) {
-@@ -681,7 +681,7 @@ void LiftoffAssembler::AtomicLoad(LiftoffRegister dst,
+@@ -667,7 +667,7 @@ void LiftoffAssembler::AtomicLoad(LiftoffRegister dst,
}
void LiftoffAssembler::AtomicStore(Register dst_addr, Register offset_reg,
@@ -36,7 +36,7 @@
StoreType type, LiftoffRegList pinned,
bool /* i64_offset */) {
DCHECK_LE(offset_imm, std::numeric_limits<int32_t>::max());
-@@ -751,7 +751,7 @@ enum Binop { kAdd, kSub, kAnd, kOr, kXor, kExchange };
+@@ -737,7 +737,7 @@ enum Binop { kAdd, kSub, kAnd, kOr, kXor, kExchange };
inline void AtomicAddOrSubOrExchange32(LiftoffAssembler* lasm, Binop binop,
Register dst_addr, Register offset_reg,
@@ -45,7 +45,7 @@
LiftoffRegister value,
LiftoffRegister result, StoreType type) {
DCHECK_EQ(value, result);
-@@ -819,7 +819,7 @@ inline void AtomicAddOrSubOrExchange32(LiftoffAssemble
+@@ -805,7 +805,7 @@ inline void AtomicAddOrSubOrExchange32(LiftoffAssemble
}
inline void AtomicBinop32(LiftoffAssembler* lasm, Binop op, Register dst_addr,
@@ -54,7 +54,7 @@
LiftoffRegister value, LiftoffRegister result,
StoreType type) {
DCHECK_EQ(value, result);
-@@ -934,7 +934,7 @@ inline void AtomicBinop32(LiftoffAssembler* lasm, Bino
+@@ -920,7 +920,7 @@ inline void AtomicBinop32(LiftoffAssembler* lasm, Bino
}
inline void AtomicBinop64(LiftoffAssembler* lasm, Binop op, Register dst_addr,
@@ -63,7 +63,7 @@
LiftoffRegister value, LiftoffRegister result) {
// We need {ebx} here, which is the root register. As the root register it
// needs special treatment. As we use {ebx} directly in the code below, we
-@@ -1030,7 +1030,7 @@ inline void AtomicBinop64(LiftoffAssembler* lasm, Bino
+@@ -1016,7 +1016,7 @@ inline void AtomicBinop64(LiftoffAssembler* lasm, Bino
} // namespace liftoff
void LiftoffAssembler::AtomicAdd(Register dst_addr, Register offset_reg,
@@ -72,7 +72,7 @@
LiftoffRegister result, StoreType type,
bool /* i64_offset */) {
if (type.value() == StoreType::kI64Store) {
-@@ -1044,7 +1044,7 @@ void LiftoffAssembler::AtomicAdd(Register dst_addr, Re
+@@ -1030,7 +1030,7 @@ void LiftoffAssembler::AtomicAdd(Register dst_addr, Re
}
void LiftoffAssembler::AtomicSub(Register dst_addr, Register offset_reg,
@@ -81,7 +81,7 @@
LiftoffRegister result, StoreType type,
bool /* i64_offset */) {
if (type.value() == StoreType::kI64Store) {
-@@ -1057,7 +1057,7 @@ void LiftoffAssembler::AtomicSub(Register dst_addr, Re
+@@ -1043,7 +1043,7 @@ void LiftoffAssembler::AtomicSub(Register dst_addr, Re
}
void LiftoffAssembler::AtomicAnd(Register dst_addr, Register offset_reg,
@@ -90,7 +90,7 @@
LiftoffRegister result, StoreType type,
bool /* i64_offset */) {
if (type.value() == StoreType::kI64Store) {
-@@ -1071,7 +1071,7 @@ void LiftoffAssembler::AtomicAnd(Register dst_addr, Re
+@@ -1057,7 +1057,7 @@ void LiftoffAssembler::AtomicAnd(Register dst_addr, Re
}
void LiftoffAssembler::AtomicOr(Register dst_addr, Register offset_reg,
@@ -99,7 +99,7 @@
LiftoffRegister result, StoreType type,
bool /* i64_offset */) {
if (type.value() == StoreType::kI64Store) {
-@@ -1085,7 +1085,7 @@ void LiftoffAssembler::AtomicOr(Register dst_addr, Reg
+@@ -1071,7 +1071,7 @@ void LiftoffAssembler::AtomicOr(Register dst_addr, Reg
}
void LiftoffAssembler::AtomicXor(Register dst_addr, Register offset_reg,
@@ -108,7 +108,7 @@
LiftoffRegister result, StoreType type,
bool /* i64_offset */) {
if (type.value() == StoreType::kI64Store) {
-@@ -1099,7 +1099,7 @@ void LiftoffAssembler::AtomicXor(Register dst_addr, Re
+@@ -1085,7 +1085,7 @@ void LiftoffAssembler::AtomicXor(Register dst_addr, Re
}
void LiftoffAssembler::AtomicExchange(Register dst_addr, Register offset_reg,
@@ -117,7 +117,7 @@
LiftoffRegister value,
LiftoffRegister result, StoreType type,
bool /* i64_offset */) {
-@@ -1114,7 +1114,7 @@ void LiftoffAssembler::AtomicExchange(Register dst_add
+@@ -1100,7 +1100,7 @@ void LiftoffAssembler::AtomicExchange(Register dst_add
}
void LiftoffAssembler::AtomicCompareExchange(