From 687f3acd559540c9f7557c6f7739147d6abfc33e Mon Sep 17 00:00:00 2001 From: purplerain Date: Mon, 20 May 2024 13:36:31 +0000 Subject: [PATCH] update to 124.0.6367.207 --- www/chromium/Makefile | 54 ++- www/chromium/distinfo | 14 +- www/chromium/patches/patch-BUILD_gn | 18 +- ...tch-apps_ui_views_app_window_frame_view_cc | 2 +- www/chromium/patches/patch-base_BUILD_gn | 35 +- .../patch-base_allocator_dispatcher_tls_h | 6 +- ...ase_allocator_partition_allocator_BUILD_gn | 12 - ...ition_allocator_page_allocator_constants_h | 39 -- ...cator_partition_allocator_page_allocator_h | 12 - ...ition_allocator_partition_address_space_cc | 12 - ...r_partition_alloc_base_compiler_specific_h | 33 -- ...tion_alloc_base_debug_stack_trace_posix_cc | 35 -- ...or_partition_alloc_base_rand_util_posix_cc | 14 - ...oc_base_threading_platform_thread_posix_cc | 12 - ...rtition_allocator_partition_alloc_config_h | 30 -- ...tion_allocator_partition_alloc_constants_h | 22 -- ...or_partition_allocator_partition_alloc_gni | 21 +- ...ition_allocator_partition_page_constants_h | 12 - ...ion_allocator_src_partition_alloc_BUILD_gn | 12 + ...ition_alloc_address_space_randomization_h} | 8 +- ...partition_alloc_page_allocator_constants_h | 12 + ...cator_src_partition_alloc_page_allocator_h | 12 + ...on_alloc_page_allocator_internals_posix_h} | 8 +- ...tion_alloc_base_debug_stack_trace_posix_cc | 35 ++ ...oc_partition_alloc_base_rand_util_posix_cc | 14 + ...ion_alloc_base_threading_platform_thread_h | 12 + ...hreading_platform_thread_internal_posix_h} | 6 +- ...oc_base_threading_platform_thread_posix_cc | 12 + ...c_partition_alloc_partition_alloc_config_h | 21 + ...artition_alloc_partition_alloc_constants_h | 12 + ...partition_alloc_partition_alloc_forward_h} | 6 +- ...tor_src_partition_alloc_partition_root_cc} | 19 +- ...tor_src_partition_alloc_spinning_mutex_cc} | 16 +- ...c_partition_alloc_starscan_stack_stack_cc} | 6 +- ...c_partition_alloc_thread_isolation_pkey_cc | 12 + .../patches/patch-base_base_paths_posix_cc | 16 +- .../patches/patch-base_base_switches_cc | 12 - .../patches/patch-base_base_switches_h | 12 - .../patches/patch-base_compiler_specific_h | 40 +- .../patch-base_debug_debugger_posix_cc | 5 +- .../patches/patch-base_debug_elf_reader_cc | 25 +- .../patches/patch-base_debug_stack_trace_cc | 36 +- .../patch-base_debug_stack_trace_posix_cc | 35 +- .../patch-base_files_file_path_watcher_h | 2 +- ...h-base_files_file_path_watcher_unittest_cc | 6 +- .../patch-base_files_file_util_posix_cc | 5 +- .../patch-base_files_file_util_unittest_cc | 4 +- .../patch-base_functional_unretained_traits_h | 16 +- .../patches/patch-base_i18n_icu_util_cc | 4 +- www/chromium/patches/patch-base_linux_util_cc | 9 +- .../patches/patch-base_logging_unittest_cc | 2 +- ...ase_memory_platform_shared_memory_region_h | 10 +- .../patch-base_native_library_unittest_cc | 2 +- .../patches/patch-base_posix_sysctl_cc | 11 + .../patch-base_posix_unix_domain_socket_cc | 18 + .../patch-base_process_internal_linux_h | 21 + .../patches/patch-base_process_kill_h | 2 +- .../patch-base_process_launch_posix_cc | 2 +- .../patch-base_process_memory_linux_cc | 8 +- ...tch-base_process_process_handle_freebsd_cc | 2 +- .../patch-base_process_process_handle_h | 2 +- ...tch-base_process_process_handle_openbsd_cc | 96 +++-- .../patch-base_process_process_metrics_cc | 11 +- ...ch-base_process_process_metrics_freebsd_cc | 49 ++- .../patch-base_process_process_metrics_h | 35 +- ...ch-base_process_process_metrics_openbsd_cc | 79 ++-- ...h-base_process_process_metrics_unittest_cc | 22 +- .../patch-base_process_process_unittest_cc | 2 +- .../patch-base_profiler_module_cache_cc | 2 +- ...profiler_sampling_profiler_thread_token_cc | 2 +- ..._profiler_sampling_profiler_thread_token_h | 4 +- ...-base_profiler_stack_base_address_posix_cc | 11 +- ...filer_stack_sampling_profiler_test_util_cc | 2 +- ...ofiler_stack_sampling_profiler_unittest_cc | 2 +- ...tch-base_profiler_thread_delegate_posix_cc | 8 +- www/chromium/patches/patch-base_rand_util_h | 2 +- .../patches/patch-base_rand_util_posix_cc | 32 +- .../patch-base_synchronization_lock_impl_h | 4 +- .../patches/patch-base_syslog_logging_cc | 4 +- .../patches/patch-base_system_sys_info_cc | 2 +- .../patches/patch-base_system_sys_info_h | 4 +- .../patch-base_system_sys_info_openbsd_cc | 32 +- .../patch-base_system_sys_info_posix_cc | 10 +- .../patch-base_system_sys_info_unittest_cc | 2 +- .../patch-base_test_launcher_test_launcher_cc | 2 +- .../patch-base_test_test_file_util_posix_cc | 2 +- .../patch-base_threading_hang_watcher_cc | 2 +- ...atch-base_threading_platform_thread_bsd_cc | 4 +- .../patch-base_threading_platform_thread_h | 12 + ...hreading_platform_thread_internal_posix_cc | 2 +- ...ch-base_threading_platform_thread_posix_cc | 17 +- ...base_threading_platform_thread_unittest_cc | 6 +- ...h-base_trace_event_malloc_dump_provider_cc | 6 +- ...ch-base_trace_event_process_memory_dump_cc | 4 +- .../patch-base_trace_event_trace_log_cc | 17 - .../patches/patch-build_config_clang_BUILD_gn | 12 + .../patch-build_config_compiler_BUILD_gn | 55 +-- .../patch-build_config_compiler_pgo_BUILD_gn | 20 - .../patches/patch-build_config_rust_gni | 14 + .../patch-build_linux_unbundle_libusb_gn | 5 +- .../patch-build_linux_unbundle_libwebp_gn | 28 ++ ...h-build_linux_unbundle_replace_gn_files_py | 11 - .../patches/patch-build_rust_std_BUILD_gn | 11 + .../patch-build_toolchain_gcc_toolchain_gni | 8 +- .../patch-build_toolchain_toolchain_gni | 2 +- www/chromium/patches/patch-cc_BUILD_gn | 4 +- .../patches/patch-cc_base_features_cc | 2 +- .../patches/patch-cc_paint_paint_op_writer_h | 42 -- ...tch-chrome_app_app_management_strings_grdp | 12 - .../patches/patch-chrome_app_chrome_main_cc | 19 +- .../patch-chrome_app_chrome_main_delegate_cc | 78 +++- .../patch-chrome_app_chromium_strings_grd | 39 -- .../patch-chrome_app_generated_resources_grd | 93 ----- ...patch-chrome_app_google_chrome_strings_grd | 39 -- .../patch-chrome_app_profiles_strings_grdp | 12 - .../patch-chrome_app_settings_strings_grdp | 36 -- ...me_app_theme_chrome_unscaled_resources_grd | 30 -- ...patch-chrome_app_theme_theme_resources_grd | 60 --- .../patches/patch-chrome_browser_BUILD_gn | 2 +- .../patch-chrome_browser_about_flags_cc | 192 +++++---- ...rowser_accessibility_pdf_ocr_controller_cc | 12 + ...chrome_browser_after_startup_task_utils_cc | 6 +- ...s_app_service_publishers_extension_apps_cc | 8 +- ..._apps_platform_apps_platform_app_launch_cc | 61 ++- ...r_apps_platform_apps_platform_app_launch_h | 4 +- ...wser_background_background_mode_manager_cc | 2 +- ...er_background_background_mode_optimizer_cc | 2 +- .../patch-chrome_browser_browser_features_cc | 11 +- ...tch-chrome_browser_browser_process_impl_cc | 8 +- ...atch-chrome_browser_browser_process_impl_h | 2 +- ...rowser_chrome_browser_interface_binders_cc | 24 +- ...atch-chrome_browser_chrome_browser_main_cc | 61 ++- ...r_chrome_browser_main_extra_parts_linux_cc | 6 +- ...r_chrome_browser_main_extra_parts_ozone_cc | 12 + ...hrome_browser_chrome_browser_main_linux_cc | 27 +- ...chrome_browser_chrome_browser_main_linux_h | 12 + ...hrome_browser_chrome_browser_main_posix_cc | 2 +- ...e_browser_chrome_content_browser_client_cc | 74 ++-- ...me_browser_chrome_content_browser_client_h | 8 +- ...pdater_widevine_cdm_component_installer_cc | 4 +- ...t_settings_one_time_permission_provider_cc | 31 -- ...d_bubble_download_bubble_update_service_cc | 33 -- ...wnload_chrome_download_manager_delegate_cc | 10 +- ...hrome_browser_download_download_commands_h | 2 +- ...e_browser_download_download_file_picker_cc | 6 +- ...me_browser_download_download_item_model_cc | 8 +- ...-chrome_browser_download_download_prefs_cc | 22 +- ...h-chrome_browser_download_download_prefs_h | 4 +- ...r_management_browser_management_service_cc | 30 ++ ...er_management_browser_management_service_h | 12 + ...tors_analysis_analysis_service_settings_cc | 2 +- ...nterprise_connectors_connectors_service_cc | 2 +- ..._device_trust_connector_service_factory_cc | 14 +- ...vice_trust_device_trust_service_factory_cc | 4 +- ...r_commands_key_rotation_command_factory_cc | 4 +- ...rs_reporting_browser_crash_event_router_cc | 8 +- ...ctors_reporting_crash_reporting_context_cc | 4 +- ...ors_reporting_realtime_reporting_client_cc | 8 +- ...e_commands_cbcm_remote_commands_factory_cc | 8 +- ...ser_enterprise_watermark_watermark_view_cc | 21 + .../patch-chrome_browser_extensions_BUILD_gn | 2 +- ...browser_context_keyed_service_factories_cc | 8 +- ...te_chrome_desktop_report_request_helper_cc | 4 +- ...prise_reporting_private_conversion_utils_h | 2 +- ...rivate_enterprise_reporting_private_api_cc | 6 +- ...nagement_chrome_management_api_delegate_cc | 12 + ...messaging_native_process_launcher_posix_cc | 2 +- ...private_passwords_private_delegate_impl_cc | 2 +- ...api_runtime_chrome_runtime_api_delegate_cc | 2 +- ...ensions_api_settings_private_prefs_util_cc | 18 +- ...me_browser_extensions_api_tabs_tabs_api_cc | 12 +- ...ging_private_webrtc_logging_private_api_cc | 2 +- ...i_webstore_private_webstore_private_api_cc | 8 +- ...owser_extensions_external_provider_impl_cc | 4 +- ...e_file_system_access_permission_context_cc | 2 +- .../patch-chrome_browser_flag_descriptions_cc | 81 ++-- .../patch-chrome_browser_flag_descriptions_h | 77 ++-- ...ome_browser_headless_headless_mode_util_cc | 20 +- ...hrome_browser_intranet_redirect_detector_h | 2 +- ...ia_galleries_media_file_system_registry_cc | 2 +- ...me_browser_media_router_discovery_BUILD_gn | 4 +- ...owser_media_webrtc_capture_policy_utils_cc | 21 - ...r_media_webrtc_chrome_screen_enumerator_cc | 10 +- ...er_media_webrtc_chrome_screen_enumerator_h | 6 +- ..._webrtc_desktop_media_picker_controller_cc | 12 + ..._media_webrtc_webrtc_event_log_uploader_cc | 12 - ...rowser_media_webrtc_webrtc_log_uploader_cc | 18 +- ..._media_webrtc_webrtc_logging_controller_cc | 4 +- ...r_media_webrtc_webrtc_logging_controller_h | 4 +- .../patch-chrome_browser_memory_details_cc | 2 +- ...chrome_browser_main_extra_parts_metrics_cc | 10 +- ..._chrome_browser_main_extra_parts_metrics_h | 4 +- ...r_metrics_chrome_metrics_service_client_cc | 67 +++- ...ics_power_process_metrics_recorder_util_cc | 2 +- ...e_browser_metrics_power_process_monitor_cc | 12 +- ...me_browser_metrics_power_process_monitor_h | 4 +- ...wser_net_system_network_context_manager_cc | 95 ++++- ...owser_net_system_network_context_manager_h | 12 +- ..._browser_new_tab_page_new_tab_page_util_cc | 11 +- ..._manager_chrome_password_manager_client_cc | 21 + ..._manager_password_reuse_manager_factory_cc | 2 +- ...atch-chrome_browser_platform_util_linux_cc | 6 +- ...ser_cloud_management_controller_desktop_cc | 14 +- ...nfiguration_policy_handler_list_factory_cc | 143 ++++--- ...device_management_service_configuration_cc | 4 +- ...atch-chrome_browser_prefs_browser_prefs_cc | 46 +-- ..._prefs_pref_service_incognito_allowlist_cc | 2 +- ..._printing_print_backend_service_manager_cc | 10 +- ...h-chrome_browser_printing_printer_query_cc | 2 +- ...hrome_browser_main_extra_parts_profiles_cc | 54 ++- ...ch-chrome_browser_profiles_profile_impl_cc | 4 +- ...-chrome_browser_profiles_profiles_state_cc | 2 +- ...hrome_browser_renderer_preferences_util_cc | 6 +- ...ces_sandbox_internals_sandbox_internals_ts | 30 -- ...ppearance_page_appearance_browser_proxy_ts | 21 - ...tings_appearance_page_appearance_page_html | 30 -- ...ettings_appearance_page_appearance_page_ts | 66 ---- ...chrome_browser_resources_settings_route_ts | 12 - ...nc_confirmation_sync_confirmation_app_html | 21 - ..._content_scanning_binary_upload_service_cc | 2 +- ...wsing_download_protection_file_analyzer_cc | 8 +- ...owsing_download_protection_file_analyzer_h | 4 +- ...nt_reporting_incident_reporting_service_cc | 2 +- ...owser_screen_ai_screen_ai_install_state_cc | 21 + ...wser_screen_ai_screen_ai_service_router_cc | 21 + ..._search_engine_choice_client_side_trial_cc | 12 + ...ce_search_engine_choice_service_factory_cc | 21 + ...b_to_self_receiving_ui_handler_registry_cc | 4 +- ...to_self_send_tab_to_self_client_service_cc | 4 +- ...ser_sharing_sharing_device_registration_cc | 2 +- ...r_sharing_sharing_handler_registry_impl_cc | 2 +- ...patch-chrome_browser_signin_signin_util_cc | 2 +- ...upervised_user_extensions_delegate_impl_cc | 12 + ...user_supervised_user_extensions_manager_cc | 21 + ..._user_supervised_user_extensions_manager_h | 12 + ...ser_supervised_user_navigation_observer_cc | 4 +- ...-chrome_browser_sync_chrome_sync_client_cc | 10 +- ...hrome_browser_sync_sync_service_factory_cc | 10 +- ...h-chrome_browser_sync_sync_service_util_cc | 21 + ...browser_task_manager_sampling_task_group_h | 6 +- ...ask_manager_sampling_task_group_sampler_cc | 10 +- ...task_manager_sampling_task_manager_impl_cc | 2 +- ...rome_browser_ui_actions_chrome_action_id_h | 2 +- ...ayments_desktop_payments_window_manager_cc | 21 + ...payments_desktop_payments_window_manager_h | 39 ++ ...e_browser_ui_browser_command_controller_cc | 12 +- .../patches/patch-chrome_browser_ui_browser_h | 4 +- ...atch-chrome_browser_ui_browser_ui_prefs_cc | 12 + .../patch-chrome_browser_ui_chrome_pages_cc | 4 +- .../patch-chrome_browser_ui_chrome_pages_h | 2 +- ...xclusive_access_exclusive_access_bubble_cc | 2 +- ...rowser_ui_omnibox_chrome_omnibox_client_cc | 22 -- ...i_omnibox_omnibox_pedal_implementations_cc | 2 +- ...llers_relaunch_chrome_bubble_controller_cc | 21 + ...asswords_manage_passwords_ui_controller_cc | 21 + ...rowser_ui_signin_signin_view_controller_cc | 4 +- ...i_signin_signin_view_controller_delegate_h | 2 +- ...ome_browser_ui_startup_bad_flags_prompt_cc | 2 +- ...wser_ui_startup_startup_browser_creator_cc | 8 +- ...ui_startup_startup_browser_creator_impl_cc | 2 +- ...browser_ui_startup_startup_tab_provider_cc | 21 + .../patch-chrome_browser_ui_tab_helpers_cc | 4 +- ...i_task_manager_task_manager_table_model_cc | 2 +- .../patch-chrome_browser_ui_ui_features_cc | 2 +- .../patch-chrome_browser_ui_ui_features_h | 2 +- ...rome_browser_ui_views_accelerator_table_cc | 4 +- ...s_chrome_browser_main_extra_parts_views_cc | 20 +- ...e_browser_ui_views_chrome_views_delegate_h | 2 +- ...er_ui_views_compose_compose_dialog_view_cc | 12 + ...browser_ui_views_dark_mode_manager_linux_h | 11 - ...views_eye_dropper_eye_dropper_view_aura_cc | 12 - ...me_browser_ui_views_frame_browser_frame_cc | 12 +- ...ome_browser_ui_views_frame_browser_frame_h | 29 +- ...s_frame_browser_frame_view_layout_linux_cc | 12 + ..._browser_frame_view_layout_linux_native_cc | 12 + ...ui_views_frame_browser_frame_view_linux_cc | 21 + ...ser_non_client_frame_view_factory_views_cc | 9 - ...ome_browser_ui_views_frame_browser_view_cc | 2 +- ...i_views_frame_opaque_browser_frame_view_cc | 14 +- ...ui_views_frame_opaque_browser_frame_view_h | 12 +- ...paque_browser_frame_view_layout_delegate_h | 12 +- ...e_picture_in_picture_browser_frame_view_cc | 46 +-- ...me_picture_in_picture_browser_frame_view_h | 38 +- ...er_ui_views_frame_tab_strip_region_view_cc | 2 +- ...ome_browser_ui_views_hung_renderer_view_cc | 2 +- ...ews_passwords_password_bubble_view_base_cc | 21 + ...i_views_profiles_profile_menu_view_base_cc | 2 +- ...s_signin_view_controller_delegate_views_cc | 32 +- ...es_signin_view_controller_delegate_views_h | 13 +- ...browser_ui_views_tab_search_bubble_host_cc | 2 +- .../patch-chrome_browser_ui_views_tabs_tab_cc | 4 +- ...owser_ui_views_tabs_tab_drag_controller_cc | 16 +- ...i_views_tabs_tab_hover_card_bubble_view_cc | 2 +- ...ui_views_tabs_tab_hover_card_controller_cc | 12 - ...ducation_browser_user_education_service_cc | 12 + ...eb_apps_web_app_integration_test_driver_cc | 24 +- ...wser_ui_web_applications_web_app_dialogs_h | 12 + ...eb_applications_web_app_ui_manager_impl_cc | 21 + ...web_applications_web_app_ui_manager_impl_h | 12 + ...chrome_browser_ui_webauthn_sheet_models_cc | 15 - ...chrome_browser_ui_webui_about_about_ui_cc} | 10 +- ...ui_webui_app_home_app_home_page_handler_cc | 16 +- ..._webui_chrome_web_ui_controller_factory_cc | 12 +- ...connectors_internals_device_trust_utils_cc | 8 +- ...owser_ui_webui_management_management_ui_cc | 15 +- ..._webui_management_management_ui_handler_cc | 10 +- ...i_webui_management_management_ui_handler_h | 4 +- ...owser_ui_webui_ntp_app_launcher_handler_cc | 12 - ...ui_password_manager_promo_cards_handler_cc | 21 + ...nager_promo_cards_relaunch_chrome_promo_cc | 21 + ...rowser_ui_webui_realbox_realbox_handler_cc | 21 - ...bui_settings_accessibility_main_handler_cc | 47 +++ ...ebui_settings_accessibility_main_handler_h | 48 +++ ...ngs_settings_localized_strings_provider_cc | 44 +-- ...ns_commands_install_app_locally_command_cc | 2 +- ..._web_applications_extension_status_utils_h | 14 +- ...tions_extensions_extension_status_utils_cc | 16 +- ...ration_web_app_file_handler_registration_h | 2 +- ...os_integration_web_app_shortcut_manager_cc | 2 +- ...lications_policy_web_app_policy_manager_cc | 2 +- ..._test_os_integration_test_override_impl_cc | 8 +- ...rowser_web_applications_web_app_helpers_cc | 12 + ...er_web_applications_web_app_install_info_h | 12 + ...uthn_authenticator_request_dialog_model_cc | 15 - ...n_chrome_authenticator_request_delegate_cc | 14 +- .../patch-chrome_common_chrome_features_cc | 34 +- .../patch-chrome_common_chrome_features_h | 18 +- .../patch-chrome_common_chrome_paths_cc | 20 +- .../patch-chrome_common_chrome_paths_h | 12 +- .../patch-chrome_common_chrome_switches_cc | 2 +- .../patch-chrome_common_chrome_switches_h | 2 +- ...ch-chrome_common_media_cdm_registration_cc | 4 +- .../patches/patch-chrome_common_pref_names_h | 29 +- .../patch-chrome_common_url_constants_cc | 12 - .../patch-chrome_common_url_constants_h | 8 +- ...patch-chrome_common_webui_url_constants_cc | 12 +- .../patch-chrome_common_webui_url_constants_h | 9 +- ...e_renderer_chrome_render_frame_observer_cc | 2 +- ...ces_printing_print_backend_service_impl_cc | 12 +- .../patches/patch-chrome_test_BUILD_gn | 12 - ...h-chrome_test_chromedriver_capabilities_cc | 27 -- ..._test_chromedriver_chrome_chrome_finder_cc | 23 +- ...hrome_test_chromedriver_chrome_launcher_cc | 2 +- .../patch-chrome_updater_configurator_cc | 6 +- .../patch-chrome_updater_util_posix_util_cc | 2 +- .../patches/patch-chrome_utility_services_cc | 12 +- ...ast_browser_cast_content_browser_client_cc | 2 +- ...ill_core_browser_contact_info_sync_util_cc | 19 - ...fill_core_browser_personal_data_manager_cc | 4 +- ...owser_webdata_autofill_sync_bridge_util_cc | 23 -- ..._core_common_autofill_payments_features_cc | 2 +- ...ents_autofill_core_common_autofill_util_cc | 2 +- ...-components_autofill_payments_strings_grdp | 12 - ...nts_commerce_core_commerce_feature_list_cc | 21 + .../patch-components_commerce_strings_grdp | 12 - ...components_components_chromium_strings_grd | 12 - ...nents_components_google_chrome_strings_grd | 12 - ...trained_window_constrained_window_views_cc | 12 + ..._core_browser_website_settings_registry_cc | 2 +- ...ponents_cookie_config_cookie_store_util_cc | 2 +- .../patch-components_crash_core_app_BUILD_gn | 24 +- ...ts_crash_core_app_crashpad_handler_main_cc | 21 + ...rvice_discardable_shared_memory_manager_cc | 2 +- ...nents_embedder_support_user_agent_utils_cc | 2 +- ...omponents_eye_dropper_eye_dropper_view_cc} | 8 +- ...ngagement_public_feature_configurations_cc | 26 +- ...ure_engagement_public_feature_constants_cc | 19 +- ...ture_engagement_public_feature_constants_h | 26 +- ..._feature_engagement_public_feature_list_cc | 28 +- ...s_feature_engagement_public_feature_list_h | 56 ++- ...feed_core_v2_feed_network_impl_unittest_cc | 2 +- ...tch-components_gwp_asan_client_gwp_asan_cc | 11 +- ...nents_gwp_asan_client_gwp_asan_features_cc | 12 + ...tch-components_live_caption_caption_util_h | 2 +- .../patch-components_management_strings_grdp | 12 - ...onents_media_router_common_media_source_cc | 12 + ...roviders_cast_channel_cast_message_util_cc | 2 +- .../patch-components_metrics_metrics_log_cc | 6 +- ...ts_named_mojo_ipc_server_connection_info_h | 6 +- ...-components_neterror_resources_neterror_js | 2 +- ...or_browser_network_session_configurator_cc | 2 +- ...r_network_session_configurator_unittest_cc | 2 +- ...tch-components_new_or_sad_tab_strings_grdp | 21 - ...ents_omnibox_browser_omnibox_edit_model_cc | 11 - ...tion_guide_core_optimization_guide_util_cc | 4 +- ...ization_guide_core_tflite_model_executor_h | 63 --- ...nt_preview_browser_paint_preview_client_cc | 16 +- ...w_browser_paint_preview_client_unittest_cc | 16 +- ...eview_player_player_compositor_delegate_cc | 16 +- ...core_browser_features_password_features_cc | 21 + ..._core_browser_features_password_features_h | 12 + ...ord_manager_core_browser_login_database_cc | 30 -- ...er_core_browser_login_database_unittest_cc | 30 -- ...ager_core_browser_password_form_manager_cc | 30 ++ ...d_manager_core_browser_password_manager_cc | 12 + ...sword_store_login_database_async_helper_cc | 12 + ..._password_store_login_database_unittest_cc | 12 + ..._core_browser_sync_password_sync_bridge_cc | 11 +- ...nager_core_browser_ui_passwords_grouper_cc | 15 - ...r_core_common_password_manager_features_cc | 9 - ...er_core_common_password_manager_features_h | 11 +- ..._core_common_password_manager_pref_names_h | 12 + ...ents_performance_manager_public_features_h | 4 +- ...y_core_browser_policy_pref_mapping_test_cc | 2 +- ...y_core_common_cloud_cloud_policy_client_cc | 2 +- ...icy_core_common_cloud_cloud_policy_util_cc | 6 +- ...policy_core_common_policy_loader_common_cc | 8 +- ...ponents_policy_core_common_policy_paths_cc | 8 +- ...ponents_policy_core_common_policy_utils_cc | 12 + ...nts_policy_tools_generate_policy_source_py | 2 +- ...ore_browser_db_v4_protocol_manager_util_cc | 2 +- ...ine_choice_search_engine_choice_service_cc | 12 + ...nts_search_engines_template_url_service_cc | 12 + ...default_model_cross_device_user_segment_cc | 2 +- ...aint_preview_compositor_collection_impl_cc | 8 +- ...ai_sandbox_screen_ai_sandbox_hook_linux_cc | 19 - ..._ai_sandbox_screen_ai_sandbox_hook_linux_h | 17 - ...ces_screen_ai_screen_ai_library_wrapper_cc | 30 -- ...ents_signin_public_base_signin_switches_cc | 21 + ...nents_signin_public_base_signin_switches_h | 12 + ...etric_utils_common_startup_metric_utils_cc | 2 +- .../patch-components_storage_monitor_BUILD_gn | 4 +- ...ervised_user_core_browser_proto_fetcher_cc | 40 -- ...pervised_user_core_browser_proto_fetcher_h | 22 -- ...er_core_browser_supervised_user_service_cc | 8 +- ...ts_supervised_user_core_common_features_cc | 21 + ...nts_supervised_user_core_common_features_h | 12 + ...s_supervised_user_core_common_pref_names_h | 12 + .../patch-components_sync_base_features_cc | 12 + .../patch-components_system_cpu_cpu_probe_cc | 13 + ...ormatter_spoof_checks_idn_spoof_checker_cc | 2 +- ...s_user_education_views_help_bubble_view_cc | 2 +- ...s_service_google_groups_updater_service_cc | 12 - ...s_variations_service_variations_service_cc | 2 +- ...components_viz_host_host_display_client_cc | 10 +- ...-components_viz_host_host_display_client_h | 14 +- ...splay_embedder_skia_output_surface_impl_cc | 10 +- ...mbedder_skia_output_surface_impl_on_gpu_cc | 16 - ...isplay_embedder_software_output_surface_cc | 4 +- ...display_embedder_software_output_surface_h | 2 +- ...nents_viz_service_display_skia_renderer_cc | 2 +- ...e_sinks_root_compositor_frame_sink_impl_cc | 20 +- ...me_sinks_root_compositor_frame_sink_impl_h | 12 +- ...components_viz_test_fake_display_client_cc | 6 +- ...-components_viz_test_fake_display_client_h | 8 +- ...-components_viz_test_mock_display_client_h | 12 +- ...bauthn_core_browser_passkey_sync_bridge_cc | 27 -- .../patches/patch-content_app_content_main_cc | 2 +- ...ch-content_app_content_main_runner_impl_cc | 20 +- .../patches/patch-content_browser_BUILD_gn | 2 +- ...tch-content_browser_audio_audio_service_cc | 4 +- ...browser_browser_child_process_host_impl_cc | 23 +- ..._browser_browser_child_process_host_impl_h | 21 + ...ild_process_host_impl_receiver_bindings_cc | 12 + ...patch-content_browser_browser_main_loop_cc | 6 +- ...nt_browser_child_process_launcher_helper_h | 12 + ...ser_child_process_launcher_helper_linux_cc | 2 +- ...rowser_child_thread_type_switcher_linux_cc | 21 + ...ompositor_viz_process_transport_factory_cc | 10 +- ...er_devtools_devtools_frontend_host_impl_cc | 39 ++ ...ser_devtools_devtools_frontend_host_impl_h | 12 + ...r_devtools_protocol_system_info_handler_cc | 2 +- ...h-content_browser_download_save_package_cc | 17 - ...s_file_system_access_local_path_watcher_cc | 2 +- ...ont_access_font_enumeration_data_source_cc | 6 +- ...tch-content_browser_gpu_compositor_util_cc | 24 +- ...ntent_browser_gpu_gpu_data_manager_impl_cc | 2 +- ...ontent_browser_gpu_gpu_data_manager_impl_h | 2 +- ...owser_gpu_gpu_data_manager_impl_private_cc | 2 +- ...rowser_gpu_gpu_data_manager_impl_private_h | 4 +- ...gpu_gpu_memory_buffer_manager_singleton_cc | 6 +- ...ch-content_browser_gpu_gpu_process_host_cc | 18 +- ...group_header_direct_from_seller_signals_cc | 15 - ..._media_media_keys_listener_manager_impl_cc | 12 +- ...t_browser_network_service_instance_impl_cc | 8 +- ...wser_renderer_host_delegated_frame_host_cc | 2 +- ...a_service_video_capture_device_launcher_cc | 4 +- ...enderer_host_pepper_pepper_file_io_host_cc | 4 +- ...er_renderer_host_render_frame_host_impl_cc | 41 -- ..._renderer_host_render_process_host_impl_cc | 23 +- ...r_renderer_host_render_process_host_impl_h | 2 +- ...ser_renderer_host_render_view_host_impl_cc | 2 +- ...derer_host_render_widget_host_view_aura_cc | 14 +- ...nderer_host_render_widget_host_view_aura_h | 2 +- ...t_render_widget_host_view_event_handler_cc | 2 +- ...e_worker_service_worker_context_wrapper_cc | 16 - ...ch-content_browser_utility_process_host_cc | 46 ++- ...tch-content_browser_utility_process_host_h | 12 +- ..._utility_process_host_receiver_bindings_cc | 14 +- ...ontent_browser_utility_sandbox_delegate_cc | 12 +- ...ser_web_contents_web_contents_view_aura_cc | 6 +- ...owser_webid_idp_network_request_manager_cc | 15 - ...wser_zygote_host_zygote_host_impl_linux_cc | 16 +- .../patches/patch-content_child_BUILD_gn | 17 + .../patch-content_child_child_process_cc | 10 +- .../patches/patch-content_common_BUILD_gn | 49 ++- .../patches/patch-content_common_features_cc | 21 + .../patches/patch-content_common_features_h | 21 + ...ontent_common_gpu_pre_sandbox_hook_bsd_cc} | 13 +- ...-content_common_gpu_pre_sandbox_hook_bsd_h | 24 ++ ...ontent_common_gpu_pre_sandbox_hook_linux_h | 17 + ...ontent_common_mojo_core_library_support_cc | 2 +- .../patches/patch-content_gpu_BUILD_gn | 21 - .../patch-content_gpu_gpu_child_thread_cc | 22 ++ .../patches/patch-content_gpu_gpu_main_cc | 31 +- .../patch-content_gpu_gpu_sandbox_hook_bsd_h | 20 - ..._ppapi_plugin_ppapi_blink_platform_impl_cc | 6 +- ...t_ppapi_plugin_ppapi_blink_platform_impl_h | 2 +- ...t_public_browser_content_browser_client_cc | 12 + ...ent_public_browser_service_process_host_cc | 12 + ...web_ui_browser_interface_broker_registry_h | 17 - ...-content_public_common_content_features_cc | 17 +- ...h-content_public_common_content_features_h | 12 - ...-content_public_common_content_switches_cc | 4 +- ...h-content_public_common_content_switches_h | 4 +- ...-content_public_test_mock_render_thread_cc | 12 - .../patches/patch-content_renderer_BUILD_gn | 17 - ...ch-content_renderer_render_process_impl_cc | 25 +- ...tch-content_renderer_render_thread_impl_cc | 8 +- ...t_renderer_renderer_blink_platform_impl_cc | 14 +- ...nt_renderer_renderer_blink_platform_impl_h | 2 +- .../patches/patch-content_shell_BUILD_gn | 2 +- ...h-content_shell_app_shell_main_delegate_cc | 2 +- .../patches/patch-content_test_BUILD_gn | 21 - .../patches/patch-content_utility_services_cc | 60 ++- ...h_speech_recognition_sandbox_hook_linux_cc | 6 +- .../patch-content_utility_utility_main_cc | 54 ++- ...tch-content_utility_utility_thread_impl_cc | 22 ++ .../patch-content_zygote_zygote_linux_cc | 2 +- ...atch-device_bluetooth_bluetooth_adapter_cc | 2 +- ...vice_fido_get_assertion_request_handler_cc | 27 -- .../patches/patch-device_gamepad_BUILD_gn | 2 +- ...browser_context_keyed_service_factories_cc | 4 +- ...s_browser_api_management_management_api_cc | 12 + ...s_browser_api_messaging_message_service_cc | 2 +- ...sions_common_api__permission_features_json | 2 +- .../patch-extensions_common_api_runtime_json | 2 +- .../patch-extensions_common_command_cc | 2 +- ...xtensions_shell_app_shell_main_delegate_cc | 8 +- ...buffer_common_gpu_memory_buffer_support_cc | 2 +- ...nd_buffer_service_dawn_context_provider_cc | 6 +- ...ommand_buffer_service_gles2_cmd_decoder_cc | 2 +- ...mage_angle_vulkan_image_backing_factory_cc | 2 +- ..._shared_image_external_vk_image_backing_cc | 12 +- ...image_external_vk_image_backing_factory_cc | 15 +- ...rvice_shared_image_shared_image_factory_cc | 2 +- ...rvice_shared_image_shared_image_manager_cc | 2 +- ...e_shared_image_wrapped_sk_image_backing_cc | 2 +- ...mand_buffer_service_webgpu_decoder_impl_cc | 4 +- .../patch-gpu_config_gpu_control_list_cc | 2 +- .../patch-gpu_config_gpu_finch_features_cc | 23 +- .../patch-gpu_config_gpu_info_collector_cc | 12 + .../patches/patch-gpu_ipc_service_gpu_init_cc | 18 +- .../patches/patch-gpu_ipc_service_x_util_h | 15 +- .../patch-gpu_vulkan_generate_bindings_py | 2 +- .../patch-gpu_vulkan_semaphore_handle_cc | 8 +- .../patch-gpu_vulkan_vulkan_device_queue_cc | 2 +- .../patch-gpu_vulkan_vulkan_device_queue_h | 2 +- ...tch-gpu_vulkan_vulkan_function_pointers_cc | 6 +- ...atch-gpu_vulkan_vulkan_function_pointers_h | 6 +- .../patches/patch-gpu_vulkan_vulkan_util_cc | 2 +- ...rowser_headless_request_context_manager_cc | 2 +- ...less_lib_headless_content_main_delegate_cc | 2 +- www/chromium/patches/patch-ipc_ipc_channel_h | 2 +- .../patches/patch-ipc_ipc_message_utils_cc | 2 +- www/chromium/patches/patch-media_BUILD_gn | 2 +- .../patches/patch-media_audio_BUILD_gn | 4 +- .../patch-media_audio_audio_input_device_cc | 2 +- .../patch-media_base_cdm_promise_adapter_cc | 17 - .../patch-media_base_libaom_thread_wrapper_cc | 25 ++ .../patch-media_base_libvpx_thread_wrapper_cc | 26 ++ .../patch-media_base_media_switches_cc | 66 +++- .../patches/patch-media_base_media_switches_h | 25 +- .../patch-media_base_scopedfd_helper_h | 12 - .../patches/patch-media_base_video_frame_cc | 18 +- .../patches/patch-media_base_video_frame_h | 8 +- ...video_fake_video_capture_device_factory_cc | 2 +- ...edia_capture_video_linux_fake_v4l2_impl_cc | 2 +- ...pture_video_linux_v4l2_capture_delegate_cc | 34 +- ...linux_video_capture_device_factory_v4l2_cc | 38 +- ...deo_capture_buffer_tracker_factory_impl_cc | 4 +- ...pture_video_video_capture_device_client_cc | 2 +- .../patch-media_gpu_buffer_validation_cc | 31 +- ...chromeos_libyuv_image_processor_backend_cc | 30 ++ ..._chromeos_mailbox_video_frame_converter_cc | 12 + ...u_chromeos_native_pixmap_frame_resource_cc | 12 + ...gpu_chromeos_platform_video_frame_utils_cc | 30 ++ ...dia_gpu_chromeos_video_decoder_pipeline_cc | 15 +- ...pu_gpu_video_encode_accelerator_factory_cc | 2 +- ...dware_video_decoding_sandbox_hook_linux_cc | 14 +- ...dware_video_encoding_sandbox_hook_linux_cc | 2 +- ...tch-media_gpu_vaapi_vaapi_video_decoder_cc | 4 +- .../patch-media_gpu_vaapi_vaapi_wrapper_cc | 47 +-- .../patches/patch-media_media_options_gni | 4 +- ...atch-media_video_fake_gpu_memory_buffer_cc | 10 +- ...ideo_gpu_memory_buffer_video_frame_pool_cc | 6 +- ..._video_video_encode_accelerator_adapter_cc | 4 +- .../patch-media_webrtc_audio_processor_cc | 2 +- .../patches/patch-media_webrtc_helpers_cc | 16 +- .../patch-media_webrtc_helpers_unittests_cc | 29 +- .../patch-mojo_public_c_system_thunks_cc | 4 +- ...patch-mojo_public_tools_bindings_mojom_gni | 4 +- www/chromium/patches/patch-net_BUILD_gn | 20 +- .../patches/patch-net_base_features_cc | 25 +- .../patch-net_base_network_change_notifier_cc | 2 +- .../patches/patch-net_cert_cert_verifier_cc | 12 - .../patch-net_cert_cert_verify_proc_cc | 12 - .../patches/patch-net_cert_cert_verify_proc_h | 2 +- ...atch-net_cert_cert_verify_proc_unittest_cc | 21 - .../patch-net_cert_pki_general_names_h | 11 - ...patch-net_cert_test_root_certs_unittest_cc | 12 - www/chromium/patches/patch-net_dns_BUILD_gn | 6 +- .../patches/patch-net_dns_address_info_cc | 2 +- .../patch-net_dns_address_sorter_posix_cc | 2 +- .../patch-net_dns_host_resolver_cache_cc | 15 - .../patches/patch-net_dns_public_BUILD_gn | 2 +- .../patch-net_dns_public_scoped_res_state_h | 2 +- .../patch-net_filter_zstd_source_stream_cc | 4 +- ...ch-net_http_http_auth_handler_negotiate_cc | 2 +- ...y_resolution_proxy_config_service_linux_cc | 6 +- .../patch-net_socket_udp_socket_posix_cc | 16 +- .../patch-net_socket_udp_socket_unittest_cc | 10 +- .../patch-net_third_party_quiche_BUILD_gn | 2 +- ...erify_tool_cert_verify_comparision_tool_cc | 2 +- ...tools_cert_verify_tool_cert_verify_tool_cc | 19 +- ...url_request_url_request_context_builder_cc | 2 +- ...tch-net_url_request_url_request_context_cc | 2 +- ...atch-net_url_request_url_request_context_h | 2 +- .../patches/patch-pdf_pdfium_pdfium_engine_cc | 2 +- ...ing_mojom_printing_context_mojom_traits_cc | 6 +- ...atch-printing_print_settings_conversion_cc | 2 +- .../patch-printing_printing_context_linux_cc | 6 +- ...andbox_print_backend_sandbox_hook_linux_cc | 4 +- ...g_host_base_desktop_environment_options_cc | 2 +- ...remoting_host_basic_desktop_environment_cc | 2 +- .../patch-remoting_host_chromoting_host_cc | 2 +- .../patch-remoting_host_client_session_cc | 12 + ...ch-remoting_host_desktop_capturer_proxy_cc | 4 +- ...-remoting_host_desktop_capturer_wrapper_cc | 6 +- .../patch-remoting_host_heartbeat_sender_cc | 12 - .../patch-remoting_host_host_attributes_cc | 2 +- .../patch-remoting_host_it2me_it2me_host_cc | 6 +- .../patch-remoting_host_policy_watcher_cc | 2 +- ...patch-remoting_host_remoting_me2me_host_cc | 40 +- ...tch-remoting_host_setup_start_host_main_cc | 10 +- ...n_remote_webauthn_caller_security_utils_cc | 6 +- ...h-remoting_protocol_webrtc_video_stream_cc | 2 +- ...ch-remoting_resources_remoting_strings_grd | 21 - .../patches/patch-sandbox_policy_BUILD_gn | 10 +- .../patches/patch-sandbox_policy_features_cc | 11 +- .../patches/patch-sandbox_policy_features_h | 12 + .../patch-sandbox_policy_mojom_sandbox_mojom | 2 +- ...-sandbox_policy_openbsd_sandbox_openbsd_cc | 10 +- .../patches/patch-sandbox_policy_sandbox_cc | 2 +- .../patch-sandbox_policy_sandbox_type_cc | 22 +- .../patches/patch-sandbox_policy_switches_cc | 4 +- .../patches/patch-sandbox_policy_switches_h | 4 +- ...services_audio_audio_sandbox_hook_linux_cc | 6 +- ...es_cert_verifier_cert_verifier_creation_cc | 29 -- .../patches/patch-services_device_BUILD_gn | 2 +- ...vices_device_compute_pressure_cpu_probe_cc | 11 - ..._device_geolocation_location_arbitrator_cc | 4 +- .../patch-services_device_hid_BUILD_gn | 2 +- ...public_cpp_generic_sensor_sensor_reading_h | 6 +- ...atch-services_device_public_mojom_BUILD_gn | 2 +- .../patch-services_device_usb_BUILD_gn | 6 +- .../patches/patch-services_network_BUILD_gn | 4 +- .../patch-services_network_network_context_cc | 4 +- .../patch-services_network_network_context_h | 2 +- ...ices_network_network_sandbox_hook_linux_cc | 10 +- .../patch-services_network_network_service_cc | 6 +- .../patch-services_network_network_service_h | 6 +- ...patch-services_network_public_cpp_BUILD_gn | 2 +- ...ch-services_network_public_cpp_features_cc | 12 +- ...tch-services_network_public_mojom_BUILD_gn | 4 +- ..._on_device_model_on_device_model_service_h | 23 ++ ...rvices_on_device_model_pre_sandbox_init_cc | 39 ++ ...strumentation_queued_request_dispatcher_cc | 14 +- ...services_screen_ai_public_cpp_utilities_cc | 30 ++ ...ai_sandbox_screen_ai_sandbox_hook_linux_cc | 19 + ..._ai_sandbox_screen_ai_sandbox_hook_linux_h | 17 + ...stack_sampling_tracing_sampler_profiler_cc | 2 +- ...ideo_capture_video_capture_service_impl_cc | 30 +- ...video_capture_video_capture_service_impl_h | 26 +- .../patch-skia_ext_SkMemory_new_handler_cpp | 11 +- .../patches/patch-skia_ext_font_utils_cc | 21 + ...-third_party_abseil-cpp_absl_base_config_h | 4 +- ...seil-cpp_absl_base_internal_raw_logging_cc | 17 - ...y_abseil-cpp_absl_base_internal_sysinfo_cc | 25 +- .../patches/patch-third_party_angle_BUILD_gn | 6 +- ...rd_party_angle_src_common_system_utils_cpp | 12 + ...ty_angle_src_common_system_utils_linux_cpp | 36 ++ ...third_party_angle_src_libANGLE_Display_cpp | 10 +- ...ences_renderer_preferences_mojom_traits_cc | 2 +- ...enderer_preferences_renderer_preferences_h | 2 +- ...rences_renderer_preferences_mojom_traits_h | 2 +- ...ird_party_blink_public_platform_platform_h | 2 +- ...d_party_blink_public_platform_web_vector_h | 2 +- ...k_renderer_controller_blink_initializer_cc | 6 +- ..._renderer_core_editing_editing_behavior_cc | 2 +- ...nk_renderer_core_exported_web_view_impl_cc | 4 +- ...link_renderer_core_frame_web_frame_test_cc | 4 +- ...e_html_canvas_canvas_async_blob_creator_cc | 2 +- ...ml_parser_html_document_parser_fastpath_cc | 15 - ...r_core_inspector_inspector_memory_agent_cc | 8 +- ...blink_renderer_core_layout_layout_view_cc} | 16 +- ...layout_ng_grid_ng_grid_layout_algorithm_cc | 31 -- ...re_layout_ng_physical_fragment_rare_data_h | 11 - ...ore_paint_object_paint_properties_sparse_h | 14 - ...y_blink_renderer_core_paint_paint_layer_cc | 2 +- ...nderer_core_scroll_scrollbar_theme_aura_cc | 4 +- ...y_blink_renderer_core_xml_xslt_processor_h | 15 + ...enderer_core_xml_xslt_processor_libxslt_cc | 15 + ...er_modules_canvas_canvas2d_canvas_style_cc | 34 -- ...audio_audio_renderer_mixer_manager_test_cc | 2 +- ...ink_renderer_modules_ml_webnn_features_gni | 16 +- ...derer_modules_ml_webnn_ml_graph_xnnpack_cc | 2 +- ...erconnection_webrtc_audio_renderer_test_cc | 2 +- ...ules_webaudio_audio_worklet_thread_test_cc | 2 +- ...ules_webgl_webgl_rendering_context_base_cc | 2 +- ...blink_renderer_modules_webgpu_gpu_queue_cc | 6 +- ...ird_party_blink_renderer_platform_BUILD_gn | 2 +- ...link_renderer_platform_fonts_font_cache_cc | 4 +- ...blink_renderer_platform_fonts_font_cache_h | 10 +- ...enderer_platform_fonts_font_description_cc | 6 +- ...nk_renderer_platform_fonts_font_metrics_cc | 14 +- ...ink_renderer_platform_fonts_font_palette_h | 27 -- ...er_platform_fonts_palette_interpolation_cc | 16 - ...rer_platform_fonts_skia_font_cache_skia_cc | 4 +- ...platform_graphics_video_frame_submitter_cc | 2 +- ...on_partition_alloc_memory_dump_provider_cc | 14 +- ...eerconnection_rtc_video_encoder_factory_cc | 2 +- ...er_platform_runtime_enabled_features_json5 | 51 ++- ...atform_video_capture_video_capture_impl_cc | 6 +- ...nderer_platform_wtf_text_text_codec_icu_cc | 19 + ...boringssl_src_util_generate_build_files_py | 4 +- .../patch-third_party_cpuinfo_cpuinfo_gni | 4 +- ..._party_crashpad_crashpad_util_misc_uuid_cc | 2 +- ...hpad_crashpad_util_posix_close_multiple_cc | 2 +- ...y_dawn_include_dawn_native_VulkanBackend_h | 2 +- ...hird_party_dawn_src_dawn_common_Platform_h | 2 +- ..._dawn_src_dawn_native_vulkan_BackendVk_cpp | 2 +- ...party_distributed_point_functions_BUILD_gn | 13 - .../patches/patch-third_party_ffmpeg_BUILD_gn | 2 +- ...ty_ffmpeg_chromium_scripts_build_ffmpeg_py | 148 +++---- ...ffmpeg_chromium_scripts_robo_lib_config_py | 96 ++--- .../patch-third_party_ffmpeg_configure | 11 - ...-third_party_ffmpeg_libavcodec_x86_fft_asm | 109 ------ ...hird_party_ffmpeg_libavutil_x86_x86inc_asm | 2 +- ...ch-third_party_fontconfig_include_config_h | 64 +-- ...-third_party_leveldatabase_env_chromium_cc | 2 +- ...ource_libaom_aom_ports_aarch64_cpudetect_c | 40 +- ...atch-third_party_libc++_src_src_chrono_cpp | 12 + ...++_src_src_filesystem_filesystem_clock_cpp | 12 + ...d_party_libc++abi_src_src_cxa_guard_impl_h | 25 ++ ...tch-third_party_libusb_src_libusb_libusb_h | 12 + ...ource_libvpx_vpx_ports_aarch64_cpudetect_c | 28 ++ .../patch-third_party_libxml_linux_config_h | 13 - .../patch-third_party_libxml_src_dict_c | 42 -- ...ldoca_src_maldoca_base_get_runfiles_dir_cc | 6 +- ..._color_utilities_src_cpp_palettes_tones_cc | 2 +- .../patches/patch-third_party_node_node_gni | 12 + ...y_pdfium_core_fxge_linux_fx_linux_impl_cpp | 12 +- .../patch-third_party_pdfium_pdfium_gni | 6 +- ...dfium_third_party_base_compiler_specific_h | 12 - ...arty_perfetto_include_perfetto_base_time_h | 6 +- ...o_include_perfetto_ext_base_thread_utils_h | 2 +- ...rd_party_perfetto_src_base_string_utils_cc | 2 +- ...ce_processor_db_storage_numeric_storage_cc | 17 - ...rfetto_src_tracing_core_clock_snapshots_cc | 13 + ...o_src_tracing_core_tracing_service_impl_cc | 13 - ..._party_skia_src_ports_SkMemory_malloc_cpp} | 14 +- ...rty_speech-dispatcher_libspeechd_version_h | 33 ++ ...rd_party_speech-dispatcher_speechd_types_h | 143 +++++++ ...rd_party_sqlite_src_amalgamation_sqlite3_c | 4 +- ..._fonts_fontconfig_fontconfig_util_linux_cc | 2 +- .../patch-third_party_tflite_features_gni | 13 +- .../patch-third_party_unrar_src_crypt_cpp | 2 +- ...rty_vulkan-deps_vulkan-loader_src_BUILD_gn | 2 +- ...kan-loader_src_loader_vk_loader_platform_h | 2 +- ...an_memory_allocator_include_vk_mem_alloc_h | 18 +- .../patches/patch-third_party_webrtc_BUILD_gn | 2 +- ...party_webrtc_modules_audio_device_BUILD_gn | 2 +- ...capture_linux_x11_x_server_pixel_buffer_cc | 20 +- ..._webrtc_rtc_base_physical_socket_server_cc | 63 ++- ...y_webrtc_rtc_base_physical_socket_server_h | 6 +- ...atch-third_party_widevine_cdm_widevine_gni | 2 +- .../patches/patch-third_party_zlib_BUILD_gn | 6 +- .../patch-third_party_zlib_cpu_features_c | 26 +- .../patch-tools_gn_bootstrap_bootstrap_py | 12 + .../patches/patch-tools_gn_build_gen_py | 4 +- .../patch-tools_grit_grit_node_base_py | 13 + ...s_json_schema_compiler_feature_compiler_py | 2 +- ...memory_partition_allocator_inspect_utils_h | 2 +- ...tools_perf_chrome_telemetry_build_BUILD_gn | 2 +- .../patches/patch-ui_aura_screen_ozone_cc | 2 +- .../patches/patch-ui_aura_screen_ozone_h | 4 +- ...h-ui_base_clipboard_clipboard_constants_cc | 2 +- ...ch-ui_base_clipboard_clipboard_constants_h | 2 +- ...-ui_base_clipboard_clipboard_non_backed_cc | 12 + .../patch-ui_base_cursor_cursor_factory_cc | 2 +- ...op_os_exchange_data_provider_non_backed_cc | 6 +- ...atch-ui_base_ime_fake_text_input_client_cc | 2 +- ...patch-ui_base_ime_fake_text_input_client_h | 2 +- ..._base_ime_init_input_method_initializer_cc | 30 ++ .../patches/patch-ui_base_test_ui_controls_h | 12 + .../patches/patch-ui_base_ui_base_features_cc | 28 +- .../patches/patch-ui_base_ui_base_features_h | 21 - .../patches/patch-ui_base_ui_base_types_h | 12 - .../patch-ui_base_webui_web_ui_util_cc | 12 +- .../patch-ui_base_x_x11_cursor_factory_cc | 2 +- .../patch-ui_base_x_x11_cursor_factory_h | 6 +- .../patch-ui_base_x_x11_cursor_loader_cc | 12 +- .../patch-ui_base_x_x11_display_manager_cc | 21 + .../patch-ui_base_x_x11_display_util_cc | 368 ++++++++++++++++++ .../patch-ui_base_x_x11_shm_image_pool_cc | 26 +- .../patches/patch-ui_base_x_x11_util_cc | 26 ++ .../patches/patch-ui_base_x_x11_util_h | 16 + .../patches/patch-ui_color_color_id_h | 2 +- .../patch-ui_color_color_provider_utils_cc | 2 +- .../patches/patch-ui_compositor_compositor_cc | 10 +- .../patches/patch-ui_compositor_compositor_h | 12 +- .../patch-ui_compositor_compositor_observer_h | 10 +- .../patches/patch-ui_display_screen_h | 2 +- ...nts_devices_x11_device_data_manager_x11_cc | 2 +- www/chromium/patches/patch-ui_events_event_cc | 8 +- ...s_gesture_detection_motion_event_generic_h | 11 - ...i_events_keycodes_dom_keycode_converter_cc | 6 +- ...ui_events_keycodes_dom_keycode_converter_h | 2 +- www/chromium/patches/patch-ui_gfx_BUILD_gn | 2 +- .../patches/patch-ui_gfx_canvas_skia_cc | 2 +- .../patch-ui_gfx_font_fallback_linux_cc | 2 +- .../patches/patch-ui_gfx_font_render_params_h | 8 +- .../patch-ui_gfx_font_render_params_linux_cc | 4 +- .../patches/patch-ui_gfx_font_util_cc | 6 +- .../patches/patch-ui_gfx_gpu_memory_buffer_h | 2 +- .../patches/patch-ui_gfx_linux_gbm_wrapper_cc | 12 + ...x_mojom_native_handle_types_mojom_traits_h | 8 +- .../patch-ui_gfx_native_widget_types_h | 4 +- .../patch-ui_gfx_platform_font_skia_cc | 6 +- www/chromium/patches/patch-ui_gfx_switches_cc | 2 +- www/chromium/patches/patch-ui_gfx_switches_h | 4 +- .../patch-ui_gfx_x_generated_protos_dri3_cc | 4 +- .../patch-ui_gfx_x_generated_protos_shm_cc | 4 +- .../patches/patch-ui_gfx_x_xlib_support_cc | 4 +- www/chromium/patches/patch-ui_gl_BUILD_gn | 8 +- .../patches/patch-ui_gl_gl_context_cc | 2 +- .../patches/patch-ui_gl_gl_implementation_cc | 2 +- .../patches/patch-ui_gl_gl_switches_cc | 19 +- www/chromium/patches/patch-ui_gtk_gtk_ui_cc | 23 -- .../patch-ui_gtk_printing_print_dialog_gtk_cc | 2 +- ...message_center_views_message_popup_view_cc | 2 +- ...patch-ui_native_theme_native_theme_base_cc | 2 +- ...h-ui_native_theme_native_theme_features_cc | 21 + ...atform_headless_ozone_platform_headless_cc | 2 +- ...headless_vulkan_implementation_headless_cc | 6 +- ...ne_platform_wayland_common_wayland_util_cc | 12 + ...m_wayland_emulate_wayland_input_emulate_cc | 12 + ...rm_wayland_emulate_wayland_input_emulate_h | 12 + ...latform_wayland_host_wayland_connection_cc | 12 + ...yland_host_wayland_input_method_context_cc | 12 + ...rm_wayland_host_wayland_toplevel_window_cc | 6 +- ...orm_wayland_host_wayland_toplevel_window_h | 10 +- ...ne_platform_wayland_host_wayland_window_cc | 12 +- ...one_platform_wayland_host_wayland_window_h | 12 +- ..._wayland_host_xdg_toplevel_wrapper_impl_cc | 10 +- ...platform_wayland_ozone_platform_wayland_cc | 17 +- ...i_ozone_platform_x11_ozone_platform_x11_cc | 12 - ..._platform_x11_vulkan_implementation_x11_cc | 2 +- ...-ui_ozone_platform_x11_x11_screen_ozone_cc | 28 +- ...h-ui_ozone_platform_x11_x11_screen_ozone_h | 37 +- .../patch-ui_ozone_platform_x11_x11_window_cc | 12 + .../patch-ui_ozone_public_ozone_platform_h | 12 - .../patch-ui_ozone_public_platform_screen_cc | 12 - .../patch-ui_ozone_public_platform_screen_h | 21 - ...ozone_test_mock_platform_window_delegate_h | 6 +- ...latform_window_platform_window_delegate_cc | 6 +- ...platform_window_platform_window_delegate_h | 6 +- ...m_window_platform_window_init_properties_h | 4 +- www/chromium/patches/patch-ui_qt_BUILD_gn | 12 + .../patch-ui_strings_app_locale_settings_grd | 12 - ...h-ui_views_controls_textfield_textfield_cc | 12 +- ...ch-ui_views_controls_textfield_textfield_h | 6 +- .../patch-ui_views_corewm_tooltip_aura_cc | 2 +- .../patch-ui_views_focus_focus_manager_cc | 4 +- .../patch-ui_views_style_platform_style_cc | 10 +- ..._ui_controls_factory_desktop_aura_ozone_cc | 12 + .../patches/patch-ui_views_views_delegate_h | 2 +- ...top_aura_desktop_drag_drop_client_ozone_cc | 4 +- ...ktop_aura_desktop_drag_drop_client_ozone_h | 4 +- ...idget_desktop_aura_desktop_screen_ozone_cc | 12 - ..._aura_desktop_window_tree_host_platform_cc | 8 +- ...e_host_platform_impl_interactive_uitest_cc | 2 +- .../patch-ui_views_widget_root_view_cc | 12 + .../patches/patch-ui_views_widget_widget_cc | 2 +- .../patches/patch-ui_views_widget_widget_h | 2 +- .../patch-ui_views_window_dialog_delegate_cc | 2 +- www/chromium/patches/patch-v8_BUILD_gn | 28 +- .../patches/patch-v8_include_v8-internal_h | 6 +- .../patches/patch-v8_include_v8config_h | 6 +- www/chromium/patches/patch-v8_src_api_api_cc | 4 +- ...tch-v8_src_base_platform_platform-posix_cc | 12 +- ..._baseline_x64_baseline-assembler-x64-inl_h | 14 - .../patch-v8_src_builtins_x64_builtins-x64_cc | 47 --- .../patch-v8_src_codegen_x64_assembler-x64_cc | 43 -- .../patch-v8_src_codegen_x64_assembler-x64_h | 22 -- ...-v8_src_codegen_x64_macro-assembler-x64_cc | 21 - ...h-v8_src_codegen_x64_macro-assembler-x64_h | 21 - ...compiler_backend_x64_code-generator-x64_cc | 17 - ...-v8_src_deoptimizer_x64_deoptimizer-x64_cc | 12 - .../patches/patch-v8_src_execution_isolate_cc | 10 +- .../patches/patch-v8_src_flags_flags_cc | 10 +- ..._src_maglev_x64_maglev-assembler-x64-inl_h | 15 - ...-v8_src_maglev_x64_maglev-assembler-x64_cc | 17 - ...c_regexp_x64_regexp-macro-assembler-x64_cc | 23 -- ...rc_regexp_x64_regexp-macro-assembler-x64_h | 13 - ...dded_platform-embedded-file-writer-base_cc | 2 +- ...8_src_trap-handler_handler-inside-posix_cc | 4 +- ...aseline_ia32_liftoff-assembler-ia32-inl_h} | 36 +- .../patch-v8_src_wasm_jump-table-assembler_cc | 52 --- .../patch-v8_src_wasm_jump-table-assembler_h | 17 - ...eblayer_browser_browser_main_parts_impl_cc | 21 - ...yer_browser_content_browser_client_impl_cc | 21 - ...ayer_browser_content_browser_client_impl_h | 12 - ..._browser_system_network_context_manager_cc | 12 - .../patch-weblayer_common_weblayer_paths_cc | 21 - www/chromium/pkg/PFRAG.swiftshader | 1 + www/chromium/pkg/PLIST | 1 - 928 files changed, 6789 insertions(+), 6095 deletions(-) delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_BUILD_gn delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_constants_h delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_h delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_partition_address_space_cc delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_compiler_specific_h delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_debug_stack_trace_posix_cc delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_rand_util_posix_cc delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_threading_platform_thread_posix_cc delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_config_h delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_constants_h delete mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_partition_page_constants_h create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_BUILD_gn rename www/chromium/patches/{patch-base_allocator_partition_allocator_address_space_randomization_h => patch-base_allocator_partition_allocator_src_partition_alloc_address_space_randomization_h} (66%) create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_constants_h create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_h rename www/chromium/patches/{patch-base_allocator_partition_allocator_page_allocator_internals_posix_h => patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_internals_posix_h} (57%) create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_debug_stack_trace_posix_cc create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_rand_util_posix_cc create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_h rename www/chromium/patches/{patch-base_allocator_partition_allocator_partition_alloc_base_threading_platform_thread_internal_posix_h => patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_internal_posix_h} (53%) create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_posix_cc create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_config_h create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_constants_h rename www/chromium/patches/{patch-base_allocator_partition_allocator_partition_alloc_forward_h => patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_forward_h} (70%) rename www/chromium/patches/{patch-base_allocator_partition_allocator_partition_root_cc => patch-base_allocator_partition_allocator_src_partition_alloc_partition_root_cc} (53%) rename www/chromium/patches/{patch-base_allocator_partition_allocator_spinning_mutex_cc => patch-base_allocator_partition_allocator_src_partition_alloc_spinning_mutex_cc} (81%) rename www/chromium/patches/{patch-base_allocator_partition_allocator_starscan_stack_stack_cc => patch-base_allocator_partition_allocator_src_partition_alloc_starscan_stack_stack_cc} (80%) create mode 100644 www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_thread_isolation_pkey_cc delete mode 100644 www/chromium/patches/patch-base_base_switches_cc delete mode 100644 www/chromium/patches/patch-base_base_switches_h create mode 100644 www/chromium/patches/patch-base_posix_sysctl_cc create mode 100644 www/chromium/patches/patch-base_process_internal_linux_h create mode 100644 www/chromium/patches/patch-base_threading_platform_thread_h delete mode 100644 www/chromium/patches/patch-base_trace_event_trace_log_cc create mode 100644 www/chromium/patches/patch-build_config_clang_BUILD_gn delete mode 100644 www/chromium/patches/patch-build_config_compiler_pgo_BUILD_gn create mode 100644 www/chromium/patches/patch-build_config_rust_gni create mode 100644 www/chromium/patches/patch-build_linux_unbundle_libwebp_gn delete mode 100644 www/chromium/patches/patch-build_linux_unbundle_replace_gn_files_py create mode 100644 www/chromium/patches/patch-build_rust_std_BUILD_gn delete mode 100644 www/chromium/patches/patch-cc_paint_paint_op_writer_h delete mode 100644 www/chromium/patches/patch-chrome_app_app_management_strings_grdp delete mode 100644 www/chromium/patches/patch-chrome_app_chromium_strings_grd delete mode 100644 www/chromium/patches/patch-chrome_app_generated_resources_grd delete mode 100644 www/chromium/patches/patch-chrome_app_google_chrome_strings_grd delete mode 100644 www/chromium/patches/patch-chrome_app_profiles_strings_grdp delete mode 100644 www/chromium/patches/patch-chrome_app_settings_strings_grdp delete mode 100644 www/chromium/patches/patch-chrome_app_theme_chrome_unscaled_resources_grd delete mode 100644 www/chromium/patches/patch-chrome_app_theme_theme_resources_grd create mode 100644 www/chromium/patches/patch-chrome_browser_accessibility_pdf_ocr_controller_cc create mode 100644 www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_ozone_cc create mode 100644 www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_h delete mode 100644 www/chromium/patches/patch-chrome_browser_content_settings_one_time_permission_provider_cc delete mode 100644 www/chromium/patches/patch-chrome_browser_download_bubble_download_bubble_update_service_cc create mode 100644 www/chromium/patches/patch-chrome_browser_enterprise_browser_management_browser_management_service_cc create mode 100644 www/chromium/patches/patch-chrome_browser_enterprise_browser_management_browser_management_service_h create mode 100644 www/chromium/patches/patch-chrome_browser_enterprise_watermark_watermark_view_cc create mode 100644 www/chromium/patches/patch-chrome_browser_extensions_api_management_chrome_management_api_delegate_cc delete mode 100644 www/chromium/patches/patch-chrome_browser_media_webrtc_capture_policy_utils_cc create mode 100644 www/chromium/patches/patch-chrome_browser_media_webrtc_desktop_media_picker_controller_cc delete mode 100644 www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_event_log_uploader_cc create mode 100644 www/chromium/patches/patch-chrome_browser_password_manager_chrome_password_manager_client_cc delete mode 100644 www/chromium/patches/patch-chrome_browser_resources_sandbox_internals_sandbox_internals_ts delete mode 100644 www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_browser_proxy_ts delete mode 100644 www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_html delete mode 100644 www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_ts delete mode 100644 www/chromium/patches/patch-chrome_browser_resources_settings_route_ts delete mode 100644 www/chromium/patches/patch-chrome_browser_resources_signin_sync_confirmation_sync_confirmation_app_html create mode 100644 www/chromium/patches/patch-chrome_browser_screen_ai_screen_ai_install_state_cc create mode 100644 www/chromium/patches/patch-chrome_browser_screen_ai_screen_ai_service_router_cc create mode 100644 www/chromium/patches/patch-chrome_browser_search_engine_choice_search_engine_choice_client_side_trial_cc create mode 100644 www/chromium/patches/patch-chrome_browser_search_engine_choice_search_engine_choice_service_factory_cc create mode 100644 www/chromium/patches/patch-chrome_browser_supervised_user_supervised_user_extensions_delegate_impl_cc create mode 100644 www/chromium/patches/patch-chrome_browser_supervised_user_supervised_user_extensions_manager_cc create mode 100644 www/chromium/patches/patch-chrome_browser_supervised_user_supervised_user_extensions_manager_h create mode 100644 www/chromium/patches/patch-chrome_browser_sync_sync_service_util_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_autofill_payments_desktop_payments_window_manager_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_autofill_payments_desktop_payments_window_manager_h create mode 100644 www/chromium/patches/patch-chrome_browser_ui_browser_ui_prefs_cc delete mode 100644 www/chromium/patches/patch-chrome_browser_ui_omnibox_chrome_omnibox_client_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_passwords_bubble_controllers_relaunch_chrome_bubble_controller_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_passwords_manage_passwords_ui_controller_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_startup_startup_tab_provider_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_views_compose_compose_dialog_view_cc delete mode 100644 www/chromium/patches/patch-chrome_browser_ui_views_dark_mode_manager_linux_h delete mode 100644 www/chromium/patches/patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_aura_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_frame_view_layout_linux_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_frame_view_layout_linux_native_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_views_frame_browser_frame_view_linux_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_views_passwords_password_bubble_view_base_cc delete mode 100644 www/chromium/patches/patch-chrome_browser_ui_views_tabs_tab_hover_card_controller_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_views_user_education_browser_user_education_service_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_web_applications_web_app_dialogs_h create mode 100644 www/chromium/patches/patch-chrome_browser_ui_web_applications_web_app_ui_manager_impl_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_web_applications_web_app_ui_manager_impl_h delete mode 100644 www/chromium/patches/patch-chrome_browser_ui_webauthn_sheet_models_cc rename www/chromium/patches/{patch-chrome_browser_ui_webui_about_ui_cc => patch-chrome_browser_ui_webui_about_about_ui_cc} (68%) delete mode 100644 www/chromium/patches/patch-chrome_browser_ui_webui_ntp_app_launcher_handler_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_webui_password_manager_promo_cards_handler_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_webui_password_manager_promo_cards_relaunch_chrome_promo_cc delete mode 100644 www/chromium/patches/patch-chrome_browser_ui_webui_realbox_realbox_handler_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_webui_settings_accessibility_main_handler_cc create mode 100644 www/chromium/patches/patch-chrome_browser_ui_webui_settings_accessibility_main_handler_h create mode 100644 www/chromium/patches/patch-chrome_browser_web_applications_web_app_helpers_cc create mode 100644 www/chromium/patches/patch-chrome_browser_web_applications_web_app_install_info_h delete mode 100644 www/chromium/patches/patch-chrome_browser_webauthn_authenticator_request_dialog_model_cc delete mode 100644 www/chromium/patches/patch-chrome_common_url_constants_cc delete mode 100644 www/chromium/patches/patch-chrome_test_BUILD_gn delete mode 100644 www/chromium/patches/patch-chrome_test_chromedriver_capabilities_cc delete mode 100644 www/chromium/patches/patch-components_autofill_core_browser_contact_info_sync_util_cc delete mode 100644 www/chromium/patches/patch-components_autofill_core_browser_webdata_autofill_sync_bridge_util_cc delete mode 100644 www/chromium/patches/patch-components_autofill_payments_strings_grdp create mode 100644 www/chromium/patches/patch-components_commerce_core_commerce_feature_list_cc delete mode 100644 www/chromium/patches/patch-components_commerce_strings_grdp delete mode 100644 www/chromium/patches/patch-components_components_chromium_strings_grd delete mode 100644 www/chromium/patches/patch-components_components_google_chrome_strings_grd create mode 100644 www/chromium/patches/patch-components_constrained_window_constrained_window_views_cc create mode 100644 www/chromium/patches/patch-components_crash_core_app_crashpad_handler_main_cc rename www/chromium/patches/{patch-chrome_browser_ui_views_eye_dropper_eye_dropper_view_cc => patch-components_eye_dropper_eye_dropper_view_cc} (56%) create mode 100644 www/chromium/patches/patch-components_gwp_asan_client_gwp_asan_features_cc delete mode 100644 www/chromium/patches/patch-components_management_strings_grdp create mode 100644 www/chromium/patches/patch-components_media_router_common_media_source_cc delete mode 100644 www/chromium/patches/patch-components_new_or_sad_tab_strings_grdp delete mode 100644 www/chromium/patches/patch-components_omnibox_browser_omnibox_edit_model_cc delete mode 100644 www/chromium/patches/patch-components_optimization_guide_core_tflite_model_executor_h create mode 100644 www/chromium/patches/patch-components_password_manager_core_browser_features_password_features_cc create mode 100644 www/chromium/patches/patch-components_password_manager_core_browser_features_password_features_h delete mode 100644 www/chromium/patches/patch-components_password_manager_core_browser_login_database_cc delete mode 100644 www/chromium/patches/patch-components_password_manager_core_browser_login_database_unittest_cc create mode 100644 www/chromium/patches/patch-components_password_manager_core_browser_password_form_manager_cc create mode 100644 www/chromium/patches/patch-components_password_manager_core_browser_password_manager_cc create mode 100644 www/chromium/patches/patch-components_password_manager_core_browser_password_store_login_database_async_helper_cc create mode 100644 www/chromium/patches/patch-components_password_manager_core_browser_password_store_login_database_unittest_cc delete mode 100644 www/chromium/patches/patch-components_password_manager_core_browser_ui_passwords_grouper_cc create mode 100644 www/chromium/patches/patch-components_password_manager_core_common_password_manager_pref_names_h create mode 100644 www/chromium/patches/patch-components_policy_core_common_policy_utils_cc create mode 100644 www/chromium/patches/patch-components_search_engines_search_engine_choice_search_engine_choice_service_cc create mode 100644 www/chromium/patches/patch-components_search_engines_template_url_service_cc delete mode 100644 www/chromium/patches/patch-components_services_screen_ai_sandbox_screen_ai_sandbox_hook_linux_cc delete mode 100644 www/chromium/patches/patch-components_services_screen_ai_sandbox_screen_ai_sandbox_hook_linux_h delete mode 100644 www/chromium/patches/patch-components_services_screen_ai_screen_ai_library_wrapper_cc create mode 100644 www/chromium/patches/patch-components_signin_public_base_signin_switches_cc create mode 100644 www/chromium/patches/patch-components_signin_public_base_signin_switches_h delete mode 100644 www/chromium/patches/patch-components_supervised_user_core_browser_proto_fetcher_cc delete mode 100644 www/chromium/patches/patch-components_supervised_user_core_browser_proto_fetcher_h create mode 100644 www/chromium/patches/patch-components_supervised_user_core_common_features_cc create mode 100644 www/chromium/patches/patch-components_supervised_user_core_common_features_h create mode 100644 www/chromium/patches/patch-components_supervised_user_core_common_pref_names_h create mode 100644 www/chromium/patches/patch-components_sync_base_features_cc create mode 100644 www/chromium/patches/patch-components_system_cpu_cpu_probe_cc delete mode 100644 www/chromium/patches/patch-components_variations_service_google_groups_updater_service_cc delete mode 100644 www/chromium/patches/patch-components_viz_service_display_embedder_skia_output_surface_impl_on_gpu_cc delete mode 100644 www/chromium/patches/patch-components_webauthn_core_browser_passkey_sync_bridge_cc create mode 100644 www/chromium/patches/patch-content_browser_browser_child_process_host_impl_h create mode 100644 www/chromium/patches/patch-content_browser_browser_child_process_host_impl_receiver_bindings_cc create mode 100644 www/chromium/patches/patch-content_browser_child_process_launcher_helper_h create mode 100644 www/chromium/patches/patch-content_browser_child_thread_type_switcher_linux_cc create mode 100644 www/chromium/patches/patch-content_browser_devtools_devtools_frontend_host_impl_cc create mode 100644 www/chromium/patches/patch-content_browser_devtools_devtools_frontend_host_impl_h delete mode 100644 www/chromium/patches/patch-content_browser_download_save_package_cc delete mode 100644 www/chromium/patches/patch-content_browser_interest_group_header_direct_from_seller_signals_cc delete mode 100644 www/chromium/patches/patch-content_browser_renderer_host_render_frame_host_impl_cc delete mode 100644 www/chromium/patches/patch-content_browser_service_worker_service_worker_context_wrapper_cc delete mode 100644 www/chromium/patches/patch-content_browser_webid_idp_network_request_manager_cc create mode 100644 www/chromium/patches/patch-content_child_BUILD_gn create mode 100644 www/chromium/patches/patch-content_common_features_cc create mode 100644 www/chromium/patches/patch-content_common_features_h rename www/chromium/patches/{patch-content_gpu_gpu_sandbox_hook_bsd_cc => patch-content_common_gpu_pre_sandbox_hook_bsd_cc} (83%) create mode 100644 www/chromium/patches/patch-content_common_gpu_pre_sandbox_hook_bsd_h create mode 100644 www/chromium/patches/patch-content_common_gpu_pre_sandbox_hook_linux_h delete mode 100644 www/chromium/patches/patch-content_gpu_BUILD_gn create mode 100644 www/chromium/patches/patch-content_gpu_gpu_child_thread_cc delete mode 100644 www/chromium/patches/patch-content_gpu_gpu_sandbox_hook_bsd_h create mode 100644 www/chromium/patches/patch-content_public_browser_content_browser_client_cc create mode 100644 www/chromium/patches/patch-content_public_browser_service_process_host_cc delete mode 100644 www/chromium/patches/patch-content_public_browser_web_ui_browser_interface_broker_registry_h delete mode 100644 www/chromium/patches/patch-content_public_common_content_features_h delete mode 100644 www/chromium/patches/patch-content_public_test_mock_render_thread_cc delete mode 100644 www/chromium/patches/patch-content_renderer_BUILD_gn delete mode 100644 www/chromium/patches/patch-content_test_BUILD_gn create mode 100644 www/chromium/patches/patch-content_utility_utility_thread_impl_cc delete mode 100644 www/chromium/patches/patch-device_fido_get_assertion_request_handler_cc create mode 100644 www/chromium/patches/patch-extensions_browser_api_management_management_api_cc create mode 100644 www/chromium/patches/patch-gpu_config_gpu_info_collector_cc delete mode 100644 www/chromium/patches/patch-media_base_cdm_promise_adapter_cc create mode 100644 www/chromium/patches/patch-media_base_libaom_thread_wrapper_cc create mode 100644 www/chromium/patches/patch-media_base_libvpx_thread_wrapper_cc delete mode 100644 www/chromium/patches/patch-media_base_scopedfd_helper_h create mode 100644 www/chromium/patches/patch-media_gpu_chromeos_libyuv_image_processor_backend_cc create mode 100644 www/chromium/patches/patch-media_gpu_chromeos_mailbox_video_frame_converter_cc create mode 100644 www/chromium/patches/patch-media_gpu_chromeos_native_pixmap_frame_resource_cc create mode 100644 www/chromium/patches/patch-media_gpu_chromeos_platform_video_frame_utils_cc delete mode 100644 www/chromium/patches/patch-net_cert_cert_verifier_cc delete mode 100644 www/chromium/patches/patch-net_cert_cert_verify_proc_cc delete mode 100644 www/chromium/patches/patch-net_cert_cert_verify_proc_unittest_cc delete mode 100644 www/chromium/patches/patch-net_cert_pki_general_names_h delete mode 100644 www/chromium/patches/patch-net_cert_test_root_certs_unittest_cc delete mode 100644 www/chromium/patches/patch-net_dns_host_resolver_cache_cc create mode 100644 www/chromium/patches/patch-remoting_host_client_session_cc delete mode 100644 www/chromium/patches/patch-remoting_host_heartbeat_sender_cc delete mode 100644 www/chromium/patches/patch-remoting_resources_remoting_strings_grd create mode 100644 www/chromium/patches/patch-sandbox_policy_features_h delete mode 100644 www/chromium/patches/patch-services_cert_verifier_cert_verifier_creation_cc delete mode 100644 www/chromium/patches/patch-services_device_compute_pressure_cpu_probe_cc create mode 100644 www/chromium/patches/patch-services_on_device_model_on_device_model_service_h create mode 100644 www/chromium/patches/patch-services_on_device_model_pre_sandbox_init_cc create mode 100644 www/chromium/patches/patch-services_screen_ai_public_cpp_utilities_cc create mode 100644 www/chromium/patches/patch-services_screen_ai_sandbox_screen_ai_sandbox_hook_linux_cc create mode 100644 www/chromium/patches/patch-services_screen_ai_sandbox_screen_ai_sandbox_hook_linux_h create mode 100644 www/chromium/patches/patch-skia_ext_font_utils_cc delete mode 100644 www/chromium/patches/patch-third_party_abseil-cpp_absl_base_internal_raw_logging_cc create mode 100644 www/chromium/patches/patch-third_party_angle_src_common_system_utils_cpp create mode 100644 www/chromium/patches/patch-third_party_angle_src_common_system_utils_linux_cpp delete mode 100644 www/chromium/patches/patch-third_party_blink_renderer_core_html_parser_html_document_parser_fastpath_cc rename www/chromium/patches/{patch-third_party_blink_renderer_core_layout_ng_layout_ng_view_cc => patch-third_party_blink_renderer_core_layout_layout_view_cc} (57%) delete mode 100644 www/chromium/patches/patch-third_party_blink_renderer_core_layout_ng_grid_ng_grid_layout_algorithm_cc delete mode 100644 www/chromium/patches/patch-third_party_blink_renderer_core_layout_ng_physical_fragment_rare_data_h delete mode 100644 www/chromium/patches/patch-third_party_blink_renderer_core_paint_object_paint_properties_sparse_h create mode 100644 www/chromium/patches/patch-third_party_blink_renderer_core_xml_xslt_processor_h create mode 100644 www/chromium/patches/patch-third_party_blink_renderer_core_xml_xslt_processor_libxslt_cc delete mode 100644 www/chromium/patches/patch-third_party_blink_renderer_modules_canvas_canvas2d_canvas_style_cc delete mode 100644 www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_font_palette_h delete mode 100644 www/chromium/patches/patch-third_party_blink_renderer_platform_fonts_palette_interpolation_cc create mode 100644 www/chromium/patches/patch-third_party_blink_renderer_platform_wtf_text_text_codec_icu_cc delete mode 100644 www/chromium/patches/patch-third_party_distributed_point_functions_BUILD_gn delete mode 100644 www/chromium/patches/patch-third_party_ffmpeg_configure delete mode 100644 www/chromium/patches/patch-third_party_ffmpeg_libavcodec_x86_fft_asm create mode 100644 www/chromium/patches/patch-third_party_libc++_src_src_chrono_cpp create mode 100644 www/chromium/patches/patch-third_party_libc++_src_src_filesystem_filesystem_clock_cpp create mode 100644 www/chromium/patches/patch-third_party_libc++abi_src_src_cxa_guard_impl_h create mode 100644 www/chromium/patches/patch-third_party_libusb_src_libusb_libusb_h create mode 100644 www/chromium/patches/patch-third_party_libvpx_source_libvpx_vpx_ports_aarch64_cpudetect_c delete mode 100644 www/chromium/patches/patch-third_party_libxml_linux_config_h delete mode 100644 www/chromium/patches/patch-third_party_libxml_src_dict_c create mode 100644 www/chromium/patches/patch-third_party_node_node_gni delete mode 100644 www/chromium/patches/patch-third_party_pdfium_third_party_base_compiler_specific_h delete mode 100644 www/chromium/patches/patch-third_party_perfetto_src_trace_processor_db_storage_numeric_storage_cc create mode 100644 www/chromium/patches/patch-third_party_perfetto_src_tracing_core_clock_snapshots_cc delete mode 100644 www/chromium/patches/patch-third_party_perfetto_src_tracing_core_tracing_service_impl_cc rename www/chromium/patches/{patch-third_party_skia_src_base_SkContainers_cpp => patch-third_party_skia_src_ports_SkMemory_malloc_cpp} (63%) create mode 100644 www/chromium/patches/patch-third_party_speech-dispatcher_libspeechd_version_h create mode 100644 www/chromium/patches/patch-third_party_speech-dispatcher_speechd_types_h create mode 100644 www/chromium/patches/patch-tools_gn_bootstrap_bootstrap_py create mode 100644 www/chromium/patches/patch-tools_grit_grit_node_base_py create mode 100644 www/chromium/patches/patch-ui_base_clipboard_clipboard_non_backed_cc create mode 100644 www/chromium/patches/patch-ui_base_ime_init_input_method_initializer_cc create mode 100644 www/chromium/patches/patch-ui_base_test_ui_controls_h delete mode 100644 www/chromium/patches/patch-ui_base_ui_base_features_h delete mode 100644 www/chromium/patches/patch-ui_base_ui_base_types_h create mode 100644 www/chromium/patches/patch-ui_base_x_x11_display_manager_cc create mode 100644 www/chromium/patches/patch-ui_base_x_x11_display_util_cc create mode 100644 www/chromium/patches/patch-ui_base_x_x11_util_cc create mode 100644 www/chromium/patches/patch-ui_base_x_x11_util_h delete mode 100644 www/chromium/patches/patch-ui_events_gesture_detection_motion_event_generic_h create mode 100644 www/chromium/patches/patch-ui_gfx_linux_gbm_wrapper_cc delete mode 100644 www/chromium/patches/patch-ui_gtk_gtk_ui_cc create mode 100644 www/chromium/patches/patch-ui_native_theme_native_theme_features_cc create mode 100644 www/chromium/patches/patch-ui_ozone_platform_wayland_common_wayland_util_cc create mode 100644 www/chromium/patches/patch-ui_ozone_platform_wayland_emulate_wayland_input_emulate_cc create mode 100644 www/chromium/patches/patch-ui_ozone_platform_wayland_emulate_wayland_input_emulate_h create mode 100644 www/chromium/patches/patch-ui_ozone_platform_wayland_host_wayland_connection_cc create mode 100644 www/chromium/patches/patch-ui_ozone_platform_wayland_host_wayland_input_method_context_cc delete mode 100644 www/chromium/patches/patch-ui_ozone_platform_x11_ozone_platform_x11_cc create mode 100644 www/chromium/patches/patch-ui_ozone_platform_x11_x11_window_cc delete mode 100644 www/chromium/patches/patch-ui_ozone_public_ozone_platform_h delete mode 100644 www/chromium/patches/patch-ui_ozone_public_platform_screen_cc delete mode 100644 www/chromium/patches/patch-ui_ozone_public_platform_screen_h create mode 100644 www/chromium/patches/patch-ui_qt_BUILD_gn delete mode 100644 www/chromium/patches/patch-ui_strings_app_locale_settings_grd create mode 100644 www/chromium/patches/patch-ui_views_test_ui_controls_factory_desktop_aura_ozone_cc delete mode 100644 www/chromium/patches/patch-ui_views_widget_desktop_aura_desktop_screen_ozone_cc create mode 100644 www/chromium/patches/patch-ui_views_widget_root_view_cc delete mode 100644 www/chromium/patches/patch-v8_src_baseline_x64_baseline-assembler-x64-inl_h delete mode 100644 www/chromium/patches/patch-v8_src_builtins_x64_builtins-x64_cc delete mode 100644 www/chromium/patches/patch-v8_src_codegen_x64_assembler-x64_cc delete mode 100644 www/chromium/patches/patch-v8_src_codegen_x64_assembler-x64_h delete mode 100644 www/chromium/patches/patch-v8_src_codegen_x64_macro-assembler-x64_cc delete mode 100644 www/chromium/patches/patch-v8_src_codegen_x64_macro-assembler-x64_h delete mode 100644 www/chromium/patches/patch-v8_src_compiler_backend_x64_code-generator-x64_cc delete mode 100644 www/chromium/patches/patch-v8_src_deoptimizer_x64_deoptimizer-x64_cc delete mode 100644 www/chromium/patches/patch-v8_src_maglev_x64_maglev-assembler-x64-inl_h delete mode 100644 www/chromium/patches/patch-v8_src_maglev_x64_maglev-assembler-x64_cc delete mode 100644 www/chromium/patches/patch-v8_src_regexp_x64_regexp-macro-assembler-x64_cc delete mode 100644 www/chromium/patches/patch-v8_src_regexp_x64_regexp-macro-assembler-x64_h rename www/chromium/patches/{patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32_h => patch-v8_src_wasm_baseline_ia32_liftoff-assembler-ia32-inl_h} (83%) delete mode 100644 www/chromium/patches/patch-v8_src_wasm_jump-table-assembler_cc delete mode 100644 www/chromium/patches/patch-v8_src_wasm_jump-table-assembler_h delete mode 100644 www/chromium/patches/patch-weblayer_browser_browser_main_parts_impl_cc delete mode 100644 www/chromium/patches/patch-weblayer_browser_content_browser_client_impl_cc delete mode 100644 www/chromium/patches/patch-weblayer_browser_content_browser_client_impl_h delete mode 100644 www/chromium/patches/patch-weblayer_browser_system_network_context_manager_cc delete mode 100644 www/chromium/patches/patch-weblayer_common_weblayer_paths_cc diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 77a05498b..2a6350a46 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -3,10 +3,13 @@ BROKEN-powerpc64 = Check failed: false. OS architecture not handled. (powerpc64) USE_WXNEEDED= Yes DPB_PROPERTIES= parallel parallel2 +.if ${MACHINE_ARCH:Mi386} +DPB_PROPERTIES+= lonesome +.endif COMMENT= Chromium browser -V= 118.0.5993.70 +V= 124.0.6367.207 DISTNAME= chromium-${V} @@ -14,11 +17,10 @@ DISTFILES+= ${CHROMIUM_DISTFILES} \ ${REGRESS_DISTFILES} DISTFILES.a+= ${PROFILE_DISTFILES} \ - libudev-openbsd-20221108-c3330efd.tar.gz \ ${REGRESS_DISTFILES.a} CHROMIUM_DISTFILES+= chromium-${V}${EXTRACT_SUFX} -PROFILE_DISTFILES+= chrome-linux-${V}-llvm13.profdata${EXTRACT_SUFX} +PROFILE_DISTFILES+= chrome-linux-${V}-llvm17.profdata${EXTRACT_SUFX} REGRESS_DISTFILES+= chromium-${V}-testdata${EXTRACT_SUFX} REGRESS_DISTFILES.a+= test_fonts-336e775eec536b2d785cc80eff6ac39051931286.tar.gz @@ -44,29 +46,30 @@ SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ SITES.a= http://nerd.hu/distfiles/ MODULES= lang/clang lang/python x11/qt5 -MODQT5_DEPS= No - -COMPILER = ports-clang -MODCLANG_VERSION = 16 +MODCLANG_VERSION= 17 +MODQT5_DEPS= No MODPY_RUNDEP= No +COMPILER= ports-clang + # uses pledge() WANTLIB+= GL X11 Xau Xcomposite Xdamage Xdmcp Xext Xfixes Xft Xi Xrandr -WANTLIB+= Xrender Xtst atk-1.0 atk-bridge-2.0 atspi c c++ c++abi cairo +WANTLIB+= Xrender Xtst aom atk-1.0 atk-bridge-2.0 atspi c cairo WANTLIB+= cbor crypto cups dav1d dbus-1 drm event execinfo expat ffi fido2 WANTLIB+= fontconfig freetype fribidi gbm gio-2.0 glib-2.0 gmodule-2.0 WANTLIB+= gobject-2.0 graphite2 gthread-2.0 harfbuzz harfbuzz-gobject WANTLIB+= harfbuzz-subset iconv icudata icui18n icuuc intl jpeg kvm m WANTLIB+= nspr4 nss3 nssutil3 openh264 opus pango-1.0 pangocairo-1.0 WANTLIB+= pangoft2-1.0 pcre2-8 pixman-1 plc4 plds4 png pthread pthread smime3 -WANTLIB+= snappy sndio usbhid util xcb xcb-render xcb-shm xkbcommon xml2 +WANTLIB+= sndio usbhid util vpx xcb xcb-render xcb-shm xkbcommon xml2 WANTLIB+= xshmfence xslt z RUN_DEPENDS= devel/xdg-utils \ devel/desktop-file-utils \ fonts/noto/fonts \ graphics/libexif \ + sysutils/libudev-openbsd \ x11/gtk+3,-main \ x11/gtk+4,-guic \ x11/gtk+3,-cups @@ -74,6 +77,7 @@ BUILD_DEPENDS= archivers/bzip2 \ devel/gperf \ devel/bison \ lang/node \ + lang/rust \ shells/bash \ sysutils/flock \ sysutils/pciutils \ @@ -82,11 +86,12 @@ BUILD_DEPENDS= archivers/bzip2 \ x11/qt5/qtbase,-main \ ${MODGCC4_CPPDEP} \ ${RUN_DEPENDS} -LIB_DEPENDS= archivers/snappy \ - audio/opus \ +LIB_DEPENDS= audio/opus \ devel/pango \ graphics/jpeg \ + multimedia/aom \ multimedia/dav1d \ + multimedia/libvpx \ multimedia/openh264 \ security/nss \ textproc/icu4c \ @@ -96,8 +101,6 @@ LIB_DEPENDS= archivers/snappy \ print/cups,-libs \ ${MODGCC4_CPPLIBDEP} -BUILD_DEPENDS+= sysutils/libudev-openbsd:build - USE_GMAKE= Yes .include @@ -138,15 +141,17 @@ BUILDDIR= ${WRKSRC}/out/${BUILDTYPE} # removes them from the bundled third_party directory and replaces them # with hooks to use them from the system. GN_SYSTEM_LIBS= dav1d \ + fontconfig \ icu \ + libaom \ libevent \ libjpeg \ libpng \ + libvpx \ libxml \ libxslt \ openh264 \ - opus \ - snappy + opus GN_ARGS= enable_nacl=false \ is_official_build=true \ @@ -155,8 +160,7 @@ GN_ARGS= enable_nacl=false \ optimize_webui=true \ enable_remoting=false \ enable_hangout_services_extension=true \ - enable_rust=false \ - use_bundled_fontconfig=false \ + enable_log_error_not_reached=true \ use_kerberos=false \ use_sndio=true \ use_cups=true \ @@ -176,8 +180,17 @@ GN_ARGS= enable_nacl=false \ disable_fieldtrial_testing_config=true \ extra_cppflags=\"-idirafter ${LOCALBASE}/include -idirafter ${X11BASE}/include\" \ fatal_linker_warnings=false \ - use_custom_libcxx=false \ - use_udev=true + use_custom_libcxx=true \ + use_custom_libunwind=true \ + use_udev=true \ + v8_enable_cet_ibt=true + +# rust +RUSTC_VERSION!!=rustc -V +MAKE_ENV+= RUSTC_BOOTSTRAP=1 +GN_ARGS+= enable_rust=true \ + rust_sysroot_absolute=\"${LOCALBASE}\" \ + rustc_version=\"${RUSTC_VERSION}\" # notyet GN_ARGS+= use_vaapi=false @@ -308,6 +321,7 @@ do-install: .if ${MACHINE_ARCH} != "aarch64" # SwiftShader ${INSTALL_DATA} ${BUILDDIR}/libvk_swiftshader.so ${PREFIX}/${DIST_TARGET_DIR} + ${INSTALL_DATA} ${BUILDDIR}/vk_swiftshader_icd.json ${PREFIX}/${DIST_TARGET_DIR} .endif .if ${FLAVOR:Mcomponent} @@ -328,8 +342,6 @@ do-install: unveil.gpu unveil.main unveil.utility_audio unveil.utility_network unveil.utility_video ${INSTALL_DATA} ${FILESDIR}/${f} ${PREFIX}/share/examples/chromium .endfor - ${INSTALL_DATA} ${WRKDIR}/sysutils/libudev-openbsd/build-${MACHINE_ARCH}/libudev.so.0.0 \ - ${PREFIX}/${DIST_TARGET_DIR}/libudev.so.0 pre-test: .for _d in ${REGRESS_DISTFILES:C/:[0-9]$//} diff --git a/www/chromium/distinfo b/www/chromium/distinfo index 07a94ae0d..dda83e655 100644 --- a/www/chromium/distinfo +++ b/www/chromium/distinfo @@ -1,10 +1,8 @@ -SHA256 (chrome-linux-118.0.5993.70-llvm13.profdata.tar.xz) = vTv0GRdS23zKqcKeJG+C8p9pqVPAPt58gY/xHV22Kfc= -SHA256 (chromium-118.0.5993.70-testdata.tar.xz) = 8C+uqh28BrqNu2HK3bkBXiE/pUj8J7GFM9dc5crgjuA= -SHA256 (chromium-118.0.5993.70.tar.xz) = Se4ApzTePa58Qh6zyXTo1FG03m9bTjS2A/1kNeq2mT0= -SHA256 (libudev-openbsd-20221108-c3330efd.tar.gz) = BBKUTWeCkarFwKZQ+eg9DfekIMr5xi2G4Lce0C43pnc= +SHA256 (chrome-linux-124.0.6367.207-llvm17.profdata.tar.xz) = Q5U8+JWMH41rcAY1pNIJ/ifqRIfiasErxfLuVsKMsMU= +SHA256 (chromium-124.0.6367.207-testdata.tar.xz) = 0wOGpzcZpk/dGR97UXCRheTT/EmIiwSjkFBtQ3DmmwY= +SHA256 (chromium-124.0.6367.207.tar.xz) = bW3IuUMBJXOiRN2wE7KB7LyX93/h/G9VpBGCQdEH66U= SHA256 (test_fonts-336e775eec536b2d785cc80eff6ac39051931286.tar.gz) = osopYtr0gqj5QxY1QeHHO6SyaU+rzSUQmB8ttO2kk8g= -SIZE (chrome-linux-118.0.5993.70-llvm13.profdata.tar.xz) = 28957632 -SIZE (chromium-118.0.5993.70-testdata.tar.xz) = 267730908 -SIZE (chromium-118.0.5993.70.tar.xz) = 3236238920 -SIZE (libudev-openbsd-20221108-c3330efd.tar.gz) = 32757 +SIZE (chrome-linux-124.0.6367.207-llvm17.profdata.tar.xz) = 30059564 +SIZE (chromium-124.0.6367.207-testdata.tar.xz) = 277899644 +SIZE (chromium-124.0.6367.207.tar.xz) = 3450794132 SIZE (test_fonts-336e775eec536b2d785cc80eff6ac39051931286.tar.gz) = 32624734 diff --git a/www/chromium/patches/patch-BUILD_gn b/www/chromium/patches/patch-BUILD_gn index 2464f48b5..eed686d57 100644 --- a/www/chromium/patches/patch-BUILD_gn +++ b/www/chromium/patches/patch-BUILD_gn @@ -1,7 +1,7 @@ Index: BUILD.gn --- BUILD.gn.orig +++ BUILD.gn -@@ -61,7 +61,7 @@ declare_args() { +@@ -64,7 +64,7 @@ declare_args() { root_extra_deps = [] } @@ -10,7 +10,7 @@ Index: BUILD.gn # An official (maximally optimized!) component (optimized for build times) # build doesn't make sense and usually doesn't work. assert(!is_component_build) -@@ -95,7 +95,6 @@ group("gn_all") { +@@ -96,7 +96,6 @@ group("gn_all") { "//codelabs", "//components:components_unittests", "//components/gwp_asan:gwp_asan_unittests", @@ -18,7 +18,7 @@ Index: BUILD.gn "//net:net_unittests", "//sandbox:sandbox_unittests", "//services:services_unittests", -@@ -417,7 +416,7 @@ group("gn_all") { +@@ -427,7 +426,7 @@ group("gn_all") { } } @@ -27,7 +27,7 @@ Index: BUILD.gn deps += [ "//third_party/breakpad:breakpad_unittests", "//third_party/breakpad:core-2-minidump", -@@ -617,6 +616,15 @@ group("gn_all") { +@@ -627,6 +626,15 @@ group("gn_all") { } } @@ -43,7 +43,7 @@ Index: BUILD.gn if (is_mac) { deps += [ "//third_party/breakpad:dump_syms", -@@ -666,7 +674,7 @@ group("gn_all") { +@@ -673,7 +681,7 @@ group("gn_all") { host_os == "win") { deps += [ "//chrome/test/mini_installer:mini_installer_tests" ] } @@ -58,10 +58,10 @@ Index: BUILD.gn - if (!is_chromeos_ash && !is_ios && !is_fuchsia && !is_android && !is_castos) { + if (!is_chromeos_ash && !is_ios && !is_fuchsia && !is_android && !is_castos && !is_bsd) { - script_test("webdriver_wpt_tests") { + script_test("chrome_wpt_tests") { script = "//third_party/blink/tools/run_wpt_tests.py" args = [ -@@ -1184,7 +1192,7 @@ if (use_blink && !is_cronet_build) { +@@ -1185,7 +1193,7 @@ if (use_blink && !is_cronet_build) { data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ] } @@ -70,7 +70,7 @@ Index: BUILD.gn data_deps += [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ] } -@@ -1193,7 +1201,7 @@ if (use_blink && !is_cronet_build) { +@@ -1194,7 +1202,7 @@ if (use_blink && !is_cronet_build) { data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] } @@ -79,7 +79,7 @@ Index: BUILD.gn data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] } -@@ -1653,7 +1661,7 @@ group("chromium_builder_perf") { +@@ -1654,7 +1662,7 @@ group("chromium_builder_perf") { data_deps += [ "//chrome/test:performance_browser_tests" ] } diff --git a/www/chromium/patches/patch-apps_ui_views_app_window_frame_view_cc b/www/chromium/patches/patch-apps_ui_views_app_window_frame_view_cc index 5b2364167..0ebaf97f8 100644 --- a/www/chromium/patches/patch-apps_ui_views_app_window_frame_view_cc +++ b/www/chromium/patches/patch-apps_ui_views_app_window_frame_view_cc @@ -1,7 +1,7 @@ Index: apps/ui/views/app_window_frame_view.cc --- apps/ui/views/app_window_frame_view.cc.orig +++ apps/ui/views/app_window_frame_view.cc -@@ -137,7 +137,7 @@ gfx::Rect AppWindowFrameView::GetWindowBoundsForClient +@@ -148,7 +148,7 @@ gfx::Rect AppWindowFrameView::GetWindowBoundsForClient gfx::Rect window_bounds = client_bounds; // TODO(crbug.com/1052397): Revisit once build flag switch of lacros-chrome is // complete. diff --git a/www/chromium/patches/patch-base_BUILD_gn b/www/chromium/patches/patch-base_BUILD_gn index 1ba99b583..4aeda00b5 100644 --- a/www/chromium/patches/patch-base_BUILD_gn +++ b/www/chromium/patches/patch-base_BUILD_gn @@ -1,7 +1,7 @@ Index: base/BUILD.gn --- base/BUILD.gn.orig +++ base/BUILD.gn -@@ -198,7 +198,7 @@ buildflag_header("ios_cronet_buildflags") { +@@ -200,7 +200,7 @@ buildflag_header("ios_cronet_buildflags") { flags = [ "CRONET_BUILD=$is_cronet_build" ] } @@ -10,7 +10,7 @@ Index: base/BUILD.gn buildflag_header("message_pump_buildflags") { header = "message_pump_buildflags.h" header_dir = "base/message_loop" -@@ -1111,11 +1111,23 @@ component("base") { +@@ -1131,11 +1131,23 @@ component("base") { # Needed for 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. @@ -35,7 +35,7 @@ Index: base/BUILD.gn if (use_allocator_shim) { if (is_apple) { sources += [ "allocator/early_zone_registration_apple.h" ] -@@ -1135,7 +1147,7 @@ component("base") { +@@ -1155,7 +1167,7 @@ component("base") { # Allow more direct string conversions on platforms with native utf8 # strings @@ -44,7 +44,7 @@ Index: base/BUILD.gn defines += [ "SYSTEM_NATIVE_UTF8" ] } -@@ -2080,6 +2092,22 @@ component("base") { +@@ -2113,6 +2125,22 @@ component("base") { ] } @@ -67,7 +67,7 @@ Index: base/BUILD.gn # iOS if (is_ios) { sources += [ -@@ -2212,6 +2240,29 @@ component("base") { +@@ -2249,6 +2277,33 @@ component("base") { } } @@ -75,6 +75,8 @@ Index: base/BUILD.gn + sources -= [ + "files/file_path_watcher_inotify.cc", + "files/scoped_file_linux.cc", ++ "process/set_process_title_linux.cc", ++ "process/set_process_title_linux.h", + "system/sys_info_linux.cc", + "process/process_iterator_linux.cc", + "process/process_linux.cc", @@ -85,6 +87,8 @@ Index: base/BUILD.gn + "profiler/thread_delegate_posix.cc", + "profiler/thread_delegate_posix.h", + "threading/platform_thread_linux.cc", ++ "stack_canary_linux.cc", ++ "stack_canary_linux.h", + ] + sources += [ + "files/file_path_watcher_kqueue.cc", @@ -97,7 +101,7 @@ Index: base/BUILD.gn if (use_blink) { sources += [ "files/file_path_watcher.cc", -@@ -2222,7 +2273,7 @@ component("base") { +@@ -2259,7 +2314,7 @@ component("base") { } if (dep_libevent) { @@ -106,16 +110,25 @@ Index: base/BUILD.gn } if (use_libevent) { -@@ -3596,7 +3647,7 @@ test("base_unittests") { +@@ -3072,7 +3127,7 @@ if (is_apple) { + } + } + +-if (!is_nacl && (is_linux || is_chromeos)) { ++if (!is_nacl && !is_bsd && (is_linux || is_chromeos)) { + # This test must compile with -fstack-protector-all + source_set("stack_canary_linux_unittests") { + testonly = true +@@ -3716,7 +3771,7 @@ test("base_unittests") { ] } - if (is_linux || is_chromeos) { -+ if ((is_linux || is_chromeos) && !is_bsd) { ++ if (!is_bsd && (is_linux || is_chromeos)) { sources += [ "debug/proc_maps_linux_unittest.cc", "files/scoped_file_linux_unittest.cc", -@@ -3617,7 +3668,7 @@ test("base_unittests") { +@@ -3743,7 +3798,7 @@ test("base_unittests") { "posix/file_descriptor_shuffle_unittest.cc", "posix/unix_domain_socket_unittest.cc", ] @@ -124,7 +137,7 @@ Index: base/BUILD.gn sources += [ "profiler/stack_base_address_posix_unittest.cc", "profiler/stack_copier_signal_unittest.cc", -@@ -3628,7 +3679,7 @@ test("base_unittests") { +@@ -3754,7 +3809,7 @@ test("base_unittests") { # Allow more direct string conversions on platforms with native utf8 # strings @@ -133,7 +146,7 @@ Index: base/BUILD.gn defines += [ "SYSTEM_NATIVE_UTF8" ] } -@@ -3884,7 +3935,7 @@ test("base_unittests") { +@@ -4022,7 +4077,7 @@ test("base_unittests") { } } diff --git a/www/chromium/patches/patch-base_allocator_dispatcher_tls_h b/www/chromium/patches/patch-base_allocator_dispatcher_tls_h index 9588185c9..245e37251 100644 --- a/www/chromium/patches/patch-base_allocator_dispatcher_tls_h +++ b/www/chromium/patches/patch-base_allocator_dispatcher_tls_h @@ -1,9 +1,9 @@ Index: base/allocator/dispatcher/tls.h --- base/allocator/dispatcher/tls.h.orig +++ base/allocator/dispatcher/tls.h -@@ -50,7 +50,7 @@ struct BASE_EXPORT MMapAllocator { - partition_alloc::PartitionPageSize(); - #elif BUILDFLAG(IS_APPLE) +@@ -76,7 +76,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; -#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) +#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_BUILD_gn b/www/chromium/patches/patch-base_allocator_partition_allocator_BUILD_gn deleted file mode 100644 index 3772a14d1..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_BUILD_gn +++ /dev/null @@ -1,12 +0,0 @@ -Index: base/allocator/partition_allocator/BUILD.gn ---- base/allocator/partition_allocator/BUILD.gn.orig -+++ base/allocator/partition_allocator/BUILD.gn -@@ -562,7 +562,7 @@ source_set("allocator_shim") { - ] - configs += [ ":mac_no_default_new_delete_symbols" ] - } -- if (is_chromeos || is_linux) { -+ if ((is_chromeos || is_linux) && !is_bsd) { - sources += [ - "shim/allocator_shim_override_cpp_symbols.h", - "shim/allocator_shim_override_glibc_weak_symbols.h", diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_constants_h b/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_constants_h deleted file mode 100644 index adc62b546..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_constants_h +++ /dev/null @@ -1,39 +0,0 @@ -Index: base/allocator/partition_allocator/page_allocator_constants.h ---- base/allocator/partition_allocator/page_allocator_constants.h.orig -+++ base/allocator/partition_allocator/page_allocator_constants.h -@@ -25,7 +25,7 @@ - // elimination. - #define PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR __attribute__((const)) - --#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) -+#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) - // This should work for all POSIX (if needed), but currently all other - // supported OS/architecture combinations use either hard-coded values - // (such as x86) or have means to determine these values without needing -@@ -92,7 +92,7 @@ PageAllocationGranularityShift() { - return 14; // 16kB - #elif BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS) - return static_cast(vm_page_shift); --#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) -+#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) - // arm64 supports 4kb (shift = 12), 16kb (shift = 14), and 64kb (shift = 16) - // page sizes. Retrieve from or initialize cache. - size_t shift = page_characteristics.shift.load(std::memory_order_relaxed); -@@ -113,7 +113,7 @@ PageAllocationGranularity() { - // This is literally equivalent to |1 << PageAllocationGranularityShift()| - // below, but was separated out for IS_APPLE to avoid << on a non-constexpr. - return vm_page_size; --#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) -+#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) - // arm64 supports 4kb, 16kb, and 64kb page sizes. Retrieve from or - // initialize cache. - size_t size = page_characteristics.size.load(std::memory_order_relaxed); -@@ -152,7 +152,7 @@ SystemPageShift() { - PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t - SystemPageSize() { - #if (BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS)) || \ -- (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)) -+ ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64)) - // This is literally equivalent to |1 << SystemPageShift()| below, but was - // separated out for 64-bit IS_APPLE and arm64 on Linux to avoid << on a - // non-constexpr. diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_h b/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_h deleted file mode 100644 index 15777984e..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_h +++ /dev/null @@ -1,12 +0,0 @@ -Index: base/allocator/partition_allocator/page_allocator.h ---- base/allocator/partition_allocator/page_allocator.h.orig -+++ base/allocator/partition_allocator/page_allocator.h -@@ -258,7 +258,7 @@ void DecommitAndZeroSystemPages(void* address, - // recommitted. Do not assume that this will not change over time. - constexpr PA_COMPONENT_EXPORT( - PARTITION_ALLOC) bool DecommittedMemoryIsAlwaysZeroed() { --#if BUILDFLAG(IS_APPLE) -+#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) - return false; - #else - return true; diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_address_space_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_address_space_cc deleted file mode 100644 index 1fb77ce3c..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_address_space_cc +++ /dev/null @@ -1,12 +0,0 @@ -Index: base/allocator/partition_allocator/partition_address_space.cc ---- base/allocator/partition_allocator/partition_address_space.cc.orig -+++ base/allocator/partition_allocator/partition_address_space.cc -@@ -420,7 +420,7 @@ void PartitionAddressSpace::UninitThreadIsolatedPoolFo - } - #endif - --#if BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) -+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) - - PageCharacteristics page_characteristics; - diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_compiler_specific_h b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_compiler_specific_h deleted file mode 100644 index 416f6c20b..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_compiler_specific_h +++ /dev/null @@ -1,33 +0,0 @@ -Index: base/allocator/partition_allocator/partition_alloc_base/compiler_specific.h ---- base/allocator/partition_allocator/partition_alloc_base/compiler_specific.h.orig -+++ base/allocator/partition_allocator/partition_alloc_base/compiler_specific.h -@@ -24,9 +24,9 @@ - // Annotate a function indicating it should not be inlined. - // Use like: - // NOINLINE void DoStuff() { ... } --#if defined(__clang__) && PA_HAS_ATTRIBUTE(noinline) -+#if defined(__clang__) && (__clang_major__ >= 15) && PA_HAS_ATTRIBUTE(noinline) - #define PA_NOINLINE [[clang::noinline]] --#elif defined(COMPILER_GCC) && PA_HAS_ATTRIBUTE(noinline) -+#elif (defined(COMPILER_GCC) || defined(__clang__)) && PA_HAS_ATTRIBUTE(noinline) - #define PA_NOINLINE __attribute__((noinline)) - #elif defined(COMPILER_MSVC) - #define PA_NOINLINE __declspec(noinline) -@@ -34,7 +34,7 @@ - #define PA_NOINLINE - #endif - --#if defined(__clang__) && defined(NDEBUG) && PA_HAS_ATTRIBUTE(always_inline) -+#if defined(__clang__) && (__clang_major__ >= 15) && defined(NDEBUG) && PA_HAS_ATTRIBUTE(always_inline) - #define PA_ALWAYS_INLINE [[clang::always_inline]] inline - #elif defined(COMPILER_GCC) && defined(NDEBUG) && \ - PA_HAS_ATTRIBUTE(always_inline) -@@ -53,7 +53,7 @@ - // prevent code folding, see NO_CODE_FOLDING() in base/debug/alias.h. - // Use like: - // void NOT_TAIL_CALLED FooBar(); --#if defined(__clang__) && PA_HAS_ATTRIBUTE(not_tail_called) -+#if defined(__clang__) && (__clang_major__ >= 15) && PA_HAS_ATTRIBUTE(not_tail_called) - #define PA_NOT_TAIL_CALLED [[clang::not_tail_called]] - #else - #define PA_NOT_TAIL_CALLED diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_debug_stack_trace_posix_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_debug_stack_trace_posix_cc deleted file mode 100644 index 97f93d3ae..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_debug_stack_trace_posix_cc +++ /dev/null @@ -1,35 +0,0 @@ -Index: base/allocator/partition_allocator/partition_alloc_base/debug/stack_trace_posix.cc ---- base/allocator/partition_allocator/partition_alloc_base/debug/stack_trace_posix.cc.orig -+++ base/allocator/partition_allocator/partition_alloc_base/debug/stack_trace_posix.cc -@@ -12,11 +12,11 @@ - #include - #include - --#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_APPLE) -+#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) - #include // For ElfW() macro. - #endif - --#if BUILDFLAG(IS_APPLE) -+#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) - #define HAVE_DLADDR - #include - #endif -@@ -25,7 +25,7 @@ namespace partition_alloc::internal::base::debug { - - namespace { - --#if !BUILDFLAG(IS_APPLE) -+#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) - - constexpr size_t kBufferSize = 4096u; - -@@ -359,7 +359,7 @@ void PrintStackTraceInternal(void* const* trace, size_ - } - #endif // !BUILDFLAG(IS_APPLE) - --#if BUILDFLAG(IS_APPLE) -+#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) - // Since /proc/self/maps is not available, use dladdr() to obtain module - // names and offsets inside the modules from the given addresses. - void PrintStackTraceInternal(void* const* trace, size_t size) { diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_rand_util_posix_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_rand_util_posix_cc deleted file mode 100644 index d1e2bbcfe..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_rand_util_posix_cc +++ /dev/null @@ -1,14 +0,0 @@ -Index: base/allocator/partition_allocator/partition_alloc_base/rand_util_posix.cc ---- base/allocator/partition_allocator/partition_alloc_base/rand_util_posix.cc.orig -+++ base/allocator/partition_allocator/partition_alloc_base/rand_util_posix.cc -@@ -90,6 +90,10 @@ void RandBytes(void* output, size_t output_length) { - if (getentropy(output, output_length) == 0) { - return; - } -+#elif BUILDFLAG(IS_BSD) -+ if (getentropy(output, output_length) == 0) { -+ return; -+ } - #endif - // If getrandom(2) above returned with an error and the /dev/urandom fallback - // took place on Linux/ChromeOS bots, they would fail with a CHECK in diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_threading_platform_thread_posix_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_threading_platform_thread_posix_cc deleted file mode 100644 index 7052ad063..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_threading_platform_thread_posix_cc +++ /dev/null @@ -1,12 +0,0 @@ -Index: base/allocator/partition_allocator/partition_alloc_base/threading/platform_thread_posix.cc ---- base/allocator/partition_allocator/partition_alloc_base/threading/platform_thread_posix.cc.orig -+++ base/allocator/partition_allocator/partition_alloc_base/threading/platform_thread_posix.cc -@@ -17,7 +17,7 @@ - #include "base/allocator/partition_allocator/partition_alloc_base/threading/platform_thread_internal_posix.h" - #include "build/build_config.h" - --#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) - #include - #include - #endif diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_config_h b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_config_h deleted file mode 100644 index 544dfd050..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_config_h +++ /dev/null @@ -1,30 +0,0 @@ -Index: base/allocator/partition_allocator/partition_alloc_config.h ---- base/allocator/partition_allocator/partition_alloc_config.h.orig -+++ base/allocator/partition_allocator/partition_alloc_config.h -@@ -94,7 +94,7 @@ static_assert(sizeof(void*) != 8, ""); - // POSIX is not only UNIX, e.g. macOS and other OSes. We do use Linux-specific - // features such as futex(2). - #define PA_CONFIG_HAS_LINUX_KERNEL() \ -- (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)) -+ (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)) - - // On some platforms, we implement locking by spinning in userspace, then going - // into the kernel only if there is contention. This requires platform support, -@@ -237,7 +237,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() \ -- (BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) -+ (BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) - - // PartitionAlloc uses PartitionRootEnumerator to acquire all - // PartitionRoots at BeforeFork and to release at AfterFork. -@@ -284,7 +284,7 @@ constexpr bool kUseLazyCommit = false; - // Also enabled on ARM64 macOS, as the 16kiB pages on this platform lead to - // larger slot spans. - #define PA_CONFIG_PREFER_SMALLER_SLOT_SPANS() \ -- (BUILDFLAG(IS_LINUX) || (BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64))) -+ (BUILDFLAG(IS_LINUX) || (BUILDFLAG(IS_MAC) && defined(ARCH_CPU_ARM64)) || BUILDFLAG(IS_BSD)) - - // Enable shadow metadata. - // diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_constants_h b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_constants_h deleted file mode 100644 index 1560b2b12..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_constants_h +++ /dev/null @@ -1,22 +0,0 @@ -Index: base/allocator/partition_allocator/partition_alloc_constants.h ---- base/allocator/partition_allocator/partition_alloc_constants.h.orig -+++ base/allocator/partition_allocator/partition_alloc_constants.h -@@ -95,7 +95,7 @@ PartitionPageShift() { - return 18; // 256 KiB - } - #elif (BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_64_BITS)) || \ -- (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)) -+ ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64)) - PA_ALWAYS_INLINE PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR size_t - PartitionPageShift() { - return PageAllocationGranularityShift() + 2; -@@ -297,7 +297,8 @@ 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) || \ -- BUILDFLAG(ENABLE_POINTER_COMPRESSION) -+ BUILDFLAG(ENABLE_POINTER_COMPRESSION) || \ -+ BUILDFLAG(IS_BSD) - constexpr size_t kPoolMaxSize = 8 * kGiB; - #else - constexpr size_t kPoolMaxSize = 16 * kGiB; diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_gni b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_gni index 9d776dc0b..59f91e688 100644 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_gni +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_gni @@ -1,12 +1,21 @@ Index: base/allocator/partition_allocator/partition_alloc.gni --- base/allocator/partition_allocator/partition_alloc.gni.orig +++ base/allocator/partition_allocator/partition_alloc.gni -@@ -328,7 +328,7 @@ declare_args() { - # pkeys support is explicitly disabled in all Cronet builds, as some test +@@ -33,7 +33,7 @@ if (is_nacl) { + use_large_empty_slot_span_ring = is_mac + + has_memory_tagging = +- current_cpu == "arm64" && is_clang && !is_asan && (is_linux || is_android) ++ current_cpu == "arm64" && is_clang && !is_asan && !is_bsd && (is_linux || is_android) + + declare_args() { + # Causes all the allocations to be routed via allocator_shim.cc. Usually, +@@ -351,7 +351,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 = is_linux && target_cpu == "x64" && !is_cronet_build -+ enable_pkeys = (is_linux && !is_bsd) && target_cpu == "x64" && !is_cronet_build + enable_pkeys = +- (is_linux || is_chromeos) && target_cpu == "x64" && !is_cronet_build ++ !is_bsd && (is_linux || is_chromeos) && target_cpu == "x64" && !is_cronet_build } - assert(!enable_pkeys || (is_linux && target_cpu == "x64"), - "Pkeys are only supported on x64 linux") + assert(!enable_pkeys || ((is_linux || is_chromeos) && target_cpu == "x64"), + "Pkeys are only supported on x64 linux and ChromeOS") diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_page_constants_h b/www/chromium/patches/patch-base_allocator_partition_allocator_partition_page_constants_h deleted file mode 100644 index 8f401f21a..000000000 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_page_constants_h +++ /dev/null @@ -1,12 +0,0 @@ -Index: base/allocator/partition_allocator/partition_page_constants.h ---- base/allocator/partition_allocator/partition_page_constants.h.orig -+++ base/allocator/partition_allocator/partition_page_constants.h -@@ -16,7 +16,7 @@ namespace partition_alloc::internal { - // (1 << 12 or 1 << 14), as checked in PartitionRoot::Init(). And - // PartitionPageSize() is 4 times the OS page size. - static constexpr size_t kMaxSlotsPerSlotSpan = 4 * (1 << 14) / kSmallestBucket; --#elif BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64) -+#elif (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64) - // System page size can be 4, 16, or 64 kiB on Linux on arm64. 64 kiB is - // currently (kMaxSlotsPerSlotSpanBits == 13) not supported by the code, - // so we use the 16 kiB maximum (64 kiB will crash). diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_BUILD_gn b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_BUILD_gn new file mode 100644 index 000000000..bc29e89dd --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_BUILD_gn @@ -0,0 +1,12 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/BUILD.gn +--- base/allocator/partition_allocator/src/partition_alloc/BUILD.gn.orig ++++ base/allocator/partition_allocator/src/partition_alloc/BUILD.gn +@@ -851,7 +851,7 @@ if (is_clang_or_gcc) { + configs -= [ "//build/config/compiler:enable_arc" ] + } + } +- if (is_chromeos || is_linux) { ++ if ((is_chromeos || is_linux) && !is_bsd) { + shim_headers += [ + "shim/allocator_shim_override_cpp_symbols.h", + "shim/allocator_shim_override_glibc_weak_symbols.h", diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_address_space_randomization_h b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_address_space_randomization_h similarity index 66% rename from www/chromium/patches/patch-base_allocator_partition_allocator_address_space_randomization_h rename to www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_address_space_randomization_h index aace20ea8..d6c559f82 100644 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_address_space_randomization_h +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_address_space_randomization_h @@ -1,6 +1,6 @@ -Index: base/allocator/partition_allocator/address_space_randomization.h ---- base/allocator/partition_allocator/address_space_randomization.h.orig -+++ base/allocator/partition_allocator/address_space_randomization.h +Index: base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h +--- base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h.orig ++++ base/allocator/partition_allocator/src/partition_alloc/address_space_randomization.h @@ -38,7 +38,7 @@ AslrMask(uintptr_t bits) { #if defined(ARCH_CPU_64_BITS) @@ -10,7 +10,7 @@ Index: base/allocator/partition_allocator/address_space_randomization.h // We shouldn't allocate system pages at all for sanitizer builds. However, // we do, and if random hint addresses interfere with address ranges -@@ -124,7 +124,7 @@ AslrMask(uintptr_t bits) { +@@ -128,7 +128,7 @@ AslrMask(uintptr_t bits) { return AslrAddress(0x20000000ULL); } diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_constants_h b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_constants_h new file mode 100644 index 000000000..e45cc3112 --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_constants_h @@ -0,0 +1,12 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h +--- base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h.orig ++++ base/allocator/partition_allocator/src/partition_alloc/page_allocator_constants.h +@@ -26,7 +26,7 @@ + #define PAGE_ALLOCATOR_CONSTANTS_DECLARE_CONSTEXPR __attribute__((const)) + + #elif (BUILDFLAG(IS_ANDROID) && defined(ARCH_CPU_64_BITS)) || \ +- (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)) ++ ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64)) + // This should work for all POSIX (if needed), but currently all other + // supported OS/architecture combinations use either hard-coded values + // (such as x86) or have means to determine these values without needing diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_h b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_h new file mode 100644 index 000000000..a3eba9b5c --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_h @@ -0,0 +1,12 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/page_allocator.h +--- base/allocator/partition_allocator/src/partition_alloc/page_allocator.h.orig ++++ base/allocator/partition_allocator/src/partition_alloc/page_allocator.h +@@ -259,7 +259,7 @@ bool DecommitAndZeroSystemPages(void* address, + // recommitted. Do not assume that this will not change over time. + constexpr PA_COMPONENT_EXPORT( + PARTITION_ALLOC) bool DecommittedMemoryIsAlwaysZeroed() { +-#if BUILDFLAG(IS_APPLE) ++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) + return false; + #else + return true; diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_internals_posix_h b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_internals_posix_h similarity index 57% rename from www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_internals_posix_h rename to www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_internals_posix_h index 27e451bbb..325d32fe1 100644 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_page_allocator_internals_posix_h +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_page_allocator_internals_posix_h @@ -1,7 +1,7 @@ -Index: base/allocator/partition_allocator/page_allocator_internals_posix.h ---- base/allocator/partition_allocator/page_allocator_internals_posix.h.orig -+++ base/allocator/partition_allocator/page_allocator_internals_posix.h -@@ -403,8 +403,12 @@ bool TryRecommitSystemPagesInternal( +Index: base/allocator/partition_allocator/src/partition_alloc/page_allocator_internals_posix.h +--- base/allocator/partition_allocator/src/partition_alloc/page_allocator_internals_posix.h.orig ++++ base/allocator/partition_allocator/src/partition_alloc/page_allocator_internals_posix.h +@@ -411,8 +411,12 @@ bool TryRecommitSystemPagesInternal( void DiscardSystemPagesInternal(uintptr_t address, size_t length) { void* ptr = reinterpret_cast(address); diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_debug_stack_trace_posix_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_debug_stack_trace_posix_cc new file mode 100644 index 000000000..8b9c2a297 --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_debug_stack_trace_posix_cc @@ -0,0 +1,35 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/debug/stack_trace_posix.cc +--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/debug/stack_trace_posix.cc.orig ++++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/debug/stack_trace_posix.cc +@@ -13,11 +13,11 @@ + #include "partition_alloc/partition_alloc_base/posix/eintr_wrapper.h" + #include "partition_alloc/partition_alloc_base/strings/safe_sprintf.h" + +-#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_APPLE) ++#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) + #include // For ElfW() macro. + #endif + +-#if BUILDFLAG(IS_APPLE) ++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) + #include + #endif + +@@ -25,7 +25,7 @@ namespace partition_alloc::internal::base::debug { + + namespace { + +-#if !BUILDFLAG(IS_APPLE) ++#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) + + // On Android the 'open' function has two versions: + // int open(const char *pathname, int flags); +@@ -369,7 +369,7 @@ void PrintStackTraceInternal(const void** trace, size_ + } + #endif // !BUILDFLAG(IS_APPLE) + +-#if BUILDFLAG(IS_APPLE) ++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) + // Since /proc/self/maps is not available, use dladdr() to obtain module + // names and offsets inside the modules from the given addresses. + void PrintStackTraceInternal(const void* const* trace, size_t size) { diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_rand_util_posix_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_rand_util_posix_cc new file mode 100644 index 000000000..9f2017a0b --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_rand_util_posix_cc @@ -0,0 +1,14 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/rand_util_posix.cc +--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/rand_util_posix.cc.orig ++++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/rand_util_posix.cc +@@ -102,6 +102,10 @@ void RandBytes(void* output, size_t output_length) { + if (getentropy(output, output_length) == 0) { + return; + } ++#elif BUILDFLAG(IS_BSD) ++ if (getentropy(output, output_length) == 0) { ++ return; ++ } + #endif + // If getrandom(2) above returned with an error and the /dev/urandom fallback + // took place on Linux/ChromeOS bots, they would fail with a CHECK in diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_h b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_h new file mode 100644 index 000000000..0477d918e --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_h @@ -0,0 +1,12 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/platform_thread.h +--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/platform_thread.h.orig ++++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/platform_thread.h +@@ -37,6 +37,8 @@ typedef DWORD PlatformThreadId; + typedef zx_handle_t PlatformThreadId; + #elif BUILDFLAG(IS_APPLE) + typedef mach_port_t PlatformThreadId; ++#elif BUILDFLAG(IS_BSD) ++typedef uint64_t PlatformThreadId; + #elif BUILDFLAG(IS_POSIX) + typedef pid_t PlatformThreadId; + #endif diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_threading_platform_thread_internal_posix_h b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_internal_posix_h similarity index 53% rename from www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_threading_platform_thread_internal_posix_h rename to www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_internal_posix_h index b14e410e6..edde67bdb 100644 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_base_threading_platform_thread_internal_posix_h +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_internal_posix_h @@ -1,6 +1,6 @@ -Index: base/allocator/partition_allocator/partition_alloc_base/threading/platform_thread_internal_posix.h ---- base/allocator/partition_allocator/partition_alloc_base/threading/platform_thread_internal_posix.h.orig -+++ base/allocator/partition_allocator/partition_alloc_base/threading/platform_thread_internal_posix.h +Index: base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/platform_thread_internal_posix.h +--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/platform_thread_internal_posix.h.orig ++++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/platform_thread_internal_posix.h @@ -10,7 +10,7 @@ namespace partition_alloc::internal::base::internal { diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_posix_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_posix_cc new file mode 100644 index 000000000..f8b03463f --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_base_threading_platform_thread_posix_cc @@ -0,0 +1,12 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/platform_thread_posix.cc +--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/platform_thread_posix.cc.orig ++++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/platform_thread_posix.cc +@@ -18,7 +18,7 @@ + #include "partition_alloc/partition_alloc_base/logging.h" + #include "partition_alloc/partition_alloc_base/threading/platform_thread_internal_posix.h" + +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + #include + #include + #endif diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_config_h b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_config_h new file mode 100644 index 000000000..dc90e7799 --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_config_h @@ -0,0 +1,21 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h +--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h.orig ++++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h +@@ -251,7 +251,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() \ +- (BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) ++ (BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) + + // PartitionAlloc uses PartitionRootEnumerator to acquire all + // PartitionRoots at BeforeFork and to release at AfterFork. +@@ -299,7 +299,7 @@ constexpr bool kUseLazyCommit = false; + // + // Also enabled on ARM64 macOS and iOS, as the 16kiB pages on this platform lead + // to larger slot spans. +-#if BUILDFLAG(IS_LINUX) || (BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_ARM64)) ++#if BUILDFLAG(IS_LINUX) || (BUILDFLAG(IS_APPLE) && defined(ARCH_CPU_ARM64)) || BUILDFLAG(IS_BSD) + #define PA_CONFIG_PREFER_SMALLER_SLOT_SPANS() 1 + #else + #define PA_CONFIG_PREFER_SMALLER_SLOT_SPANS() 0 diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_constants_h b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_constants_h new file mode 100644 index 000000000..0cd3e521b --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_constants_h @@ -0,0 +1,12 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h.orig ++++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_constants.h +@@ -313,7 +313,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) || \ +- BUILDFLAG(ENABLE_POINTER_COMPRESSION) ++ BUILDFLAG(ENABLE_POINTER_COMPRESSION) || BUILDFLAG(IS_BSD) + constexpr size_t kPoolMaxSize = 8 * kGiB; + #else + constexpr size_t kPoolMaxSize = 16 * kGiB; diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_forward_h b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_forward_h similarity index 70% rename from www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_forward_h rename to www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_forward_h index de691b5ec..bc830e607 100644 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_alloc_forward_h +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_alloc_forward_h @@ -1,6 +1,6 @@ -Index: base/allocator/partition_allocator/partition_alloc_forward.h ---- base/allocator/partition_allocator/partition_alloc_forward.h.orig -+++ base/allocator/partition_allocator/partition_alloc_forward.h +Index: base/allocator/partition_allocator/src/partition_alloc/partition_alloc_forward.h +--- base/allocator/partition_allocator/src/partition_alloc/partition_alloc_forward.h.orig ++++ base/allocator/partition_allocator/src/partition_alloc/partition_alloc_forward.h @@ -28,9 +28,13 @@ namespace internal { // the second one 16. We could technically return something different for // malloc() and operator new(), but this would complicate things, and most of diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_root_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_root_cc similarity index 53% rename from www/chromium/patches/patch-base_allocator_partition_allocator_partition_root_cc rename to www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_root_cc index 80b612a6a..57de87c8a 100644 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_partition_root_cc +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_partition_root_cc @@ -1,6 +1,6 @@ -Index: base/allocator/partition_allocator/partition_root.cc ---- base/allocator/partition_allocator/partition_root.cc.orig -+++ base/allocator/partition_allocator/partition_root.cc +Index: base/allocator/partition_allocator/src/partition_alloc/partition_root.cc +--- base/allocator/partition_allocator/src/partition_alloc/partition_root.cc.orig ++++ base/allocator/partition_allocator/src/partition_alloc/partition_root.cc @@ -47,7 +47,7 @@ #include "wow64apiset.h" #endif @@ -10,7 +10,7 @@ Index: base/allocator/partition_allocator/partition_root.cc #include #endif -@@ -281,7 +281,7 @@ void PartitionAllocMallocInitOnce() { +@@ -279,7 +279,7 @@ void PartitionAllocMallocInitOnce() { return; } @@ -19,16 +19,7 @@ Index: base/allocator/partition_allocator/partition_root.cc // 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. -@@ -379,7 +379,7 @@ static size_t PartitionPurgeSlotSpan(PartitionRoot* ro - constexpr size_t kMaxSlotCount = - (PartitionPageSize() * kMaxPartitionPagesPerRegularSlotSpan) / - MinPurgeableSlotSize(); --#elif BUILDFLAG(IS_APPLE) || (BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_ARM64)) -+#elif BUILDFLAG(IS_APPLE) || ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_ARM64)) - // It's better for slot_usage to be stack-allocated and fixed-size, which - // demands that its size be constexpr. On IS_APPLE and Linux on arm64, - // PartitionPageSize() is always SystemPageSize() << 2, so regardless of -@@ -948,7 +948,7 @@ void PartitionRoot::Init(PartitionOptions opts) { +@@ -950,7 +950,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/chromium/patches/patch-base_allocator_partition_allocator_spinning_mutex_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_spinning_mutex_cc similarity index 81% rename from www/chromium/patches/patch-base_allocator_partition_allocator_spinning_mutex_cc rename to www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_spinning_mutex_cc index 7f3018757..931a77009 100644 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_spinning_mutex_cc +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_spinning_mutex_cc @@ -1,10 +1,10 @@ -Index: base/allocator/partition_allocator/spinning_mutex.cc ---- base/allocator/partition_allocator/spinning_mutex.cc.orig -+++ base/allocator/partition_allocator/spinning_mutex.cc -@@ -18,7 +18,16 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/spinning_mutex.cc +--- base/allocator/partition_allocator/src/partition_alloc/spinning_mutex.cc.orig ++++ base/allocator/partition_allocator/src/partition_alloc/spinning_mutex.cc +@@ -17,7 +17,16 @@ + #endif #if PA_CONFIG(HAS_LINUX_KERNEL) - #include +#if defined(OS_OPENBSD) +#include +#include @@ -17,8 +17,8 @@ Index: base/allocator/partition_allocator/spinning_mutex.cc +#endif #include #include - #endif // PA_CONFIG(HAS_LINUX_KERNEL) -@@ -108,8 +117,16 @@ void SpinningMutex::FutexWait() { + +@@ -109,8 +118,16 @@ void SpinningMutex::FutexWait() { // |kLockedContended| anymore. Note that even without spurious wakeups, the // value of |state_| is not guaranteed when this returns, as another thread // may get the lock before we get to run. @@ -35,7 +35,7 @@ Index: base/allocator/partition_allocator/spinning_mutex.cc if (err) { // These are programming error, check them. -@@ -121,8 +138,16 @@ void SpinningMutex::FutexWait() { +@@ -122,8 +139,16 @@ void SpinningMutex::FutexWait() { void SpinningMutex::FutexWake() { int saved_errno = errno; diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_starscan_stack_stack_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_starscan_stack_stack_cc similarity index 80% rename from www/chromium/patches/patch-base_allocator_partition_allocator_starscan_stack_stack_cc rename to www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_starscan_stack_stack_cc index 973811ebf..9d439526a 100644 --- a/www/chromium/patches/patch-base_allocator_partition_allocator_starscan_stack_stack_cc +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_starscan_stack_stack_cc @@ -1,6 +1,6 @@ -Index: base/allocator/partition_allocator/starscan/stack/stack.cc ---- base/allocator/partition_allocator/starscan/stack/stack.cc.orig -+++ base/allocator/partition_allocator/starscan/stack/stack.cc +Index: base/allocator/partition_allocator/src/partition_alloc/starscan/stack/stack.cc +--- base/allocator/partition_allocator/src/partition_alloc/starscan/stack/stack.cc.orig ++++ base/allocator/partition_allocator/src/partition_alloc/starscan/stack/stack.cc @@ -18,6 +18,10 @@ #include #endif diff --git a/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_thread_isolation_pkey_cc b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_thread_isolation_pkey_cc new file mode 100644 index 000000000..cfb186c45 --- /dev/null +++ b/www/chromium/patches/patch-base_allocator_partition_allocator_src_partition_alloc_thread_isolation_pkey_cc @@ -0,0 +1,12 @@ +Index: base/allocator/partition_allocator/src/partition_alloc/thread_isolation/pkey.cc +--- base/allocator/partition_allocator/src/partition_alloc/thread_isolation/pkey.cc.orig ++++ base/allocator/partition_allocator/src/partition_alloc/thread_isolation/pkey.cc +@@ -16,7 +16,7 @@ + #include "partition_alloc/partition_alloc_check.h" + #include "partition_alloc/thread_isolation/thread_isolation.h" + +-#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) ++#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) + #error "This pkey code is currently only supported on Linux and ChromeOS" + #endif + diff --git a/www/chromium/patches/patch-base_base_paths_posix_cc b/www/chromium/patches/patch-base_base_paths_posix_cc index 6432c9671..2ededacb7 100644 --- a/www/chromium/patches/patch-base_base_paths_posix_cc +++ b/www/chromium/patches/patch-base_base_paths_posix_cc @@ -9,7 +9,7 @@ Index: base/base_paths_posix.cc #include "base/environment.h" #include "base/files/file_path.h" #include "base/files/file_util.h" -@@ -25,9 +26,13 @@ +@@ -26,9 +27,13 @@ #include "base/process/process_metrics.h" #include "build/build_config.h" @@ -24,7 +24,17 @@ Index: base/base_paths_posix.cc #elif BUILDFLAG(IS_SOLARIS) || BUILDFLAG(IS_AIX) #include #endif -@@ -68,13 +73,65 @@ bool PathProviderPosix(int key, FilePath* result) { +@@ -48,8 +53,7 @@ bool PathProviderPosix(int key, FilePath* result) { + *result = bin_dir; + return true; + #elif BUILDFLAG(IS_FREEBSD) +- int name[] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 }; +- std::optional bin_dir = StringSysctl(name, std::size(name)); ++ std::optional bin_dir = StringSysctl({ CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 }); + if (!bin_dir.has_value() || bin_dir.value().length() <= 1) { + NOTREACHED() << "Unable to resolve path."; + return false; +@@ -65,13 +69,65 @@ bool PathProviderPosix(int key, FilePath* result) { *result = FilePath(bin_dir); return true; #elif BUILDFLAG(IS_OPENBSD) || BUILDFLAG(IS_AIX) @@ -64,7 +74,7 @@ Index: base/base_paths_posix.cc + goto out; + } + -+ if ((kd = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf)) == NULL) ++ if ((kd = kvm_openfiles(NULL, NULL, NULL, (int)KVM_NO_FILES, errbuf)) == NULL) + goto out; + + if ((files = kvm_getfiles(kd, KERN_FILE_BYPID, cpid, diff --git a/www/chromium/patches/patch-base_base_switches_cc b/www/chromium/patches/patch-base_base_switches_cc deleted file mode 100644 index e81b65fcd..000000000 --- a/www/chromium/patches/patch-base_base_switches_cc +++ /dev/null @@ -1,12 +0,0 @@ -Index: base/base_switches.cc ---- base/base_switches.cc.orig -+++ base/base_switches.cc -@@ -180,7 +180,7 @@ const char kPackageVersionName[] = "package-version-na - const char kPackageVersionCode[] = "package-version-code"; - #endif - --#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) - // TODO(crbug.com/1176772): Remove kEnableCrashpad and IsCrashpadEnabled() when - // Crashpad is fully enabled on Linux. Indicates that Crashpad should be - // enabled. diff --git a/www/chromium/patches/patch-base_base_switches_h b/www/chromium/patches/patch-base_base_switches_h deleted file mode 100644 index d912023b9..000000000 --- a/www/chromium/patches/patch-base_base_switches_h +++ /dev/null @@ -1,12 +0,0 @@ -Index: base/base_switches.h ---- base/base_switches.h.orig -+++ base/base_switches.h -@@ -62,7 +62,7 @@ extern const char kPackageVersionName[]; - extern const char kPackageVersionCode[]; - #endif - --#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) - // TODO(crbug.com/1176772): Remove kEnableCrashpad and IsCrashpadEnabled() when - // Crashpad is fully enabled on Linux. - extern const char kEnableCrashpad[]; diff --git a/www/chromium/patches/patch-base_compiler_specific_h b/www/chromium/patches/patch-base_compiler_specific_h index 1503ccc72..d4ad1f386 100644 --- a/www/chromium/patches/patch-base_compiler_specific_h +++ b/www/chromium/patches/patch-base_compiler_specific_h @@ -1,36 +1,12 @@ Index: base/compiler_specific.h --- base/compiler_specific.h.orig +++ base/compiler_specific.h -@@ -41,9 +41,9 @@ - // Annotate a function indicating it should not be inlined. - // Use like: - // NOINLINE void DoStuff() { ... } --#if defined(__clang__) && HAS_ATTRIBUTE(noinline) -+#if defined(__clang__) && (__clang_major__ >= 15) && HAS_ATTRIBUTE(noinline) - #define NOINLINE [[clang::noinline]] --#elif defined(COMPILER_GCC) && HAS_ATTRIBUTE(noinline) -+#elif (defined(COMPILER_GCC) || defined(__clang__)) && HAS_ATTRIBUTE(noinline) - #define NOINLINE __attribute__((noinline)) - #elif defined(COMPILER_MSVC) - #define NOINLINE __declspec(noinline) -@@ -51,9 +51,9 @@ - #define NOINLINE - #endif - --#if defined(__clang__) && defined(NDEBUG) && HAS_ATTRIBUTE(always_inline) -+#if defined(__clang__) && (__clang_major__ >= 15) && defined(NDEBUG) && HAS_ATTRIBUTE(always_inline) - #define ALWAYS_INLINE [[clang::always_inline]] inline --#elif defined(COMPILER_GCC) && defined(NDEBUG) && HAS_ATTRIBUTE(always_inline) -+#elif (defined(COMPILER_GCC) || defined(__clang__)) && defined(NDEBUG) && HAS_ATTRIBUTE(always_inline) - #define ALWAYS_INLINE inline __attribute__((__always_inline__)) - #elif defined(COMPILER_MSVC) && defined(NDEBUG) - #define ALWAYS_INLINE __forceinline -@@ -69,7 +69,7 @@ - // prevent code folding, see NO_CODE_FOLDING() in base/debug/alias.h. - // Use like: - // NOT_TAIL_CALLED void FooBar(); --#if defined(__clang__) && HAS_ATTRIBUTE(not_tail_called) -+#if defined(__clang__) && (__clang_major__ >= 15) && HAS_ATTRIBUTE(not_tail_called) - #define NOT_TAIL_CALLED [[clang::not_tail_called]] +@@ -316,7 +316,7 @@ + // + // In some cases it's desirable to remove this, e.g. on hot functions, or if + // we have purposely changed the reference canary. +-#if defined(COMPILER_GCC) || defined(__clang__) ++#if (defined(COMPILER_GCC) || defined(__clang__)) && !defined(__OpenBSD__) && !defined(__FreeBSD__) + #if HAS_ATTRIBUTE(__no_stack_protector__) + #define NO_STACK_PROTECTOR __attribute__((__no_stack_protector__)) #else - #define NOT_TAIL_CALLED diff --git a/www/chromium/patches/patch-base_debug_debugger_posix_cc b/www/chromium/patches/patch-base_debug_debugger_posix_cc index 933795005..30701288c 100644 --- a/www/chromium/patches/patch-base_debug_debugger_posix_cc +++ b/www/chromium/patches/patch-base_debug_debugger_posix_cc @@ -1,7 +1,7 @@ Index: base/debug/debugger_posix.cc --- base/debug/debugger_posix.cc.orig +++ base/debug/debugger_posix.cc -@@ -35,6 +35,10 @@ +@@ -36,6 +36,10 @@ #include #endif @@ -28,7 +28,8 @@ Index: base/debug/debugger_posix.cc if (sysctl(mib, std::size(mib), NULL, &info_size, NULL, 0) < 0) return -1; - mib[5] = (info_size / sizeof(struct kinfo_proc)); +- mib[5] = (info_size / sizeof(struct kinfo_proc)); ++ mib[5] = static_cast((info_size / sizeof(struct kinfo_proc))); + if ((info = reinterpret_cast(malloc(info_size))) == NULL) { + is_set = true; + being_debugged = false; diff --git a/www/chromium/patches/patch-base_debug_elf_reader_cc b/www/chromium/patches/patch-base_debug_elf_reader_cc index 647620cd4..be7a7e654 100644 --- a/www/chromium/patches/patch-base_debug_elf_reader_cc +++ b/www/chromium/patches/patch-base_debug_elf_reader_cc @@ -1,19 +1,14 @@ Index: base/debug/elf_reader.cc --- base/debug/elf_reader.cc.orig +++ base/debug/elf_reader.cc -@@ -78,6 +78,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base, - bool found = false; - while (current_section < section_end) { - current_note = reinterpret_cast(current_section); -+#if !BUILDFLAG(IS_BSD) - if (current_note->n_type == NT_GNU_BUILD_ID) { - StringPiece note_name(current_section + sizeof(Nhdr), - current_note->n_namesz); -@@ -87,6 +88,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base, - break; - } - } -+#endif +@@ -45,6 +45,10 @@ using Xword = Elf64_Xword; - size_t section_size = bits::AlignUp(current_note->n_namesz, 4u) + - bits::AlignUp(current_note->n_descsz, 4u) + + constexpr char kGnuNoteName[] = "GNU"; + ++#ifndef NT_GNU_BUILD_ID ++#define NT_GNU_BUILD_ID 3 ++#endif ++ + // Returns a pointer to the header of the ELF binary mapped into memory, or a + // null pointer if the header is invalid. Here and below |elf_mapped_base| is a + // pointer to the start of the ELF image. diff --git a/www/chromium/patches/patch-base_debug_stack_trace_cc b/www/chromium/patches/patch-base_debug_stack_trace_cc index a1b53f42b..46ef6e1f3 100644 --- a/www/chromium/patches/patch-base_debug_stack_trace_cc +++ b/www/chromium/patches/patch-base_debug_stack_trace_cc @@ -1,22 +1,30 @@ Index: base/debug/stack_trace.cc --- base/debug/stack_trace.cc.orig +++ base/debug/stack_trace.cc -@@ -273,7 +273,9 @@ void StackTrace::Print() const { - } - - void StackTrace::OutputToStream(std::ostream* os) const { -+#if !BUILDFLAG(IS_BSD) - OutputToStreamWithPrefix(os, nullptr); -+#endif - } - - std::string StackTrace::ToString() const { -@@ -281,7 +283,7 @@ std::string StackTrace::ToString() const { +@@ -247,7 +247,7 @@ bool StackTrace::WillSymbolizeToStreamForTesting() { + // Symbols are not expected to be reliable when gn args specifies + // symbol_level=0. + return false; +-#elif defined(__UCLIBC__) || defined(_AIX) ++#elif defined(__UCLIBC__) || defined(_AIX) || BUILDFLAG(IS_BSD) + // 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 { std::stringstream stream; -#if !defined(__UCLIBC__) && !defined(_AIX) +#if !defined(__UCLIBC__) && !defined(_AIX) && !BUILDFLAG(IS_BSD) - OutputToStreamWithPrefix(&stream, prefix_string); - #endif - return stream.str(); + if (ShouldSuppressOutput()) { + return "Backtrace suppressed."; + } +@@ -301,7 +301,7 @@ std::string StackTrace::ToStringWithPrefix(const char* + } + + std::ostream& operator<<(std::ostream& os, const StackTrace& s) { +-#if !defined(__UCLIBC__) && !defined(_AIX) ++#if !defined(__UCLIBC__) && !defined(_AIX) && !BUILDFLAG(IS_BSD) + s.OutputToStream(&os); + #else + os << "StackTrace::OutputToStream not implemented."; diff --git a/www/chromium/patches/patch-base_debug_stack_trace_posix_cc b/www/chromium/patches/patch-base_debug_stack_trace_posix_cc index 32befb562..a899c7a66 100644 --- a/www/chromium/patches/patch-base_debug_stack_trace_posix_cc +++ b/www/chromium/patches/patch-base_debug_stack_trace_posix_cc @@ -10,16 +10,19 @@ Index: base/debug/stack_trace_posix.cc #define HAVE_BACKTRACE #include #endif -@@ -59,7 +59,7 @@ +@@ -59,8 +59,10 @@ #include #endif -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) ++#if !BUILDFLAG(IS_BSD) + #include ++#endif + #include "base/debug/proc_maps_linux.h" #endif - -@@ -300,7 +300,7 @@ void PrintToStderr(const char* output) { +@@ -301,7 +303,7 @@ void PrintToStderr(const char* output) { std::ignore = HANDLE_EINTR(write(STDERR_FILENO, output, strlen(output))); } @@ -28,7 +31,7 @@ Index: base/debug/stack_trace_posix.cc void AlarmSignalHandler(int signal, siginfo_t* info, void* void_context) { // We have seen rare cases on AMD linux where the default signal handler // either does not run or a thread (Probably an AMD driver thread) prevents -@@ -317,7 +317,11 @@ void AlarmSignalHandler(int signal, siginfo_t* info, v +@@ -318,7 +320,11 @@ void AlarmSignalHandler(int signal, siginfo_t* info, v "Warning: Default signal handler failed to terminate process.\n"); PrintToStderr("Calling exit_group() directly to prevent timeout.\n"); // See: https://man7.org/linux/man-pages/man2/exit_group.2.html @@ -40,7 +43,7 @@ Index: base/debug/stack_trace_posix.cc } #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || // BUILDFLAG(IS_CHROMEOS) -@@ -534,7 +538,7 @@ void StackDumpSignalHandler(int signal, siginfo_t* inf +@@ -535,7 +541,7 @@ void StackDumpSignalHandler(int signal, siginfo_t* inf _exit(EXIT_FAILURE); } @@ -49,7 +52,7 @@ Index: base/debug/stack_trace_posix.cc // Set an alarm to trigger in case the default handler does not terminate // the process. See 'AlarmSignalHandler' for more details. struct sigaction action; -@@ -559,6 +563,7 @@ void StackDumpSignalHandler(int signal, siginfo_t* inf +@@ -560,6 +566,7 @@ void StackDumpSignalHandler(int signal, siginfo_t* inf // signals that do not re-raise autonomously), such as signals delivered via // kill() and asynchronous hardware faults such as SEGV_MTEAERR, which would // otherwise be lost when re-raising the signal via raise(). @@ -57,7 +60,7 @@ Index: base/debug/stack_trace_posix.cc long retval = syscall(SYS_rt_tgsigqueueinfo, getpid(), syscall(SYS_gettid), info->si_signo, info); if (retval == 0) { -@@ -573,6 +578,7 @@ void StackDumpSignalHandler(int signal, siginfo_t* inf +@@ -574,6 +581,7 @@ void StackDumpSignalHandler(int signal, siginfo_t* inf if (errno != EPERM) { _exit(EXIT_FAILURE); } @@ -65,7 +68,21 @@ Index: base/debug/stack_trace_posix.cc #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || // BUILDFLAG(IS_CHROMEOS) -@@ -821,6 +827,9 @@ class SandboxSymbolizeHelper { +@@ -763,6 +771,7 @@ class SandboxSymbolizeHelper { + return -1; + } + ++#if !BUILDFLAG(IS_BSD) + // This class is copied from + // third_party/crashpad/crashpad/util/linux/scoped_pr_set_dumpable.h. + // It aims at ensuring the process is dumpable before opening /proc/self/mem. +@@ -855,11 +864,15 @@ class SandboxSymbolizeHelper { + r.base = cur_base; + } + } ++#endif + + // Parses /proc/self/maps in order to compile a list of all object file names // for the modules that are loaded in the current process. // Returns true on success. bool CacheMemoryRegions() { @@ -75,7 +92,7 @@ Index: base/debug/stack_trace_posix.cc // Reads /proc/self/maps. std::string contents; if (!ReadProcMaps(&contents)) { -@@ -838,6 +847,7 @@ class SandboxSymbolizeHelper { +@@ -877,6 +890,7 @@ class SandboxSymbolizeHelper { is_initialized_ = true; return true; diff --git a/www/chromium/patches/patch-base_files_file_path_watcher_h b/www/chromium/patches/patch-base_files_file_path_watcher_h index d47c147a0..8475aa550 100644 --- a/www/chromium/patches/patch-base_files_file_path_watcher_h +++ b/www/chromium/patches/patch-base_files_file_path_watcher_h @@ -1,7 +1,7 @@ Index: base/files/file_path_watcher.h --- base/files/file_path_watcher.h.orig +++ base/files/file_path_watcher.h -@@ -59,7 +59,7 @@ class BASE_EXPORT FilePathWatcher { +@@ -105,7 +105,7 @@ class BASE_EXPORT FilePathWatcher { Type type = Type::kNonRecursive; #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ diff --git a/www/chromium/patches/patch-base_files_file_path_watcher_unittest_cc b/www/chromium/patches/patch-base_files_file_path_watcher_unittest_cc index 10d78b417..a0390587c 100644 --- a/www/chromium/patches/patch-base_files_file_path_watcher_unittest_cc +++ b/www/chromium/patches/patch-base_files_file_path_watcher_unittest_cc @@ -1,7 +1,7 @@ Index: base/files/file_path_watcher_unittest.cc --- base/files/file_path_watcher_unittest.cc.orig +++ base/files/file_path_watcher_unittest.cc -@@ -586,7 +586,7 @@ TEST_F(FilePathWatcherTest, WatchDirectory) { +@@ -847,7 +847,7 @@ TEST_F(FilePathWatcherTest, WatchDirectory) { } delegate.RunUntilEventsMatch(event_expecter); @@ -10,7 +10,7 @@ Index: base/files/file_path_watcher_unittest.cc ASSERT_TRUE(WriteFile(file1, "content v2")); // Mac implementation does not detect files modified in a directory. // TODO(https://crbug.com/1432064): Expect that no events are fired on Mac. -@@ -1525,7 +1525,7 @@ namespace { +@@ -1783,7 +1783,7 @@ namespace { enum Permission { Read, Write, Execute }; @@ -19,7 +19,7 @@ Index: base/files/file_path_watcher_unittest.cc bool ChangeFilePermissions(const FilePath& path, Permission perm, bool allow) { struct stat stat_buf; -@@ -1559,7 +1559,7 @@ bool ChangeFilePermissions(const FilePath& path, Permi +@@ -1817,7 +1817,7 @@ bool ChangeFilePermissions(const FilePath& path, Permi } // namespace diff --git a/www/chromium/patches/patch-base_files_file_util_posix_cc b/www/chromium/patches/patch-base_files_file_util_posix_cc index 6aabcf4f9..f4c66cb8b 100644 --- a/www/chromium/patches/patch-base_files_file_util_posix_cc +++ b/www/chromium/patches/patch-base_files_file_util_posix_cc @@ -1,7 +1,7 @@ Index: base/files/file_util_posix.cc --- base/files/file_util_posix.cc.orig +++ base/files/file_util_posix.cc -@@ -756,32 +756,34 @@ bool CreateDirectoryAndGetError(const FilePath& full_p +@@ -816,33 +816,34 @@ bool CreateDirectoryAndGetError(const FilePath& full_p File::Error* error) { ScopedBlockingCall scoped_blocking_call( FROM_HERE, BlockingType::MAY_BLOCK); // For call to mkdir(). @@ -35,11 +35,12 @@ Index: base/files/file_util_posix.cc - if (!DirectoryExists(subpath)) { - if (error) - *error = File::OSErrorToFileError(saved_errno); +- errno = saved_errno; - return false; + if (!PathExists(subpath)) { + if ((mkdir(subpath.value().c_str(), 0700) == -1) && + ((full_path != subpath) ? (errno != ENOENT) : (-1))) { -+ int saved_errno = errno; ++ int saved_errno = errno; + if (error) + *error = File::OSErrorToFileError(saved_errno); + return false; diff --git a/www/chromium/patches/patch-base_files_file_util_unittest_cc b/www/chromium/patches/patch-base_files_file_util_unittest_cc index f2f7557fb..d7192cf49 100644 --- a/www/chromium/patches/patch-base_files_file_util_unittest_cc +++ b/www/chromium/patches/patch-base_files_file_util_unittest_cc @@ -1,7 +1,7 @@ Index: base/files/file_util_unittest.cc --- base/files/file_util_unittest.cc.orig +++ base/files/file_util_unittest.cc -@@ -3871,7 +3871,7 @@ TEST_F(FileUtilTest, ReadFileToStringWithNamedPipe) { +@@ -3870,7 +3870,7 @@ TEST_F(FileUtilTest, ReadFileToStringWithNamedPipe) { } #endif // BUILDFLAG(IS_WIN) @@ -10,7 +10,7 @@ Index: base/files/file_util_unittest.cc TEST_F(FileUtilTest, ReadFileToStringWithProcFileSystem) { FilePath file_path("/proc/cpuinfo"); std::string data = "temp"; -@@ -4594,7 +4594,7 @@ TEST(FileUtilMultiThreadedTest, MultiThreadedTempFiles +@@ -4651,7 +4651,7 @@ TEST(FileUtilMultiThreadedTest, MultiThreadedTempFiles NULL); #else size_t bytes_written = diff --git a/www/chromium/patches/patch-base_functional_unretained_traits_h b/www/chromium/patches/patch-base_functional_unretained_traits_h index 5f4f41eb4..0ec94b4cc 100644 --- a/www/chromium/patches/patch-base_functional_unretained_traits_h +++ b/www/chromium/patches/patch-base_functional_unretained_traits_h @@ -1,12 +1,12 @@ Index: base/functional/unretained_traits.h --- base/functional/unretained_traits.h.orig +++ base/functional/unretained_traits.h -@@ -130,7 +130,7 @@ struct TypeSupportsUnretained { +@@ -93,7 +93,7 @@ struct SupportsUnretainedImpl { // official builds, and then in non-test code as well. - #if !defined(UNIT_TEST) && !defined(OFFICIAL_BUILD) - #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \ -- defined(FORCE_UNRETAINED_COMPLETENESS_CHECKS_FOR_TESTS) -+ || BUILDFLAGS(IS_BSD) || defined(FORCE_UNRETAINED_COMPLETENESS_CHECKS_FOR_TESTS) - static_assert(IsCompleteTypeV || - IsIncompleteTypeSafeForUnretained>, - "T must be fully defined."); + #if defined(FORCE_UNRETAINED_COMPLETENESS_CHECKS_FOR_TESTS) || \ + (!defined(UNIT_TEST) && !defined(OFFICIAL_BUILD) && \ +- (BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN))) ++ (BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD))) + static_assert(v, + "Argument requires unretained storage, but type is not " + "fully defined. This prevents determining whether " diff --git a/www/chromium/patches/patch-base_i18n_icu_util_cc b/www/chromium/patches/patch-base_i18n_icu_util_cc index 34d84ba5d..52c361dec 100644 --- a/www/chromium/patches/patch-base_i18n_icu_util_cc +++ b/www/chromium/patches/patch-base_i18n_icu_util_cc @@ -1,7 +1,7 @@ Index: base/i18n/icu_util.cc --- base/i18n/icu_util.cc.orig +++ base/i18n/icu_util.cc -@@ -51,7 +51,7 @@ +@@ -52,7 +52,7 @@ #include "third_party/icu/source/common/unicode/unistr.h" #endif @@ -10,7 +10,7 @@ Index: base/i18n/icu_util.cc BUILDFLAG(IS_CHROMEOS) || (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CASTOS)) #include "third_party/icu/source/i18n/unicode/timezone.h" #endif -@@ -345,7 +345,7 @@ void InitializeIcuTimeZone() { +@@ -328,7 +328,7 @@ void InitializeIcuTimeZone() { FuchsiaIntlProfileWatcher::GetPrimaryTimeZoneIdForIcuInitialization(); icu::TimeZone::adoptDefault( icu::TimeZone::createTimeZone(icu::UnicodeString::fromUTF8(zone_id))); diff --git a/www/chromium/patches/patch-base_linux_util_cc b/www/chromium/patches/patch-base_linux_util_cc index cf21f61b2..2370ee463 100644 --- a/www/chromium/patches/patch-base_linux_util_cc +++ b/www/chromium/patches/patch-base_linux_util_cc @@ -9,7 +9,7 @@ Index: base/linux_util.cc #include "base/base_export.h" #include "base/files/dir_reader_posix.h" -@@ -135,6 +136,9 @@ void SetLinuxDistro(const std::string& distro) { +@@ -153,10 +154,14 @@ void SetLinuxDistro(const std::string& distro) { } bool GetThreadsForProcess(pid_t pid, std::vector* tids) { @@ -19,11 +19,8 @@ Index: base/linux_util.cc // 25 > strlen("/proc//task") + strlen(std::to_string(INT_MAX)) + 1 = 22 char buf[25]; strings::SafeSPrintf(buf, "/proc/%d/task", pid); -@@ -152,6 +156,7 @@ bool GetThreadsForProcess(pid_t pid, std::vector* tids) { diff --git a/www/chromium/patches/patch-base_logging_unittest_cc b/www/chromium/patches/patch-base_logging_unittest_cc index a721713d9..64de509c9 100644 --- a/www/chromium/patches/patch-base_logging_unittest_cc +++ b/www/chromium/patches/patch-base_logging_unittest_cc @@ -10,7 +10,7 @@ Index: base/logging_unittest.cc #include #endif -@@ -575,14 +575,18 @@ void CheckCrashTestSighandler(int, siginfo_t* info, vo +@@ -570,14 +570,18 @@ void CheckCrashTestSighandler(int, siginfo_t* info, vo // need the arch-specific boilerplate below, which is inspired by breakpad. // At the same time, on OSX, ucontext.h is deprecated but si_addr works fine. uintptr_t crash_addr = 0; diff --git a/www/chromium/patches/patch-base_memory_platform_shared_memory_region_h b/www/chromium/patches/patch-base_memory_platform_shared_memory_region_h index ef789c99b..bf7681680 100644 --- a/www/chromium/patches/patch-base_memory_platform_shared_memory_region_h +++ b/www/chromium/patches/patch-base_memory_platform_shared_memory_region_h @@ -1,16 +1,16 @@ Index: base/memory/platform_shared_memory_region.h --- base/memory/platform_shared_memory_region.h.orig +++ base/memory/platform_shared_memory_region.h -@@ -16,7 +16,7 @@ - - #include +@@ -17,7 +17,7 @@ + #include "base/unguessable_token.h" + #include "build/build_config.h" -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) namespace content { class SandboxIPCHandler; } -@@ -83,7 +83,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { +@@ -84,7 +84,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { kMaxValue = GET_SHMEM_TEMP_DIR_FAILURE }; @@ -19,7 +19,7 @@ Index: base/memory/platform_shared_memory_region.h // Structure to limit access to executable region creation. struct ExecutableRegion { private: -@@ -215,7 +215,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { +@@ -216,7 +216,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { CheckPlatformHandlePermissionsCorrespondToMode); static PlatformSharedMemoryRegion Create(Mode mode, size_t size diff --git a/www/chromium/patches/patch-base_native_library_unittest_cc b/www/chromium/patches/patch-base_native_library_unittest_cc index f68f2356d..ecbd154d1 100644 --- a/www/chromium/patches/patch-base_native_library_unittest_cc +++ b/www/chromium/patches/patch-base_native_library_unittest_cc @@ -1,7 +1,7 @@ Index: base/native_library_unittest.cc --- base/native_library_unittest.cc.orig +++ base/native_library_unittest.cc -@@ -134,7 +134,7 @@ TEST(NativeLibraryTest, LoadLibrary) { +@@ -133,7 +133,7 @@ TEST(NativeLibraryTest, LoadLibrary) { // versions with respect to symbol resolution scope. // TSan and MSan error out on RTLD_DEEPBIND, https://crbug.com/705255 #if !BUILDFLAG(IS_ANDROID) && !defined(THREAD_SANITIZER) && \ diff --git a/www/chromium/patches/patch-base_posix_sysctl_cc b/www/chromium/patches/patch-base_posix_sysctl_cc new file mode 100644 index 000000000..22b0ca134 --- /dev/null +++ b/www/chromium/patches/patch-base_posix_sysctl_cc @@ -0,0 +1,11 @@ +Index: base/posix/sysctl.cc +--- base/posix/sysctl.cc.orig ++++ base/posix/sysctl.cc +@@ -4,6 +4,7 @@ + + #include "base/posix/sysctl.h" + ++#include + #include + + #include diff --git a/www/chromium/patches/patch-base_posix_unix_domain_socket_cc b/www/chromium/patches/patch-base_posix_unix_domain_socket_cc index 7f4278b25..565561fd0 100644 --- a/www/chromium/patches/patch-base_posix_unix_domain_socket_cc +++ b/www/chromium/patches/patch-base_posix_unix_domain_socket_cc @@ -10,6 +10,24 @@ Index: base/posix/unix_domain_socket.cc const int enable = 1; return setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &enable, sizeof(enable)) == 0; #else +@@ -77,7 +77,7 @@ bool UnixDomainSocket::SendMsg(int fd, + + struct cmsghdr* cmsg; + msg.msg_control = control_buffer; +-#if BUILDFLAG(IS_APPLE) ++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) + msg.msg_controllen = checked_cast(control_len); + #else + msg.msg_controllen = control_len; +@@ -85,7 +85,7 @@ bool UnixDomainSocket::SendMsg(int fd, + cmsg = CMSG_FIRSTHDR(&msg); + cmsg->cmsg_level = SOL_SOCKET; + cmsg->cmsg_type = SCM_RIGHTS; +-#if BUILDFLAG(IS_APPLE) ++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) + cmsg->cmsg_len = checked_cast(CMSG_LEN(sizeof(int) * fds.size())); + #else + cmsg->cmsg_len = CMSG_LEN(sizeof(int) * fds.size()); @@ -149,7 +149,7 @@ ssize_t UnixDomainSocket::RecvMsgWithFlags(int fd, const size_t kControlBufferSize = diff --git a/www/chromium/patches/patch-base_process_internal_linux_h b/www/chromium/patches/patch-base_process_internal_linux_h new file mode 100644 index 000000000..db9530436 --- /dev/null +++ b/www/chromium/patches/patch-base_process_internal_linux_h @@ -0,0 +1,21 @@ +Index: base/process/internal_linux.h +--- base/process/internal_linux.h.orig ++++ base/process/internal_linux.h +@@ -138,6 +138,9 @@ TimeDelta ClockTicksToTimeDelta(int64_t clock_ticks); + // arguments to the lambda. + template + void ForEachProcessTask(base::ProcessHandle process, Lambda&& lambda) { ++#if BUILDFLAG(IS_BSD) ++ return; ++#else + // Iterate through the different threads tracked in /proc//task. + FilePath fd_path = GetProcPidDir(process).Append("task"); + +@@ -157,6 +160,7 @@ void ForEachProcessTask(base::ProcessHandle process, L + FilePath task_path = fd_path.Append(tid_str); + lambda(tid, task_path); + } ++#endif + } + + } // namespace internal diff --git a/www/chromium/patches/patch-base_process_kill_h b/www/chromium/patches/patch-base_process_kill_h index 126b77414..187a43342 100644 --- a/www/chromium/patches/patch-base_process_kill_h +++ b/www/chromium/patches/patch-base_process_kill_h @@ -1,7 +1,7 @@ Index: base/process/kill.h --- base/process/kill.h.orig +++ base/process/kill.h -@@ -113,7 +113,7 @@ BASE_EXPORT TerminationStatus GetTerminationStatus(Pro +@@ -121,7 +121,7 @@ BASE_EXPORT TerminationStatus GetTerminationStatus(Pro BASE_EXPORT TerminationStatus GetKnownDeadTerminationStatus( ProcessHandle handle, int* exit_code); diff --git a/www/chromium/patches/patch-base_process_launch_posix_cc b/www/chromium/patches/patch-base_process_launch_posix_cc index a0f05ab96..b8b42dd26 100644 --- a/www/chromium/patches/patch-base_process_launch_posix_cc +++ b/www/chromium/patches/patch-base_process_launch_posix_cc @@ -1,7 +1,7 @@ Index: base/process/launch_posix.cc --- base/process/launch_posix.cc.orig +++ base/process/launch_posix.cc -@@ -64,6 +64,9 @@ +@@ -61,6 +61,9 @@ #error "macOS should use launch_mac.cc" #endif diff --git a/www/chromium/patches/patch-base_process_memory_linux_cc b/www/chromium/patches/patch-base_process_memory_linux_cc index b3d9effeb..82f5ee7a1 100644 --- a/www/chromium/patches/patch-base_process_memory_linux_cc +++ b/www/chromium/patches/patch-base_process_memory_linux_cc @@ -1,7 +1,7 @@ Index: base/process/memory_linux.cc --- base/process/memory_linux.cc.orig +++ base/process/memory_linux.cc -@@ -20,6 +20,7 @@ +@@ -28,6 +28,7 @@ void __libc_free(void*); namespace base { @@ -9,7 +9,7 @@ Index: base/process/memory_linux.cc namespace { void ReleaseReservationOrTerminate() { -@@ -29,12 +30,14 @@ void ReleaseReservationOrTerminate() { +@@ -37,12 +38,14 @@ void ReleaseReservationOrTerminate() { } } // namespace @@ -24,7 +24,7 @@ Index: base/process/memory_linux.cc // Set the new-out of memory handler. std::set_new_handler(&ReleaseReservationOrTerminate); // If we're using glibc's allocator, the above functions will override -@@ -43,8 +46,10 @@ void EnableTerminationOnOutOfMemory() { +@@ -51,8 +54,10 @@ void EnableTerminationOnOutOfMemory() { #if BUILDFLAG(USE_ALLOCATOR_SHIM) allocator_shim::SetCallNewHandlerOnMallocFailure(true); #endif @@ -35,7 +35,7 @@ Index: base/process/memory_linux.cc // ScopedAllowBlocking() has private constructor and it can only be used in // friend classes/functions. Declaring a class is easier in this situation to // avoid adding more dependency to thread_restrictions.h because of the -@@ -104,6 +109,7 @@ bool AdjustOOMScoreHelper::AdjustOOMScore(ProcessId pr +@@ -112,6 +117,7 @@ bool AdjustOOMScoreHelper::AdjustOOMScore(ProcessId pr bool AdjustOOMScore(ProcessId process, int score) { return AdjustOOMScoreHelper::AdjustOOMScore(process, score); } diff --git a/www/chromium/patches/patch-base_process_process_handle_freebsd_cc b/www/chromium/patches/patch-base_process_process_handle_freebsd_cc index 9c2fd31e5..1c2d3832e 100644 --- a/www/chromium/patches/patch-base_process_process_handle_freebsd_cc +++ b/www/chromium/patches/patch-base_process_process_handle_freebsd_cc @@ -9,7 +9,7 @@ Index: base/process/process_handle_freebsd.cc #include #include -@@ -15,10 +16,13 @@ namespace base { +@@ -20,10 +21,13 @@ namespace base { ProcessId GetParentProcessId(ProcessHandle process) { struct kinfo_proc info; diff --git a/www/chromium/patches/patch-base_process_process_handle_h b/www/chromium/patches/patch-base_process_process_handle_h index eb86f990b..01d1c92c0 100644 --- a/www/chromium/patches/patch-base_process_process_handle_h +++ b/www/chromium/patches/patch-base_process_process_handle_h @@ -1,7 +1,7 @@ Index: base/process/process_handle.h --- base/process/process_handle.h.orig +++ base/process/process_handle.h -@@ -106,7 +106,7 @@ BASE_EXPORT ProcessId GetCurrentProcId(); +@@ -86,7 +86,7 @@ BASE_EXPORT ProcessId GetCurrentProcId(); // processes may be reused. BASE_EXPORT UniqueProcId GetUniqueIdForProcess(); diff --git a/www/chromium/patches/patch-base_process_process_handle_openbsd_cc b/www/chromium/patches/patch-base_process_process_handle_openbsd_cc index d9092b41d..04589b157 100644 --- a/www/chromium/patches/patch-base_process_process_handle_openbsd_cc +++ b/www/chromium/patches/patch-base_process_process_handle_openbsd_cc @@ -1,19 +1,23 @@ Index: base/process/process_handle_openbsd.cc --- base/process/process_handle_openbsd.cc.orig +++ base/process/process_handle_openbsd.cc -@@ -3,8 +3,11 @@ +@@ -3,48 +3,112 @@ // found in the LICENSE file. #include "base/process/process_handle.h" +#include "base/files/file_util.h" #include ++#include +#include +#include ++#include #include #include #include -@@ -12,39 +15,59 @@ + ++#include ++ namespace base { ProcessId GetParentProcessId(ProcessHandle process) { @@ -27,18 +31,19 @@ Index: base/process/process_handle_openbsd.cc if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) < 0) return -1; +- mib[5] = (length / sizeof(struct kinfo_proc)); + info = (struct kinfo_proc *)malloc(length); -+ - mib[5] = (length / sizeof(struct kinfo_proc)); - if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) - return -1; ++ mib[5] = static_cast((length / sizeof(struct kinfo_proc))); + +- return info.p_ppid; + if (sysctl(mib, std::size(mib), info, &length, NULL, 0) < 0) { + ppid = -1; + goto out; + } - -- return info.p_ppid; ++ + ppid = info->p_ppid; + +out: @@ -48,16 +53,20 @@ Index: base/process/process_handle_openbsd.cc FilePath GetProcessExecutablePath(ProcessHandle process) { - struct kinfo_proc kp; -- size_t len; -+ struct kinfo_proc *info; -+ size_t length; -+ char *path = NULL; - int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process, - sizeof(struct kinfo_proc), 0 }; ++ struct kinfo_file *files; ++ kvm_t *kd = NULL; ++ char errbuf[_POSIX2_LINE_MAX]; ++ char **retvalargs, *cpath, retval[PATH_MAX]; ++ int cnt; + size_t len; +- int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process, +- sizeof(struct kinfo_proc), 0 }; ++ char *tokens[2]; ++ struct stat sb; ++ FilePath result; - if (sysctl(mib, std::size(mib), NULL, &len, NULL, 0) == -1) -+ if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) == -1) - return FilePath(); +- return FilePath(); - mib[5] = (len / sizeof(struct kinfo_proc)); - if (sysctl(mib, std::size(mib), &kp, &len, NULL, 0) < 0) - return FilePath(); @@ -65,26 +74,61 @@ Index: base/process/process_handle_openbsd.cc - return FilePath(); - if (strcmp(kp.p_comm, "chrome") == 0) - return FilePath(kp.p_comm); ++ int mib[] = { CTL_KERN, KERN_PROC_ARGS, process, KERN_PROC_ARGV }; - return FilePath(); -+ info = (struct kinfo_proc *)malloc(length); ++ if ((cpath = getenv("CHROME_EXE_PATH")) != NULL) ++ result = FilePath(cpath); ++ else ++ result = FilePath("/usr/local/chrome/chrome"); + -+ mib[5] = (length / sizeof(struct kinfo_proc)); ++ if (sysctl(mib, std::size(mib), NULL, &len, NULL, 0) != -1) { ++ retvalargs = static_cast(malloc(len)); ++ if (!retvalargs) ++ return result; + -+ if (sysctl(mib, std::size(mib), info, &length, NULL, 0) < 0) -+ goto out; ++ if (sysctl(mib, std::size(mib), retvalargs, &len, NULL, 0) < 0) { ++ free(retvalargs); ++ return result; ++ } + -+ if ((info->p_flag & P_SYSTEM) != 0) -+ goto out; ++ if ((*tokens = strtok(retvalargs[0], ":")) == NULL) { ++ free(retvalargs); ++ return result; ++ } + -+ if (strcmp(info->p_comm, "chrome") == 0) { -+ path = info->p_comm; -+ goto out; ++ free(retvalargs); ++ ++ if (tokens[0] == NULL) ++ return result; ++ ++ if (realpath(tokens[0], retval) == NULL) ++ return result; ++ ++ if (stat(retval, &sb) < 0) ++ return result; ++ ++ if ((kd = kvm_openfiles(NULL, NULL, NULL, (int)KVM_NO_FILES, ++ errbuf)) == NULL) ++ return result; ++ ++ if ((files = kvm_getfiles(kd, KERN_FILE_BYPID, process, ++ sizeof(struct kinfo_file), &cnt)) == NULL) { ++ kvm_close(kd); ++ return result; ++ } ++ ++ for (int i = 0; i < cnt; i++) { ++ if (files[i].fd_fd == KERN_FILE_TEXT && ++ files[i].va_fsid == static_cast(sb.st_dev) && ++ files[i].va_fileid == sb.st_ino) { ++ kvm_close(kd); ++ result = FilePath(retval); ++ } ++ } + } + -+out: -+ free(info); -+ return FilePath(path); ++ return result; } } // namespace base diff --git a/www/chromium/patches/patch-base_process_process_metrics_cc b/www/chromium/patches/patch-base_process_process_metrics_cc index 9ad95a038..5e2e65424 100644 --- a/www/chromium/patches/patch-base_process_process_metrics_cc +++ b/www/chromium/patches/patch-base_process_process_metrics_cc @@ -36,17 +36,12 @@ Index: base/process/process_metrics.cc double ProcessMetrics::GetPlatformIndependentCPUUsage( TimeDelta cumulative_cpu) { TimeTicks time = TimeTicks::Now(); -@@ -126,7 +125,6 @@ double ProcessMetrics::GetPlatformIndependentCPUUsage( - double ProcessMetrics::GetPlatformIndependentCPUUsage() { - return GetPlatformIndependentCPUUsage(GetCumulativeCPUUsage()); +@@ -130,10 +129,9 @@ std::optional ProcessMetrics::GetPlatformIndep + } + return GetPlatformIndependentCPUUsage(cpu_usage.value()); } -#endif - #if BUILDFLAG(IS_WIN) - double ProcessMetrics::GetPreciseCPUUsage(TimeDelta cumulative_cpu) { -@@ -157,7 +155,7 @@ double ProcessMetrics::GetPreciseCPUUsage() { - #endif // BUILDFLAG(IS_WIN) - #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_AIX) + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) diff --git a/www/chromium/patches/patch-base_process_process_metrics_freebsd_cc b/www/chromium/patches/patch-base_process_process_metrics_freebsd_cc index 6aab8bbf4..ce1a02337 100644 --- a/www/chromium/patches/patch-base_process_process_metrics_freebsd_cc +++ b/www/chromium/patches/patch-base_process_process_metrics_freebsd_cc @@ -1,7 +1,7 @@ Index: base/process/process_metrics_freebsd.cc --- base/process/process_metrics_freebsd.cc.orig +++ base/process/process_metrics_freebsd.cc -@@ -3,20 +3,39 @@ +@@ -3,42 +3,57 @@ // found in the LICENSE file. #include "base/process/process_metrics.h" @@ -18,7 +18,6 @@ Index: base/process/process_metrics_freebsd.cc +#include + #include "base/memory/ptr_util.h" - #include "base/process/process_metrics_iocounters.h" +#include "base/values.h" namespace base { @@ -27,28 +26,28 @@ Index: base/process/process_metrics_freebsd.cc + int pagesize = getpagesize(); + int pageshift = 0; +-ProcessMetrics::ProcessMetrics(ProcessHandle process) +- : process_(process), +- last_cpu_(0) {} + while (pagesize > 1) { + pageshift++; + pagesize >>= 1; + } -+ + + return pageshift; +} +} + - ProcessMetrics::ProcessMetrics(ProcessHandle process) -- : process_(process), -- last_cpu_(0) {} -+ : process_(process) {} - ++ProcessMetrics::ProcessMetrics(ProcessHandle process) : process_(process) {} ++ // static std::unique_ptr ProcessMetrics::CreateProcessMetrics( -@@ -24,22 +43,19 @@ std::unique_ptr ProcessMetrics::Create + ProcessHandle process) { return WrapUnique(new ProcessMetrics(process)); } --double ProcessMetrics::GetPlatformIndependentCPUUsage() { -+TimeDelta ProcessMetrics::GetCumulativeCPUUsage() { +-std::optional ProcessMetrics::GetPlatformIndependentCPUUsage() { ++std::optional ProcessMetrics::GetCumulativeCPUUsage() { struct kinfo_proc info; - int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, process_}; - size_t length = sizeof(info); @@ -58,22 +57,22 @@ Index: base/process/process_metrics_freebsd.cc + int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_ }; + if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) -- return 0; -+ return TimeDelta(); +- return std::nullopt; ++ return std::optional(TimeDelta()); -- return (info.ki_pctcpu / FSCALE) * 100.0; -+ return Microseconds(info.ki_runtime); +- return std::optional(double{info.ki_pctcpu} / FSCALE * 100.0); ++ return std::optional(Microseconds(info.ki_runtime)); } --TimeDelta ProcessMetrics::GetCumulativeCPUUsage() { +-std::optional ProcessMetrics::GetCumulativeCPUUsage() { - NOTREACHED(); -- return TimeDelta(); +- return std::nullopt; -} - - bool ProcessMetrics::GetIOCounters(IoCounters* io_counters) const { - return false; - } -@@ -65,6 +81,230 @@ size_t GetSystemCommitCharge() { + size_t GetSystemCommitCharge() { + int mib[2], pagesize; + unsigned long mem_total, mem_free, mem_inactive; +@@ -60,6 +75,230 @@ size_t GetSystemCommitCharge() { pagesize = getpagesize(); return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize); @@ -172,7 +171,7 @@ Index: base/process/process_metrics_freebsd.cc + kvm_close(kd); + return 0; + } -+ ++ + size_t rss; + + if (nproc > 0) { @@ -198,7 +197,7 @@ Index: base/process/process_metrics_freebsd.cc + kvm_close(kd); + return 0; + } -+ ++ + size_t swrss; + + if (nproc > 0) { @@ -248,7 +247,7 @@ Index: base/process/process_metrics_freebsd.cc + +Value::Dict SystemDiskInfo::ToDict() const { + Value::Dict res; -+ ++ + // Write out uint64_t variables as doubles. + // Note: this may discard some precision, but for JS there's no other option. + res.Set("reads", static_cast(reads)); @@ -264,7 +263,7 @@ Index: base/process/process_metrics_freebsd.cc + res.Set("weighted_io_time", static_cast(weighted_io_time)); + + NOTIMPLEMENTED(); -+ ++ + return res; +} + diff --git a/www/chromium/patches/patch-base_process_process_metrics_h b/www/chromium/patches/patch-base_process_process_metrics_h index bb6675552..4008164f1 100644 --- a/www/chromium/patches/patch-base_process_process_metrics_h +++ b/www/chromium/patches/patch-base_process_process_metrics_h @@ -1,7 +1,7 @@ Index: base/process/process_metrics.h --- base/process/process_metrics.h.orig +++ base/process/process_metrics.h -@@ -37,7 +37,7 @@ +@@ -38,7 +38,7 @@ #endif #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ @@ -10,16 +10,16 @@ Index: base/process/process_metrics.h #include #include #include -@@ -50,7 +50,7 @@ namespace base { - // Full declaration is in process_metrics_iocounters.h. - struct IoCounters; +@@ -48,7 +48,7 @@ + + namespace base { -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) // Minor and major page fault counts since the process creation. // Both counts are process-wide, and exclude child processes. // -@@ -105,7 +105,7 @@ class BASE_EXPORT ProcessMetrics { +@@ -103,7 +103,7 @@ class BASE_EXPORT ProcessMetrics { // convenience wrapper for CreateProcessMetrics(). static std::unique_ptr CreateCurrentProcessMetrics(); @@ -28,8 +28,8 @@ Index: base/process/process_metrics.h // 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; -@@ -163,7 +163,7 @@ class BASE_EXPORT ProcessMetrics { - #endif // BUILDFLAG(IS_WIN) +@@ -137,7 +137,7 @@ class BASE_EXPORT ProcessMetrics { + [[nodiscard]] std::optional GetCumulativeCPUUsage(); #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ - BUILDFLAG(IS_AIX) @@ -37,7 +37,7 @@ Index: base/process/process_metrics.h // 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 -@@ -223,7 +223,7 @@ class BASE_EXPORT ProcessMetrics { +@@ -182,7 +182,7 @@ class BASE_EXPORT ProcessMetrics { int GetOpenFdSoftLimit() const; #endif // BUILDFLAG(IS_POSIX) @@ -46,7 +46,7 @@ Index: base/process/process_metrics.h // Bytes of swap as reported by /proc/[pid]/status. uint64_t GetVmSwapBytes() const; -@@ -244,7 +244,7 @@ class BASE_EXPORT ProcessMetrics { +@@ -203,7 +203,7 @@ class BASE_EXPORT ProcessMetrics { #endif // !BUILDFLAG(IS_MAC) #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -55,7 +55,7 @@ Index: base/process/process_metrics.h int CalculateIdleWakeupsPerSecond(uint64_t absolute_idle_wakeups); #endif #if BUILDFLAG(IS_APPLE) -@@ -266,9 +266,7 @@ class BASE_EXPORT ProcessMetrics { +@@ -225,12 +225,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_; @@ -63,18 +63,13 @@ Index: base/process/process_metrics.h TimeDelta last_cumulative_cpu_; -#endif - #if BUILDFLAG(IS_WIN) - TimeTicks last_cpu_time_for_precise_cpu_usage_; -@@ -276,7 +274,7 @@ class BASE_EXPORT ProcessMetrics { - #endif - #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_AIX) + BUILDFLAG(IS_AIX) || BUILDFLAG(IS_BSD) // Same thing for idle wakeups. TimeTicks last_idle_wakeups_time_; uint64_t last_absolute_idle_wakeups_; -@@ -316,7 +314,7 @@ BASE_EXPORT void IncreaseFdLimitTo(unsigned int max_de +@@ -271,7 +269,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) || \ @@ -83,7 +78,7 @@ Index: base/process/process_metrics.h // Data about system-wide memory consumption. Values are in KB. Available on // Windows, Mac, Linux, Android and Chrome OS. // -@@ -351,7 +349,7 @@ struct BASE_EXPORT SystemMemoryInfoKB { +@@ -306,7 +304,7 @@ struct BASE_EXPORT SystemMemoryInfoKB { #endif #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ @@ -92,7 +87,7 @@ Index: base/process/process_metrics.h // 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 -@@ -366,7 +364,7 @@ struct BASE_EXPORT SystemMemoryInfoKB { +@@ -321,7 +319,7 @@ struct BASE_EXPORT SystemMemoryInfoKB { #endif #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -101,7 +96,7 @@ Index: base/process/process_metrics.h int buffers = 0; int cached = 0; int active_anon = 0; -@@ -403,7 +401,7 @@ BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoK +@@ -358,7 +356,7 @@ BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoK // BUILDFLAG(IS_FUCHSIA) #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ @@ -110,7 +105,7 @@ Index: base/process/process_metrics.h // Parse the data found in /proc//stat and return the sum of the // CPU-related ticks. Returns -1 on parse error. // Exposed for testing. -@@ -591,7 +589,7 @@ class BASE_EXPORT SystemMetrics { +@@ -552,7 +550,7 @@ class BASE_EXPORT SystemMetrics { FRIEND_TEST_ALL_PREFIXES(SystemMetricsTest, SystemMetrics); size_t committed_memory_; diff --git a/www/chromium/patches/patch-base_process_process_metrics_openbsd_cc b/www/chromium/patches/patch-base_process_process_metrics_openbsd_cc index 7221b52ef..3b2be6e5d 100644 --- a/www/chromium/patches/patch-base_process_process_metrics_openbsd_cc +++ b/www/chromium/patches/patch-base_process_process_metrics_openbsd_cc @@ -1,7 +1,7 @@ Index: base/process/process_metrics_openbsd.cc --- base/process/process_metrics_openbsd.cc.orig +++ base/process/process_metrics_openbsd.cc -@@ -6,14 +6,23 @@ +@@ -6,73 +6,49 @@ #include #include @@ -9,28 +9,21 @@ Index: base/process/process_metrics_openbsd.cc #include #include +#include + #include +#include + #include "base/memory/ptr_util.h" - #include "base/process/process_metrics_iocounters.h" +#include "base/values.h" +#include "base/notreached.h" namespace base { -+ProcessMetrics::ProcessMetrics(ProcessHandle process) -+ : process_(process) {} -+ - // static - std::unique_ptr ProcessMetrics::CreateProcessMetrics( - ProcessHandle process) { -@@ -24,49 +33,23 @@ bool ProcessMetrics::GetIOCounters(IoCounters* io_coun - return false; - } +-namespace { ++ProcessMetrics::ProcessMetrics(ProcessHandle process) : process_(process) {} --static int GetProcessCPU(pid_t pid) { -+TimeDelta ProcessMetrics::GetCumulativeCPUUsage() { +-static std::optional GetProcessCPU(pid_t pid) { ++std::optional ProcessMetrics::GetCumulativeCPUUsage() { struct kinfo_proc info; - size_t length; - int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, pid, @@ -38,43 +31,55 @@ Index: base/process/process_metrics_openbsd.cc + size_t length = sizeof(struct kinfo_proc); + struct timeval tv; -- if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) < 0) -- return -1; +- if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) < 0) { +- return std::nullopt; +- } + int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_, + sizeof(struct kinfo_proc), 1 }; - mib[5] = (length / sizeof(struct kinfo_proc)); - - if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) -- return 0; -+ return TimeDelta(); + if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) { +- return std::nullopt; ++ return std::optional(TimeDelta()); + } -- return info.p_pctcpu; --} +- return std::optional(info.p_pctcpu); + tv.tv_sec = info.p_rtime_sec; + tv.tv_usec = info.p_rtime_usec; ++ ++ return std::optional(Microseconds(TimeValToMicroseconds(tv))); + } --double ProcessMetrics::GetPlatformIndependentCPUUsage() { +-} // namespace +- + // static + std::unique_ptr ProcessMetrics::CreateProcessMetrics( + ProcessHandle process) { + return WrapUnique(new ProcessMetrics(process)); + } + +-std::optional ProcessMetrics::GetPlatformIndependentCPUUsage() { - TimeTicks time = TimeTicks::Now(); - - if (last_cpu_time_.is_zero()) { - // First call, just set the last values. - last_cpu_time_ = time; -- return 0; +- return std::optional(0.0); - } - -- int cpu = GetProcessCPU(process_); +- const std::optional cpu = GetProcessCPU(process_); +- if (!cpu.has_value()) { +- return std::nullopt; +- } - - last_cpu_time_ = time; -- double percentage = static_cast((cpu * 100.0) / FSCALE); +- return std::optional(double{cpu.value()} / FSCALE * 100.0); +-} - -- return percentage; -+ return Microseconds(TimeValToMicroseconds(tv)); - } - --TimeDelta ProcessMetrics::GetCumulativeCPUUsage() { +-std::optional ProcessMetrics::GetCumulativeCPUUsage() { - NOTREACHED(); -- return TimeDelta(); +- return std::nullopt; -} - -ProcessMetrics::ProcessMetrics(ProcessHandle process) @@ -83,9 +88,17 @@ Index: base/process/process_metrics_openbsd.cc - size_t GetSystemCommitCharge() { int mib[] = { CTL_VM, VM_METER }; - int pagesize; -@@ -84,6 +67,133 @@ size_t GetSystemCommitCharge() { - pagesize = getpagesize(); +- int pagesize; ++ size_t pagesize; + struct vmtotal vmtotal; + unsigned long mem_total, mem_free, mem_inactive; + size_t len = sizeof(vmtotal); +@@ -84,9 +60,136 @@ size_t GetSystemCommitCharge() { + mem_free = vmtotal.t_free; + mem_inactive = vmtotal.t_vm - vmtotal.t_avm; + +- pagesize = getpagesize(); ++ pagesize = checked_cast(getpagesize()); return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize); +} diff --git a/www/chromium/patches/patch-base_process_process_metrics_unittest_cc b/www/chromium/patches/patch-base_process_process_metrics_unittest_cc index 9e0c0a94b..d11dfdacb 100644 --- a/www/chromium/patches/patch-base_process_process_metrics_unittest_cc +++ b/www/chromium/patches/patch-base_process_process_metrics_unittest_cc @@ -1,21 +1,13 @@ Index: base/process/process_metrics_unittest.cc --- base/process/process_metrics_unittest.cc.orig +++ base/process/process_metrics_unittest.cc -@@ -44,7 +44,7 @@ namespace debug { +@@ -56,7 +56,8 @@ #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_WIN) || \ -- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) -+ BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) - - namespace { - -@@ -347,7 +347,7 @@ TEST_F(SystemMetricsTest, ParseVmstat) { - - #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_WIN) || \ -- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) -+ BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) - - // Test that ProcessMetrics::GetPlatformIndependentCPUUsage() doesn't return - // negative values when the number of threads running on the process decreases +- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_APPLE) ++ BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_APPLE) || \ ++ BUILDFLAG(IS_BSD) + #define ENABLE_CPU_TESTS 1 + #else + #define ENABLE_CPU_TESTS 0 diff --git a/www/chromium/patches/patch-base_process_process_unittest_cc b/www/chromium/patches/patch-base_process_process_unittest_cc index 602f74bf1..612f99597 100644 --- a/www/chromium/patches/patch-base_process_process_unittest_cc +++ b/www/chromium/patches/patch-base_process_process_unittest_cc @@ -1,7 +1,7 @@ Index: base/process/process_unittest.cc --- base/process/process_unittest.cc.orig +++ base/process/process_unittest.cc -@@ -195,7 +195,7 @@ TEST_F(ProcessTest, CreationTimeOtherProcess) { +@@ -199,7 +199,7 @@ TEST_F(ProcessTest, CreationTimeOtherProcess) { // was spawned and a time recorded after it was spawned. However, since the // base::Time and process creation clocks don't match, tolerate some error. constexpr base::TimeDelta kTolerance = diff --git a/www/chromium/patches/patch-base_profiler_module_cache_cc b/www/chromium/patches/patch-base_profiler_module_cache_cc index 50ab0d511..48492fea5 100644 --- a/www/chromium/patches/patch-base_profiler_module_cache_cc +++ b/www/chromium/patches/patch-base_profiler_module_cache_cc @@ -1,7 +1,7 @@ Index: base/profiler/module_cache.cc --- base/profiler/module_cache.cc.orig +++ base/profiler/module_cache.cc -@@ -52,7 +52,7 @@ std::string TransformModuleIDToSymbolServerFormat(Stri +@@ -38,7 +38,7 @@ std::string TransformModuleIDToSymbolServerFormat(std: // Android and Linux Chrome builds use the "breakpad" format to index their // build id, so we transform the build id for these platforms. All other // platforms keep their symbols indexed by the original build ID. diff --git a/www/chromium/patches/patch-base_profiler_sampling_profiler_thread_token_cc b/www/chromium/patches/patch-base_profiler_sampling_profiler_thread_token_cc index e5fa3dbf3..c4503107c 100644 --- a/www/chromium/patches/patch-base_profiler_sampling_profiler_thread_token_cc +++ b/www/chromium/patches/patch-base_profiler_sampling_profiler_thread_token_cc @@ -16,6 +16,6 @@ Index: base/profiler/sampling_profiler_thread_token.cc return {id, pthread_self()}; -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) - absl::optional maybe_stack_base = + std::optional maybe_stack_base = GetThreadStackBaseAddress(id, pthread_self()); return {id, maybe_stack_base}; diff --git a/www/chromium/patches/patch-base_profiler_sampling_profiler_thread_token_h b/www/chromium/patches/patch-base_profiler_sampling_profiler_thread_token_h index 78b1f8c32..b0775f3c0 100644 --- a/www/chromium/patches/patch-base_profiler_sampling_profiler_thread_token_h +++ b/www/chromium/patches/patch-base_profiler_sampling_profiler_thread_token_h @@ -1,7 +1,7 @@ Index: base/profiler/sampling_profiler_thread_token.h --- base/profiler/sampling_profiler_thread_token.h.orig +++ base/profiler/sampling_profiler_thread_token.h -@@ -12,7 +12,7 @@ +@@ -13,7 +13,7 @@ #if BUILDFLAG(IS_ANDROID) #include @@ -10,7 +10,7 @@ Index: base/profiler/sampling_profiler_thread_token.h #include #endif -@@ -26,7 +26,7 @@ struct SamplingProfilerThreadToken { +@@ -27,7 +27,7 @@ struct SamplingProfilerThreadToken { PlatformThreadId id; #if BUILDFLAG(IS_ANDROID) pthread_t pthread_id; diff --git a/www/chromium/patches/patch-base_profiler_stack_base_address_posix_cc b/www/chromium/patches/patch-base_profiler_stack_base_address_posix_cc index 722bccd39..12f9aaee8 100644 --- a/www/chromium/patches/patch-base_profiler_stack_base_address_posix_cc +++ b/www/chromium/patches/patch-base_profiler_stack_base_address_posix_cc @@ -12,7 +12,7 @@ Index: base/profiler/stack_base_address_posix.cc #if BUILDFLAG(IS_CHROMEOS) extern "C" void* __libc_stack_end; #endif -@@ -45,7 +49,21 @@ absl::optional GetAndroidMainThreadStackBas +@@ -45,7 +49,21 @@ std::optional GetAndroidMainThreadStackBase #if !BUILDFLAG(IS_LINUX) uintptr_t GetThreadStackBaseAddressImpl(pthread_t pthread_id) { @@ -49,3 +49,12 @@ Index: base/profiler/stack_base_address_posix.cc const uintptr_t base_address = reinterpret_cast(address) + size; return base_address; } +@@ -80,7 +100,7 @@ std::optional GetThreadStackBaseAddress(Pla + // trying to work around the problem. + return std::nullopt; + #else +- const bool is_main_thread = id == GetCurrentProcId(); ++ const bool is_main_thread = id == checked_cast(GetCurrentProcId()); + if (is_main_thread) { + #if BUILDFLAG(IS_ANDROID) + // The implementation of pthread_getattr_np() in Bionic reads proc/self/maps diff --git a/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_test_util_cc b/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_test_util_cc index c52e6fd61..bf38763ad 100644 --- a/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_test_util_cc +++ b/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_test_util_cc @@ -1,7 +1,7 @@ Index: base/profiler/stack_sampling_profiler_test_util.cc --- base/profiler/stack_sampling_profiler_test_util.cc.orig +++ base/profiler/stack_sampling_profiler_test_util.cc -@@ -36,7 +36,7 @@ +@@ -37,7 +37,7 @@ // Fortunately, it provides _alloca, which functions identically. #include #define alloca _alloca diff --git a/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_unittest_cc b/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_unittest_cc index 060167453..ee430b3a9 100644 --- a/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_unittest_cc +++ b/www/chromium/patches/patch-base_profiler_stack_sampling_profiler_unittest_cc @@ -1,7 +1,7 @@ Index: base/profiler/stack_sampling_profiler_unittest.cc --- base/profiler/stack_sampling_profiler_unittest.cc.orig +++ base/profiler/stack_sampling_profiler_unittest.cc -@@ -41,7 +41,7 @@ +@@ -42,7 +42,7 @@ #include #include #include diff --git a/www/chromium/patches/patch-base_profiler_thread_delegate_posix_cc b/www/chromium/patches/patch-base_profiler_thread_delegate_posix_cc index 8907fb664..366580d87 100644 --- a/www/chromium/patches/patch-base_profiler_thread_delegate_posix_cc +++ b/www/chromium/patches/patch-base_profiler_thread_delegate_posix_cc @@ -1,19 +1,19 @@ Index: base/profiler/thread_delegate_posix.cc --- base/profiler/thread_delegate_posix.cc.orig +++ base/profiler/thread_delegate_posix.cc -@@ -13,7 +13,7 @@ +@@ -14,7 +14,7 @@ + #include "base/process/process_handle.h" #include "build/build_config.h" - #include "third_party/abseil-cpp/absl/types/optional.h" -#if !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) +#if !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) #include "base/profiler/stack_base_address_posix.h" #endif -@@ -22,7 +22,7 @@ namespace base { +@@ -23,7 +23,7 @@ namespace base { std::unique_ptr ThreadDelegatePosix::Create( SamplingProfilerThreadToken thread_token) { - absl::optional base_address; + std::optional base_address; -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) base_address = thread_token.stack_base_address; diff --git a/www/chromium/patches/patch-base_rand_util_h b/www/chromium/patches/patch-base_rand_util_h index 0b12a20f6..d32fe7107 100644 --- a/www/chromium/patches/patch-base_rand_util_h +++ b/www/chromium/patches/patch-base_rand_util_h @@ -1,7 +1,7 @@ Index: base/rand_util.h --- base/rand_util.h.orig +++ base/rand_util.h -@@ -121,7 +121,7 @@ void RandomShuffle(Itr first, Itr last) { +@@ -149,7 +149,7 @@ void RandomShuffle(Itr first, Itr last) { std::shuffle(first, last, RandomBitGenerator()); } diff --git a/www/chromium/patches/patch-base_rand_util_posix_cc b/www/chromium/patches/patch-base_rand_util_posix_cc index 0e4136be4..17158db9a 100644 --- a/www/chromium/patches/patch-base_rand_util_posix_cc +++ b/www/chromium/patches/patch-base_rand_util_posix_cc @@ -1,7 +1,7 @@ Index: base/rand_util_posix.cc --- base/rand_util_posix.cc.orig +++ base/rand_util_posix.cc -@@ -22,7 +22,7 @@ +@@ -23,7 +23,7 @@ #include "base/time/time.h" #include "build/build_config.h" @@ -10,15 +10,15 @@ Index: base/rand_util_posix.cc #include "third_party/lss/linux_syscall_support.h" #elif BUILDFLAG(IS_MAC) // TODO(crbug.com/995996): Waiting for this header to appear in the iOS SDK. -@@ -46,6 +46,7 @@ static constexpr int kOpenFlags = O_RDONLY; - static constexpr int kOpenFlags = O_RDONLY | O_CLOEXEC; - #endif +@@ -40,6 +40,7 @@ namespace base { + + namespace { +#if !BUILDFLAG(IS_BSD) - // We keep the file descriptor for /dev/urandom around so we don't need to - // reopen it (which is expensive), and since we may not even be able to reopen - // it if we are later put in a sandbox. This class wraps the file descriptor so -@@ -63,10 +64,11 @@ class URandomFd { + #if BUILDFLAG(IS_AIX) + // AIX has no 64-bit support for O_CLOEXEC. + static constexpr int kOpenFlags = O_RDONLY; +@@ -64,10 +65,11 @@ class URandomFd { private: const int fd_; }; @@ -31,26 +31,26 @@ Index: base/rand_util_posix.cc // TODO(pasko): Unify reading kernel version numbers in: // mojo/core/channel_linux.cc // chrome/browser/android/seccomp_support_detector.cc -@@ -176,6 +178,7 @@ bool UseBoringSSLForRandBytes() { +@@ -177,6 +179,7 @@ bool UseBoringSSLForRandBytes() { namespace { - void RandBytes(void* output, size_t output_length, bool avoid_allocation) { + void RandBytes(span output, bool avoid_allocation) { +#if !BUILDFLAG(IS_BSD) #if !BUILDFLAG(IS_NACL) // The BoringSSL experiment takes priority over everything else. if (!avoid_allocation && internal::UseBoringSSLForRandBytes()) { -@@ -214,6 +217,9 @@ void RandBytes(void* output, size_t output_length, boo - const bool success = - ReadFromFD(urandom_fd, static_cast(output), output_length); +@@ -215,6 +218,9 @@ void RandBytes(span output, bool avoid_alloca + const int urandom_fd = GetUrandomFD(); + const bool success = ReadFromFD(urandom_fd, as_writable_chars(output)); CHECK(success); +#else -+ arc4random_buf(static_cast(output), output_length); ++ arc4random_buf(output.data(), output.size()); +#endif } } // namespace -@@ -233,9 +239,11 @@ void RandBytes(void* output, size_t output_length) { - RandBytes(output, output_length, /*avoid_allocation=*/false); +@@ -239,9 +245,11 @@ void RandBytes(void* output, size_t output_length) { + RandBytes(make_span(static_cast(output), output_length)); } +#if !BUILDFLAG(IS_BSD) diff --git a/www/chromium/patches/patch-base_synchronization_lock_impl_h b/www/chromium/patches/patch-base_synchronization_lock_impl_h index 369b21001..1a7eb5808 100644 --- a/www/chromium/patches/patch-base_synchronization_lock_impl_h +++ b/www/chromium/patches/patch-base_synchronization_lock_impl_h @@ -1,7 +1,7 @@ Index: base/synchronization/lock_impl.h --- base/synchronization/lock_impl.h.orig +++ base/synchronization/lock_impl.h -@@ -104,6 +104,10 @@ void LockImpl::Unlock() { +@@ -107,6 +107,10 @@ void LockImpl::Unlock() { } #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA) @@ -12,7 +12,7 @@ Index: base/synchronization/lock_impl.h #if DCHECK_IS_ON() BASE_EXPORT void dcheck_trylock_result(int rv); -@@ -124,6 +128,9 @@ void LockImpl::Unlock() { +@@ -127,6 +131,9 @@ void LockImpl::Unlock() { dcheck_unlock_result(rv); #endif } diff --git a/www/chromium/patches/patch-base_syslog_logging_cc b/www/chromium/patches/patch-base_syslog_logging_cc index 81ba76f57..30d1e5728 100644 --- a/www/chromium/patches/patch-base_syslog_logging_cc +++ b/www/chromium/patches/patch-base_syslog_logging_cc @@ -1,7 +1,7 @@ Index: base/syslog_logging.cc --- base/syslog_logging.cc.orig +++ base/syslog_logging.cc -@@ -15,7 +15,7 @@ +@@ -17,7 +17,7 @@ #include "base/strings/string_util.h" #include "base/win/scoped_handle.h" #include "base/win/win_util.h" @@ -10,7 +10,7 @@ Index: base/syslog_logging.cc // defines LOG_INFO, LOG_WARNING macros that could conflict with // base::LOG_INFO, base::LOG_WARNING. #include -@@ -147,7 +147,7 @@ EventLogMessage::~EventLogMessage() { +@@ -149,7 +149,7 @@ EventLogMessage::~EventLogMessage() { if (user_sid != nullptr) ::LocalFree(user_sid); diff --git a/www/chromium/patches/patch-base_system_sys_info_cc b/www/chromium/patches/patch-base_system_sys_info_cc index 42cf5bda4..585fa28b6 100644 --- a/www/chromium/patches/patch-base_system_sys_info_cc +++ b/www/chromium/patches/patch-base_system_sys_info_cc @@ -1,7 +1,7 @@ Index: base/system/sys_info.cc --- base/system/sys_info.cc.orig +++ base/system/sys_info.cc -@@ -166,7 +166,7 @@ std::string SysInfo::HardwareModelName() { +@@ -225,7 +225,7 @@ std::string SysInfo::HardwareModelName() { #endif void SysInfo::GetHardwareInfo(base::OnceCallback callback) { diff --git a/www/chromium/patches/patch-base_system_sys_info_h b/www/chromium/patches/patch-base_system_sys_info_h index 90e73f827..ec62ce5f4 100644 --- a/www/chromium/patches/patch-base_system_sys_info_h +++ b/www/chromium/patches/patch-base_system_sys_info_h @@ -1,7 +1,7 @@ Index: base/system/sys_info.h --- base/system/sys_info.h.orig +++ base/system/sys_info.h -@@ -266,6 +266,8 @@ class BASE_EXPORT SysInfo { +@@ -322,6 +322,8 @@ class BASE_EXPORT SysInfo { static void ResetCpuSecurityMitigationsEnabledForTesting(); #endif @@ -10,7 +10,7 @@ Index: base/system/sys_info.h private: friend class test::ScopedAmountOfPhysicalMemoryOverride; FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory); -@@ -278,7 +280,7 @@ class BASE_EXPORT SysInfo { +@@ -334,7 +336,7 @@ class BASE_EXPORT SysInfo { static HardwareInfo GetHardwareInfoSync(); #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ diff --git a/www/chromium/patches/patch-base_system_sys_info_openbsd_cc b/www/chromium/patches/patch-base_system_sys_info_openbsd_cc index d1f38ac51..f76dc17d6 100644 --- a/www/chromium/patches/patch-base_system_sys_info_openbsd_cc +++ b/www/chromium/patches/patch-base_system_sys_info_openbsd_cc @@ -1,22 +1,29 @@ Index: base/system/sys_info_openbsd.cc --- base/system/sys_info_openbsd.cc.orig +++ base/system/sys_info_openbsd.cc -@@ -11,6 +11,7 @@ - #include +@@ -3,7 +3,6 @@ + // found in the LICENSE file. + + #include "base/system/sys_info.h" +- + #include + #include + #include +@@ -12,6 +11,7 @@ #include "base/notreached.h" + #include "base/posix/sysctl.h" +#include "base/strings/string_util.h" namespace { -@@ -26,9 +27,15 @@ uint64_t AmountOfMemory(int pages_name) { +@@ -27,9 +27,14 @@ uint64_t AmountOfMemory(int pages_name) { namespace base { +// pledge(2) -+int64_t aofpmem = 0; -+int64_t aofapmem = 0; -+int64_t shmmax = 0; ++uint64_t aofpmem = 0; ++uint64_t shmmax = 0; +char cpumodel[256]; + // static @@ -26,7 +33,7 @@ Index: base/system/sys_info_openbsd.cc int ncpu; size_t size = sizeof(ncpu); if (sysctl(mib, std::size(mib), &ncpu, &size, NULL, 0) < 0) { -@@ -40,10 +47,26 @@ int SysInfo::NumberOfProcessors() { +@@ -41,10 +46,26 @@ int SysInfo::NumberOfProcessors() { // static uint64_t SysInfo::AmountOfPhysicalMemoryImpl() { @@ -54,7 +61,7 @@ Index: base/system/sys_info_openbsd.cc uint64_t SysInfo::AmountOfAvailablePhysicalMemoryImpl() { // We should add inactive file-backed memory also but there is no such // information from OpenBSD unfortunately. -@@ -55,23 +78,28 @@ uint64_t SysInfo::MaxSharedMemorySize() { +@@ -56,16 +77,28 @@ uint64_t SysInfo::MaxSharedMemorySize() { int mib[] = {CTL_KERN, KERN_SHMINFO, KERN_SHMINFO_SHMMAX}; size_t limit; size_t size = sizeof(limit); @@ -73,14 +80,7 @@ Index: base/system/sys_info_openbsd.cc // static -std::string SysInfo::CPUModelName() { -- int mib[] = {CTL_HW, HW_MODEL}; -- char name[256]; -- size_t len = std::size(name); -- if (sysctl(mib, std::size(mib), name, &len, NULL, 0) < 0) { -- NOTREACHED(); -- return std::string(); -- } -- return name; +- return StringSysctl({CTL_HW, HW_MODEL}).value(); +SysInfo::HardwareInfo SysInfo::GetHardwareInfoSync() { + HardwareInfo info; + // Set the manufacturer to "OpenBSD" and the model to diff --git a/www/chromium/patches/patch-base_system_sys_info_posix_cc b/www/chromium/patches/patch-base_system_sys_info_posix_cc index 75b102a93..709049f06 100644 --- a/www/chromium/patches/patch-base_system_sys_info_posix_cc +++ b/www/chromium/patches/patch-base_system_sys_info_posix_cc @@ -1,25 +1,25 @@ Index: base/system/sys_info_posix.cc --- base/system/sys_info_posix.cc.orig +++ base/system/sys_info_posix.cc -@@ -117,7 +117,7 @@ bool GetDiskSpaceInfo(const base::FilePath& path, +@@ -118,7 +118,7 @@ bool GetDiskSpaceInfo(const base::FilePath& path, namespace base { -#if !BUILDFLAG(IS_OPENBSD) +#if !BUILDFLAG(IS_BSD) + // static int SysInfo::NumberOfProcessors() { #if BUILDFLAG(IS_MAC) - absl::optional number_of_physical_cores = -@@ -161,7 +161,7 @@ int SysInfo::NumberOfProcessors() { +@@ -175,7 +175,7 @@ int SysInfo::NumberOfProcessors() { - return num_cpus; + return cached_num_cpus; } -#endif // !BUILDFLAG(IS_OPENBSD) +#endif // !BUILDFLAG(IS_BSD) // static uint64_t SysInfo::AmountOfVirtualMemory() { -@@ -251,6 +251,8 @@ std::string SysInfo::OperatingSystemArchitecture() { +@@ -265,6 +265,8 @@ std::string SysInfo::OperatingSystemArchitecture() { arch = "x86"; } else if (arch == "amd64") { arch = "x86_64"; diff --git a/www/chromium/patches/patch-base_system_sys_info_unittest_cc b/www/chromium/patches/patch-base_system_sys_info_unittest_cc index 0689ade53..e35ef1d7e 100644 --- a/www/chromium/patches/patch-base_system_sys_info_unittest_cc +++ b/www/chromium/patches/patch-base_system_sys_info_unittest_cc @@ -1,7 +1,7 @@ Index: base/system/sys_info_unittest.cc --- base/system/sys_info_unittest.cc.orig +++ base/system/sys_info_unittest.cc -@@ -263,12 +263,16 @@ TEST_F(SysInfoTest, GetHardwareInfo) { +@@ -264,12 +264,16 @@ TEST_F(SysInfoTest, GetHardwareInfo) { EXPECT_TRUE(IsStringUTF8(hardware_info->model)); bool empty_result_expected = #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_WIN) || \ diff --git a/www/chromium/patches/patch-base_test_launcher_test_launcher_cc b/www/chromium/patches/patch-base_test_launcher_test_launcher_cc index 1893403b2..f9ba6de05 100644 --- a/www/chromium/patches/patch-base_test_launcher_test_launcher_cc +++ b/www/chromium/patches/patch-base_test_launcher_test_launcher_cc @@ -1,7 +1,7 @@ Index: base/test/launcher/test_launcher.cc --- base/test/launcher/test_launcher.cc.orig +++ base/test/launcher/test_launcher.cc -@@ -68,6 +68,7 @@ +@@ -69,6 +69,7 @@ #include "testing/gtest/include/gtest/gtest.h" #if BUILDFLAG(IS_POSIX) diff --git a/www/chromium/patches/patch-base_test_test_file_util_posix_cc b/www/chromium/patches/patch-base_test_test_file_util_posix_cc index 4b4d06ca6..5dfeb50e3 100644 --- a/www/chromium/patches/patch-base_test_test_file_util_posix_cc +++ b/www/chromium/patches/patch-base_test_test_file_util_posix_cc @@ -1,7 +1,7 @@ Index: base/test/test_file_util_posix.cc --- base/test/test_file_util_posix.cc.orig +++ base/test/test_file_util_posix.cc -@@ -88,7 +88,7 @@ void SyncPageCacheToDisk() { +@@ -89,7 +89,7 @@ void SyncPageCacheToDisk() { } #if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_APPLE) && \ diff --git a/www/chromium/patches/patch-base_threading_hang_watcher_cc b/www/chromium/patches/patch-base_threading_hang_watcher_cc index 28b1873c9..ce58127d5 100644 --- a/www/chromium/patches/patch-base_threading_hang_watcher_cc +++ b/www/chromium/patches/patch-base_threading_hang_watcher_cc @@ -1,7 +1,7 @@ Index: base/threading/hang_watcher.cc --- base/threading/hang_watcher.cc.orig +++ base/threading/hang_watcher.cc -@@ -331,7 +331,7 @@ void HangWatcher::InitializeOnMainThread(ProcessType p +@@ -332,7 +332,7 @@ void HangWatcher::InitializeOnMainThread(ProcessType p bool enable_hang_watcher = base::FeatureList::IsEnabled(kEnableHangWatcher); diff --git a/www/chromium/patches/patch-base_threading_platform_thread_bsd_cc b/www/chromium/patches/patch-base_threading_platform_thread_bsd_cc index 07d576387..03cdd7056 100644 --- a/www/chromium/patches/patch-base_threading_platform_thread_bsd_cc +++ b/www/chromium/patches/patch-base_threading_platform_thread_bsd_cc @@ -21,9 +21,9 @@ Index: base/threading/platform_thread_bsd.cc + return false; +} + -+absl::optional ++std::optional +GetCurrentThreadPriorityForPlatformForTest() { -+ return absl::nullopt; ++ return std::nullopt; +} +} // namespace internal + diff --git a/www/chromium/patches/patch-base_threading_platform_thread_h b/www/chromium/patches/patch-base_threading_platform_thread_h new file mode 100644 index 000000000..2657fe7f4 --- /dev/null +++ b/www/chromium/patches/patch-base_threading_platform_thread_h @@ -0,0 +1,12 @@ +Index: base/threading/platform_thread.h +--- base/threading/platform_thread.h.orig ++++ base/threading/platform_thread.h +@@ -46,6 +46,8 @@ typedef DWORD PlatformThreadId; + typedef zx_koid_t PlatformThreadId; + #elif BUILDFLAG(IS_APPLE) + typedef mach_port_t PlatformThreadId; ++#elif BUILDFLAG(IS_BSD) ++typedef uint64_t PlatformThreadId; + #elif BUILDFLAG(IS_POSIX) + typedef pid_t PlatformThreadId; + #endif diff --git a/www/chromium/patches/patch-base_threading_platform_thread_internal_posix_cc b/www/chromium/patches/patch-base_threading_platform_thread_internal_posix_cc index fbd7bf218..dfd30e914 100644 --- a/www/chromium/patches/patch-base_threading_platform_thread_internal_posix_cc +++ b/www/chromium/patches/patch-base_threading_platform_thread_internal_posix_cc @@ -1,7 +1,7 @@ Index: base/threading/platform_thread_internal_posix.cc --- base/threading/platform_thread_internal_posix.cc.orig +++ base/threading/platform_thread_internal_posix.cc -@@ -41,7 +41,7 @@ ThreadPriorityForTest NiceValueToThreadPriorityForTest +@@ -42,7 +42,7 @@ ThreadPriorityForTest NiceValueToThreadPriorityForTest } int GetCurrentThreadNiceValue() { diff --git a/www/chromium/patches/patch-base_threading_platform_thread_posix_cc b/www/chromium/patches/patch-base_threading_platform_thread_posix_cc index 4c3dcaa54..f1c1b436a 100644 --- a/www/chromium/patches/patch-base_threading_platform_thread_posix_cc +++ b/www/chromium/patches/patch-base_threading_platform_thread_posix_cc @@ -1,7 +1,7 @@ Index: base/threading/platform_thread_posix.cc --- base/threading/platform_thread_posix.cc.orig +++ base/threading/platform_thread_posix.cc -@@ -76,12 +76,12 @@ void* ThreadFunc(void* params) { +@@ -78,12 +78,12 @@ void* ThreadFunc(void* params) { if (!thread_params->joinable) base::DisallowSingleton(); @@ -16,7 +16,16 @@ Index: base/threading/platform_thread_posix.cc #if BUILDFLAG(IS_APPLE) PlatformThread::SetCurrentThreadRealtimePeriodValue( delegate->GetRealtimePeriod()); -@@ -353,7 +353,7 @@ void PlatformThreadBase::Detach(PlatformThreadHandle t +@@ -267,6 +267,8 @@ PlatformThreadId PlatformThreadBase::CurrentId() { + return reinterpret_cast(pthread_self()); + #elif BUILDFLAG(IS_POSIX) && BUILDFLAG(IS_AIX) + return pthread_self(); ++#elif BUILDFLAG(IS_BSD) ++ return reinterpret_cast(pthread_self()); + #elif BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_AIX) + return reinterpret_cast(pthread_self()); + #endif +@@ -357,7 +359,7 @@ void PlatformThreadBase::Detach(PlatformThreadHandle t // static bool PlatformThreadBase::CanChangeThreadType(ThreadType from, ThreadType to) { @@ -25,7 +34,7 @@ Index: base/threading/platform_thread_posix.cc return false; #else if (from >= to) { -@@ -374,6 +374,9 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type, +@@ -378,6 +380,9 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type, MessagePumpType pump_type_hint) { #if BUILDFLAG(IS_NACL) NOTIMPLEMENTED(); @@ -35,7 +44,7 @@ Index: base/threading/platform_thread_posix.cc #else if (internal::SetCurrentThreadTypeForPlatform(thread_type, pump_type_hint)) return; -@@ -396,7 +399,7 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type, +@@ -400,7 +405,7 @@ void SetCurrentThreadTypeImpl(ThreadType thread_type, // static ThreadPriorityForTest PlatformThreadBase::GetCurrentThreadPriorityForTest() { diff --git a/www/chromium/patches/patch-base_threading_platform_thread_unittest_cc b/www/chromium/patches/patch-base_threading_platform_thread_unittest_cc index f990d0942..c766055f2 100644 --- a/www/chromium/patches/patch-base_threading_platform_thread_unittest_cc +++ b/www/chromium/patches/patch-base_threading_platform_thread_unittest_cc @@ -17,9 +17,9 @@ Index: base/threading/platform_thread_unittest.cc -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) // On Ubuntu, RLIMIT_NICE and RLIMIT_RTPRIO are 0 by default, so we won't be - // able to increase priority to any level. - constexpr bool kCanIncreasePriority = false; -@@ -695,12 +695,16 @@ INSTANTIATE_TEST_SUITE_P( + // able to increase priority to any level unless we are root (euid == 0). + bool kCanIncreasePriority = false; +@@ -706,12 +706,16 @@ INSTANTIATE_TEST_SUITE_P( #endif // BUILDFLAG(IS_APPLE) diff --git a/www/chromium/patches/patch-base_trace_event_malloc_dump_provider_cc b/www/chromium/patches/patch-base_trace_event_malloc_dump_provider_cc index d58acef3f..21b5e49e2 100644 --- a/www/chromium/patches/patch-base_trace_event_malloc_dump_provider_cc +++ b/www/chromium/patches/patch-base_trace_event_malloc_dump_provider_cc @@ -1,7 +1,7 @@ Index: base/trace_event/malloc_dump_provider.cc --- base/trace_event/malloc_dump_provider.cc.orig +++ base/trace_event/malloc_dump_provider.cc -@@ -25,6 +25,8 @@ +@@ -24,6 +24,8 @@ #if BUILDFLAG(IS_APPLE) #include @@ -10,7 +10,7 @@ Index: base/trace_event/malloc_dump_provider.cc #else #include #endif -@@ -188,7 +190,7 @@ void ReportAppleAllocStats(size_t* total_virtual_size, +@@ -181,7 +183,7 @@ void ReportAppleAllocStats(size_t* total_virtual_size, #if (BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) && BUILDFLAG(IS_ANDROID)) || \ (!BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) && !BUILDFLAG(IS_WIN) && \ @@ -19,7 +19,7 @@ Index: base/trace_event/malloc_dump_provider.cc void ReportMallinfoStats(ProcessMemoryDump* pmd, size_t* total_virtual_size, size_t* resident_size, -@@ -359,6 +361,9 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDump +@@ -366,6 +368,9 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDump &allocated_objects_count); #elif BUILDFLAG(IS_FUCHSIA) // TODO(fuchsia): Port, see https://crbug.com/706592. diff --git a/www/chromium/patches/patch-base_trace_event_process_memory_dump_cc b/www/chromium/patches/patch-base_trace_event_process_memory_dump_cc index 67a43a490..23df00d16 100644 --- a/www/chromium/patches/patch-base_trace_event_process_memory_dump_cc +++ b/www/chromium/patches/patch-base_trace_event_process_memory_dump_cc @@ -1,7 +1,7 @@ Index: base/trace_event/process_memory_dump.cc --- base/trace_event/process_memory_dump.cc.orig +++ base/trace_event/process_memory_dump.cc -@@ -112,7 +112,7 @@ absl::optional ProcessMemoryDump::CountResiden +@@ -113,7 +113,7 @@ std::optional ProcessMemoryDump::CountResident #if BUILDFLAG(IS_WIN) std::unique_ptr vec( new PSAPI_WORKING_SET_EX_INFORMATION[max_vec_size]); @@ -10,7 +10,7 @@ Index: base/trace_event/process_memory_dump.cc std::unique_ptr vec(new char[max_vec_size]); #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA) std::unique_ptr vec(new unsigned char[max_vec_size]); -@@ -134,7 +134,7 @@ absl::optional ProcessMemoryDump::CountResiden +@@ -135,7 +135,7 @@ std::optional ProcessMemoryDump::CountResident for (size_t i = 0; i < page_count; i++) resident_page_count += vec[i].VirtualAttributes.Valid; diff --git a/www/chromium/patches/patch-base_trace_event_trace_log_cc b/www/chromium/patches/patch-base_trace_event_trace_log_cc deleted file mode 100644 index fe1397296..000000000 --- a/www/chromium/patches/patch-base_trace_event_trace_log_cc +++ /dev/null @@ -1,17 +0,0 @@ -Index: base/trace_event/trace_log.cc ---- base/trace_event/trace_log.cc.orig -+++ base/trace_event/trace_log.cc -@@ -2190,8 +2190,13 @@ void TraceLog::SetTraceBufferForTesting( - #if BUILDFLAG(USE_PERFETTO_CLIENT_LIBRARY) - void TraceLog::OnSetup(const perfetto::DataSourceBase::SetupArgs& args) { - AutoLock lock(track_event_lock_); -+#if defined(__clang__) && (__clang_major__ >= 16) - track_event_sessions_.emplace_back(args.internal_instance_index, *args.config, - args.backend_type); -+#else -+ track_event_sessions_.emplace_back(TrackEventSession{args.internal_instance_index, *args.config, -+ args.backend_type}); -+#endif - } - - void TraceLog::OnStart(const perfetto::DataSourceBase::StartArgs&) { diff --git a/www/chromium/patches/patch-build_config_clang_BUILD_gn b/www/chromium/patches/patch-build_config_clang_BUILD_gn new file mode 100644 index 000000000..7f99bf09a --- /dev/null +++ b/www/chromium/patches/patch-build_config_clang_BUILD_gn @@ -0,0 +1,12 @@ +Index: build/config/clang/BUILD.gn +--- build/config/clang/BUILD.gn.orig ++++ build/config/clang/BUILD.gn +@@ -203,7 +203,7 @@ template("clang_lib") { + + # Adds a dependency on the Clang runtime library clang_rt.builtins. + clang_lib("compiler_builtins") { +- if (!toolchain_has_rust) { ++ if (!toolchain_has_rust || is_bsd) { + # Since there's no Rust in the toolchain, there's no concern that we'll use + # the Rust stdlib's intrinsics here. + # diff --git a/www/chromium/patches/patch-build_config_compiler_BUILD_gn b/www/chromium/patches/patch-build_config_compiler_BUILD_gn index 15838b0a2..05849bf3c 100644 --- a/www/chromium/patches/patch-build_config_compiler_BUILD_gn +++ b/www/chromium/patches/patch-build_config_compiler_BUILD_gn @@ -1,7 +1,7 @@ Index: build/config/compiler/BUILD.gn --- build/config/compiler/BUILD.gn.orig +++ build/config/compiler/BUILD.gn -@@ -192,7 +192,7 @@ declare_args() { +@@ -204,7 +204,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. @@ -10,7 +10,7 @@ Index: build/config/compiler/BUILD.gn } declare_args() { -@@ -256,13 +256,16 @@ config("default_include_dirs") { +@@ -268,13 +268,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") { @@ -23,12 +23,12 @@ Index: build/config/compiler/BUILD.gn ] } + if (current_cpu == "x86" && is_openbsd) { -+ ldflags = [ "-Wl,-z,notext" ] ++ ldflags = [ "-Wl,-z,notext", "-Wl,--strip-all" ] + } } # compiler --------------------------------------------------------------------- -@@ -507,6 +510,10 @@ config("compiler") { +@@ -515,6 +518,10 @@ config("compiler") { } } @@ -39,7 +39,7 @@ Index: build/config/compiler/BUILD.gn # Linux-specific compiler flags setup. # ------------------------------------ if (use_gold) { -@@ -582,7 +589,7 @@ config("compiler") { +@@ -590,7 +597,7 @@ config("compiler") { ldflags += [ "-Wl,-z,keep-text-section-prefix" ] } @@ -48,16 +48,7 @@ Index: build/config/compiler/BUILD.gn cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ] if (save_reproducers_on_lld_crash && use_lld) { ldflags += [ -@@ -768,7 +775,7 @@ config("compiler") { - - ldflags += [ "-Wl,-mllvm,-import-instr-limit=$import_instr_limit" ] - -- if (!is_chromeos) { -+ if (!is_chromeos && !is_bsd) { - # TODO(https://crbug.com/972449): turn on for ChromeOS when that - # toolchain has this flag. - # We only use one version of LLVM within a build so there's no need to -@@ -1112,7 +1119,7 @@ config("compiler_cpu_abi") { +@@ -1180,7 +1187,7 @@ config("compiler_cpu_abi") { ] } } else if (current_cpu == "arm") { @@ -66,7 +57,7 @@ Index: build/config/compiler/BUILD.gn !(is_chromeos_lacros && is_chromeos_device)) { cflags += [ "--target=arm-linux-gnueabihf" ] ldflags += [ "--target=arm-linux-gnueabihf" ] -@@ -1127,7 +1134,7 @@ config("compiler_cpu_abi") { +@@ -1195,7 +1202,7 @@ config("compiler_cpu_abi") { cflags += [ "-mtune=$arm_tune" ] } } else if (current_cpu == "arm64") { @@ -75,7 +66,7 @@ Index: build/config/compiler/BUILD.gn !(is_chromeos_lacros && is_chromeos_device)) { cflags += [ "--target=aarch64-linux-gnu" ] ldflags += [ "--target=aarch64-linux-gnu" ] -@@ -1462,7 +1469,7 @@ config("compiler_deterministic") { +@@ -1530,7 +1537,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. @@ -84,7 +75,7 @@ Index: build/config/compiler/BUILD.gn # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here. cflags += [ "-Xclang", -@@ -1514,7 +1521,7 @@ config("compiler_deterministic") { +@@ -1582,7 +1589,7 @@ config("compiler_deterministic") { } config("clang_revision") { @@ -93,16 +84,26 @@ Index: build/config/compiler/BUILD.gn update_args = [ "--print-revision", "--verify-version=$clang_version", -@@ -1778,7 +1785,7 @@ config("default_warnings") { - "-Wno-ignored-pragma-optimize", +@@ -1890,9 +1897,6 @@ config("default_warnings") { + + # TODO(crbug.com/1494809): Evaluate and possibly enable. + "-Wno-vla-extension", +- +- # TODO(https://crbug.com/1490607): Fix and re-enable. +- "-Wno-thread-safety-reference-return", + ] + + cflags_cc += [ +@@ -1900,7 +1904,7 @@ config("default_warnings") { + "-Wenum-compare-conditional", ] - if (!is_nacl) { + if (!is_nacl && !is_bsd) { - cflags += [ - # TODO(crbug.com/1343975) Evaluate and possibly enable. - "-Wno-deprecated-builtins", -@@ -1991,7 +1998,7 @@ config("no_chromium_code") { + 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") { # third-party libraries. "-Wno-c++11-narrowing", ] @@ -111,7 +112,7 @@ Index: build/config/compiler/BUILD.gn cflags += [ # Disabled for similar reasons as -Wunused-variable. "-Wno-unused-but-set-variable", -@@ -2501,7 +2508,7 @@ config("afdo_optimize_size") { +@@ -2597,7 +2601,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 +121,7 @@ Index: build/config/compiler/BUILD.gn cflags = [] if (clang_emit_debug_info_for_profiling) { # Add the following flags to generate debug info for profiling. -@@ -2528,7 +2535,7 @@ config("afdo") { +@@ -2624,7 +2628,7 @@ config("afdo") { cflags += [ "-Wno-backend-plugin" ] inputs = [ _clang_sample_profile ] } @@ -129,7 +130,7 @@ Index: build/config/compiler/BUILD.gn cflags = [ "-fauto-profile=${auto_profile_path}" ] inputs = [ auto_profile_path ] } -@@ -2692,7 +2699,8 @@ config("symbols") { +@@ -2788,7 +2792,8 @@ config("symbols") { configs += [ "//build/config:compress_debug_sections" ] } diff --git a/www/chromium/patches/patch-build_config_compiler_pgo_BUILD_gn b/www/chromium/patches/patch-build_config_compiler_pgo_BUILD_gn deleted file mode 100644 index 5ef1cfc9a..000000000 --- a/www/chromium/patches/patch-build_config_compiler_pgo_BUILD_gn +++ /dev/null @@ -1,20 +0,0 @@ -Index: build/config/compiler/pgo/BUILD.gn ---- build/config/compiler/pgo/BUILD.gn.orig -+++ build/config/compiler/pgo/BUILD.gn -@@ -143,13 +143,14 @@ config("pgo_optimization_flags") { - - # Enable basic block layout based on the extended TSP problem. This aims to - # improve icache utilization and reduce the binary size. -- if (use_thin_lto) { -+ # __clang_major__ >= 15 -+ if (use_thin_lto && !is_bsd) { - if (is_win) { - ldflags = [ "-mllvm:-enable-ext-tsp-block-placement=1" ] - } else { - ldflags = [ "-Wl,-mllvm,-enable-ext-tsp-block-placement=1" ] - } -- } else { -+ } else if (!is_bsd) { - cflags += [ - "-mllvm", - "-enable-ext-tsp-block-placement=1", diff --git a/www/chromium/patches/patch-build_config_rust_gni b/www/chromium/patches/patch-build_config_rust_gni new file mode 100644 index 000000000..87b828c5d --- /dev/null +++ b/www/chromium/patches/patch-build_config_rust_gni @@ -0,0 +1,14 @@ +Index: build/config/rust.gni +--- build/config/rust.gni.orig ++++ build/config/rust.gni +@@ -277,6 +277,10 @@ if (is_linux || is_chromeos) { + } + } + ++if (is_bsd) { ++ rust_abi_target = string_replace(rust_abi_target, "linux-gnu", current_os) ++} ++ + assert(!toolchain_has_rust || rust_abi_target != "") + + # This variable is passed to the Rust libstd build. diff --git a/www/chromium/patches/patch-build_linux_unbundle_libusb_gn b/www/chromium/patches/patch-build_linux_unbundle_libusb_gn index 9c0d71934..c77cfd2f9 100644 --- a/www/chromium/patches/patch-build_linux_unbundle_libusb_gn +++ b/www/chromium/patches/patch-build_linux_unbundle_libusb_gn @@ -1,7 +1,7 @@ Index: build/linux/unbundle/libusb.gn --- build/linux/unbundle/libusb.gn.orig +++ build/linux/unbundle/libusb.gn -@@ -0,0 +1,24 @@ +@@ -1,3 +1,27 @@ +# Copyright 2016 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. @@ -26,3 +26,6 @@ Index: build/linux/unbundle/libusb.gn + ] + public_configs = [ ":system_libusb" ] +} + import("//build/config/linux/pkg_config.gni") + import("//build/shim_headers.gni") + diff --git a/www/chromium/patches/patch-build_linux_unbundle_libwebp_gn b/www/chromium/patches/patch-build_linux_unbundle_libwebp_gn new file mode 100644 index 000000000..52f7f8a32 --- /dev/null +++ b/www/chromium/patches/patch-build_linux_unbundle_libwebp_gn @@ -0,0 +1,28 @@ +Index: build/linux/unbundle/libwebp.gn +--- build/linux/unbundle/libwebp.gn.orig ++++ build/linux/unbundle/libwebp.gn +@@ -22,6 +22,8 @@ shim_headers("libwebp_shim") { + "webp/mux.h", + "webp/mux_types.h", + "webp/types.h", ++ "webp/sharpyuv/sharpyuv.h", ++ "webp/sharpyuv/sharpyuv_csp.h", + ] + } + +@@ -30,6 +32,14 @@ source_set("libwebp_webp") { + public_configs = [ ":system_libwebp" ] + } + ++source_set("libwebp_sharpyuv") { ++ deps = [ ":libwebp_shim" ] ++ public_configs = [ ":system_libwebp" ] ++} ++ + group("libwebp") { +- deps = [ ":libwebp_webp" ] ++ deps = [ ++ ":libwebp_webp", ++ ":libwebp_sharpyuv", ++ ] + } diff --git a/www/chromium/patches/patch-build_linux_unbundle_replace_gn_files_py b/www/chromium/patches/patch-build_linux_unbundle_replace_gn_files_py deleted file mode 100644 index eae0929c7..000000000 --- a/www/chromium/patches/patch-build_linux_unbundle_replace_gn_files_py +++ /dev/null @@ -1,11 +0,0 @@ -Index: build/linux/unbundle/replace_gn_files.py ---- build/linux/unbundle/replace_gn_files.py.orig -+++ build/linux/unbundle/replace_gn_files.py -@@ -54,6 +54,7 @@ REPLACEMENTS = { - 'libevent': 'third_party/libevent/BUILD.gn', - 'libjpeg': 'third_party/libjpeg.gni', - 'libpng': 'third_party/libpng/BUILD.gn', -+ 'libusb': 'third_party/libusb/BUILD.gn', - 'libvpx': 'third_party/libvpx/BUILD.gn', - 'libwebp': 'third_party/libwebp/BUILD.gn', - 'libxml': 'third_party/libxml/BUILD.gn', diff --git a/www/chromium/patches/patch-build_rust_std_BUILD_gn b/www/chromium/patches/patch-build_rust_std_BUILD_gn new file mode 100644 index 000000000..318414e54 --- /dev/null +++ b/www/chromium/patches/patch-build_rust_std_BUILD_gn @@ -0,0 +1,11 @@ +Index: build/rust/std/BUILD.gn +--- build/rust/std/BUILD.gn.orig ++++ build/rust/std/BUILD.gn +@@ -90,7 +90,6 @@ if (toolchain_has_rust) { + # don't need to pass to the C++ linker because they're used for specialized + # purposes. + skip_stdlib_files = [ +- "profiler_builtins", + "rustc_std_workspace_alloc", + "rustc_std_workspace_core", + "rustc_std_workspace_std", diff --git a/www/chromium/patches/patch-build_toolchain_gcc_toolchain_gni b/www/chromium/patches/patch-build_toolchain_gcc_toolchain_gni index c768aae9e..d519c7e59 100644 --- a/www/chromium/patches/patch-build_toolchain_gcc_toolchain_gni +++ b/www/chromium/patches/patch-build_toolchain_gcc_toolchain_gni @@ -1,7 +1,7 @@ Index: build/toolchain/gcc_toolchain.gni --- build/toolchain/gcc_toolchain.gni.orig +++ build/toolchain/gcc_toolchain.gni -@@ -53,6 +53,13 @@ if (enable_resource_allowlist_generation) { +@@ -57,6 +57,13 @@ if (enable_resource_allowlist_generation) { "enable_resource_allowlist_generation=true does not work for target_os=$target_os") } @@ -15,7 +15,7 @@ Index: build/toolchain/gcc_toolchain.gni # This template defines a toolchain for something that works like gcc # (including clang). # -@@ -874,22 +881,12 @@ template("gcc_toolchain") { +@@ -890,22 +897,12 @@ template("gcc_toolchain") { # use_gold too. template("clang_toolchain") { gcc_toolchain(target_name) { @@ -41,5 +41,5 @@ Index: build/toolchain/gcc_toolchain.gni + ar = "ar" + nm = "nm" - forward_variables_from(invoker, - [ + forward_variables_from(invoker, "*", [ "toolchain_args" ]) + diff --git a/www/chromium/patches/patch-build_toolchain_toolchain_gni b/www/chromium/patches/patch-build_toolchain_toolchain_gni index d8eef866a..643d6f43c 100644 --- a/www/chromium/patches/patch-build_toolchain_toolchain_gni +++ b/www/chromium/patches/patch-build_toolchain_toolchain_gni @@ -1,7 +1,7 @@ Index: build/toolchain/toolchain.gni --- build/toolchain/toolchain.gni.orig +++ build/toolchain/toolchain.gni -@@ -67,7 +67,7 @@ if (host_os == "mac") { +@@ -68,7 +68,7 @@ if (host_os == "mac") { host_shlib_extension = ".dylib" } else if (host_os == "win") { host_shlib_extension = ".dll" diff --git a/www/chromium/patches/patch-cc_BUILD_gn b/www/chromium/patches/patch-cc_BUILD_gn index 6e409c90e..9c673d9ed 100644 --- a/www/chromium/patches/patch-cc_BUILD_gn +++ b/www/chromium/patches/patch-cc_BUILD_gn @@ -1,7 +1,7 @@ Index: cc/BUILD.gn --- cc/BUILD.gn.orig +++ cc/BUILD.gn -@@ -674,7 +674,7 @@ cc_test_static_library("test_support") { +@@ -681,7 +681,7 @@ cc_test_static_library("test_support") { if (enable_vulkan) { deps += [ "//gpu/vulkan/init" ] } @@ -10,7 +10,7 @@ Index: cc/BUILD.gn data_deps = [ "//third_party/mesa_headers" ] } if (skia_use_dawn) { -@@ -929,7 +929,6 @@ cc_test("cc_unittests") { +@@ -940,7 +940,6 @@ cc_test("cc_unittests") { data = [ "//components/test/data/viz/" ] data_deps = [ "//testing/buildbot/filters:cc_unittests_filters", diff --git a/www/chromium/patches/patch-cc_base_features_cc b/www/chromium/patches/patch-cc_base_features_cc index c83032d51..12452db5c 100644 --- a/www/chromium/patches/patch-cc_base_features_cc +++ b/www/chromium/patches/patch-cc_base_features_cc @@ -1,7 +1,7 @@ Index: cc/base/features.cc --- cc/base/features.cc.orig +++ cc/base/features.cc -@@ -85,7 +85,7 @@ BASE_FEATURE(kNormalPriorityImageDecoding, +@@ -88,7 +88,7 @@ BASE_FEATURE(kNormalPriorityImageDecoding, // be using a separate flag to control the launch on GL. BASE_FEATURE(kUseDMSAAForTiles, "UseDMSAAForTiles", diff --git a/www/chromium/patches/patch-cc_paint_paint_op_writer_h b/www/chromium/patches/patch-cc_paint_paint_op_writer_h deleted file mode 100644 index 31d53487c..000000000 --- a/www/chromium/patches/patch-cc_paint_paint_op_writer_h +++ /dev/null @@ -1,42 +0,0 @@ -Index: cc/paint/paint_op_writer.h ---- cc/paint/paint_op_writer.h.orig -+++ cc/paint/paint_op_writer.h -@@ -114,10 +114,17 @@ class CC_PAINT_EXPORT PaintOpWriter { - // easier to keep serialized size calculation in sync with serialization and - // deserialization, and make it possible to allow dynamic sizing for some - // data types (see the specialized/overloaded functions). -+#if defined(__clang__) && (__clang_major__ >= 15) - template - static constexpr size_t SerializedSize(); - template - static constexpr size_t SerializedSize(const T& data); -+#else -+ template -+ static size_t SerializedSize(); -+ template -+ static size_t SerializedSize(const T& data); -+#endif - static size_t SerializedSize(const PaintImage& image); - static size_t SerializedSize(const PaintRecord& record); - static size_t SerializedSize(const SkHighContrastConfig& config); -@@ -386,12 +393,20 @@ constexpr size_t PaintOpWriter::SerializedSize -+#if defined(__clang__) && (__clang_major__ >= 15) - constexpr size_t PaintOpWriter::SerializedSize() { -+#else -+size_t PaintOpWriter::SerializedSize() { -+#endif - static_assert(std::is_arithmetic_v || std::is_enum_v); - return SerializedSizeSimple(); - } - template -+#if defined(__clang__) && (__clang_major__ >= 15) - constexpr size_t PaintOpWriter::SerializedSize(const T& data) { -+#else -+size_t PaintOpWriter::SerializedSize(const T& data) { -+#endif - return SerializedSizeSimple(); - } - diff --git a/www/chromium/patches/patch-chrome_app_app_management_strings_grdp b/www/chromium/patches/patch-chrome_app_app_management_strings_grdp deleted file mode 100644 index d9a138f9b..000000000 --- a/www/chromium/patches/patch-chrome_app_app_management_strings_grdp +++ /dev/null @@ -1,12 +0,0 @@ -Index: chrome/app/app_management_strings.grdp ---- chrome/app/app_management_strings.grdp.orig -+++ chrome/app/app_management_strings.grdp -@@ -188,7 +188,7 @@ - You can open and edit supported files with this app from Finder or other apps. To control which files open this app by default, <a href="#">learn how to set default apps on your device</a>. - - -- -+ - - You can open and edit supported files with this app from your file browser or other apps. To control which files open this app by default, <a href="#">learn how to set default apps on your device</a>. - diff --git a/www/chromium/patches/patch-chrome_app_chrome_main_cc b/www/chromium/patches/patch-chrome_app_chrome_main_cc index 805addae1..21ba05597 100644 --- a/www/chromium/patches/patch-chrome_app_chrome_main_cc +++ b/www/chromium/patches/patch-chrome_app_chrome_main_cc @@ -1,8 +1,8 @@ Index: chrome/app/chrome_main.cc --- chrome/app/chrome_main.cc.orig +++ chrome/app/chrome_main.cc -@@ -27,11 +27,11 @@ - #include "chrome/app/notification_metrics.h" +@@ -28,11 +28,11 @@ + #include "chrome/app/chrome_main_mac.h" #endif -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) @@ -15,7 +15,16 @@ Index: chrome/app/chrome_main.cc #include "chrome/app/chrome_main_linux.h" #endif -@@ -136,7 +136,7 @@ int ChromeMain(int argc, const char** argv) { +@@ -80,7 +80,7 @@ int ChromeMain(int argc, const char** argv) { + #error Unknown platform. + #endif + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + PossiblyDetermineFallbackChromeChannel(argv[0]); + #endif + +@@ -141,7 +141,7 @@ int ChromeMain(int argc, const char** argv) { SetUpBundleOverrides(); #endif @@ -24,8 +33,8 @@ Index: chrome/app/chrome_main.cc AppendExtraArgumentsToCommandLine(command_line); #endif -@@ -164,7 +164,7 @@ int ChromeMain(int argc, const char** argv) { - headless::SetUpCommandLine(command_line); +@@ -170,7 +170,7 @@ int ChromeMain(int argc, const char** argv) { + headless_mode_handle = headless::InitHeadlessMode(); } else { #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ - BUILDFLAG(IS_WIN) diff --git a/www/chromium/patches/patch-chrome_app_chrome_main_delegate_cc b/www/chromium/patches/patch-chrome_app_chrome_main_delegate_cc index 23b8f7892..775bf62b0 100644 --- a/www/chromium/patches/patch-chrome_app_chrome_main_delegate_cc +++ b/www/chromium/patches/patch-chrome_app_chrome_main_delegate_cc @@ -1,7 +1,7 @@ Index: chrome/app/chrome_main_delegate.cc --- chrome/app/chrome_main_delegate.cc.orig +++ chrome/app/chrome_main_delegate.cc -@@ -143,7 +143,7 @@ +@@ -146,7 +146,7 @@ #include "components/about_ui/credit_utils.h" #endif @@ -10,7 +10,7 @@ Index: chrome/app/chrome_main_delegate.cc #include "components/nacl/common/nacl_paths.h" #include "components/nacl/zygote/nacl_fork_delegate_linux.h" #endif -@@ -186,16 +186,16 @@ +@@ -189,20 +189,20 @@ #include "v8/include/v8.h" #endif @@ -19,6 +19,11 @@ Index: chrome/app/chrome_main_delegate.cc #include "base/environment.h" #endif +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include "base/nix/scoped_xdg_activation_token_injector.h" + #endif + -#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" @@ -30,7 +35,16 @@ Index: chrome/app/chrome_main_delegate.cc #include "chrome/browser/policy/policy_path_parser.h" #include "components/crash/core/app/crashpad.h" #endif -@@ -334,7 +334,7 @@ void AdjustLinuxOOMScore(const std::string& process_ty +@@ -249,7 +249,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) +@@ -349,7 +349,7 @@ void AdjustLinuxOOMScore(const std::string& process_ty // and resources loaded. bool SubprocessNeedsResourceBundle(const std::string& process_type) { return @@ -39,7 +53,7 @@ Index: chrome/app/chrome_main_delegate.cc // The zygote process opens the resources for the renderers. process_type == switches::kZygoteProcess || #endif -@@ -419,7 +419,7 @@ bool HandleVersionSwitches(const base::CommandLine& co +@@ -434,7 +434,7 @@ bool HandleVersionSwitches(const base::CommandLine& co // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. @@ -48,7 +62,25 @@ Index: chrome/app/chrome_main_delegate.cc // 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) || -@@ -546,7 +546,7 @@ void InitializeUserDataDir(base::CommandLine* command_ +@@ -480,7 +480,7 @@ void SetCrashpadUploadConsentPostLogin() { + } + #endif // BUILDFLAG(IS_CHROMEOS_LACROS) + +-#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_ANDROID) ++#if !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_BSD) + void SIGTERMProfilingShutdown(int signal) { + content::Profiling::Stop(); + struct sigaction sigact; +@@ -562,7 +562,7 @@ std::optional AcquireProcessSingleton( + // process can be exited. + ChromeProcessSingleton::CreateInstance(user_data_dir); + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + // 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_ std::string process_type = command_line->GetSwitchValueASCII(switches::kProcessType); @@ -57,7 +89,7 @@ Index: chrome/app/chrome_main_delegate.cc // 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. -@@ -636,7 +636,7 @@ void RecordMainStartupMetrics(base::TimeTicks applicat +@@ -773,7 +773,7 @@ void RecordMainStartupMetrics(base::TimeTicks applicat #endif #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ @@ -66,16 +98,34 @@ Index: chrome/app/chrome_main_delegate.cc // Record the startup process creation time on supported platforms. On Android // this is recorded in ChromeMainDelegateAndroid. startup_metric_utils::GetCommon().RecordStartupProcessCreationTime( -@@ -994,7 +994,7 @@ void ChromeMainDelegate::CommonEarlyInitialization(Inv - base::InitializeCpuReductionExperiment(); - base::sequence_manager::internal::SequenceManagerImpl::InitializeFeatures(); - base::sequence_manager::internal::ThreadController::InitializeFeatures(); +@@ -964,7 +964,7 @@ std::optional 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) + ChromeBrowserMainExtraPartsLinux::InitOzonePlatformHint(); + #endif + ui::OzonePlatform::PreEarlyInitialization(); +@@ -1162,7 +1162,7 @@ void ChromeMainDelegate::CommonEarlyInitialization(Inv + chrome::GetChannel() == version_info::Channel::DEV; + const bool emit_crashes = + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ +- BUILDFLAG(IS_WIN) ++ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + 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(); -@@ -1141,7 +1141,7 @@ absl::optional ChromeMainDelegate::BasicStartupCo +@@ -1330,7 +1330,7 @@ std::optional ChromeMainDelegate::BasicStartupCom // TODO(crbug.com/1052397): Revisit the macro expression once build flag // switch of lacros-chrome is complete. @@ -84,7 +134,7 @@ Index: chrome/app/chrome_main_delegate.cc // This will directly exit if the user asked for help. HandleHelpSwitches(command_line); #endif -@@ -1171,7 +1171,7 @@ absl::optional ChromeMainDelegate::BasicStartupCo +@@ -1360,7 +1360,7 @@ std::optional ChromeMainDelegate::BasicStartupCom #if BUILDFLAG(IS_CHROMEOS) chromeos::dbus_paths::RegisterPathProvider(); #endif @@ -93,7 +143,7 @@ Index: chrome/app/chrome_main_delegate.cc nacl::RegisterPathProvider(); #endif -@@ -1561,7 +1561,7 @@ void ChromeMainDelegate::PreSandboxStartup() { +@@ -1757,7 +1757,7 @@ void ChromeMainDelegate::PreSandboxStartup() { CHECK(!loaded_locale.empty()) << "Locale could not be found for " << locale; } @@ -102,7 +152,7 @@ Index: chrome/app/chrome_main_delegate.cc // Zygote needs to call InitCrashReporter() in RunZygote(). if (process_type != switches::kZygoteProcess) { if (command_line.HasSwitch(switches::kPreCrashpadCrashTest)) { -@@ -1663,7 +1663,7 @@ absl::variant Chrome +@@ -1858,7 +1858,7 @@ absl::variant Chrome // This entry is not needed on Linux, where the NaCl loader // process is launched via nacl_helper instead. diff --git a/www/chromium/patches/patch-chrome_app_chromium_strings_grd b/www/chromium/patches/patch-chrome_app_chromium_strings_grd deleted file mode 100644 index 36f004a6a..000000000 --- a/www/chromium/patches/patch-chrome_app_chromium_strings_grd +++ /dev/null @@ -1,39 +0,0 @@ -Index: chrome/app/chromium_strings.grd ---- chrome/app/chromium_strings.grd.orig -+++ chrome/app/chromium_strings.grd -@@ -315,7 +315,7 @@ If you update this file, be sure also to update google - Welcome to Chromium; new browser window opened - - -- -+ - - Welcome to Chromium - -@@ -465,7 +465,7 @@ If you update this file, be sure also to update google - To get future Chromium updates, you'll need Windows 10 or later. This computer is using Windows 8.1. - - -- -+ - - Chromium may not function correctly because it is no longer supported on this Linux distribution - -@@ -870,7 +870,7 @@ Permissions you've already given to websites and apps - - - -- -+ - - Not used in Chromium. Placeholder to keep resource maps in sync. - -@@ -1255,7 +1255,7 @@ Permissions you've already given to websites and apps - - - -- -+ - - Not used in Chromium. Placeholder to keep resource maps in sync. - diff --git a/www/chromium/patches/patch-chrome_app_generated_resources_grd b/www/chromium/patches/patch-chrome_app_generated_resources_grd deleted file mode 100644 index cb5089a73..000000000 --- a/www/chromium/patches/patch-chrome_app_generated_resources_grd +++ /dev/null @@ -1,93 +0,0 @@ -Index: chrome/app/generated_resources.grd ---- chrome/app/generated_resources.grd.orig -+++ chrome/app/generated_resources.grd -@@ -2,7 +2,7 @@ - - -@@ -3601,7 +3601,7 @@ are declared in tools/grit/grit_rule.gni. - - - -- -+ - - Device Credentials - -@@ -5432,7 +5432,7 @@ are declared in tools/grit/grit_rule.gni. - Read information about your browser, OS, device, installed software, registry values and files - - -- -+ - - Read information about your browser, OS, device, installed software and files - -@@ -6145,7 +6145,7 @@ Keep your key file in a safe place. You will need it t - Old versions of Chrome Apps won't open on Windows devices after December 2022. Contact your administrator to update to a new version or remove this app. - - -- -+ - - Old versions of Chrome Apps won't open on Linux devices after December 2022. Contact your administrator to update to a new version or remove this app. - -@@ -6191,7 +6191,7 @@ Keep your key file in a safe place. You will need it t - Old versions of Chrome apps won't open on Windows devices after December 2022. You can check if there's a new version available. - - -- -+ - - Old versions of Chrome apps won't open on Linux devices after December 2022. You can check if there's a new version available. - -@@ -10396,7 +10396,7 @@ Check your passwords anytime in - Update - -- -+ - - Finish update - -@@ -10743,7 +10743,7 @@ Check your passwords anytime in -+ - - Use system title bar and borders - -@@ -11728,7 +11728,7 @@ Check your passwords anytime in -+ - - Share information about your device? - -@@ -12136,7 +12136,7 @@ Please help our engineers fix this problem. Tell us wh - Set as default - - -- -+ - - Minimize - -@@ -14346,7 +14346,7 @@ Please help our engineers fix this problem. Tell us wh - Open Anyway - - -- -+ - - System Signals Utilities - diff --git a/www/chromium/patches/patch-chrome_app_google_chrome_strings_grd b/www/chromium/patches/patch-chrome_app_google_chrome_strings_grd deleted file mode 100644 index 806ccaaf7..000000000 --- a/www/chromium/patches/patch-chrome_app_google_chrome_strings_grd +++ /dev/null @@ -1,39 +0,0 @@ -Index: chrome/app/google_chrome_strings.grd ---- chrome/app/google_chrome_strings.grd.orig -+++ chrome/app/google_chrome_strings.grd -@@ -301,7 +301,7 @@ chromium_strings.grd. --> - Welcome to Chrome; new browser window opened - - -- -+ - - Welcome to Google Chrome - -@@ -453,7 +453,7 @@ chromium_strings.grd. --> - To get future Google Chrome updates, you'll need Windows 10 or later. This computer is using Windows 8.1. - - -- -+ - - Google Chrome may not function correctly because it is no longer supported on this Linux distribution - -@@ -855,7 +855,7 @@ Permissions you've already given to websites and apps - - - -- -+ - - - Relaunch to Update - Your tabs will reopen -@@ -1278,7 +1278,7 @@ Permissions you've already given to websites and apps - - - -- -+ - - Relaunch to finish Chrome update - diff --git a/www/chromium/patches/patch-chrome_app_profiles_strings_grdp b/www/chromium/patches/patch-chrome_app_profiles_strings_grdp deleted file mode 100644 index 54dd7720b..000000000 --- a/www/chromium/patches/patch-chrome_app_profiles_strings_grdp +++ /dev/null @@ -1,12 +0,0 @@ -Index: chrome/app/profiles_strings.grdp ---- chrome/app/profiles_strings.grdp.orig -+++ chrome/app/profiles_strings.grdp -@@ -54,7 +54,7 @@ - Add Profile... - - -- -+ - - Add profile... - diff --git a/www/chromium/patches/patch-chrome_app_settings_strings_grdp b/www/chromium/patches/patch-chrome_app_settings_strings_grdp deleted file mode 100644 index 020961641..000000000 --- a/www/chromium/patches/patch-chrome_app_settings_strings_grdp +++ /dev/null @@ -1,36 +0,0 @@ -Index: chrome/app/settings_strings.grdp ---- chrome/app/settings_strings.grdp.orig -+++ chrome/app/settings_strings.grdp -@@ -183,12 +183,12 @@ - Manage accessibility features - - -- -+ - - Swipe between pages - - -- -+ - - Navigate back and forward with swipe gesture - -@@ -222,7 +222,7 @@ - Theme - - -- -+ - - GTK - -@@ -242,7 +242,7 @@ - Use Classic - - -- -+ - - Reset to default - diff --git a/www/chromium/patches/patch-chrome_app_theme_chrome_unscaled_resources_grd b/www/chromium/patches/patch-chrome_app_theme_chrome_unscaled_resources_grd deleted file mode 100644 index ca088fad8..000000000 --- a/www/chromium/patches/patch-chrome_app_theme_chrome_unscaled_resources_grd +++ /dev/null @@ -1,30 +0,0 @@ -Index: chrome/app/theme/chrome_unscaled_resources.grd ---- chrome/app/theme/chrome_unscaled_resources.grd.orig -+++ chrome/app/theme/chrome_unscaled_resources.grd -@@ -16,7 +16,7 @@ - - - -- -+ - - - -@@ -61,7 +61,7 @@ - - - -- -+ - - - -@@ -75,7 +75,7 @@ - - - -- -+ - - - diff --git a/www/chromium/patches/patch-chrome_app_theme_theme_resources_grd b/www/chromium/patches/patch-chrome_app_theme_theme_resources_grd deleted file mode 100644 index 832084ba7..000000000 --- a/www/chromium/patches/patch-chrome_app_theme_theme_resources_grd +++ /dev/null @@ -1,60 +0,0 @@ -Index: chrome/app/theme/theme_resources.grd ---- chrome/app/theme/theme_resources.grd.orig -+++ chrome/app/theme/theme_resources.grd -@@ -146,14 +146,14 @@ - - - -- -+ - - - - - - -- -+ - - - -@@ -161,7 +161,7 @@ - - - -- -+ - - - -@@ -173,7 +173,7 @@ - - - -- -+ - - - -@@ -182,10 +182,10 @@ - - - -- -+ - - -- -+ - - - -@@ -194,7 +194,7 @@ - - - -- -+ - - - diff --git a/www/chromium/patches/patch-chrome_browser_BUILD_gn b/www/chromium/patches/patch-chrome_browser_BUILD_gn index 478001410..515a3d109 100644 --- a/www/chromium/patches/patch-chrome_browser_BUILD_gn +++ b/www/chromium/patches/patch-chrome_browser_BUILD_gn @@ -1,7 +1,7 @@ Index: chrome/browser/BUILD.gn --- chrome/browser/BUILD.gn.orig +++ chrome/browser/BUILD.gn -@@ -6390,6 +6390,13 @@ static_library("browser") { +@@ -6554,6 +6554,13 @@ static_library("browser") { } } diff --git a/www/chromium/patches/patch-chrome_browser_about_flags_cc b/www/chromium/patches/patch-chrome_browser_about_flags_cc index afe79a5c8..e8bf9b250 100644 --- a/www/chromium/patches/patch-chrome_browser_about_flags_cc +++ b/www/chromium/patches/patch-chrome_browser_about_flags_cc @@ -1,7 +1,7 @@ Index: chrome/browser/about_flags.cc --- chrome/browser/about_flags.cc.orig +++ chrome/browser/about_flags.cc -@@ -225,7 +225,7 @@ +@@ -234,7 +234,7 @@ #include "ui/ui_features.h" #include "url/url_features.h" @@ -10,25 +10,25 @@ Index: chrome/browser/about_flags.cc #include "base/allocator/buildflags.h" #endif -@@ -324,7 +324,7 @@ +@@ -322,7 +322,7 @@ #include "device/vr/public/cpp/features.h" #endif -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) - #include "ui/ozone/buildflags.h" #include "ui/ozone/public/ozone_switches.h" #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) -@@ -338,7 +338,7 @@ + +@@ -331,7 +331,7 @@ #include "chrome/browser/win/titlebar_config.h" #endif -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) #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) - -@@ -438,7 +438,7 @@ const FeatureEntry::FeatureVariation kDXGIWaitableSwap +@@ -489,7 +489,7 @@ const FeatureEntry::FeatureVariation kDXGIWaitableSwap {"Max 3 Frames", &kDXGIWaitableSwapChain3Frames, 1, nullptr}}; #endif @@ -37,23 +37,52 @@ Index: chrome/browser/about_flags.cc const FeatureEntry::Choice kOzonePlatformHintRuntimeChoices[] = { {flag_descriptions::kOzonePlatformHintChoiceDefault, "", ""}, {flag_descriptions::kOzonePlatformHintChoiceAuto, -@@ -1475,7 +1475,7 @@ const FeatureEntry::FeatureVariation kChromeRefresh202 - std::size(kChromeRefresh2023Level1), nullptr}}; +@@ -1384,7 +1384,7 @@ const FeatureEntry::FeatureVariation kChromeRefresh202 + nullptr}}; #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 kShortcutBoostSearchAndUrl1414[] = { - {"ShortcutBoostSearchScore", "1414"}, - {"ShortcutBoostUrlScore", "1414"}}; -@@ -5039,13 +5039,13 @@ const FeatureEntry kFeatureEntries[] = { + const FeatureEntry::FeatureParam kShortcutBoostSingleUrl[] = { + {"ShortcutBoostSearchScore", "0"}, + {"ShortcutBoostNonTopHitThreshold", "0"}, +@@ -3704,7 +3704,7 @@ const flags_ui::FeatureEntry::FeatureVariation + std::size(kParcelTrackingTestDataOutForDelivery), nullptr}, + }; + +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + const flags_ui::FeatureEntry::FeatureParam + kDesktopPWAsLinkCapturingDefaultOn[] = {{"on_by_default", "true"}}; + const flags_ui::FeatureEntry::FeatureParam +@@ -4495,7 +4495,7 @@ const FeatureEntry kFeatureEntries[] = { + }, + #endif // BUILDFLAG(IS_ANDROID) + +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + { + "fluent-overlay-scrollbars", + flag_descriptions::kFluentOverlayScrollbarsName, +@@ -4936,7 +4936,7 @@ const FeatureEntry kFeatureEntries[] = { + FEATURE_VALUE_TYPE(features::kWebAppUniversalInstall)}, + #endif // !BUILDFLAG(IS_ANDROID) + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_FUCHSIA) ++ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) + {"shortcuts-not-apps", flag_descriptions::kShortcutsNotAppsName, + flag_descriptions::kShortcutsNotAppsDescription, + kOsMac | kOsWin | kOsLinux | kOsFuchsia, +@@ -5061,7 +5061,7 @@ const FeatureEntry kFeatureEntries[] = { FEATURE_VALUE_TYPE(features::kWebShare)}, #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - {"ozone-platform-hint", flag_descriptions::kOzonePlatformHintName, - flag_descriptions::kOzonePlatformHintDescription, kOsLinux, + {"pulseaudio-loopback-for-cast", + flag_descriptions::kPulseaudioLoopbackForCastName, + flag_descriptions::kPulseaudioLoopbackForCastDescription, kOsLinux, +@@ -5077,7 +5077,7 @@ const FeatureEntry kFeatureEntries[] = { MULTI_VALUE_TYPE(kOzonePlatformHintRuntimeChoices)}, #endif // BUILDFLAG(IS_LINUX) @@ -62,25 +91,16 @@ Index: chrome/browser/about_flags.cc {"skip-undecryptable-passwords", flag_descriptions::kSkipUndecryptablePasswordsName, flag_descriptions::kSkipUndecryptablePasswordsDescription, -@@ -5347,7 +5347,7 @@ const FeatureEntry kFeatureEntries[] = { - FEATURE_VALUE_TYPE(feed::kFeedSportsCard)}, - #endif // BUILDFLAG(IS_ANDROID) - #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) - {"following-feed-sidepanel", flag_descriptions::kFollowingFeedSidepanelName, - flag_descriptions::kFollowingFeedSidepanelDescription, kOsDesktop, - FEATURE_VALUE_TYPE(feed::kWebUiFeed)}, -@@ -6025,7 +6025,7 @@ const FeatureEntry kFeatureEntries[] = { - kOsAll, FEATURE_VALUE_TYPE(omnibox::kUseExistingAutocompleteClient)}, +@@ -5981,7 +5981,7 @@ const FeatureEntry kFeatureEntries[] = { + FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)}, #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) - {"omnibox-actions-ui-simplification", - flag_descriptions::kOmniboxActionsUISimplificationName, - flag_descriptions::kOmniboxActionsUISimplificationDescription, kOsDesktop, -@@ -6853,7 +6853,7 @@ const FeatureEntry kFeatureEntries[] = { + {"omnibox-domain-suggestions", + flag_descriptions::kOmniboxDomainSuggestionsName, + flag_descriptions::kOmniboxDomainSuggestionsDescription, kOsDesktop, +@@ -6852,7 +6852,7 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kParallelDownloadingDescription, kOsAll, FEATURE_VALUE_TYPE(download::features::kParallelDownloading)}, @@ -88,27 +108,27 @@ Index: chrome/browser/about_flags.cc +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) {"enable-async-dns", flag_descriptions::kAsyncDnsName, flag_descriptions::kAsyncDnsDescription, kOsWin | kOsLinux, - FEATURE_VALUE_TYPE(features::kAsyncDns)}, -@@ -7848,7 +7848,7 @@ const FeatureEntry kFeatureEntries[] = { - FEATURE_VALUE_TYPE(supervised_user::kEnableProtoApiForClassifyUrl)}, - #endif // BUILDFLAG(ENABLE_SUPERVISED_USERS) + FEATURE_VALUE_TYPE(net::features::kAsyncDns)}, +@@ -7857,7 +7857,7 @@ const FeatureEntry kFeatureEntries[] = { + FEATURE_VALUE_TYPE(ash::features::kPrivacyIndicators)}, + #endif // BUILDFLAG(IS_CHROMEOS_ASH) -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) {"enable-network-service-sandbox", flag_descriptions::kEnableNetworkServiceSandboxName, flag_descriptions::kEnableNetworkServiceSandboxDescription, -@@ -8553,7 +8553,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -7881,7 +7881,7 @@ const FeatureEntry kFeatureEntries[] = { + FEATURE_VALUE_TYPE(media::kV4L2FlatStatefulVideoDecoder)}, #endif - #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ -- BUILDFLAG(IS_FUCHSIA) -+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) - {"quick-commands", flag_descriptions::kQuickCommandsName, - flag_descriptions::kQuickCommandsDescription, kOsDesktop, - FEATURE_VALUE_TYPE(features::kQuickCommands)}, -@@ -8844,7 +8844,7 @@ const FeatureEntry kFeatureEntries[] = { - FEATURE_VALUE_TYPE(ash::features::kWallpaperRefreshRevamp)}, +-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) ++#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + {"enable-family-link-extensions-permissions", + flag_descriptions:: + kEnableExtensionsPermissionsForSupervisedUsersOnDesktopName, +@@ -8733,7 +8733,7 @@ const FeatureEntry kFeatureEntries[] = { + FEATURE_VALUE_TYPE(ash::features::kWallpaperPerDesk)}, #endif // BUILDFLAG(IS_CHROMEOS_ASH) -#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) @@ -116,7 +136,7 @@ Index: chrome/browser/about_flags.cc {"enable-get-all-screens-media", flag_descriptions::kGetAllScreensMediaName, flag_descriptions::kGetAllScreensMediaDescription, kOsCrOS | kOsLacros | kOsLinux, -@@ -8900,7 +8900,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -8775,7 +8775,7 @@ const FeatureEntry kFeatureEntries[] = { #if BUILDFLAG(IS_WIN) || \ (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \ @@ -125,48 +145,66 @@ Index: chrome/browser/about_flags.cc { "ui-debug-tools", flag_descriptions::kUIDebugToolsName, -@@ -9443,7 +9443,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -9044,7 +9044,7 @@ const FeatureEntry kFeatureEntries[] = { + #endif + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS_ASH) ++ BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) + {"policy-indication-for-managed-default-search", + flag_descriptions::kPolicyIndicationForManagedDefaultSearchName, + flag_descriptions::kPolicyIndicationForManagedDefaultSearchDescription, +@@ -9340,7 +9340,7 @@ const FeatureEntry kFeatureEntries[] = { #endif #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \ -- BUILDFLAG(IS_CHROMEOS_ASH) -+ BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) - {"document-picture-in-picture-api", - flag_descriptions::kDocumentPictureInPictureApiName, - flag_descriptions::kDocumentPictureInPictureApiDescription, -@@ -10060,7 +10060,7 @@ const FeatureEntry kFeatureEntries[] = { - flag_descriptions::kWebUIOmniboxPopupDescription, kOsDesktop, - FEATURE_VALUE_TYPE(omnibox::kWebUIOmniboxPopup)}, - --#if !BUILDFLAG(IS_LINUX) -+#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) - {"webui-system-font", flag_descriptions::kWebUiSystemFontName, - flag_descriptions::kWebUiSystemFontDescription, kOsAll, - FEATURE_VALUE_TYPE(features::kWebUiSystemFont)}, -@@ -10263,7 +10263,7 @@ const FeatureEntry kFeatureEntries[] = { - #endif - - #if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) || \ -- BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) -+ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) - {"data-retention-policies-disable-sync-types-needed", - flag_descriptions::kDataRetentionPoliciesDisableSyncTypesNeededName, - flag_descriptions::kDataRetentionPoliciesDisableSyncTypesNeededDescription, -@@ -10657,7 +10657,7 @@ const FeatureEntry kFeatureEntries[] = { +- BUILDFLAG(IS_CHROMEOS) ++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + {"media-session-enter-picture-in-picture", + flag_descriptions::kMediaSessionEnterPictureInPictureName, + flag_descriptions::kMediaSessionEnterPictureInPictureDescription, +@@ -10280,7 +10280,7 @@ const FeatureEntry kFeatureEntries[] = { + kOsDesktop | kOsAndroid, FEATURE_VALUE_TYPE(features::kProcessPerSiteUpToMainFrameThreshold)}, - #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ -- BUILDFLAG(IS_FUCHSIA) -+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) - {"camera-mic-preview", flag_descriptions::kCameraMicPreviewName, - flag_descriptions::kCameraMicPreviewDescription, - static_cast(kOsMac | kOsWin | kOsLinux | kOsFuchsia), -@@ -10834,7 +10834,7 @@ const FeatureEntry kFeatureEntries[] = { - flag_descriptions::kDigestAuthEnableSecureAlgorithmsDescription, kOsAll, - FEATURE_VALUE_TYPE(net::features::kDigestAuthEnableSecureAlgorithms)}, +-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + {"camera-mic-effects", flag_descriptions::kCameraMicEffectsName, + flag_descriptions::kCameraMicEffectsDescription, + static_cast(kOsMac | kOsWin | kOsLinux), +@@ -10318,7 +10318,7 @@ const FeatureEntry kFeatureEntries[] = { + FEATURE_VALUE_TYPE(features::kSiteInstanceGroupsForDataUrls)}, + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS) ++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + {"site-search-settings-policy", + flag_descriptions::kSiteSearchSettingsPolicyName, + flag_descriptions::kSiteSearchSettingsPolicyDescription, kOsAll, +@@ -10452,7 +10452,7 @@ const FeatureEntry kFeatureEntries[] = { + password_manager::features::kFillingAcrossAffiliatedWebsitesAndroid)}, + #endif -#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, +@@ -10804,7 +10804,7 @@ const FeatureEntry kFeatureEntries[] = { + trusted_vault::kTrustedVaultFrequentDegradedRecoverabilityPolling)}, + #endif + +-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + {"restart-to-gain-access-to-keychain", + flag_descriptions::kRestartToGainAccessToKeychainName, + flag_descriptions::kRestartToGainAccessToKeychainDescription, +@@ -11078,7 +11078,7 @@ const FeatureEntry kFeatureEntries[] = { + + // Controls the view mode for (history) sync screen. + #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || \ +- BUILDFLAG(IS_ANDROID) ++ BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) + {"minor-mode-restrictions-for-history-sync-opt-in", + flag_descriptions::kMinorModeRestrictionsForHistorySyncOptInName, + flag_descriptions::kMinorModeRestrictionsForHistorySyncOptInDescription, diff --git a/www/chromium/patches/patch-chrome_browser_accessibility_pdf_ocr_controller_cc b/www/chromium/patches/patch-chrome_browser_accessibility_pdf_ocr_controller_cc new file mode 100644 index 000000000..bd318073d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_accessibility_pdf_ocr_controller_cc @@ -0,0 +1,12 @@ +Index: chrome/browser/accessibility/pdf_ocr_controller.cc +--- chrome/browser/accessibility/pdf_ocr_controller.cc.orig ++++ 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 + // `AuraLinuxAccessibilityInProcessBrowserTest::IndexInParentWithModal` and + // flaky fail when running Chrome. +-#if !BUILDFLAG(IS_LINUX) ++#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) + const Browser* browser = BrowserList::GetInstance()->GetLastActive(); + if (!browser) { + VLOG(2) << "Browser is not ready to announce"; diff --git a/www/chromium/patches/patch-chrome_browser_after_startup_task_utils_cc b/www/chromium/patches/patch-chrome_browser_after_startup_task_utils_cc index 3d1651384..9c1c09007 100644 --- a/www/chromium/patches/patch-chrome_browser_after_startup_task_utils_cc +++ b/www/chromium/patches/patch-chrome_browser_after_startup_task_utils_cc @@ -1,9 +1,9 @@ Index: chrome/browser/after_startup_task_utils.cc --- chrome/browser/after_startup_task_utils.cc.orig +++ chrome/browser/after_startup_task_utils.cc -@@ -107,7 +107,7 @@ void SetBrowserStartupIsComplete() { - TRACE_EVENT0("startup", "SetBrowserStartupIsComplete"); - g_startup_complete_flag.Get().Set(); +@@ -115,7 +115,7 @@ void SetBrowserStartupIsComplete() { + TRACE_EVENT_SCOPE_GLOBAL, "BrowserCount", browser_count); + GetStartupCompleteFlag().Set(); #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS) + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) diff --git a/www/chromium/patches/patch-chrome_browser_apps_app_service_publishers_extension_apps_cc b/www/chromium/patches/patch-chrome_browser_apps_app_service_publishers_extension_apps_cc index f6c358c1a..21b480ab4 100644 --- a/www/chromium/patches/patch-chrome_browser_apps_app_service_publishers_extension_apps_cc +++ b/www/chromium/patches/patch-chrome_browser_apps_app_service_publishers_extension_apps_cc @@ -1,12 +1,12 @@ Index: chrome/browser/apps/app_service/publishers/extension_apps.cc --- chrome/browser/apps/app_service/publishers/extension_apps.cc.orig +++ chrome/browser/apps/app_service/publishers/extension_apps.cc -@@ -25,7 +25,7 @@ ExtensionApps::~ExtensionApps() = default; +@@ -23,7 +23,7 @@ ExtensionApps::ExtensionApps(AppServiceProxy* proxy) + ExtensionApps::~ExtensionApps() = default; bool ExtensionApps::Accepts(const extensions::Extension* extension) { - #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ -- BUILDFLAG(IS_FUCHSIA) -+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) if (extensions::IsExtensionUnsupportedDeprecatedApp(profile(), extension->id())) { return false; diff --git a/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_cc b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_cc index 71481fcb9..6d978fc42 100644 --- a/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_cc +++ b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_cc @@ -1,21 +1,66 @@ Index: chrome/browser/apps/platform_apps/platform_app_launch.cc --- chrome/browser/apps/platform_apps/platform_app_launch.cc.orig +++ chrome/browser/apps/platform_apps/platform_app_launch.cc -@@ -20,7 +20,7 @@ +@@ -19,7 +19,7 @@ + #include "extensions/common/constants.h" #include "extensions/common/extension.h" - #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ -- BUILDFLAG(IS_FUCHSIA) -+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_navigator.h" #include "chrome/browser/ui/browser_window.h" -@@ -138,7 +138,7 @@ bool OpenExtensionApplicationTab(Profile* profile, con +@@ -86,7 +86,7 @@ bool OpenExtensionApplicationWindow(Profile* profile, + if (launch_container == LaunchContainer::kLaunchContainerTab) + return false; + +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (OpenDeprecatedApplicationPrompt(profile, app_id)) { + return false; + } +@@ -118,7 +118,7 @@ content::WebContents* OpenExtensionApplicationTab(Prof + if (launch_container != apps::LaunchContainer::kLaunchContainerTab) + return nullptr; + +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (OpenDeprecatedApplicationPrompt(profile, app_id)) { + return nullptr; + } +@@ -134,7 +134,7 @@ content::WebContents* OpenExtensionApplicationTab(Prof + return app_tab; } - #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ -- BUILDFLAG(IS_FUCHSIA) -+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) bool OpenDeprecatedApplicationPrompt(Profile* profile, const std::string& app_id) { if (!extensions::IsExtensionUnsupportedDeprecatedApp(profile, app_id)) +@@ -170,7 +170,7 @@ bool OpenExtensionApplicationWithReenablePrompt( + if (!GetPlatformApp(profile, app_id)) + return false; + +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (OpenDeprecatedApplicationPrompt(profile, app_id)) { + return false; + } +@@ -192,7 +192,7 @@ content::WebContents* OpenExtensionAppShortcutWindow(P + ->enabled_extensions() + .GetAppByURL(url); + if (app) { +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (OpenDeprecatedApplicationPrompt(profile, app->id())) { + return nullptr; + } +@@ -215,7 +215,7 @@ void RecordExtensionAppLaunchOnTabRestored(Profile* pr + if (!extension) + return; + +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (OpenDeprecatedApplicationPrompt(profile, extension->id())) { + return; + } diff --git a/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_h b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_h index 326467677..35644714b 100644 --- a/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_h +++ b/www/chromium/patches/patch-chrome_browser_apps_platform_apps_platform_app_launch_h @@ -1,8 +1,8 @@ Index: chrome/browser/apps/platform_apps/platform_app_launch.h --- chrome/browser/apps/platform_apps/platform_app_launch.h.orig +++ chrome/browser/apps/platform_apps/platform_app_launch.h -@@ -37,7 +37,7 @@ bool OpenExtensionApplicationWindow(Profile* profile, - bool OpenExtensionApplicationTab(Profile* profile, const std::string& app_id); +@@ -39,7 +39,7 @@ content::WebContents* OpenExtensionApplicationTab(Prof + const std::string& app_id); #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_FUCHSIA) diff --git a/www/chromium/patches/patch-chrome_browser_background_background_mode_manager_cc b/www/chromium/patches/patch-chrome_browser_background_background_mode_manager_cc index 717ff3112..944f8bc72 100644 --- a/www/chromium/patches/patch-chrome_browser_background_background_mode_manager_cc +++ b/www/chromium/patches/patch-chrome_browser_background_background_mode_manager_cc @@ -1,7 +1,7 @@ Index: chrome/browser/background/background_mode_manager.cc --- chrome/browser/background/background_mode_manager.cc.orig +++ chrome/browser/background/background_mode_manager.cc -@@ -870,7 +870,7 @@ gfx::ImageSkia GetStatusTrayIcon() { +@@ -872,7 +872,7 @@ gfx::ImageSkia GetStatusTrayIcon() { return gfx::ImageSkia(); return family->CreateExact(size).AsImageSkia(); diff --git a/www/chromium/patches/patch-chrome_browser_background_background_mode_optimizer_cc b/www/chromium/patches/patch-chrome_browser_background_background_mode_optimizer_cc index feb221312..c63fe044f 100644 --- a/www/chromium/patches/patch-chrome_browser_background_background_mode_optimizer_cc +++ b/www/chromium/patches/patch-chrome_browser_background_background_mode_optimizer_cc @@ -8,5 +8,5 @@ Index: chrome/browser/background/background_mode_optimizer.cc -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) if (base::FeatureList::IsEnabled(features::kBackgroundModeAllowRestart)) { + // Private ctor. return base::WrapUnique(new BackgroundModeOptimizer()); - } diff --git a/www/chromium/patches/patch-chrome_browser_browser_features_cc b/www/chromium/patches/patch-chrome_browser_browser_features_cc index 073fcd851..02201c726 100644 --- a/www/chromium/patches/patch-chrome_browser_browser_features_cc +++ b/www/chromium/patches/patch-chrome_browser_browser_features_cc @@ -1,7 +1,7 @@ Index: chrome/browser/browser_features.cc --- chrome/browser/browser_features.cc.orig +++ chrome/browser/browser_features.cc -@@ -28,7 +28,7 @@ BASE_FEATURE(kClosedTabCache, +@@ -76,7 +76,7 @@ const base::FeatureParam kSpareRendererWarmupDel BASE_FEATURE(kDestroyProfileOnBrowserClose, "DestroyProfileOnBrowserClose", #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \ @@ -10,3 +10,12 @@ Index: chrome/browser/browser_features.cc base::FEATURE_ENABLED_BY_DEFAULT); #else base::FEATURE_DISABLED_BY_DEFAULT); +@@ -337,7 +337,7 @@ BASE_FEATURE(kSandboxExternalProtocolBlockedWarning, + BASE_FEATURE(kSupportSearchSuggestionForPrerender2, + "SupportSearchSuggestionForPrerender2", + #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS) || \ +- BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) ++ BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + base::FEATURE_ENABLED_BY_DEFAULT); + #else + base::FEATURE_DISABLED_BY_DEFAULT); diff --git a/www/chromium/patches/patch-chrome_browser_browser_process_impl_cc b/www/chromium/patches/patch-chrome_browser_browser_process_impl_cc index c1bcea44d..69db9c41c 100644 --- a/www/chromium/patches/patch-chrome_browser_browser_process_impl_cc +++ b/www/chromium/patches/patch-chrome_browser_browser_process_impl_cc @@ -1,8 +1,8 @@ Index: chrome/browser/browser_process_impl.cc --- chrome/browser/browser_process_impl.cc.orig +++ chrome/browser/browser_process_impl.cc -@@ -215,7 +215,7 @@ - #include "components/enterprise/browser/controller/chrome_browser_cloud_management_controller.h" +@@ -220,7 +220,7 @@ + #include "chrome/browser/ui/profiles/profile_picker.h" #endif -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) @@ -10,7 +10,7 @@ Index: chrome/browser/browser_process_impl.cc #include "chrome/browser/error_reporting/chrome_js_error_report_processor.h" // nogncheck #endif -@@ -1206,7 +1206,7 @@ void BrowserProcessImpl::PreMainMessageLoopRun() { +@@ -1253,7 +1253,7 @@ void BrowserProcessImpl::PreMainMessageLoopRun() { ApplyMetricsReportingPolicy(); @@ -19,7 +19,7 @@ Index: chrome/browser/browser_process_impl.cc ChromeJsErrorReportProcessor::Create(); #endif -@@ -1460,7 +1460,7 @@ void BrowserProcessImpl::Unpin() { +@@ -1533,7 +1533,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/chromium/patches/patch-chrome_browser_browser_process_impl_h b/www/chromium/patches/patch-chrome_browser_browser_process_impl_h index ed26c43d1..2908544bb 100644 --- a/www/chromium/patches/patch-chrome_browser_browser_process_impl_h +++ b/www/chromium/patches/patch-chrome_browser_browser_process_impl_h @@ -1,7 +1,7 @@ Index: chrome/browser/browser_process_impl.h --- chrome/browser/browser_process_impl.h.orig +++ chrome/browser/browser_process_impl.h -@@ -382,7 +382,7 @@ class BrowserProcessImpl : public BrowserProcess, +@@ -389,7 +389,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/chromium/patches/patch-chrome_browser_chrome_browser_interface_binders_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_interface_binders_cc index 10f7031ca..4bec56a4e 100644 --- a/www/chromium/patches/patch-chrome_browser_chrome_browser_interface_binders_cc +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_interface_binders_cc @@ -17,16 +17,16 @@ Index: chrome/browser/chrome_browser_interface_binders.cc #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 -@@ -217,7 +217,7 @@ +@@ -224,7 +224,7 @@ #endif // BUILDFLAG(IS_ANDROID) #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS) + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) - #include "chrome/browser/companion/visual_search/visual_search_suggestions_service_factory.h" + #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" - #include "chrome/browser/ui/webui/discards/discards_ui.h" -@@ -831,7 +831,7 @@ void BindScreen2xMainContentExtractor( +@@ -834,7 +834,7 @@ void BindScreen2xMainContentExtractor( #endif #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \ @@ -35,7 +35,7 @@ Index: chrome/browser/chrome_browser_interface_binders.cc void BindVisualSuggestionsModelProvider( content::RenderFrameHost* frame_host, mojo::PendingReceiver< -@@ -977,7 +977,7 @@ void PopulateChromeFrameBinders( +@@ -1030,7 +1030,7 @@ void PopulateChromeFrameBinders( #endif // BUILDFLAG(ENABLE_SPEECH_SERVICE) #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ @@ -44,16 +44,16 @@ Index: chrome/browser/chrome_browser_interface_binders.cc if (!render_frame_host->GetParent()) { map->Add( base::BindRepeating(&DraggableRegionsHostImpl::CreateIfAllowed)); -@@ -985,7 +985,7 @@ void PopulateChromeFrameBinders( +@@ -1038,7 +1038,7 @@ void PopulateChromeFrameBinders( #endif - #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \ -- BUILDFLAG(IS_WIN) -+ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + #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 -@@ -1065,7 +1065,7 @@ void PopulateChromeWebUIFrameBinders( +@@ -1125,7 +1125,7 @@ void PopulateChromeWebUIFrameBinders( commerce::CommerceInternalsUI>(map); #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ @@ -62,7 +62,7 @@ Index: chrome/browser/chrome_browser_interface_binders.cc RegisterWebUIControllerInterfaceBinder< connectors_internals::mojom::PageHandler, enterprise_connectors::ConnectorsInternalsUI>(map); -@@ -1080,7 +1080,7 @@ void PopulateChromeWebUIFrameBinders( +@@ -1137,7 +1137,7 @@ void PopulateChromeWebUIFrameBinders( #endif #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ @@ -71,7 +71,7 @@ Index: chrome/browser/chrome_browser_interface_binders.cc RegisterWebUIControllerInterfaceBinder< app_management::mojom::PageHandlerFactory, WebAppSettingsUI>(map); #endif -@@ -1578,7 +1578,7 @@ void PopulateChromeWebUIFrameBinders( +@@ -1704,7 +1704,7 @@ void PopulateChromeWebUIFrameBinders( #endif // BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_cc index 71e7c5c6b..a8b0917b8 100644 --- a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_cc +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_cc @@ -1,7 +1,7 @@ Index: chrome/browser/chrome_browser_main.cc --- chrome/browser/chrome_browser_main.cc.orig +++ chrome/browser/chrome_browser_main.cc -@@ -247,11 +247,11 @@ +@@ -246,15 +246,15 @@ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. @@ -15,7 +15,12 @@ Index: chrome/browser/chrome_browser_main.cc #include "components/crash/core/app/crashpad.h" #endif -@@ -286,14 +286,14 @@ +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include "base/nix/xdg_util.h" + #endif + +@@ -287,14 +287,14 @@ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ @@ -32,7 +37,33 @@ Index: chrome/browser/chrome_browser_main.cc #include "chrome/browser/headless/headless_mode_metrics.h" // nogncheck #include "chrome/browser/headless/headless_mode_util.h" // nogncheck #include "components/headless/select_file_dialog/headless_select_file_dialog.h" -@@ -1033,7 +1033,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { +@@ -361,14 +361,14 @@ + #endif // BUILDFLAG(IS_WIN) && BUILDFLAG(USE_BROWSER_SPELLCHECKER) + + #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ +- BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) ++ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) + #include "sql/database.h" + #endif // BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || + // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) + + namespace { + #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ +- BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) ++ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) + constexpr base::FilePath::CharType kMediaHistoryDatabaseName[] = + FILE_PATH_LITERAL("Media History"); + +@@ -523,7 +523,7 @@ void ProcessSingletonNotificationCallbackImpl( + } + #endif + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + // Set the global activation token sent as a command line switch by another + // browser process. This also removes the switch after use to prevent any side + // effects of leaving it in the command line after this point. +@@ -1089,7 +1089,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { browser_creator_->AddFirstRunTabs(master_prefs_->new_tabs); } @@ -41,7 +72,7 @@ Index: chrome/browser/chrome_browser_main.cc // Create directory for user-level Native Messaging manifest files. This // makes it less likely that the directory will be created by third-party // software with incorrect owner or permission. See crbug.com/725513 . -@@ -1089,7 +1089,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { +@@ -1137,7 +1137,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ @@ -50,7 +81,16 @@ Index: chrome/browser/chrome_browser_main.cc metrics::DesktopSessionDurationTracker::Initialize(); ProfileActivityMetricsRecorder::Initialize(); TouchModeStatsTracker::Initialize( -@@ -1325,7 +1325,7 @@ void ChromeBrowserMainParts::PostProfileInit(Profile* +@@ -1328,7 +1328,7 @@ void ChromeBrowserMainParts::PostProfileInit(Profile* + #endif // BUILDFLAG(IS_WIN) + + #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ +- BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) ++ BUILDFLAG(IS_WIN) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) + // Delete the media history database if it still exists. + // TODO(crbug.com/1198344): Remove this. + base::ThreadPool::PostTask( +@@ -1377,7 +1377,7 @@ void ChromeBrowserMainParts::PostProfileInit(Profile* *UrlLanguageHistogramFactory::GetForBrowserContext(profile)); #endif // BUILDFLAG(IS_CHROMEOS_ASH) @@ -59,7 +99,7 @@ Index: chrome/browser/chrome_browser_main.cc if (headless::IsHeadlessMode()) { headless::ReportHeadlessActionMetrics(); } -@@ -1431,7 +1431,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl( +@@ -1485,7 +1485,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl( // In headless mode provide alternate SelectFileDialog factory overriding // any platform specific SelectFileDialog implementation that may have been // set. @@ -68,3 +108,12 @@ Index: chrome/browser/chrome_browser_main.cc if (headless::IsHeadlessMode()) { headless::HeadlessSelectFileDialogFactory::SetUp(); } +@@ -2030,7 +2030,7 @@ bool ChromeBrowserMainParts::ProcessSingletonNotificat + + // Drop the request if headless mode is in effect or the request is from + // a headless Chrome process. +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) + if (headless::IsHeadlessMode() || + command_line.HasSwitch(switches::kHeadless)) { + return false; diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_linux_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_linux_cc index 10e432c7d..372a867e1 100644 --- a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_linux_cc +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_linux_cc @@ -1,10 +1,10 @@ Index: chrome/browser/chrome_browser_main_extra_parts_linux.cc --- chrome/browser/chrome_browser_main_extra_parts_linux.cc.orig +++ chrome/browser/chrome_browser_main_extra_parts_linux.cc -@@ -120,7 +120,7 @@ ChromeBrowserMainExtraPartsLinux::ChromeBrowserMainExt - ChromeBrowserMainExtraPartsLinux::~ChromeBrowserMainExtraPartsLinux() = default; +@@ -175,7 +175,7 @@ void ChromeBrowserMainExtraPartsLinux::PostBrowserStar - void ChromeBrowserMainExtraPartsLinux::PreEarlyInitialization() { + // 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. diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_ozone_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_ozone_cc new file mode 100644 index 000000000..56fa87584 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_extra_parts_ozone_cc @@ -0,0 +1,12 @@ +Index: chrome/browser/chrome_browser_main_extra_parts_ozone.cc +--- chrome/browser/chrome_browser_main_extra_parts_ozone.cc.orig ++++ chrome/browser/chrome_browser_main_extra_parts_ozone.cc +@@ -27,7 +27,7 @@ void ChromeBrowserMainExtraPartsOzone::PostCreateMainM + } + + void ChromeBrowserMainExtraPartsOzone::PostMainMessageLoopRun() { +-#if !BUILDFLAG(IS_CHROMEOS_LACROS) && !BUILDFLAG(IS_LINUX) ++#if !BUILDFLAG(IS_CHROMEOS_LACROS) && !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) + // Lacros's `PostMainMessageLoopRun` must be called at the very end of + // `PostMainMessageLoopRun` in + // `ChromeBrowserMainPartsLacros::PostMainMessageLoopRun`. diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_cc index 9a2493b33..ef9136633 100644 --- a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_cc +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_cc @@ -1,14 +1,16 @@ Index: chrome/browser/chrome_browser_main_linux.cc --- chrome/browser/chrome_browser_main_linux.cc.orig +++ chrome/browser/chrome_browser_main_linux.cc -@@ -53,13 +53,15 @@ ChromeBrowserMainPartsLinux::~ChromeBrowserMainPartsLi - } +@@ -24,7 +24,7 @@ + #include "device/bluetooth/dbus/bluez_dbus_thread_manager.h" + #include "ui/base/l10n/l10n_util.h" - void ChromeBrowserMainPartsLinux::PostCreateMainMessageLoop() { --#if BUILDFLAG(IS_CHROMEOS) -+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) - // No-op: Ash and Lacros Bluetooth DBusManager initialization depend on - // FeatureList, and is done elsewhere. +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include "ui/ozone/public/ozone_platform.h" + #endif + +@@ -71,7 +71,9 @@ void ChromeBrowserMainPartsLinux::PostCreateMainMessag #endif // BUILDFLAG(IS_CHROMEOS) #if !BUILDFLAG(IS_CHROMEOS) @@ -18,7 +20,16 @@ Index: chrome/browser/chrome_browser_main_linux.cc // Set up crypt config. This needs to be done before anything starts the // network service, as the raw encryption key needs to be shared with the -@@ -117,7 +119,7 @@ void ChromeBrowserMainPartsLinux::PostBrowserStart() { +@@ -96,7 +98,7 @@ void ChromeBrowserMainPartsLinux::PostCreateMainMessag + ChromeBrowserMainPartsPosix::PostCreateMainMessageLoop(); + } + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + void ChromeBrowserMainPartsLinux::PostMainMessageLoopRun() { + ChromeBrowserMainPartsPosix::PostMainMessageLoopRun(); + ui::OzonePlatform::GetInstance()->PostMainMessageLoopRun(); +@@ -135,7 +137,7 @@ void ChromeBrowserMainPartsLinux::PostBrowserStart() { #endif // defined(USE_DBUS) && !BUILDFLAG(IS_CHROMEOS) void ChromeBrowserMainPartsLinux::PostDestroyThreads() { diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_h b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_h new file mode 100644 index 000000000..ce707fc8d --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_linux_h @@ -0,0 +1,12 @@ +Index: chrome/browser/chrome_browser_main_linux.h +--- chrome/browser/chrome_browser_main_linux.h.orig ++++ chrome/browser/chrome_browser_main_linux.h +@@ -30,7 +30,7 @@ class ChromeBrowserMainPartsLinux : public ChromeBrows + + // ChromeBrowserMainPartsPosix overrides. + void PostCreateMainMessageLoop() override; +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + void PostMainMessageLoopRun() override; + #endif + void PreProfileInit() override; diff --git a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_posix_cc b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_posix_cc index a70f15074..c5a7eceab 100644 --- a/www/chromium/patches/patch-chrome_browser_chrome_browser_main_posix_cc +++ b/www/chromium/patches/patch-chrome_browser_chrome_browser_main_posix_cc @@ -1,7 +1,7 @@ Index: chrome/browser/chrome_browser_main_posix.cc --- chrome/browser/chrome_browser_main_posix.cc.orig +++ chrome/browser/chrome_browser_main_posix.cc -@@ -73,7 +73,7 @@ void ExitHandler::ExitWhenPossibleOnUIThread(int signa +@@ -79,7 +79,7 @@ void ExitHandler::ExitWhenPossibleOnUIThread(int signa } else { // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. diff --git a/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_cc b/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_cc index 2956f3324..39535c867 100644 --- a/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_cc +++ b/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_cc @@ -1,16 +1,16 @@ Index: chrome/browser/chrome_content_browser_client.cc --- chrome/browser/chrome_content_browser_client.cc.orig +++ chrome/browser/chrome_content_browser_client.cc -@@ -436,7 +436,7 @@ - #include "components/user_manager/user_manager.h" - #include "services/service_manager/public/mojom/interface_provider_spec.mojom.h" +@@ -460,7 +460,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. -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) #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) - #include "base/android/application_status_listener.h" -@@ -530,12 +530,12 @@ +@@ -569,12 +569,12 @@ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. @@ -25,15 +25,16 @@ Index: chrome/browser/chrome_content_browser_client.cc #include "components/crash/core/app/crash_switches.h" #include "components/crash/core/app/crashpad.h" #endif -@@ -544,14 +544,14 @@ - #include "components/crash/content/browser/crash_handler_host_linux.h" +@@ -585,7 +585,7 @@ + #include "chrome/browser/apps/link_capturing/web_app_link_capturing_delegate.h" #endif -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) #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" - #include "chrome/browser/ui/webui/app_settings/web_app_settings_navigation_throttle.h" +@@ -593,7 +593,7 @@ #endif #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \ @@ -42,13 +43,8 @@ Index: chrome/browser/chrome_content_browser_client.cc #include "chrome/browser/enterprise/connectors/device_trust/navigation_throttle.h" #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || // BUILDFLAG(IS_CHROMEOS_ASH) -@@ -580,11 +580,11 @@ - - // 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) - #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h" +@@ -609,7 +609,7 @@ + #include "components/lens/lens_features.h" #endif -#if BUILDFLAG(IS_LINUX) @@ -56,16 +52,16 @@ Index: chrome/browser/chrome_content_browser_client.cc #include "chrome/browser/chrome_browser_main_extra_parts_linux.h" #elif BUILDFLAG(IS_OZONE) #include "chrome/browser/chrome_browser_main_extra_parts_ozone.h" -@@ -1598,7 +1598,7 @@ void ChromeContentBrowserClient::RegisterLocalStatePre - registry->RegisterBooleanPref(prefs::kNewBaseUrlInheritanceBehaviorAllowed, - true); +@@ -1474,7 +1474,7 @@ void ChromeContentBrowserClient::RegisterLocalStatePre + #if BUILDFLAG(IS_CHROMEOS) registry->RegisterBooleanPref(prefs::kNativeClientForceAllowed, false); + #endif // BUILDFLAG(IS_CHROMEOS) -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) registry->RegisterBooleanPref(prefs::kOutOfProcessSystemDnsResolutionEnabled, true); #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) -@@ -1720,7 +1720,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo +@@ -1598,7 +1598,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo #elif BUILDFLAG(IS_CHROMEOS_LACROS) main_parts = std::make_unique( is_integration_test, &startup_data_); @@ -74,7 +70,7 @@ Index: chrome/browser/chrome_content_browser_client.cc main_parts = std::make_unique( is_integration_test, &startup_data_); #elif BUILDFLAG(IS_ANDROID) -@@ -1759,7 +1759,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo +@@ -1635,7 +1635,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo std::make_unique()); // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. @@ -83,7 +79,7 @@ Index: chrome/browser/chrome_content_browser_client.cc main_parts->AddParts( std::make_unique()); #else -@@ -1780,7 +1780,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo +@@ -1656,7 +1656,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo main_parts->AddParts(std::make_unique()); #endif @@ -92,7 +88,7 @@ Index: chrome/browser/chrome_content_browser_client.cc main_parts->AddParts(std::make_unique()); #elif BUILDFLAG(IS_OZONE) main_parts->AddParts(std::make_unique()); -@@ -1799,7 +1799,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo +@@ -1675,7 +1675,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts(boo chrome::AddMetricsExtraParts(main_parts.get()); @@ -101,25 +97,25 @@ Index: chrome/browser/chrome_content_browser_client.cc main_parts->AddParts( std::make_unique< chrome::enterprise_util::ChromeBrowserMainExtraPartsEnterprise>()); -@@ -2629,6 +2629,8 @@ void ChromeContentBrowserClient::AppendExtraCommandLin +@@ -2515,7 +2515,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin + client_info->client_id); + } #elif BUILDFLAG(IS_POSIX) - #if BUILDFLAG(IS_ANDROID) - bool enable_crash_reporter = true; -+#elif BUILDFLAG(IS_BSD) -+ bool enable_crash_reporter = false; - #elif BUILDFLAG(IS_CHROMEOS) - bool enable_crash_reporter = false; - if (crash_reporter::IsCrashpadEnabled()) { -@@ -3006,7 +3008,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin +-#if !BUILDFLAG(IS_ANDROID) ++#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_BSD) + pid_t pid; + if (crash_reporter::GetHandlerSocket(nullptr, &pid)) { + command_line->AppendSwitchASCII( +@@ -2847,7 +2847,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin ThreadProfilerConfiguration::Get()->AppendCommandLineSwitchForChildProcess( command_line); -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) ++#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)) { -@@ -4614,7 +4616,7 @@ void ChromeContentBrowserClient::GetAdditionalFileSyst +@@ -4551,7 +4551,7 @@ void ChromeContentBrowserClient::GetAdditionalFileSyst } } @@ -128,7 +124,7 @@ Index: chrome/browser/chrome_content_browser_client.cc void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( const base::CommandLine& command_line, int child_process_id, -@@ -5161,7 +5163,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati +@@ -5109,7 +5109,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati &throttles); } @@ -137,7 +133,7 @@ Index: chrome/browser/chrome_content_browser_client.cc MaybeAddThrottle( WebAppSettingsNavigationThrottle::MaybeCreateThrottleFor(handle), &throttles); -@@ -5171,7 +5173,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati +@@ -5123,7 +5123,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \ @@ -146,7 +142,7 @@ Index: chrome/browser/chrome_content_browser_client.cc MaybeAddThrottle(enterprise_connectors::DeviceTrustNavigationThrottle:: MaybeCreateThrottleFor(handle), &throttles); -@@ -5210,7 +5212,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati +@@ -5162,7 +5162,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati handle)); } @@ -155,10 +151,10 @@ Index: chrome/browser/chrome_content_browser_client.cc MaybeAddThrottle(browser_switcher::BrowserSwitcherNavigationThrottle:: MaybeCreateThrottleFor(handle), &throttles); -@@ -7054,7 +7056,7 @@ bool ChromeContentBrowserClient::ShouldSandboxNetworkS - } - +@@ -7137,7 +7137,7 @@ bool ChromeContentBrowserClient::ShouldSandboxNetworkS bool ChromeContentBrowserClient::ShouldRunOutOfProcessSystemDnsResolution() { + // This enterprise policy is supported on Android, but the feature will not be + // launched there. -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) // This is possibly called before `g_browser_process` is initialized. diff --git a/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_h b/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_h index f282976e0..75f3252a5 100644 --- a/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_h +++ b/www/chromium/patches/patch-chrome_browser_chrome_content_browser_client_h @@ -1,10 +1,10 @@ Index: chrome/browser/chrome_content_browser_client.h --- chrome/browser/chrome_content_browser_client.h.orig +++ chrome/browser/chrome_content_browser_client.h -@@ -478,7 +478,7 @@ class ChromeContentBrowserClient : public content::Con - void OverridePageVisibilityState( - content::RenderFrameHost* render_frame_host, - content::PageVisibilityState* visibility_state) override; +@@ -500,7 +500,7 @@ class ChromeContentBrowserClient : public content::Con + bool IsPluginAllowedToUseDevChannelAPIs( + content::BrowserContext* browser_context, + const GURL& url) override; -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) +#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_BSD) void GetAdditionalMappedFilesForChildProcess( diff --git a/www/chromium/patches/patch-chrome_browser_component_updater_widevine_cdm_component_installer_cc b/www/chromium/patches/patch-chrome_browser_component_updater_widevine_cdm_component_installer_cc index 96485ff1e..98c23d447 100644 --- a/www/chromium/patches/patch-chrome_browser_component_updater_widevine_cdm_component_installer_cc +++ b/www/chromium/patches/patch-chrome_browser_component_updater_widevine_cdm_component_installer_cc @@ -10,7 +10,7 @@ Index: chrome/browser/component_updater/widevine_cdm_component_installer.cc #include "chrome/common/media/component_widevine_cdm_hint_file_linux.h" #endif -@@ -77,7 +77,7 @@ static_assert(std::size(kWidevineSha2Hash) == crypto:: +@@ -78,7 +78,7 @@ static_assert(std::size(kWidevineSha2Hash) == crypto:: const char ImageLoaderComponentName[] = "WidevineCdm"; #endif @@ -19,7 +19,7 @@ Index: chrome/browser/component_updater/widevine_cdm_component_installer.cc // 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. -@@ -363,7 +363,7 @@ void WidevineCdmComponentInstallerPolicy::UpdateCdmPat +@@ -364,7 +364,7 @@ void WidevineCdmComponentInstallerPolicy::UpdateCdmPat return; } diff --git a/www/chromium/patches/patch-chrome_browser_content_settings_one_time_permission_provider_cc b/www/chromium/patches/patch-chrome_browser_content_settings_one_time_permission_provider_cc deleted file mode 100644 index 9ff1d6dd2..000000000 --- a/www/chromium/patches/patch-chrome_browser_content_settings_one_time_permission_provider_cc +++ /dev/null @@ -1,31 +0,0 @@ -Index: chrome/browser/content_settings/one_time_permission_provider.cc ---- chrome/browser/content_settings/one_time_permission_provider.cc.orig -+++ chrome/browser/content_settings/one_time_permission_provider.cc -@@ -225,8 +225,13 @@ void OneTimePermissionProvider::OnSuspend() { - - while (rule_iterator && rule_iterator->HasNext()) { - auto rule = rule_iterator->Next(); -+#if defined(__clang__) && (__clang_major__ >= 16) - patterns_to_delete.emplace_back(setting_type, rule->primary_pattern, - rule->secondary_pattern); -+#else -+ patterns_to_delete.emplace_back(ContentSettingEntry{setting_type, rule->primary_pattern, -+ rule->secondary_pattern}); -+#endif - permissions::PermissionUmaUtil::RecordOneTimePermissionEvent( - setting_type, - permissions::OneTimePermissionEvent::EXPIRED_ON_SUSPEND); -@@ -320,8 +325,13 @@ void OneTimePermissionProvider::DeleteEntriesMatchingG - auto rule = rule_iterator->Next(); - if (rule->primary_pattern.Matches(origin_gurl) && - rule->secondary_pattern.Matches(origin_gurl)) { -+#if defined(__clang__) && (__clang_major__ >= 16) - patterns_to_delete.emplace_back( - content_setting_type, rule->primary_pattern, rule->secondary_pattern); -+#else -+ patterns_to_delete.emplace_back( -+ ContentSettingEntry{content_setting_type, rule->primary_pattern, rule->secondary_pattern}); -+#endif - permissions::PermissionUmaUtil::RecordOneTimePermissionEvent( - content_setting_type, trigger_event); - } diff --git a/www/chromium/patches/patch-chrome_browser_download_bubble_download_bubble_update_service_cc b/www/chromium/patches/patch-chrome_browser_download_bubble_download_bubble_update_service_cc deleted file mode 100644 index 93c68f464..000000000 --- a/www/chromium/patches/patch-chrome_browser_download_bubble_download_bubble_update_service_cc +++ /dev/null @@ -1,33 +0,0 @@ -Index: chrome/browser/download/bubble/download_bubble_update_service.cc ---- chrome/browser/download/bubble/download_bubble_update_service.cc.orig -+++ chrome/browser/download/bubble/download_bubble_update_service.cc -@@ -91,7 +91,11 @@ ItemSortKey GetSortKey(const Item& item) { - // Helper to get an iterator to the last element in the cache. The cache - // must not be empty. - template -+#if defined(__clang__) && (__clang_major__ >= 16) - SortedItems::const_iterator GetLastIter(const SortedItems& cache) { -+#else -+typename SortedItems::const_iterator GetLastIter(const SortedItems& cache) { -+#endif - CHECK(!cache.empty()); - auto it = cache.end(); - return std::prev(it); -@@ -967,9 +971,17 @@ bool DownloadBubbleUpdateService::CacheManager::Remove - } - - template -+#if defined(__clang__) && (__clang_major__ >= 16) - SortedItems::iterator -+#else -+typename SortedItems::iterator -+#endif - DownloadBubbleUpdateService::CacheManager::RemoveItemFromCacheByIter( -+#if defined(__clang__) && (__clang_major__ >= 16) - SortedItems::iterator iter, -+#else -+ typename SortedItems::iterator iter, -+#endif - SortedItems& cache, - IterMap& iter_map) { - CHECK(iter != cache.end()); diff --git a/www/chromium/patches/patch-chrome_browser_download_chrome_download_manager_delegate_cc b/www/chromium/patches/patch-chrome_browser_download_chrome_download_manager_delegate_cc index ca4c2e8de..429d001b2 100644 --- a/www/chromium/patches/patch-chrome_browser_download_chrome_download_manager_delegate_cc +++ b/www/chromium/patches/patch-chrome_browser_download_chrome_download_manager_delegate_cc @@ -1,8 +1,8 @@ Index: chrome/browser/download/chrome_download_manager_delegate.cc --- chrome/browser/download/chrome_download_manager_delegate.cc.orig +++ chrome/browser/download/chrome_download_manager_delegate.cc -@@ -1611,7 +1611,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe - bool ChromeDownloadManagerDelegate::IsOpenInBrowserPreferreredForFile( +@@ -1700,7 +1700,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe + bool ChromeDownloadManagerDelegate::IsOpenInBrowserPreferredForFile( const base::FilePath& path) { #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_MAC) @@ -10,7 +10,7 @@ Index: chrome/browser/download/chrome_download_manager_delegate.cc if (path.MatchesExtension(FILE_PATH_LITERAL(".pdf"))) { return !download_prefs_->ShouldOpenPdfInSystemReader(); } -@@ -1730,7 +1730,7 @@ void ChromeDownloadManagerDelegate::CheckDownloadAllow +@@ -1819,7 +1819,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) || \ @@ -19,12 +19,12 @@ Index: chrome/browser/download/chrome_download_manager_delegate.cc // Don't download pdf if it is a file URL, as that might cause an infinite // download loop if Chrome is not the system pdf viewer. if (url.SchemeIsFile() && download_prefs_->ShouldOpenPdfInSystemReader()) { -@@ -1776,7 +1776,7 @@ void ChromeDownloadManagerDelegate::CheckSavePackageAl +@@ -1865,7 +1865,7 @@ void ChromeDownloadManagerDelegate::CheckSavePackageAl DCHECK(download_item->IsSavePackageDownload()); #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_MAC) + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) - absl::optional settings = + std::optional settings = safe_browsing::DeepScanningRequest::ShouldUploadBinary(download_item); diff --git a/www/chromium/patches/patch-chrome_browser_download_download_commands_h b/www/chromium/patches/patch-chrome_browser_download_download_commands_h index 37043d96d..a0ef59099 100644 --- a/www/chromium/patches/patch-chrome_browser_download_download_commands_h +++ b/www/chromium/patches/patch-chrome_browser_download_download_commands_h @@ -1,7 +1,7 @@ Index: chrome/browser/download/download_commands.h --- chrome/browser/download/download_commands.h.orig +++ chrome/browser/download/download_commands.h -@@ -60,7 +60,7 @@ class DownloadCommands { +@@ -63,7 +63,7 @@ class DownloadCommands { void ExecuteCommand(Command command); #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ diff --git a/www/chromium/patches/patch-chrome_browser_download_download_file_picker_cc b/www/chromium/patches/patch-chrome_browser_download_download_file_picker_cc index ff93edd4a..7cb2edd16 100644 --- a/www/chromium/patches/patch-chrome_browser_download_download_file_picker_cc +++ b/www/chromium/patches/patch-chrome_browser_download_download_file_picker_cc @@ -1,16 +1,16 @@ Index: chrome/browser/download/download_file_picker.cc --- chrome/browser/download/download_file_picker.cc.orig +++ chrome/browser/download/download_file_picker.cc -@@ -17,7 +17,7 @@ - #include "content/public/browser/download_manager.h" +@@ -18,7 +18,7 @@ #include "content/public/browser/web_contents.h" + #include "ui/shell_dialogs/selected_file_info.h" -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_WIN) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) #include "chrome/browser/ui/browser_list.h" #include "chrome/browser/ui/browser_window.h" #include "ui/aura/window.h" -@@ -82,7 +82,7 @@ DownloadFilePicker::DownloadFilePicker(download::Downl +@@ -83,7 +83,7 @@ DownloadFilePicker::DownloadFilePicker(download::Downl // dialog in Linux (See SelectFileImpl() in select_file_dialog_linux_gtk.cc). // and windows.Here we make owning_window host to browser current active // window if it is null. https://crbug.com/1301898 diff --git a/www/chromium/patches/patch-chrome_browser_download_download_item_model_cc b/www/chromium/patches/patch-chrome_browser_download_download_item_model_cc index 79b7d8ded..6965a1f01 100644 --- a/www/chromium/patches/patch-chrome_browser_download_download_item_model_cc +++ b/www/chromium/patches/patch-chrome_browser_download_download_item_model_cc @@ -1,7 +1,7 @@ Index: chrome/browser/download/download_item_model.cc --- chrome/browser/download/download_item_model.cc.orig +++ chrome/browser/download/download_item_model.cc -@@ -769,7 +769,7 @@ bool DownloadItemModel::IsCommandChecked( +@@ -752,7 +752,7 @@ bool DownloadItemModel::IsCommandChecked( download_crx_util::IsExtensionDownload(*download_); case DownloadCommands::ALWAYS_OPEN_TYPE: #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -10,8 +10,8 @@ Index: chrome/browser/download/download_item_model.cc if (download_commands->CanOpenPdfInSystemViewer()) { DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(profile()); return prefs->ShouldOpenPdfInSystemReader(); -@@ -815,7 +815,7 @@ void DownloadItemModel::ExecuteCommand(DownloadCommand - base::UmaHistogramBoolean("Download.SetAlwaysOpenTo", !is_checked); +@@ -798,7 +798,7 @@ void DownloadItemModel::ExecuteCommand(DownloadCommand + DownloadCommands::ALWAYS_OPEN_TYPE); DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(profile()); #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_MAC) @@ -19,7 +19,7 @@ Index: chrome/browser/download/download_item_model.cc if (download_commands->CanOpenPdfInSystemViewer()) { prefs->SetShouldOpenPdfInSystemReader(!is_checked); SetShouldPreferOpeningInBrowser(is_checked); -@@ -1200,7 +1200,7 @@ void DownloadItemModel::DetermineAndSetShouldPreferOpe +@@ -1189,7 +1189,7 @@ void DownloadItemModel::DetermineAndSetShouldPreferOpe return; } diff --git a/www/chromium/patches/patch-chrome_browser_download_download_prefs_cc b/www/chromium/patches/patch-chrome_browser_download_download_prefs_cc index 2fc1d0a41..e06b49510 100644 --- a/www/chromium/patches/patch-chrome_browser_download_download_prefs_cc +++ b/www/chromium/patches/patch-chrome_browser_download_download_prefs_cc @@ -9,8 +9,8 @@ Index: chrome/browser/download/download_prefs.cc #include "base/feature_list.h" #include "base/files/file_util.h" #include "base/functional/bind.h" -@@ -63,6 +64,10 @@ - #include "chrome/browser/download/bubble/download_bubble_prefs.h" +@@ -64,6 +65,10 @@ + #include "chrome/browser/flags/android/chrome_feature_list.h" #endif +#if BUILDFLAG(IS_BSD) @@ -20,7 +20,7 @@ Index: chrome/browser/download/download_prefs.cc using content::BrowserContext; using content::BrowserThread; using content::DownloadManager; -@@ -73,7 +78,7 @@ namespace { +@@ -74,7 +79,7 @@ namespace { // Consider downloads 'dangerous' if they go to the home directory on Linux and // to the desktop on any platform. bool DownloadPathIsDangerous(const base::FilePath& download_path) { @@ -29,7 +29,7 @@ Index: chrome/browser/download/download_prefs.cc base::FilePath home_dir = base::GetHomeDir(); if (download_path == home_dir) { return true; -@@ -181,7 +186,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profi +@@ -180,7 +185,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profi #endif // BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -38,16 +38,16 @@ Index: chrome/browser/download/download_prefs.cc should_open_pdf_in_system_reader_ = prefs->GetBoolean(prefs::kOpenPdfDownloadInSystemReader); #endif -@@ -314,7 +319,7 @@ void DownloadPrefs::RegisterProfilePrefs( - registry->RegisterTimePref(prefs::kDownloadLastCompleteTime, - /*default_value=*/base::Time()); +@@ -306,7 +311,7 @@ void DownloadPrefs::RegisterProfilePrefs( + registry->RegisterFilePathPref(prefs::kSaveFileDefaultDirectory, + default_download_path); #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_MAC) + BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) registry->RegisterBooleanPref(prefs::kOpenPdfDownloadInSystemReader, false); #endif #if BUILDFLAG(IS_ANDROID) -@@ -487,7 +492,7 @@ void DownloadPrefs::DisableAutoOpenByUserBasedOnExtens +@@ -473,7 +478,7 @@ void DownloadPrefs::DisableAutoOpenByUserBasedOnExtens } #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -56,7 +56,7 @@ Index: chrome/browser/download/download_prefs.cc void DownloadPrefs::SetShouldOpenPdfInSystemReader(bool should_open) { if (should_open_pdf_in_system_reader_ == should_open) return; -@@ -519,7 +524,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons +@@ -505,7 +510,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons void DownloadPrefs::ResetAutoOpenByUser() { #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -65,7 +65,7 @@ Index: chrome/browser/download/download_prefs.cc SetShouldOpenPdfInSystemReader(false); #endif auto_open_by_user_.clear(); -@@ -550,7 +555,7 @@ void DownloadPrefs::SaveAutoOpenState() { +@@ -545,7 +550,7 @@ void DownloadPrefs::SaveAutoOpenState() { bool DownloadPrefs::CanPlatformEnableAutoOpenForPdf() const { #if BUILDFLAG(IS_CHROMEOS) return false; // There is no UI for auto-open on ChromeOS. @@ -74,7 +74,7 @@ Index: chrome/browser/download/download_prefs.cc return ShouldOpenPdfInSystemReader(); #else return false; -@@ -674,7 +679,14 @@ base::FilePath DownloadPrefs::SanitizeDownloadTargetPa +@@ -697,7 +702,14 @@ base::FilePath DownloadPrefs::SanitizeDownloadTargetPa #else // If the stored download directory is an absolute path, we presume it's // correct; there's not really much more validation we can do here. diff --git a/www/chromium/patches/patch-chrome_browser_download_download_prefs_h b/www/chromium/patches/patch-chrome_browser_download_download_prefs_h index cbb75002a..4ef7365ed 100644 --- a/www/chromium/patches/patch-chrome_browser_download_download_prefs_h +++ b/www/chromium/patches/patch-chrome_browser_download_download_prefs_h @@ -1,7 +1,7 @@ Index: chrome/browser/download/download_prefs.h --- chrome/browser/download/download_prefs.h.orig +++ chrome/browser/download/download_prefs.h -@@ -118,7 +118,7 @@ class DownloadPrefs { +@@ -115,7 +115,7 @@ class DownloadPrefs { void DisableAutoOpenByUserBasedOnExtension(const base::FilePath& file_name); #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ @@ -10,7 +10,7 @@ Index: chrome/browser/download/download_prefs.h // Store the user preference to disk. If |should_open| is true, also disable // the built-in PDF plugin. If |should_open| is false, enable the PDF plugin. void SetShouldOpenPdfInSystemReader(bool should_open); -@@ -183,7 +183,7 @@ class DownloadPrefs { +@@ -179,7 +179,7 @@ class DownloadPrefs { std::unique_ptr auto_open_allowed_by_urls_; #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_browser_management_browser_management_service_cc b/www/chromium/patches/patch-chrome_browser_enterprise_browser_management_browser_management_service_cc new file mode 100644 index 000000000..52e995cec --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_enterprise_browser_management_browser_management_service_cc @@ -0,0 +1,30 @@ +Index: chrome/browser/enterprise/browser_management/browser_management_service.cc +--- chrome/browser/enterprise/browser_management/browser_management_service.cc.orig ++++ chrome/browser/enterprise/browser_management/browser_management_service.cc +@@ -21,7 +21,7 @@ namespace policy { + + namespace { + +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + void UpdateEnterpriseLogo( + Profile* profile, + base::OnceCallbackGetPrefs()); + pref_change_registrar_.Add( +@@ -114,7 +114,7 @@ const gfx::Image& BrowserManagementMetadata::GetManage + return management_logo_; + } + +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + void BrowserManagementMetadata::UpdateManagementLogo(Profile* profile) { + UpdateEnterpriseLogo( + profile, base::BindOnce(&BrowserManagementMetadata::SetManagementLogo, diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_browser_management_browser_management_service_h b/www/chromium/patches/patch-chrome_browser_enterprise_browser_management_browser_management_service_h new file mode 100644 index 000000000..1b0c0eeee --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_enterprise_browser_management_browser_management_service_h @@ -0,0 +1,12 @@ +Index: chrome/browser/enterprise/browser_management/browser_management_service.h +--- chrome/browser/enterprise/browser_management/browser_management_service.h.orig ++++ chrome/browser/enterprise/browser_management/browser_management_service.h +@@ -28,7 +28,7 @@ class BrowserManagementMetadata { + + const gfx::Image& GetManagementLogo() const; + +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + private: + void UpdateManagementLogo(Profile* profile); + void SetManagementLogo( diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_analysis_analysis_service_settings_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_analysis_analysis_service_settings_cc index 70e453719..6db0ae37c 100644 --- a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_analysis_analysis_service_settings_cc +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_analysis_analysis_service_settings_cc @@ -1,7 +1,7 @@ Index: chrome/browser/enterprise/connectors/analysis/analysis_service_settings.cc --- chrome/browser/enterprise/connectors/analysis/analysis_service_settings.cc.orig +++ chrome/browser/enterprise/connectors/analysis/analysis_service_settings.cc -@@ -143,7 +143,7 @@ AnalysisServiceSettings::AnalysisServiceSettings( +@@ -150,7 +150,7 @@ AnalysisServiceSettings::AnalysisServiceSettings( const char* verification_key = kKeyWindowsVerification; #elif BUILDFLAG(IS_MAC) const char* verification_key = kKeyMacVerification; diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_connectors_service_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_connectors_service_cc index 8639f5ff3..a6403a6c1 100644 --- a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_connectors_service_cc +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_connectors_service_cc @@ -1,7 +1,7 @@ Index: chrome/browser/enterprise/connectors/connectors_service.cc --- chrome/browser/enterprise/connectors/connectors_service.cc.orig +++ chrome/browser/enterprise/connectors/connectors_service.cc -@@ -543,7 +543,7 @@ bool ConnectorsService::ConnectorsEnabled() const { +@@ -564,7 +564,7 @@ bool ConnectorsService::ConnectorsEnabled() const { Profile* profile = Profile::FromBrowserContext(context_); diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_connector_service_factory_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_connector_service_factory_cc index 805962b71..14856f23c 100644 --- a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_connector_service_factory_cc +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_connector_service_factory_cc @@ -1,7 +1,7 @@ Index: chrome/browser/enterprise/connectors/device_trust/device_trust_connector_service_factory.cc --- chrome/browser/enterprise/connectors/device_trust/device_trust_connector_service_factory.cc.orig +++ chrome/browser/enterprise/connectors/device_trust/device_trust_connector_service_factory.cc -@@ -11,7 +11,7 @@ +@@ -10,7 +10,7 @@ #include "chrome/browser/profiles/profile.h" #include "components/keyed_service/core/keyed_service.h" @@ -10,21 +10,21 @@ Index: chrome/browser/enterprise/connectors/device_trust/device_trust_connector_ #include "chrome/browser/browser_process.h" #include "chrome/browser/enterprise/connectors/device_trust/browser/signing_key_policy_observer.h" #include "chrome/browser/policy/chrome_browser_policy_connector.h" -@@ -42,7 +42,7 @@ DeviceTrustConnectorService* DeviceTrustConnectorServi +@@ -40,7 +40,7 @@ DeviceTrustConnectorService* DeviceTrustConnectorServi bool DeviceTrustConnectorServiceFactory::ServiceIsCreatedWithBrowserContext() const { -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) - return IsDeviceTrustConnectorFeatureEnabled(); + return true; #else return false; -@@ -80,7 +80,7 @@ DeviceTrustConnectorServiceFactory::BuildServiceInstan +@@ -79,7 +79,7 @@ DeviceTrustConnectorServiceFactory::BuildServiceInstan std::unique_ptr service = std::make_unique(profile->GetPrefs()); -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) - if (IsDeviceTrustConnectorFeatureEnabled()) { - auto* key_manager = g_browser_process->browser_policy_connector() - ->chrome_browser_cloud_management_controller() + auto* key_manager = g_browser_process->browser_policy_connector() + ->chrome_browser_cloud_management_controller() + ->GetDeviceTrustKeyManager(); diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_service_factory_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_service_factory_cc index 89c977c48..88b9d7e3a 100644 --- a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_service_factory_cc +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_device_trust_service_factory_cc @@ -10,7 +10,7 @@ Index: chrome/browser/enterprise/connectors/device_trust/device_trust_service_fa #include "chrome/browser/browser_process.h" #include "chrome/browser/enterprise/connectors/device_trust/attestation/browser/browser_attestation_service.h" #include "chrome/browser/enterprise/connectors/device_trust/attestation/browser/device_attester.h" -@@ -56,7 +56,7 @@ bool IsProfileManaged(Profile* profile) { +@@ -54,7 +54,7 @@ bool IsProfileManaged(Profile* profile) { return management_service && management_service->IsManaged(); } @@ -19,7 +19,7 @@ Index: chrome/browser/enterprise/connectors/device_trust/device_trust_service_fa policy::CloudPolicyStore* GetUserCloudPolicyStore(Profile* profile) { policy::CloudPolicyManager* user_policy_manager = profile->GetUserCloudPolicyManager(); -@@ -106,7 +106,7 @@ DeviceTrustServiceFactory::DeviceTrustServiceFactory() +@@ -104,7 +104,7 @@ DeviceTrustServiceFactory::DeviceTrustServiceFactory() DependsOn(DeviceTrustConnectorServiceFactory::GetInstance()); DependsOn(policy::ManagementServiceFactory::GetInstance()); diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_key_management_browser_commands_key_rotation_command_factory_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_key_management_browser_commands_key_rotation_command_factory_cc index 8ba670e14..9c8de2dd9 100644 --- a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_key_management_browser_commands_key_rotation_command_factory_cc +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_device_trust_key_management_browser_commands_key_rotation_command_factory_cc @@ -1,7 +1,7 @@ Index: chrome/browser/enterprise/connectors/device_trust/key_management/browser/commands/key_rotation_command_factory.cc --- chrome/browser/enterprise/connectors/device_trust/key_management/browser/commands/key_rotation_command_factory.cc.orig +++ chrome/browser/enterprise/connectors/device_trust/key_management/browser/commands/key_rotation_command_factory.cc -@@ -13,7 +13,7 @@ +@@ -14,7 +14,7 @@ #if BUILDFLAG(IS_WIN) #include "chrome/browser/enterprise/connectors/device_trust/key_management/browser/commands/win_key_rotation_command.h" @@ -10,7 +10,7 @@ Index: chrome/browser/enterprise/connectors/device_trust/key_management/browser/ #include "chrome/browser/enterprise/connectors/device_trust/key_management/browser/commands/linux_key_rotation_command.h" #elif BUILDFLAG(IS_MAC) #include "chrome/browser/enterprise/connectors/device_trust/key_management/browser/commands/mac_key_rotation_command.h" -@@ -46,7 +46,7 @@ std::unique_ptr KeyRotationCommand +@@ -47,7 +47,7 @@ std::unique_ptr KeyRotationCommand scoped_refptr url_loader_factory) { #if BUILDFLAG(IS_WIN) return std::make_unique(); diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_browser_crash_event_router_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_browser_crash_event_router_cc index 92f5ddebc..058652429 100644 --- a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_browser_crash_event_router_cc +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_browser_crash_event_router_cc @@ -5,8 +5,8 @@ Index: chrome/browser/enterprise/connectors/reporting/browser_crash_event_router BrowserCrashEventRouter::BrowserCrashEventRouter( content::BrowserContext* context) { --#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS_ASH) -+#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_BSD) +-#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS) ++#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) CrashReportingContext* crash_reporting_context = CrashReportingContext::GetInstance(); Profile* profile = Profile::FromBrowserContext(context); @@ -14,8 +14,8 @@ Index: chrome/browser/enterprise/connectors/reporting/browser_crash_event_router } BrowserCrashEventRouter::~BrowserCrashEventRouter() { --#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS_ASH) -+#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_BSD) +-#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS) ++#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) CrashReportingContext* crash_reporting_context = CrashReportingContext::GetInstance(); crash_reporting_context->RemoveProfile(this); diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_crash_reporting_context_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_crash_reporting_context_cc index e5555998f..84ab52eb9 100644 --- a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_crash_reporting_context_cc +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_crash_reporting_context_cc @@ -5,8 +5,8 @@ Index: chrome/browser/enterprise/connectors/reporting/crash_reporting_context.cc namespace enterprise_connectors { --#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS_ASH) -+#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_BSD) +-#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS) ++#if !BUILDFLAG(IS_FUCHSIA) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_BSD) namespace { diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_realtime_reporting_client_cc b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_realtime_reporting_client_cc index fa0b6b89e..0d028cf33 100644 --- a/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_realtime_reporting_client_cc +++ b/www/chromium/patches/patch-chrome_browser_enterprise_connectors_reporting_realtime_reporting_client_cc @@ -1,7 +1,7 @@ Index: chrome/browser/enterprise/connectors/reporting/realtime_reporting_client.cc --- chrome/browser/enterprise/connectors/reporting/realtime_reporting_client.cc.orig +++ chrome/browser/enterprise/connectors/reporting/realtime_reporting_client.cc -@@ -55,7 +55,7 @@ +@@ -58,7 +58,7 @@ #include "base/strings/utf_string_conversions.h" #endif @@ -10,7 +10,7 @@ Index: chrome/browser/enterprise/connectors/reporting/realtime_reporting_client. #include "chrome/browser/enterprise/signals/signals_aggregator_factory.h" #include "components/device_signals/core/browser/signals_aggregator.h" #include "components/device_signals/core/common/signals_constants.h" -@@ -140,7 +140,7 @@ void UploadSecurityEventReport(base::Value::Dict event +@@ -132,7 +132,7 @@ void UploadSecurityEventReport(base::Value::Dict event std::move(upload_callback)); } @@ -19,7 +19,7 @@ Index: chrome/browser/enterprise/connectors/reporting/realtime_reporting_client. void PopulateSignals(base::Value::Dict event, policy::CloudPolicyClient* client, std::string name, -@@ -427,7 +427,7 @@ void RealtimeReportingClient::ReportPastEvent(const st +@@ -420,7 +420,7 @@ void RealtimeReportingClient::ReportPastEvent(const st /*include_profile_user_name=*/false); } @@ -28,7 +28,7 @@ Index: chrome/browser/enterprise/connectors/reporting/realtime_reporting_client. void AddCrowdstrikeSignalsToEvent( base::Value::Dict& event, -@@ -486,7 +486,7 @@ void RealtimeReportingClient::ReportEventWithTimestamp +@@ -479,7 +479,7 @@ void RealtimeReportingClient::ReportEventWithTimestamp if (include_profile_user_name) { event.Set(kKeyProfileUserName, GetProfileUserName()); } diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_remote_commands_cbcm_remote_commands_factory_cc b/www/chromium/patches/patch-chrome_browser_enterprise_remote_commands_cbcm_remote_commands_factory_cc index 170f42c29..6faed0ed6 100644 --- a/www/chromium/patches/patch-chrome_browser_enterprise_remote_commands_cbcm_remote_commands_factory_cc +++ b/www/chromium/patches/patch-chrome_browser_enterprise_remote_commands_cbcm_remote_commands_factory_cc @@ -7,15 +7,15 @@ Index: chrome/browser/enterprise/remote_commands/cbcm_remote_commands_factory.cc -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) - #include "chrome/browser/enterprise/connectors/device_trust/device_trust_features.h" // nogncheck #include "chrome/browser/enterprise/remote_commands/rotate_attestation_credential_job.h" #include "chrome/browser/policy/chrome_browser_policy_connector.h" -@@ -31,7 +31,7 @@ CBCMRemoteCommandsFactory::BuildJobForType( + #include "components/enterprise/browser/controller/chrome_browser_cloud_management_controller.h" +@@ -30,7 +30,7 @@ CBCMRemoteCommandsFactory::BuildJobForType( g_browser_process->profile_manager()); } -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) - if (enterprise_connectors::IsDeviceTrustConnectorFeatureEnabled() && - type == enterprise_management:: + if (type == enterprise_management:: RemoteCommand_Type_BROWSER_ROTATE_ATTESTATION_CREDENTIAL) { + return std::make_unique( diff --git a/www/chromium/patches/patch-chrome_browser_enterprise_watermark_watermark_view_cc b/www/chromium/patches/patch-chrome_browser_enterprise_watermark_watermark_view_cc new file mode 100644 index 000000000..fe891a993 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_enterprise_watermark_watermark_view_cc @@ -0,0 +1,21 @@ +Index: chrome/browser/enterprise/watermark/watermark_view.cc +--- chrome/browser/enterprise/watermark/watermark_view.cc.orig ++++ chrome/browser/enterprise/watermark/watermark_view.cc +@@ -33,7 +33,7 @@ const gfx::Font& WatermarkFont() { + "Segoe UI", + #elif BUILDFLAG(IS_MAC) + "SF Pro Text", +-#elif BUILDFLAG(IS_LINUX) ++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + "Ubuntu", + #elif BUILDFLAG(IS_CHROMEOS) + "Google Sans", +@@ -45,7 +45,7 @@ const gfx::Font& WatermarkFont() { + } + + gfx::Font::Weight WatermarkFontWeight() { +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + return gfx::Font::Weight::SEMIBOLD; + #else + return gfx::Font::Weight::MEDIUM; diff --git a/www/chromium/patches/patch-chrome_browser_extensions_BUILD_gn b/www/chromium/patches/patch-chrome_browser_extensions_BUILD_gn index 194fbd621..ddd4158c9 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_BUILD_gn +++ b/www/chromium/patches/patch-chrome_browser_extensions_BUILD_gn @@ -1,7 +1,7 @@ Index: chrome/browser/extensions/BUILD.gn --- chrome/browser/extensions/BUILD.gn.orig +++ chrome/browser/extensions/BUILD.gn -@@ -1372,6 +1372,10 @@ static_library("extensions") { +@@ -1384,6 +1384,10 @@ static_library("extensions") { deps += [ "//chrome/services/printing/public/mojom" ] } diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_api_browser_context_keyed_service_factories_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_api_browser_context_keyed_service_factories_cc index ee8b92a35..d0b5f4d8b 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_api_browser_context_keyed_service_factories_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_api_browser_context_keyed_service_factories_cc @@ -1,16 +1,16 @@ Index: chrome/browser/extensions/api/api_browser_context_keyed_service_factories.cc --- chrome/browser/extensions/api/api_browser_context_keyed_service_factories.cc.orig +++ chrome/browser/extensions/api/api_browser_context_keyed_service_factories.cc -@@ -43,7 +43,7 @@ - #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h" - #include "extensions/browser/api/networking_private/networking_private_delegate_factory.h" +@@ -45,7 +45,7 @@ + #include "printing/buildflags/buildflags.h" + #include "services/screen_ai/buildflags/buildflags.h" -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) #include "chrome/browser/extensions/api/system_indicator/system_indicator_manager_factory.h" #endif -@@ -108,7 +108,7 @@ void EnsureApiBrowserContextKeyedServiceFactoriesBuilt +@@ -128,7 +128,7 @@ void EnsureApiBrowserContextKeyedServiceFactoriesBuilt extensions::SettingsPrivateEventRouterFactory::GetInstance(); extensions::SettingsOverridesAPI::GetFactoryInstance(); extensions::SidePanelService::GetFactoryInstance(); diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_chrome_desktop_report_request_helper_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_chrome_desktop_report_request_helper_cc index 70f2ddba9..9b5b5dfd1 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_chrome_desktop_report_request_helper_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_chrome_desktop_report_request_helper_cc @@ -10,7 +10,7 @@ Index: chrome/browser/extensions/api/enterprise_reporting_private/chrome_desktop #include "base/environment.h" #include "base/nix/xdg_util.h" #endif -@@ -256,7 +256,7 @@ base::FilePath GetEndpointVerificationDir() { +@@ -255,7 +255,7 @@ base::FilePath GetEndpointVerificationDir() { bool got_path = false; #if BUILDFLAG(IS_WIN) got_path = base::PathService::Get(base::DIR_LOCAL_APP_DATA, &path); @@ -19,7 +19,7 @@ Index: chrome/browser/extensions/api/enterprise_reporting_private/chrome_desktop std::unique_ptr env(base::Environment::Create()); path = base::nix::GetXDGDirectory(env.get(), base::nix::kXdgConfigHomeEnvVar, base::nix::kDotConfigDir); -@@ -267,7 +267,7 @@ base::FilePath GetEndpointVerificationDir() { +@@ -266,7 +266,7 @@ base::FilePath GetEndpointVerificationDir() { if (!got_path) return path; diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_conversion_utils_h b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_conversion_utils_h index fc6d6937c..a2eb18ecb 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_conversion_utils_h +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_conversion_utils_h @@ -8,5 +8,5 @@ Index: chrome/browser/extensions/api/enterprise_reporting_private/conversion_uti -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include #include - diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_cc index 1a8fe2531..20e47f0b3 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_enterprise_reporting_private_enterprise_reporting_private_api_cc @@ -7,9 +7,9 @@ Index: chrome/browser/extensions/api/enterprise_reporting_private/enterprise_rep -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include + #include "base/strings/string_util.h" - #include "chrome/browser/enterprise/signals/signals_aggregator_factory.h" - #include "chrome/browser/extensions/api/enterprise_reporting_private/conversion_utils.h" @@ -149,7 +149,7 @@ api::enterprise_reporting_private::ContextInfo ToConte return info; } @@ -28,7 +28,7 @@ Index: chrome/browser/extensions/api/enterprise_reporting_private/enterprise_rep EnterpriseReportingPrivateGetPersistentSecretFunction:: EnterpriseReportingPrivateGetPersistentSecretFunction() = default; -@@ -637,7 +637,7 @@ void EnterpriseReportingPrivateEnqueueRecordFunction:: +@@ -636,7 +636,7 @@ void EnterpriseReportingPrivateEnqueueRecordFunction:: } #endif diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_management_chrome_management_api_delegate_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_management_chrome_management_api_delegate_cc new file mode 100644 index 000000000..6bb9e6f41 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_management_chrome_management_api_delegate_cc @@ -0,0 +1,12 @@ +Index: chrome/browser/extensions/api/management/chrome_management_api_delegate.cc +--- chrome/browser/extensions/api/management/chrome_management_api_delegate.cc.orig ++++ chrome/browser/extensions/api/management/chrome_management_api_delegate.cc +@@ -408,7 +408,7 @@ bool ChromeManagementAPIDelegate::LaunchAppFunctionDel + apps::LaunchContainer launch_container = + GetLaunchContainer(extensions::ExtensionPrefs::Get(context), extension); + Profile* profile = Profile::FromBrowserContext(context); +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (extensions::IsExtensionUnsupportedDeprecatedApp(profile, + extension->id())) { + return false; diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_messaging_native_process_launcher_posix_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_messaging_native_process_launcher_posix_cc index 0a6210957..c08390e70 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_messaging_native_process_launcher_posix_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_messaging_native_process_launcher_posix_cc @@ -1,7 +1,7 @@ Index: chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc --- chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc.orig +++ chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc -@@ -82,7 +82,7 @@ bool NativeProcessLauncher::LaunchNativeProcess( +@@ -84,7 +84,7 @@ bool NativeProcessLauncher::LaunchNativeProcess( // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_passwords_private_passwords_private_delegate_impl_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_passwords_private_passwords_private_delegate_impl_cc index 0069738ca..8707f713a 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_passwords_private_passwords_private_delegate_impl_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_passwords_private_passwords_private_delegate_impl_cc @@ -1,7 +1,7 @@ Index: chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc --- chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc.orig +++ chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc -@@ -603,7 +603,7 @@ void PasswordsPrivateDelegateImpl::OnFetchingFamilyMem +@@ -605,7 +605,7 @@ void PasswordsPrivateDelegateImpl::OnFetchingFamilyMem } void PasswordsPrivateDelegateImpl::OsReauthTimeoutCall() { diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_runtime_chrome_runtime_api_delegate_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_runtime_chrome_runtime_api_delegate_cc index bafeca58d..6d1cfa7a3 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_runtime_chrome_runtime_api_delegate_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_runtime_chrome_runtime_api_delegate_cc @@ -1,7 +1,7 @@ Index: chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc --- chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc.orig +++ chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc -@@ -280,7 +280,9 @@ bool ChromeRuntimeAPIDelegate::GetPlatformInfo(Platfor +@@ -284,7 +284,9 @@ bool ChromeRuntimeAPIDelegate::GetPlatformInfo(Platfor } else if (strcmp(os, "linux") == 0) { info->os = extensions::api::runtime::PlatformOs::kLinux; } else if (strcmp(os, "openbsd") == 0) { diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_settings_private_prefs_util_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_settings_private_prefs_util_cc index 57dbbb0c4..4f9033d46 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_settings_private_prefs_util_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_settings_private_prefs_util_cc @@ -1,21 +1,21 @@ Index: chrome/browser/extensions/api/settings_private/prefs_util.cc --- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig +++ chrome/browser/extensions/api/settings_private/prefs_util.cc -@@ -199,7 +199,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlist +@@ -204,7 +204,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlist (*s_allowlist)[::prefs::kSidePanelHorizontalAlignment] = - settings_api::PrefType::PREF_TYPE_BOOLEAN; + settings_api::PrefType::kBoolean; -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) (*s_allowlist)[::prefs::kUseCustomChromeFrame] = - settings_api::PrefType::PREF_TYPE_BOOLEAN; + settings_api::PrefType::kBoolean; #endif -@@ -211,7 +211,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetAllowlist - settings_api::PrefType::PREF_TYPE_STRING; - (*s_allowlist)[::prefs::kPolicyThemeColor] = - settings_api::PrefType::PREF_TYPE_NUMBER; +@@ -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; -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - (*s_allowlist)[::prefs::kSystemTheme] = - settings_api::PrefType::PREF_TYPE_NUMBER; + (*s_allowlist)[::prefs::kSystemTheme] = settings_api::PrefType::kNumber; #endif + (*s_allowlist)[::prefs::kHomePage] = settings_api::PrefType::kUrl; diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_tabs_tabs_api_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_tabs_tabs_api_cc index e04e7eb9d..a0968bce8 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_tabs_tabs_api_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_tabs_tabs_api_cc @@ -1,12 +1,12 @@ Index: chrome/browser/extensions/api/tabs/tabs_api.cc --- chrome/browser/extensions/api/tabs/tabs_api.cc.orig +++ chrome/browser/extensions/api/tabs/tabs_api.cc -@@ -860,7 +860,7 @@ ExtensionFunction::ResponseAction WindowsCreateFunctio - // ui::SHOW_STATE_MINIMIZED above, on Linux the window is not created as +@@ -890,7 +890,7 @@ ExtensionFunction::ResponseAction WindowsCreateFunctio // minimized. // TODO(crbug.com/1410400): Remove this workaround when linux is fixed. --#if BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) // TODO(crbug.com/1410400): Find a fix for wayland as well. - - // Must be defined inside IS_LINUX to compile on windows/mac. +-#if BUILDFLAG(IS_LINUX) && BUILDFLAG(IS_OZONE_X11) ++#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && BUILDFLAG(IS_OZONE_X11) + if (new_window->initial_show_state() == ui::SHOW_STATE_MINIMIZED) { + new_window->window()->Minimize(); + } diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_webrtc_logging_private_webrtc_logging_private_api_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_webrtc_logging_private_webrtc_logging_private_api_cc index 76e55739f..dc0643702 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_webrtc_logging_private_webrtc_logging_private_api_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_webrtc_logging_private_webrtc_logging_private_api_cc @@ -19,7 +19,7 @@ Index: chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_priva if (extension) { enabled_by_permissions = extension->permissions_data()->active_permissions().HasAPIPermission( -@@ -580,7 +580,7 @@ void WebrtcLoggingPrivateStartEventLoggingFunction::Fi +@@ -576,7 +576,7 @@ void WebrtcLoggingPrivateStartEventLoggingFunction::Fi ExtensionFunction::ResponseAction WebrtcLoggingPrivateGetLogsDirectoryFunction::Run() { diff --git a/www/chromium/patches/patch-chrome_browser_extensions_api_webstore_private_webstore_private_api_cc b/www/chromium/patches/patch-chrome_browser_extensions_api_webstore_private_webstore_private_api_cc index 91c30fc62..0ac8164a3 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_api_webstore_private_webstore_private_api_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_api_webstore_private_webstore_private_api_cc @@ -1,10 +1,10 @@ Index: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc --- chrome/browser/extensions/api/webstore_private/webstore_private_api.cc.orig +++ chrome/browser/extensions/api/webstore_private/webstore_private_api.cc -@@ -924,7 +924,7 @@ void WebstorePrivateBeginInstallWithManifest3Function: - RequestExtensionApproval(contents); - return; - } +@@ -934,7 +934,7 @@ void WebstorePrivateBeginInstallWithManifest3Function: + #if BUILDFLAG(IS_CHROMEOS) + RequestExtensionApproval(contents); + return; -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) // Shows a parental permission dialog directly bypassing the extension diff --git a/www/chromium/patches/patch-chrome_browser_extensions_external_provider_impl_cc b/www/chromium/patches/patch-chrome_browser_extensions_external_provider_impl_cc index 1df1de808..3d7bde6e7 100644 --- a/www/chromium/patches/patch-chrome_browser_extensions_external_provider_impl_cc +++ b/www/chromium/patches/patch-chrome_browser_extensions_external_provider_impl_cc @@ -1,7 +1,7 @@ Index: chrome/browser/extensions/external_provider_impl.cc --- chrome/browser/extensions/external_provider_impl.cc.orig +++ chrome/browser/extensions/external_provider_impl.cc -@@ -829,7 +829,7 @@ void ExternalProviderImpl::CreateExternalProviders( +@@ -830,7 +830,7 @@ void ExternalProviderImpl::CreateExternalProviders( if (!profile->GetPrefs()->GetBoolean(pref_names::kBlockExternalExtensions)) { // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. @@ -10,7 +10,7 @@ Index: chrome/browser/extensions/external_provider_impl.cc provider_list->push_back(std::make_unique( service, base::MakeRefCounted( -@@ -857,7 +857,7 @@ void ExternalProviderImpl::CreateExternalProviders( +@@ -858,7 +858,7 @@ void ExternalProviderImpl::CreateExternalProviders( bundled_extension_creation_flags)); // Define a per-user source of external extensions. diff --git a/www/chromium/patches/patch-chrome_browser_file_system_access_chrome_file_system_access_permission_context_cc b/www/chromium/patches/patch-chrome_browser_file_system_access_chrome_file_system_access_permission_context_cc index 3ef1d7b19..13837d037 100644 --- a/www/chromium/patches/patch-chrome_browser_file_system_access_chrome_file_system_access_permission_context_cc +++ b/www/chromium/patches/patch-chrome_browser_file_system_access_chrome_file_system_access_permission_context_cc @@ -1,7 +1,7 @@ Index: chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc --- chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc.orig +++ chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc -@@ -314,7 +314,7 @@ const struct { +@@ -317,7 +317,7 @@ const struct { FILE_PATH_LITERAL("Library/Mobile Documents/com~apple~CloudDocs"), kDontBlockChildren}, #endif diff --git a/www/chromium/patches/patch-chrome_browser_flag_descriptions_cc b/www/chromium/patches/patch-chrome_browser_flag_descriptions_cc index 764b3880a..6eefd61cc 100644 --- a/www/chromium/patches/patch-chrome_browser_flag_descriptions_cc +++ b/www/chromium/patches/patch-chrome_browser_flag_descriptions_cc @@ -1,16 +1,25 @@ Index: chrome/browser/flag_descriptions.cc --- chrome/browser/flag_descriptions.cc.orig +++ chrome/browser/flag_descriptions.cc -@@ -2588,7 +2588,7 @@ const char kWebUIOmniboxPopupName[] = "WebUI Omnibox P - const char kWebUIOmniboxPopupDescription[] = - "If enabled, shows the omnibox suggestions popup in WebUI."; +@@ -2946,7 +2946,7 @@ const char kCbdTimeframeRequiredDescription[] = + "value to the list."; --#if !BUILDFLAG(IS_LINUX) -+#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) - const char kWebUiSystemFontName[] = "WebUI System font"; - const char kWebUiSystemFontDescription[] = - "If enabled, all WebUI surfaces will use the default UI font of the " -@@ -7151,7 +7151,7 @@ const char kLacrosMergeIcuDataFileDescription[] = + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS_ASH) ++ BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) + const char kPolicyIndicationForManagedDefaultSearchName[] = + "Enable policy indication for managed Default Search provider"; + const char kPolicyIndicationForManagedDefaultSearchDescription[] = +@@ -3259,7 +3259,7 @@ const char kSiteInstanceGroupsForDataUrlsDescription[] + "but in the same SiteInstanceGroup, and thus the same process."; + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS) ++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + const char kSiteSearchSettingsPolicyName[] = "Enable SiteSearchSettings policy"; + const char kSiteSearchSettingsPolicyDescription[] = + "Allow site search engines to be defined by the SiteSearchSettings policy."; +@@ -7496,7 +7496,7 @@ const char kLacrosMergeIcuDataFileDescription[] = "Enables sharing common areas of icudtl.dat between Ash and Lacros."; #endif // #if BUILDFLAG(IS_CHROMEOS_LACROS) @@ -19,17 +28,17 @@ Index: chrome/browser/flag_descriptions.cc const char kGetAllScreensMediaName[] = "GetAllScreensMedia API"; const char kGetAllScreensMediaDescription[] = "When enabled, the getAllScreensMedia API for capturing multiple screens " -@@ -7366,7 +7366,7 @@ const char kSearchWebInSidePanelDescription[] = - // Random platform combinations ----------------------------------------------- +@@ -7756,7 +7756,7 @@ const char kV4L2FlatStatefulVideoDecoderDescription[] - #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ -- BUILDFLAG(IS_FUCHSIA) -+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) - const char kQuickCommandsName[] = "Quick Commands"; - const char kQuickCommandsDescription[] = - "Enable a text interface to browser features. Invoke with Ctrl-Space."; -@@ -7375,7 +7375,7 @@ const char kQuickCommandsDescription[] = - // BUILDFLAG(IS_FUCHSIA) + // Linux ----------------------------------------------------------------------- + +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + const char kOzonePlatformHintChoiceDefault[] = "Default"; + const char kOzonePlatformHintChoiceAuto[] = "Auto"; + const char kOzonePlatformHintChoiceX11[] = "X11"; +@@ -7804,7 +7804,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) || \ - BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_CHROMEOS) @@ -37,7 +46,7 @@ Index: chrome/browser/flag_descriptions.cc const char kFollowingFeedSidepanelName[] = "Following feed in the sidepanel"; const char kFollowingFeedSidepanelDescription[] = "Enables the following feed in the sidepanel."; -@@ -7390,7 +7390,7 @@ const char kEnableProtoApiForClassifyUrlDescription[] +@@ -7819,7 +7819,7 @@ const char kEnableProtoApiForClassifyUrlDescription[] "instead of JSON."; #endif @@ -46,16 +55,7 @@ Index: chrome/browser/flag_descriptions.cc const char kEnableNetworkServiceSandboxName[] = "Enable the network service sandbox."; const char kEnableNetworkServiceSandboxDescription[] = -@@ -7414,7 +7414,7 @@ const char kWebShareDescription[] = - "platforms."; - #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) - --#if BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) -+#if (BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS)) || BUILDFLAG(IS_BSD) - const char kOzonePlatformHintChoiceDefault[] = "Default"; - const char kOzonePlatformHintChoiceAuto[] = "Auto"; - const char kOzonePlatformHintChoiceX11[] = "X11"; -@@ -7434,7 +7434,7 @@ const char kWebBluetoothConfirmPairingSupportDescripti +@@ -7851,7 +7851,7 @@ const char kWebBluetoothConfirmPairingSupportDescripti "Bluetooth"; #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) @@ -64,8 +64,8 @@ Index: chrome/browser/flag_descriptions.cc const char kSkipUndecryptablePasswordsName[] = "Skip undecryptable passwords to use the available decryptable " "passwords."; -@@ -7448,7 +7448,7 @@ const char kForcePasswordInitialSyncWhenDecryptionFail - "storage and requests initial sync."; +@@ -7871,7 +7871,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) @@ -73,7 +73,7 @@ Index: chrome/browser/flag_descriptions.cc const char kAsyncDnsName[] = "Async DNS resolver"; const char kAsyncDnsDescription[] = "Enables the built-in DNS resolver."; #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) -@@ -7555,7 +7555,7 @@ const char kElasticOverscrollDescription[] = +@@ -7972,7 +7972,7 @@ const char kElementCaptureDescription[] = #if BUILDFLAG(IS_WIN) || \ (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \ @@ -82,18 +82,9 @@ Index: chrome/browser/flag_descriptions.cc const char kUIDebugToolsName[] = "Debugging tools for UI"; const char kUIDebugToolsDescription[] = "Enables additional keyboard shortcuts to help debugging."; -@@ -7567,7 +7567,7 @@ const char kSyncPollImmediatelyOnEveryStartupDescripti - #endif - - #if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) || \ -- BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) -+ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) - const char kDataRetentionPoliciesDisableSyncTypesNeededName[] = - "Data Retention Policies Disable Sync Types"; - const char kDataRetentionPoliciesDisableSyncTypesNeededDescription[] = -@@ -7612,7 +7612,7 @@ const char kEnableAudioFocusEnforcementDescription[] = - "any one time. Requires #enable-media-session-service to be enabled too."; - #endif // BUILDFLAG(IS_CHROMEOS_ASH) +@@ -8021,7 +8021,7 @@ const char kComposeTextSelectionDescription[] = + "Enables feature for different heuristics for selecting text for Compose"; + #endif // BUILDFLAG(ENABLE_COMPOSE) -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) diff --git a/www/chromium/patches/patch-chrome_browser_flag_descriptions_h b/www/chromium/patches/patch-chrome_browser_flag_descriptions_h index a34bfff6d..8163561d0 100644 --- a/www/chromium/patches/patch-chrome_browser_flag_descriptions_h +++ b/www/chromium/patches/patch-chrome_browser_flag_descriptions_h @@ -1,16 +1,25 @@ Index: chrome/browser/flag_descriptions.h --- chrome/browser/flag_descriptions.h.orig +++ chrome/browser/flag_descriptions.h -@@ -1472,7 +1472,7 @@ extern const char kOmnibox2023RefreshConnectionSecurit - extern const char kWebUIOmniboxPopupName[]; - extern const char kWebUIOmniboxPopupDescription[]; +@@ -1709,7 +1709,7 @@ extern const char kCbdTimeframeRequiredName[]; + extern const char kCbdTimeframeRequiredDescription[]; --#if !BUILDFLAG(IS_LINUX) -+#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_BSD) - extern const char kWebUiSystemFontName[]; - extern const char kWebUiSystemFontDescription[]; + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS_ASH) ++ BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) + extern const char kPolicyIndicationForManagedDefaultSearchName[]; + extern const char kPolicyIndicationForManagedDefaultSearchDescription[]; #endif -@@ -4103,7 +4103,7 @@ extern const char kLacrosMergeIcuDataFileName[]; +@@ -1890,7 +1890,7 @@ extern const char kSiteInstanceGroupsForDataUrlsName[] + extern const char kSiteInstanceGroupsForDataUrlsDescription[]; + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS) ++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + extern const char kSiteSearchSettingsPolicyName[]; + extern const char kSiteSearchSettingsPolicyDescription[]; + #endif +@@ -4323,7 +4323,7 @@ extern const char kLacrosMergeIcuDataFileName[]; extern const char kLacrosMergeIcuDataFileDescription[]; #endif // #if BUILDFLAG(IS_CHROMEOS_LACROS) @@ -19,43 +28,26 @@ Index: chrome/browser/flag_descriptions.h extern const char kGetAllScreensMediaName[]; extern const char kGetAllScreensMediaDescription[]; #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) -@@ -4233,14 +4233,14 @@ extern const char kSearchWebInSidePanelDescription[]; - // Random platform combinations ----------------------------------------------- +@@ -4471,7 +4471,7 @@ extern const char kV4L2FlatStatefulVideoDecoderDescrip - #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ -- BUILDFLAG(IS_FUCHSIA) -+ BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) - extern const char kQuickCommandsName[]; - extern const char kQuickCommandsDescription[]; - - #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || - // defined (OS_FUCHSIA) - --#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) -+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) - extern const char kWebShareName[]; - extern const char kWebShareDescription[]; - #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) -@@ -4250,7 +4250,7 @@ extern const char kWebBluetoothConfirmPairingSupportNa - extern const char kWebBluetoothConfirmPairingSupportDescription[]; - #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) + // Linux --------------------------------------------------------------------- -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) extern const char kOzonePlatformHintChoiceDefault[]; extern const char kOzonePlatformHintChoiceAuto[]; extern const char kOzonePlatformHintChoiceX11[]; -@@ -4260,7 +4260,7 @@ extern const char kOzonePlatformHintName[]; - extern const char kOzonePlatformHintDescription[]; - #endif // BUILDFLAG(IS_LINUX) +@@ -4513,7 +4513,7 @@ extern const char kWebBluetoothConfirmPairingSupportNa + extern const char kWebBluetoothConfirmPairingSupportDescription[]; + #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) extern const char kSkipUndecryptablePasswordsName[]; extern const char kSkipUndecryptablePasswordsDescription[]; -@@ -4268,13 +4268,13 @@ extern const char kForcePasswordInitialSyncWhenDecrypt - extern const char kForcePasswordInitialSyncWhenDecryptionFailsDescription[]; +@@ -4524,13 +4524,13 @@ extern const char kRestartToGainAccessToKeychainName[] + extern const char kRestartToGainAccessToKeychainDescription[]; #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) @@ -70,7 +62,7 @@ Index: chrome/browser/flag_descriptions.h extern const char kFollowingFeedSidepanelName[]; extern const char kFollowingFeedSidepanelDescription[]; #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || -@@ -4285,7 +4285,7 @@ extern const char kEnableProtoApiForClassifyUrlName[]; +@@ -4541,7 +4541,7 @@ extern const char kEnableProtoApiForClassifyUrlName[]; extern const char kEnableProtoApiForClassifyUrlDescription[]; #endif // BUILDFLAG(ENABLE_SUPERVISED_USERS) @@ -79,7 +71,7 @@ Index: chrome/browser/flag_descriptions.h extern const char kEnableNetworkServiceSandboxName[]; extern const char kEnableNetworkServiceSandboxDescription[]; -@@ -4367,7 +4367,7 @@ extern const char kElasticOverscrollDescription[]; +@@ -4618,7 +4618,7 @@ extern const char kElementCaptureDescription[]; #if BUILDFLAG(IS_WIN) || \ (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || \ @@ -88,21 +80,12 @@ Index: chrome/browser/flag_descriptions.h extern const char kUIDebugToolsName[]; extern const char kUIDebugToolsDescription[]; -@@ -4376,7 +4376,7 @@ extern const char kSyncPollImmediatelyOnEveryStartupDe - #endif - - #if BUILDFLAG(IS_WIN) || (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) || \ -- BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) -+ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) - extern const char kDataRetentionPoliciesDisableSyncTypesNeededName[]; - extern const char kDataRetentionPoliciesDisableSyncTypesNeededDescription[]; - #endif -@@ -4403,7 +4403,7 @@ extern const char kEnableAudioFocusEnforcementName[]; - extern const char kEnableAudioFocusEnforcementDescription[]; - #endif // BUILDFLAG(IS_CHROMEOS_ASH) +@@ -4652,7 +4652,7 @@ extern const char kComposeTextSelectionName[]; + extern const char kComposeTextSelectionDescription[]; + #endif // BUILDFLAG(ENABLE_COMPOSE) -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) extern const char kThirdPartyProfileManagementName[]; extern const char kThirdPartyProfileManagementDescription[]; - #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) + diff --git a/www/chromium/patches/patch-chrome_browser_headless_headless_mode_util_cc b/www/chromium/patches/patch-chrome_browser_headless_headless_mode_util_cc index 06c976207..9ac18d5d8 100644 --- a/www/chromium/patches/patch-chrome_browser_headless_headless_mode_util_cc +++ b/www/chromium/patches/patch-chrome_browser_headless_headless_mode_util_cc @@ -1,27 +1,21 @@ Index: chrome/browser/headless/headless_mode_util.cc --- chrome/browser/headless/headless_mode_util.cc.orig +++ chrome/browser/headless/headless_mode_util.cc -@@ -10,12 +10,12 @@ - // New headless mode is available on Linux, Windows and Mac platforms. - // More platforms will be added later, so avoid function level clutter - // by providing stub implementations at the end of the file. --#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) -+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) - - #include "base/base_switches.h" +@@ -19,7 +19,7 @@ #include "chrome/common/chrome_switches.h" + #include "content/public/common/content_switches.h" -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) #include "ui/gl/gl_switches.h" // nogncheck #include "ui/ozone/public/ozone_switches.h" // nogncheck #endif // BUILDFLAG(IS_LINUX) -@@ -73,7 +73,7 @@ void SetUpCommandLine(const base::CommandLine* command - ::switches::kNoErrorDialogs); - } +@@ -87,7 +87,7 @@ class HeadlessModeHandleImpl : public HeadlessModeHand + command_line->AppendSwitchPath(switches::kUserDataDir, GetUserDataDir()); + } -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) // Headless mode on Linux relies on ozone/headless platform. - base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( - ::switches::kOzonePlatform, switches::kHeadless); + command_line->AppendSwitchASCII(::switches::kOzonePlatform, + switches::kHeadless); diff --git a/www/chromium/patches/patch-chrome_browser_intranet_redirect_detector_h b/www/chromium/patches/patch-chrome_browser_intranet_redirect_detector_h index e563825d4..9b0402bb7 100644 --- a/www/chromium/patches/patch-chrome_browser_intranet_redirect_detector_h +++ b/www/chromium/patches/patch-chrome_browser_intranet_redirect_detector_h @@ -1,7 +1,7 @@ Index: chrome/browser/intranet_redirect_detector.h --- chrome/browser/intranet_redirect_detector.h.orig +++ chrome/browser/intranet_redirect_detector.h -@@ -27,7 +27,7 @@ class SimpleURLLoader; +@@ -25,7 +25,7 @@ class SimpleURLLoader; class PrefRegistrySimple; #if !(BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || \ diff --git a/www/chromium/patches/patch-chrome_browser_media_galleries_media_file_system_registry_cc b/www/chromium/patches/patch-chrome_browser_media_galleries_media_file_system_registry_cc index 7d07c8cfe..5bf05534b 100644 --- a/www/chromium/patches/patch-chrome_browser_media_galleries_media_file_system_registry_cc +++ b/www/chromium/patches/patch-chrome_browser_media_galleries_media_file_system_registry_cc @@ -1,7 +1,7 @@ Index: chrome/browser/media_galleries/media_file_system_registry.cc --- chrome/browser/media_galleries/media_file_system_registry.cc.orig +++ chrome/browser/media_galleries/media_file_system_registry.cc -@@ -586,7 +586,12 @@ class MediaFileSystemRegistry::MediaFileSystemContextI +@@ -584,7 +584,12 @@ class MediaFileSystemRegistry::MediaFileSystemContextI // Constructor in 'private' section because depends on private class definition. MediaFileSystemRegistry::MediaFileSystemRegistry() : file_system_context_(new MediaFileSystemContextImpl) { diff --git a/www/chromium/patches/patch-chrome_browser_media_router_discovery_BUILD_gn b/www/chromium/patches/patch-chrome_browser_media_router_discovery_BUILD_gn index d0d310804..f2652bbcb 100644 --- a/www/chromium/patches/patch-chrome_browser_media_router_discovery_BUILD_gn +++ b/www/chromium/patches/patch-chrome_browser_media_router_discovery_BUILD_gn @@ -1,9 +1,9 @@ Index: chrome/browser/media/router/discovery/BUILD.gn --- chrome/browser/media/router/discovery/BUILD.gn.orig +++ chrome/browser/media/router/discovery/BUILD.gn -@@ -80,7 +80,7 @@ static_library("discovery") { - "media_sink_discovery_metrics.h", +@@ -81,7 +81,7 @@ static_library("discovery") { ] + configs += [ "//build/config/compiler:wexit_time_destructors" ] - if (is_linux || is_chromeos) { + if ((is_linux || is_chromeos) && !is_bsd) { diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_capture_policy_utils_cc b/www/chromium/patches/patch-chrome_browser_media_webrtc_capture_policy_utils_cc deleted file mode 100644 index cd5f9134f..000000000 --- a/www/chromium/patches/patch-chrome_browser_media_webrtc_capture_policy_utils_cc +++ /dev/null @@ -1,21 +0,0 @@ -Index: chrome/browser/media/webrtc/capture_policy_utils.cc ---- chrome/browser/media/webrtc/capture_policy_utils.cc.orig -+++ chrome/browser/media/webrtc/capture_policy_utils.cc -@@ -139,7 +139,7 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry - } - - bool IsGetAllScreensMediaAllowedForAnySite(content::BrowserContext* context) { --#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - Profile* profile = Profile::FromBrowserContext(context); - if (!profile) { - return false; -@@ -174,7 +174,7 @@ bool IsGetAllScreensMediaAllowedForAnySite(content::Br - - bool IsGetAllScreensMediaAllowed(content::BrowserContext* context, - const GURL& url) { --#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - Profile* profile = Profile::FromBrowserContext(context); - if (!profile) { - return false; diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_chrome_screen_enumerator_cc b/www/chromium/patches/patch-chrome_browser_media_webrtc_chrome_screen_enumerator_cc index 61db893b7..c81981efd 100644 --- a/www/chromium/patches/patch-chrome_browser_media_webrtc_chrome_screen_enumerator_cc +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_chrome_screen_enumerator_cc @@ -10,8 +10,8 @@ Index: chrome/browser/media/webrtc/chrome_screen_enumerator.cc #include "base/functional/callback.h" #include "content/public/browser/desktop_capture.h" #endif -@@ -32,7 +32,7 @@ base::LazyInstance>::Destru - root_windows_for_testing_ = LAZY_INSTANCE_INITIALIZER; +@@ -32,7 +32,7 @@ base::LazyInstance>::DestructorAtExit g_desktop_capturer_for_testing = LAZY_INSTANCE_INITIALIZER; -@@ -78,7 +78,7 @@ blink::mojom::StreamDevicesSetPtr EnumerateScreens( +@@ -79,7 +79,7 @@ blink::mojom::StreamDevicesSetPtr EnumerateScreens( return stream_devices_set; } @@ -28,7 +28,7 @@ Index: chrome/browser/media/webrtc/chrome_screen_enumerator.cc blink::mojom::StreamDevicesSetPtr EnumerateScreens( blink::mojom::MediaStreamType stream_type) { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); -@@ -129,7 +129,7 @@ void ChromeScreenEnumerator::SetRootWindowsForTesting( +@@ -130,7 +130,7 @@ void ChromeScreenEnumerator::SetRootWindowsForTesting( root_windows_for_testing_.Get() = std::move(root_windows); } @@ -38,8 +38,8 @@ Index: chrome/browser/media/webrtc/chrome_screen_enumerator.cc std::unique_ptr capturer) { g_desktop_capturer_for_testing.Get() = std::move(capturer); @@ -143,7 +143,7 @@ void ChromeScreenEnumerator::EnumerateScreens( + ScreensCallback screens_callback) const { DCHECK_CURRENTLY_ON(content::BrowserThread::IO); - DCHECK(base::FeatureList::IsEnabled(blink::features::kGetAllScreensMedia)); -#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_chrome_screen_enumerator_h b/www/chromium/patches/patch-chrome_browser_media_webrtc_chrome_screen_enumerator_h index fe3d4f034..569c17d2f 100644 --- a/www/chromium/patches/patch-chrome_browser_media_webrtc_chrome_screen_enumerator_h +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_chrome_screen_enumerator_h @@ -1,7 +1,7 @@ Index: chrome/browser/media/webrtc/chrome_screen_enumerator.h --- chrome/browser/media/webrtc/chrome_screen_enumerator.h.orig +++ chrome/browser/media/webrtc/chrome_screen_enumerator.h -@@ -21,7 +21,7 @@ namespace aura { +@@ -20,7 +20,7 @@ namespace aura { class Window; } @@ -11,9 +11,9 @@ Index: chrome/browser/media/webrtc/chrome_screen_enumerator.h class DesktopCapturer; } @@ -42,7 +42,7 @@ class ChromeScreenEnumerator : public media::ScreenEnu - #if BUILDFLAG(IS_CHROMEOS_ASH) - static void SetRootWindowsForTesting(std::vector root_windows); + static void SetRootWindowsForTesting( + std::vector> root_windows); -#elif BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_LINUX) +#elif BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) static void SetDesktopCapturerForTesting( diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_desktop_media_picker_controller_cc b/www/chromium/patches/patch-chrome_browser_media_webrtc_desktop_media_picker_controller_cc new file mode 100644 index 000000000..f05b7bcf6 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_desktop_media_picker_controller_cc @@ -0,0 +1,12 @@ +Index: chrome/browser/media/webrtc/desktop_media_picker_controller.cc +--- chrome/browser/media/webrtc/desktop_media_picker_controller.cc.orig ++++ chrome/browser/media/webrtc/desktop_media_picker_controller.cc +@@ -92,7 +92,7 @@ bool DesktopMediaPickerController::IsSystemAudioCaptur + } else { + return base::FeatureList::IsEnabled(media::kMacLoopbackAudioForScreenShare); + } +-#elif BUILDFLAG(IS_LINUX) ++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (request_source == Params::RequestSource::kCast) { + return base::FeatureList::IsEnabled(media::kPulseaudioLoopbackForCast); + } else { diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_event_log_uploader_cc b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_event_log_uploader_cc deleted file mode 100644 index 287d02670..000000000 --- a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_event_log_uploader_cc +++ /dev/null @@ -1,12 +0,0 @@ -Index: chrome/browser/media/webrtc/webrtc_event_log_uploader.cc ---- chrome/browser/media/webrtc/webrtc_event_log_uploader.cc.orig -+++ chrome/browser/media/webrtc/webrtc_event_log_uploader.cc -@@ -42,7 +42,7 @@ const char kProduct[] = "Chrome"; - const char kProduct[] = "Chrome_Mac"; - #elif BUILDFLAG(IS_CHROMEOS_ASH) - const char kProduct[] = "Chrome_ChromeOS"; --#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) -+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) - const char kProduct[] = "Chrome_Linux"; - #elif BUILDFLAG(IS_ANDROID) - const char kProduct[] = "Chrome_Android"; diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_log_uploader_cc b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_log_uploader_cc index 5a174470c..175d0e726 100644 --- a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_log_uploader_cc +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_log_uploader_cc @@ -1,14 +1,12 @@ Index: chrome/browser/media/webrtc/webrtc_log_uploader.cc --- chrome/browser/media/webrtc/webrtc_log_uploader.cc.orig +++ chrome/browser/media/webrtc/webrtc_log_uploader.cc -@@ -373,6 +373,10 @@ void WebRtcLogUploader::SetupMultipart( - const char product[] = "Chrome_ChromeOS"; - #elif BUILDFLAG(IS_FUCHSIA) - const char product[] = "Chrome_Fuchsia"; -+#elif defined(OS_OPENBSD) -+ const char product[] = "Chrome_OpenBSD"; -+#elif defined(OS_FREEBSD) -+ const char product[] = "Chrome_FreeBSD"; +@@ -100,7 +100,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. +-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) ++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD) + #if !defined(ADDRESS_SANITIZER) + const char product[] = "Chrome_Linux"; #else - #error Platform not supported. - #endif diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_cc b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_cc index 6d9af0f75..c95c5819d 100644 --- a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_cc +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_cc @@ -14,7 +14,7 @@ Index: chrome/browser/media/webrtc/webrtc_logging_controller.cc using webrtc_event_logging::WebRtcEventLogManager; -@@ -284,7 +284,7 @@ void WebRtcLoggingController::StartEventLogging( +@@ -288,7 +288,7 @@ void WebRtcLoggingController::StartEventLogging( web_app_id, callback); } @@ -23,7 +23,7 @@ Index: chrome/browser/media/webrtc/webrtc_logging_controller.cc void WebRtcLoggingController::GetLogsDirectory( LogsDirectoryCallback callback, LogsDirectoryErrorCallback error_callback) { -@@ -329,7 +329,7 @@ void WebRtcLoggingController::GrantLogsDirectoryAccess +@@ -334,7 +334,7 @@ void WebRtcLoggingController::GrantLogsDirectoryAccess FROM_HERE, base::BindOnce(std::move(callback), file_system.id(), registered_name)); } diff --git a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_h b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_h index e61aa6b8f..f0f351114 100644 --- a/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_h +++ b/www/chromium/patches/patch-chrome_browser_media_webrtc_webrtc_logging_controller_h @@ -1,7 +1,7 @@ Index: chrome/browser/media/webrtc/webrtc_logging_controller.h --- chrome/browser/media/webrtc/webrtc_logging_controller.h.orig +++ chrome/browser/media/webrtc/webrtc_logging_controller.h -@@ -134,7 +134,7 @@ class WebRtcLoggingController +@@ -133,7 +133,7 @@ class WebRtcLoggingController size_t web_app_id, const StartEventLoggingCallback& callback); @@ -10,7 +10,7 @@ Index: chrome/browser/media/webrtc/webrtc_logging_controller.h // Ensures that the WebRTC Logs directory exists and then grants render // process access to the 'WebRTC Logs' directory, and invokes |callback| with // the ids necessary to create a DirectoryEntry object. -@@ -199,7 +199,7 @@ class WebRtcLoggingController +@@ -197,7 +197,7 @@ class WebRtcLoggingController content::BrowserContext* GetBrowserContext() const; diff --git a/www/chromium/patches/patch-chrome_browser_memory_details_cc b/www/chromium/patches/patch-chrome_browser_memory_details_cc index e4a52adae..1b8a6d17c 100644 --- a/www/chromium/patches/patch-chrome_browser_memory_details_cc +++ b/www/chromium/patches/patch-chrome_browser_memory_details_cc @@ -11,7 +11,7 @@ Index: chrome/browser/memory_details.cc #endif @@ -335,7 +335,7 @@ void MemoryDetails::CollectChildInfoOnUIThread() { - std::ref(process))); + }); } -#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC) && !BUILDFLAG(IS_ANDROID) diff --git a/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc b/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc index 6154c09d7..c17c49673 100644 --- a/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc +++ b/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc @@ -1,7 +1,7 @@ Index: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc --- chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc.orig +++ chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc -@@ -78,8 +78,10 @@ +@@ -80,8 +80,10 @@ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. @@ -13,7 +13,7 @@ Index: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc #include "base/linux_util.h" #include "base/strings/string_split.h" -@@ -108,7 +110,7 @@ +@@ -106,7 +108,7 @@ #include "chromeos/crosapi/cpp/crosapi_constants.h" #endif // BUILDFLAG(IS_CHROMEOS_LACROS) @@ -22,7 +22,7 @@ Index: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc #include "chrome/browser/metrics/pressure/pressure_metrics_reporter.h" #endif // BUILDFLAG(IS_LINUX) -@@ -117,7 +119,7 @@ +@@ -115,7 +117,7 @@ #include "components/user_manager/user_manager.h" #endif // BUILDFLAG(IS_CHROMEOS_ASH) @@ -31,7 +31,7 @@ Index: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc #include "components/power_metrics/system_power_monitor.h" #endif -@@ -917,7 +919,7 @@ void RecordStartupMetrics() { +@@ -860,7 +862,7 @@ void RecordStartupMetrics() { // Record whether Chrome is the default browser or not. // Disabled on Linux due to hanging browser tests, see crbug.com/1216328. @@ -40,7 +40,7 @@ Index: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc shell_integration::DefaultWebClientState default_state = shell_integration::GetDefaultBrowser(); base::UmaHistogramEnumeration("DefaultBrowser.State", default_state, -@@ -1227,11 +1229,11 @@ void ChromeBrowserMainExtraPartsMetrics::PostBrowserSt +@@ -1164,11 +1166,11 @@ void ChromeBrowserMainExtraPartsMetrics::PostBrowserSt } #endif // !BUILDFLAG(IS_ANDROID) diff --git a/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_h b/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_h index 243942706..1fd53ce6d 100644 --- a/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_h +++ b/www/chromium/patches/patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_h @@ -1,7 +1,7 @@ Index: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h --- chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h.orig +++ chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h -@@ -33,7 +33,7 @@ class PowerMetricsReporter; +@@ -28,7 +28,7 @@ class PowerMetricsReporter; class ProcessMonitor; #endif @@ -10,7 +10,7 @@ Index: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h class PressureMetricsReporter; #endif // BUILDFLAG(IS_LINUX) -@@ -139,7 +139,7 @@ class ChromeBrowserMainExtraPartsMetrics : public Chro +@@ -115,7 +115,7 @@ class ChromeBrowserMainExtraPartsMetrics : public Chro std::unique_ptr battery_discharge_reporter_; #endif // !BUILDFLAG(IS_ANDROID) diff --git a/www/chromium/patches/patch-chrome_browser_metrics_chrome_metrics_service_client_cc b/www/chromium/patches/patch-chrome_browser_metrics_chrome_metrics_service_client_cc index d26a08e3f..d8d2b25b3 100644 --- a/www/chromium/patches/patch-chrome_browser_metrics_chrome_metrics_service_client_cc +++ b/www/chromium/patches/patch-chrome_browser_metrics_chrome_metrics_service_client_cc @@ -1,7 +1,7 @@ Index: chrome/browser/metrics/chrome_metrics_service_client.cc --- chrome/browser/metrics/chrome_metrics_service_client.cc.orig +++ chrome/browser/metrics/chrome_metrics_service_client.cc -@@ -183,7 +183,7 @@ +@@ -194,7 +194,7 @@ #include "chrome/notification_helper/notification_helper_constants.h" #endif @@ -10,16 +10,34 @@ Index: chrome/browser/metrics/chrome_metrics_service_client.cc #include "components/metrics/motherboard_metrics_provider.h" #endif -@@ -209,7 +209,7 @@ +@@ -211,7 +211,7 @@ + #include "chrome/browser/metrics/power/power_metrics_provider_mac.h" + #endif + +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + #include "chrome/browser/metrics/bluetooth_metrics_provider.h" #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) - #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ -- BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_ANDROID) -+ BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) - #include "chrome/browser/metrics/family_link_user_metrics_provider.h" - #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) || - // BUILDFLAG(IS_CHROMEOS_LACROS))||BUILDFLAG(IS_ANDROID)) -@@ -809,7 +809,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic +@@ -577,7 +577,7 @@ void ChromeMetricsServiceClient::RegisterPrefs(PrefReg + #endif // BUILDFLAG(IS_CHROMEOS_ASH) + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ +- BUILDFLAG(IS_MAC) ++ BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) + metrics::structured::StructuredMetricsService::RegisterPrefs(registry); + + #if !BUILDFLAG(IS_CHROMEOS_ASH) +@@ -749,7 +749,7 @@ void ChromeMetricsServiceClient::Initialize() { + RegisterUKMProviders(); + } + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \ +- BUILDFLAG(IS_CHROMEOS_ASH) ++ BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) + metrics::structured::Recorder::GetInstance()->SetUiTaskRunner( + base::SequencedTaskRunner::GetCurrentDefault()); + #endif +@@ -796,7 +796,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic metrics_service_->RegisterMetricsProvider( std::make_unique()); @@ -28,16 +46,16 @@ Index: chrome/browser/metrics/chrome_metrics_service_client.cc metrics_service_->RegisterMetricsProvider( std::make_unique()); #endif -@@ -891,7 +891,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic - +@@ -881,7 +881,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) || \ -+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ +- (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) ++ (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) metrics_service_->RegisterMetricsProvider( std::make_unique()); -@@ -1007,7 +1007,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic + #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) || +@@ -991,7 +991,7 @@ void ChromeMetricsServiceClient::RegisterMetricsServic std::make_unique()); #endif @@ -46,12 +64,21 @@ Index: chrome/browser/metrics/chrome_metrics_service_client.cc metrics_service_->RegisterMetricsProvider( metrics::CreateDesktopSessionMetricsProvider()); #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || (BUILDFLAG(IS_LINUX) -@@ -1206,7 +1206,7 @@ bool ChromeMetricsServiceClient::RegisterForProfileEve - #endif +@@ -1170,7 +1170,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) || \ -+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) || \ - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ +- (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) ++ (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) || BUILDFLAG(IS_BSD) // This creates the DesktopProfileSessionDurationsServices if it didn't exist // already. + metrics::DesktopProfileSessionDurationsServiceFactory::GetForBrowserContext( +@@ -1513,7 +1513,7 @@ void ChromeMetricsServiceClient::CreateStructuredMetri + recorder = + std::make_unique( + cros_system_profile_provider_.get()); +-#elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) ++#elif BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) + + // Make sure that Structured Metrics recording delegates have been created + // before the service is created. This is handled in other places for ChromeOS diff --git a/www/chromium/patches/patch-chrome_browser_metrics_power_process_metrics_recorder_util_cc b/www/chromium/patches/patch-chrome_browser_metrics_power_process_metrics_recorder_util_cc index 1e7308ee8..a560b14ee 100644 --- a/www/chromium/patches/patch-chrome_browser_metrics_power_process_metrics_recorder_util_cc +++ b/www/chromium/patches/patch-chrome_browser_metrics_power_process_metrics_recorder_util_cc @@ -1,7 +1,7 @@ Index: chrome/browser/metrics/power/process_metrics_recorder_util.cc --- chrome/browser/metrics/power/process_metrics_recorder_util.cc.orig +++ chrome/browser/metrics/power/process_metrics_recorder_util.cc -@@ -59,7 +59,7 @@ void RecordProcessHistograms(const char* histogram_suf +@@ -65,7 +65,7 @@ void RecordProcessHistograms(const char* histogram_suf const ProcessMonitor::Metrics& metrics) { RecordAverageCPUUsage(histogram_suffix, metrics.cpu_usage); #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ diff --git a/www/chromium/patches/patch-chrome_browser_metrics_power_process_monitor_cc b/www/chromium/patches/patch-chrome_browser_metrics_power_process_monitor_cc index 130758aab..f72e30249 100644 --- a/www/chromium/patches/patch-chrome_browser_metrics_power_process_monitor_cc +++ b/www/chromium/patches/patch-chrome_browser_metrics_power_process_monitor_cc @@ -1,8 +1,8 @@ Index: chrome/browser/metrics/power/process_monitor.cc --- chrome/browser/metrics/power/process_monitor.cc.orig +++ chrome/browser/metrics/power/process_monitor.cc -@@ -65,7 +65,7 @@ ProcessMonitor::Metrics SampleMetrics(base::ProcessMet - #endif +@@ -61,7 +61,7 @@ ProcessMonitor::Metrics SampleMetrics(base::ProcessMet + metrics.cpu_usage = process_metrics.GetPlatformIndependentCPUUsage(); #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_AIX) @@ -10,8 +10,8 @@ Index: chrome/browser/metrics/power/process_monitor.cc metrics.idle_wakeups = process_metrics.GetIdleWakeupsPerSecond(); #endif #if BUILDFLAG(IS_MAC) -@@ -82,7 +82,7 @@ void ScaleMetrics(ProcessMonitor::Metrics* metrics, do - metrics->cpu_usage *= factor; +@@ -79,7 +79,7 @@ void ScaleMetrics(ProcessMonitor::Metrics* metrics, do + } #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_AIX) @@ -19,8 +19,8 @@ Index: chrome/browser/metrics/power/process_monitor.cc metrics->idle_wakeups *= factor; #endif -@@ -174,7 +174,7 @@ ProcessMonitor::Metrics& operator+=(ProcessMonitor::Me - lhs.cpu_usage += rhs.cpu_usage; +@@ -167,7 +167,7 @@ ProcessMonitor::Metrics& operator+=(ProcessMonitor::Me + } #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_AIX) diff --git a/www/chromium/patches/patch-chrome_browser_metrics_power_process_monitor_h b/www/chromium/patches/patch-chrome_browser_metrics_power_process_monitor_h index fc3017314..f678cc5e5 100644 --- a/www/chromium/patches/patch-chrome_browser_metrics_power_process_monitor_h +++ b/www/chromium/patches/patch-chrome_browser_metrics_power_process_monitor_h @@ -1,8 +1,8 @@ Index: chrome/browser/metrics/power/process_monitor.h --- chrome/browser/metrics/power/process_monitor.h.orig +++ chrome/browser/metrics/power/process_monitor.h -@@ -75,7 +75,7 @@ class ProcessMonitor : public content::BrowserChildPro - double cpu_usage = 0.0; +@@ -76,7 +76,7 @@ class ProcessMonitor : public content::BrowserChildPro + std::optional cpu_usage; #if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ - BUILDFLAG(IS_AIX) diff --git a/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_cc b/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_cc index c8c14aa5e..0c8b0b9a4 100644 --- a/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_cc +++ b/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_cc @@ -1,16 +1,34 @@ Index: chrome/browser/net/system_network_context_manager.cc --- chrome/browser/net/system_network_context_manager.cc.orig +++ chrome/browser/net/system_network_context_manager.cc -@@ -92,7 +92,7 @@ +@@ -94,7 +94,7 @@ // 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) #include "chrome/common/chrome_paths_internal.h" - #include "chrome/grit/chromium_strings.h" + #include "chrome/grit/branded_strings.h" #include "ui/base/l10n/l10n_util.h" -@@ -183,7 +183,7 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAut +@@ -139,7 +139,7 @@ SystemNetworkContextManager* g_system_network_context_ + // received a failed launch for a sandboxed network service. + bool g_previously_failed_to_launch_sandboxed_service = false; + +-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + // Whether kerberos library loading will work in the network service due to the + // sandbox. + bool g_network_service_will_allow_gssapi_library_load = false; +@@ -147,7 +147,7 @@ bool g_network_service_will_allow_gssapi_library_load + const char* kGssapiDesiredPref = + #if BUILDFLAG(IS_CHROMEOS) + prefs::kKerberosEnabled; +-#elif BUILDFLAG(IS_LINUX) ++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + prefs::kReceivedHttpAuthNegotiateHeader; + #endif + #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) +@@ -193,7 +193,7 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAut auth_dynamic_params->basic_over_http_enabled = local_state->GetBoolean(prefs::kBasicAuthOverHttpEnabled); @@ -19,7 +37,25 @@ Index: chrome/browser/net/system_network_context_manager.cc auth_dynamic_params->delegate_by_kdc_policy = local_state->GetBoolean(prefs::kAuthNegotiateDelegateByKdcPolicy); #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) -@@ -241,7 +241,7 @@ NetworkSandboxState IsNetworkSandboxEnabledInternal() +@@ -208,7 +208,7 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAut + local_state->GetString(prefs::kAuthAndroidNegotiateAccountType); + #endif // BUILDFLAG(IS_ANDROID) + +-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + auth_dynamic_params->allow_gssapi_library_load = + local_state->GetBoolean(kGssapiDesiredPref); + #endif // BUILDFLAG(IS_CHROMEOS) +@@ -218,7 +218,7 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAut + + void OnNewHttpAuthDynamicParams( + network::mojom::HttpAuthDynamicParamsPtr& params) { +-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + // The kerberos library is incompatible with the network service sandbox, so + // if library loading is now enabled, the network service needs to be + // restarted. It will be restarted unsandboxed because is +@@ -260,11 +260,11 @@ NetworkSandboxState IsNetworkSandboxEnabledInternal() if (g_previously_failed_to_launch_sandboxed_service) { return NetworkSandboxState::kDisabledBecauseOfFailedLaunch; } @@ -28,7 +64,12 @@ Index: chrome/browser/net/system_network_context_manager.cc auto* local_state = g_browser_process->local_state(); #endif -@@ -262,7 +262,7 @@ NetworkSandboxState IsNetworkSandboxEnabledInternal() +-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + // The network service sandbox and the kerberos library are incompatible. + // If kerberos is enabled by policy, disable the network service sandbox. + if (g_network_service_will_allow_gssapi_library_load || +@@ -280,7 +280,7 @@ NetworkSandboxState IsNetworkSandboxEnabledInternal() } #endif // BUILDFLAG(IS_WIN) @@ -37,7 +78,7 @@ Index: chrome/browser/net/system_network_context_manager.cc if (local_state && local_state->HasPrefPath(prefs::kNetworkServiceSandboxEnabled)) { return local_state->GetBoolean(prefs::kNetworkServiceSandboxEnabled) -@@ -457,7 +457,7 @@ void SystemNetworkContextManager::DeleteInstance() { +@@ -510,7 +510,7 @@ void SystemNetworkContextManager::DeleteInstance() { g_system_network_context_manager = nullptr; } @@ -46,7 +87,7 @@ Index: chrome/browser/net/system_network_context_manager.cc SystemNetworkContextManager::GssapiLibraryLoadObserver:: GssapiLibraryLoadObserver(SystemNetworkContextManager* owner) : owner_(owner) {} -@@ -515,7 +515,7 @@ SystemNetworkContextManager::SystemNetworkContextManag +@@ -568,7 +568,7 @@ SystemNetworkContextManager::SystemNetworkContextManag pref_change_registrar_.Add(prefs::kAllHttpAuthSchemesAllowedForOrigins, auth_pref_callback); @@ -55,8 +96,17 @@ Index: chrome/browser/net/system_network_context_manager.cc pref_change_registrar_.Add(prefs::kAuthNegotiateDelegateByKdcPolicy, auth_pref_callback); #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) -@@ -562,7 +562,7 @@ SystemNetworkContextManager::SystemNetworkContextManag - #endif // BUILDFLAG(CHROME_ROOT_STORE_POLICY_SUPPORTED) +@@ -582,7 +582,7 @@ SystemNetworkContextManager::SystemNetworkContextManag + auth_pref_callback); + #endif // BUILDFLAG(IS_ANDROID) + +-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + pref_change_registrar_.Add(kGssapiDesiredPref, auth_pref_callback); + #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) + +@@ -608,7 +608,7 @@ SystemNetworkContextManager::SystemNetworkContextManag + #endif #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) @@ -64,7 +114,7 @@ Index: chrome/browser/net/system_network_context_manager.cc pref_change_registrar_.Add( prefs::kEnforceLocalAnchorConstraintsEnabled, base::BindRepeating(&SystemNetworkContextManager:: -@@ -611,7 +611,7 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe +@@ -663,7 +663,7 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe registry->RegisterBooleanPref(prefs::kKerberosEnabled, false); #endif // BUILDFLAG(IS_CHROMEOS_LACROS) @@ -73,16 +123,16 @@ Index: chrome/browser/net/system_network_context_manager.cc registry->RegisterBooleanPref(prefs::kAuthNegotiateDelegateByKdcPolicy, false); #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS) -@@ -640,7 +640,7 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe - registry->RegisterBooleanPref(prefs::kChromeRootStoreEnabled, false); - #endif // BUILDFLAG(CHROME_ROOT_STORE_POLICY_SUPPORTED) +@@ -687,7 +687,7 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe + registry->RegisterIntegerPref(prefs::kMaxConnectionsPerProxy, -1); + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) + BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) // Note that the default value is not relevant because the pref is only // evaluated when it is managed. registry->RegisterBooleanPref(prefs::kEnforceLocalAnchorConstraintsEnabled, -@@ -649,11 +649,11 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe +@@ -696,11 +696,11 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe registry->RegisterListPref(prefs::kExplicitlyAllowedNetworkPorts); @@ -95,8 +145,8 @@ Index: chrome/browser/net/system_network_context_manager.cc +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) registry->RegisterBooleanPref(prefs::kReceivedHttpAuthNegotiateHeader, false); #endif // BUILDFLAG(IS_LINUX) - } -@@ -702,7 +702,7 @@ void SystemNetworkContextManager::OnNetworkServiceCrea + +@@ -753,7 +753,7 @@ void SystemNetworkContextManager::OnNetworkServiceCrea OnNewHttpAuthDynamicParams(http_auth_dynamic_params); network_service->ConfigureHttpAuthPrefs(std::move(http_auth_dynamic_params)); @@ -105,8 +155,17 @@ Index: chrome/browser/net/system_network_context_manager.cc gssapi_library_loader_observer_.Install(network_service); #endif // BUILDFLAG(IS_LINUX) -@@ -1009,7 +1009,7 @@ void SystemNetworkContextManager::UpdateChromeRootStor - #endif // BUILDFLAG(CHROME_ROOT_STORE_POLICY_SUPPORTED) +@@ -970,7 +970,7 @@ bool SystemNetworkContextManager::IsNetworkSandboxEnab + break; + } + +-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (!enabled) { + g_network_service_will_allow_gssapi_library_load = true; + } +@@ -1055,7 +1055,7 @@ void SystemNetworkContextManager::UpdateExplicitlyAllo + } #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) diff --git a/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_h b/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_h index 165976172..8701e16b7 100644 --- a/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_h +++ b/www/chromium/patches/patch-chrome_browser_net_system_network_context_manager_h @@ -1,7 +1,7 @@ Index: chrome/browser/net/system_network_context_manager.h --- chrome/browser/net/system_network_context_manager.h.orig +++ chrome/browser/net/system_network_context_manager.h -@@ -185,7 +185,7 @@ class SystemNetworkContextManager { +@@ -200,7 +200,7 @@ class SystemNetworkContextManager { class URLLoaderFactoryForSystem; class NetworkProcessLaunchWatcher; @@ -10,8 +10,8 @@ Index: chrome/browser/net/system_network_context_manager.h class GssapiLibraryLoadObserver : public network::mojom::GssapiLibraryLoadObserver { public: -@@ -229,7 +229,7 @@ class SystemNetworkContextManager { - #endif // BUILDFLAG(CHROME_ROOT_STORE_POLICY_SUPPORTED) +@@ -236,7 +236,7 @@ class SystemNetworkContextManager { + void UpdateExplicitlyAllowedNetworkPorts(); #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) @@ -19,12 +19,12 @@ Index: chrome/browser/net/system_network_context_manager.h // Applies the current value of the kEnforceLocalAnchorConstraintsEnabled // pref to the enforcement state. void UpdateEnforceLocalAnchorConstraintsEnabled(); -@@ -275,7 +275,7 @@ class SystemNetworkContextManager { +@@ -286,7 +286,7 @@ class SystemNetworkContextManager { - static absl::optional certificate_transparency_enabled_for_testing_; + std::unique_ptr network_annotation_monitor_; -#if BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) GssapiLibraryLoadObserver gssapi_library_loader_observer_{this}; #endif // BUILDFLAG(IS_LINUX) - }; + diff --git a/www/chromium/patches/patch-chrome_browser_new_tab_page_new_tab_page_util_cc b/www/chromium/patches/patch-chrome_browser_new_tab_page_new_tab_page_util_cc index bd42d5e72..620c65473 100644 --- a/www/chromium/patches/patch-chrome_browser_new_tab_page_new_tab_page_util_cc +++ b/www/chromium/patches/patch-chrome_browser_new_tab_page_new_tab_page_util_cc @@ -1,16 +1,7 @@ Index: chrome/browser/new_tab_page/new_tab_page_util.cc --- chrome/browser/new_tab_page/new_tab_page_util.cc.orig +++ chrome/browser/new_tab_page/new_tab_page_util.cc -@@ -11,7 +11,7 @@ - - namespace { - bool IsOsSupportedForRecipe() { --#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - return true; - #else - return false; -@@ -27,7 +27,7 @@ bool IsOsSupportedForCart() { +@@ -20,7 +20,7 @@ bool IsOsSupportedForCart() { } bool IsOsSupportedForDrive() { diff --git a/www/chromium/patches/patch-chrome_browser_password_manager_chrome_password_manager_client_cc b/www/chromium/patches/patch-chrome_browser_password_manager_chrome_password_manager_client_cc new file mode 100644 index 000000000..2903ef581 --- /dev/null +++ b/www/chromium/patches/patch-chrome_browser_password_manager_chrome_password_manager_client_cc @@ -0,0 +1,21 @@ +Index: chrome/browser/password_manager/chrome_password_manager_client.cc +--- chrome/browser/password_manager/chrome_password_manager_client.cc.orig ++++ chrome/browser/password_manager/chrome_password_manager_client.cc +@@ -468,7 +468,7 @@ bool ChromePasswordManagerClient::ShowKeyboardReplacin + + bool ChromePasswordManagerClient::CanUseBiometricAuthForFilling( + device_reauth::DeviceAuthenticator* authenticator) { +-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (!GetLocalStatePrefs() || !GetPrefs() || !authenticator) { + return false; + } +@@ -691,7 +691,7 @@ void ChromePasswordManagerClient::NotifyUserCredential + } + + void ChromePasswordManagerClient::NotifyKeychainError() { +-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + PasswordsClientUIDelegate* manage_passwords_ui_controller = + PasswordsClientUIDelegateFromWebContents(web_contents()); + manage_passwords_ui_controller->OnKeychainError(); diff --git a/www/chromium/patches/patch-chrome_browser_password_manager_password_reuse_manager_factory_cc b/www/chromium/patches/patch-chrome_browser_password_manager_password_reuse_manager_factory_cc index da38e7cfc..b296e5741 100644 --- a/www/chromium/patches/patch-chrome_browser_password_manager_password_reuse_manager_factory_cc +++ b/www/chromium/patches/patch-chrome_browser_password_manager_password_reuse_manager_factory_cc @@ -1,7 +1,7 @@ Index: chrome/browser/password_manager/password_reuse_manager_factory.cc --- chrome/browser/password_manager/password_reuse_manager_factory.cc.orig +++ chrome/browser/password_manager/password_reuse_manager_factory.cc -@@ -115,7 +115,7 @@ PasswordReuseManagerFactory::BuildServiceInstanceForBr +@@ -137,7 +137,7 @@ PasswordReuseManagerFactory::BuildServiceInstanceForBr // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ diff --git a/www/chromium/patches/patch-chrome_browser_platform_util_linux_cc b/www/chromium/patches/patch-chrome_browser_platform_util_linux_cc index c2c8abd2a..d7162d5b5 100644 --- a/www/chromium/patches/patch-chrome_browser_platform_util_linux_cc +++ b/www/chromium/patches/patch-chrome_browser_platform_util_linux_cc @@ -1,9 +1,9 @@ Index: chrome/browser/platform_util_linux.cc --- chrome/browser/platform_util_linux.cc.orig +++ chrome/browser/platform_util_linux.cc -@@ -299,7 +299,9 @@ void RunCommand(const std::string& command, - - base::LaunchOptions options; +@@ -300,7 +300,9 @@ void OnLaunchOptionsCreated(const std::string& command + argv.push_back(command); + argv.push_back(arg); options.current_directory = working_directory; +#if !BUILDFLAG(IS_BSD) options.allow_new_privs = true; diff --git a/www/chromium/patches/patch-chrome_browser_policy_chrome_browser_cloud_management_controller_desktop_cc b/www/chromium/patches/patch-chrome_browser_policy_chrome_browser_cloud_management_controller_desktop_cc index 10763c708..47c14ee9c 100644 --- a/www/chromium/patches/patch-chrome_browser_policy_chrome_browser_cloud_management_controller_desktop_cc +++ b/www/chromium/patches/patch-chrome_browser_policy_chrome_browser_cloud_management_controller_desktop_cc @@ -1,7 +1,7 @@ Index: chrome/browser/policy/chrome_browser_cloud_management_controller_desktop.cc --- chrome/browser/policy/chrome_browser_cloud_management_controller_desktop.cc.orig +++ chrome/browser/policy/chrome_browser_cloud_management_controller_desktop.cc -@@ -49,7 +49,7 @@ +@@ -50,7 +50,7 @@ #include "chrome/browser/policy/browser_dm_token_storage_mac.h" #endif // BUILDFLAG(IS_MAC) @@ -10,15 +10,15 @@ Index: chrome/browser/policy/chrome_browser_cloud_management_controller_desktop. #include "chrome/browser/policy/browser_dm_token_storage_linux.h" #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) -@@ -58,7 +58,7 @@ +@@ -59,7 +59,7 @@ #include "chrome/install_static/install_util.h" #endif // BUILDFLAG(IS_WIN) -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) - #include "chrome/browser/enterprise/connectors/device_trust/device_trust_features.h" // nogncheck #include "chrome/browser/enterprise/connectors/device_trust/key_management/browser/device_trust_key_manager_impl.h" #include "chrome/browser/enterprise/connectors/device_trust/key_management/browser/key_rotation_launcher.h" + #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) @@ -91,7 +91,7 @@ void ChromeBrowserCloudManagementControllerDesktop:: #if BUILDFLAG(IS_MAC) @@ -28,12 +28,12 @@ Index: chrome/browser/policy/chrome_browser_cloud_management_controller_desktop. storage_delegate = std::make_unique(); #elif BUILDFLAG(IS_WIN) storage_delegate = std::make_unique(); -@@ -246,7 +246,7 @@ ChromeBrowserCloudManagementControllerDesktop::CreateC +@@ -261,7 +261,7 @@ ChromeBrowserCloudManagementControllerDesktop::CreateC std::unique_ptr ChromeBrowserCloudManagementControllerDesktop::CreateDeviceTrustKeyManager() { -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) - if (enterprise_connectors::IsDeviceTrustConnectorFeatureEnabled()) { - auto* browser_dm_token_storage = BrowserDMTokenStorage::Get(); - auto* device_management_service = GetDeviceManagementService(); + auto* browser_dm_token_storage = BrowserDMTokenStorage::Get(); + auto* device_management_service = GetDeviceManagementService(); + auto shared_url_loader_factory = GetSharedURLLoaderFactory(); diff --git a/www/chromium/patches/patch-chrome_browser_policy_configuration_policy_handler_list_factory_cc b/www/chromium/patches/patch-chrome_browser_policy_configuration_policy_handler_list_factory_cc index d92a95a6d..1a8e31e5a 100644 --- a/www/chromium/patches/patch-chrome_browser_policy_configuration_policy_handler_list_factory_cc +++ b/www/chromium/patches/patch-chrome_browser_policy_configuration_policy_handler_list_factory_cc @@ -1,13 +1,14 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc --- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig +++ chrome/browser/policy/configuration_policy_handler_list_factory.cc -@@ -214,17 +214,17 @@ +@@ -233,19 +233,20 @@ #include "components/spellcheck/browser/pref_names.h" #endif // BUILDFLAG(ENABLE_SPELLCHECK) -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) #include "chrome/browser/enterprise/idle/action.h" + #include "chrome/browser/enterprise/signin/enterprise_signin_prefs.h" #include "components/device_signals/core/browser/pref_names.h" // nogncheck due to crbug.com/1125897 #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) @@ -17,12 +18,30 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc #include "components/enterprise/idle/idle_timeout_policy_handler.h" #endif --#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ -+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \ - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_ANDROID) + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_ANDROID) ++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_ANDROID) || \ ++ BUILDFLAG(IS_BSD) #include "chrome/browser/privacy_sandbox/privacy_sandbox_policy_handler.h" #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || -@@ -811,7 +811,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = + // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || +@@ -260,13 +261,13 @@ + #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS_ASH) ++ BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) + #include "chrome/browser/policy/battery_saver_policy_handler.h" + #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || + // BUILDFLAG(IS_CHROMEOS_ASH) + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS) ++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + #include "components/search_engines/site_search_policy_handler.h" + #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || + // BUILDFLAG(IS_CHROMEOS) +@@ -868,7 +869,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = prefs::kManagedDefaultGeolocationSetting, base::Value::Type::INTEGER }, #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) \ @@ -31,7 +50,7 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kRequireOnlineRevocationChecksForLocalAnchors, prefs::kCertRevocationCheckingRequiredLocalAnchors, base::Value::Type::BOOLEAN }, -@@ -821,7 +821,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -878,7 +879,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = #endif // #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) // || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_MAC) #if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) \ @@ -40,8 +59,8 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kFullscreenAllowed, prefs::kFullscreenAllowed, base::Value::Type::BOOLEAN }, -@@ -1532,7 +1532,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = - base::Value::Type::INTEGER }, +@@ -1657,7 +1658,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = + }, #endif // BUILDFLAG(IS_CHROMEOS_ASH) -#if BUILDFLAG(IS_LINUX) @@ -49,7 +68,7 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kGSSAPILibraryName, prefs::kGSSAPILibraryName, base::Value::Type::STRING }, -@@ -1580,7 +1580,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -1705,7 +1706,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = base::Value::Type::BOOLEAN }, #endif // BUILDFLAG(IS_WIN) @@ -58,7 +77,7 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kNetworkServiceSandboxEnabled, prefs::kNetworkServiceSandboxEnabled, base::Value::Type::BOOLEAN }, -@@ -1606,12 +1606,12 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -1731,12 +1732,12 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = prefs::kTotalMemoryLimitMb, base::Value::Type::INTEGER }, #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) @@ -73,8 +92,8 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kUnmanagedDeviceSignalsConsentFlowEnabled, device_signals::prefs::kUnmanagedDeviceSignalsConsentFlowEnabled, base::Value::Type::BOOLEAN }, -@@ -1620,7 +1620,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = - base::Value::Type::LIST }, +@@ -1748,7 +1749,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) @@ -82,7 +101,7 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kDefaultBrowserSettingEnabled, prefs::kDefaultBrowserSettingEnabled, base::Value::Type::BOOLEAN }, -@@ -1633,7 +1633,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -1761,7 +1762,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) \ @@ -91,7 +110,7 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kAutoplayAllowed, prefs::kAutoplayAllowed, base::Value::Type::BOOLEAN }, -@@ -1737,7 +1737,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -1862,7 +1863,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = base::Value::Type::BOOLEAN }, #endif // !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS) @@ -100,26 +119,17 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kAlternativeBrowserPath, browser_switcher::prefs::kAlternativeBrowserPath, base::Value::Type::STRING }, -@@ -1833,7 +1833,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = - base::Value::Type::BOOLEAN }, - #endif // BUILDFLAG(IS_CHROMEOS) - --#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - // TODO(crbug.com/1454054): replace the - // kGetDisplayMediaSetSelectAllScreensAllowedForUrls policy by a policy that - // matches the name of the new `getAllScreensMedia` API. -@@ -1842,7 +1842,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -1969,7 +1970,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = base::Value::Type::LIST }, - #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) + #endif // BUILDFLAG(IS_CHROMEOS) -#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 }, -@@ -1873,7 +1873,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = - #endif // BUILDFLAG(CHROME_ROOT_STORE_POLICY_SUPPORTED) +@@ -1994,7 +1995,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = + #endif // BUILDFLAG(ENABLE_EXTENSIONS) #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) @@ -127,16 +137,16 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kEnforceLocalAnchorConstraintsEnabled, prefs::kEnforceLocalAnchorConstraintsEnabled, base::Value::Type::BOOLEAN }, -@@ -1952,7 +1952,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -2052,7 +2053,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = ash::prefs::kUrlParameterToAutofillSAMLUsername, base::Value::Type::STRING }, #endif // BUILDFLAG(IS_CHROMEOS_ASH) -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) - { key::kBatterySaverModeAvailability, - performance_manager::user_tuning::prefs::kBatterySaverModeState, - base::Value::Type::INTEGER }, -@@ -1983,7 +1983,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = + { key::kTabDiscardingExceptions, + performance_manager::user_tuning::prefs::kManagedTabDiscardingExceptions, + base::Value::Type::LIST }, +@@ -2080,7 +2081,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = prefs::kCloudApAuthEnabled, base::Value::Type::INTEGER }, #endif // BUILDFLAG(IS_WIN) @@ -145,16 +155,43 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc { key::kOutOfProcessSystemDnsResolutionEnabled, prefs::kOutOfProcessSystemDnsResolutionEnabled, base::Value::Type::BOOLEAN }, -@@ -2097,7 +2097,7 @@ std::unique_ptr BuildH +@@ -2109,7 +2110,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = + prefs::kManagedPrivateNetworkAccessRestrictionsEnabled, + base::Value::Type::BOOLEAN }, + #if BUILDFLAG(ENABLE_EXTENSIONS) +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + { key::kExtensionInstallTypeBlocklist, + extensions::pref_names::kExtensionInstallTypeBlocklist, + base::Value::Type::LIST}, +@@ -2130,7 +2131,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = + optimization_guide::model_execution::prefs::kWallpaperSearchEnterprisePolicyAllowed, + base::Value::Type::INTEGER}, + #endif +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + { key::kChromeForTestingAllowed, + prefs::kChromeForTestingAllowed, + base::Value::Type::BOOLEAN }, +@@ -2251,7 +2252,7 @@ std::unique_ptr BuildH // Policies for all platforms - End #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS_ASH) + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) handlers->AddHandler( - std::make_unique()); - #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || -@@ -2299,7 +2299,7 @@ std::unique_ptr BuildH + std::make_unique()); + // Note: This needs to be created after `DefaultSearchPolicyHandler`. +@@ -2259,7 +2260,7 @@ std::unique_ptr BuildH + // BUILDFLAG(IS_CHROMEOS_ASH) + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS) ++ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) + handlers->AddHandler( + std::make_unique(chrome_schema)); + +@@ -2468,7 +2469,7 @@ std::unique_ptr BuildH #endif // BUILDFLAG(IS_ANDROID) #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ @@ -163,7 +200,7 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc handlers->AddHandler( std::make_unique()); handlers->AddHandler( -@@ -2357,7 +2357,7 @@ std::unique_ptr BuildH +@@ -2526,7 +2527,7 @@ std::unique_ptr BuildH key::kBrowsingDataLifetime, browsing_data::prefs::kBrowsingDataLifetime, chrome_schema)); @@ -172,7 +209,16 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc handlers->AddHandler(std::make_unique()); handlers->AddHandler(std::make_unique()); handlers->AddHandler( -@@ -2413,7 +2413,7 @@ std::unique_ptr BuildH +@@ -2575,7 +2576,7 @@ std::unique_ptr BuildH + SimpleSchemaValidatingPolicyHandler::RECOMMENDED_PROHIBITED, + SimpleSchemaValidatingPolicyHandler::MANDATORY_ALLOWED))); + +-#elif BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) ++#elif BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD) + handlers->AddHandler( + std::make_unique(chrome_schema)); + #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) +@@ -2613,7 +2614,7 @@ std::unique_ptr BuildH std::vector> signin_legacy_policies; #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || \ @@ -181,7 +227,7 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc signin_legacy_policies.push_back(std::make_unique( key::kForceBrowserSignin, prefs::kForceBrowserSignin, base::Value::Type::BOOLEAN)); -@@ -2774,7 +2774,7 @@ std::unique_ptr BuildH +@@ -2970,7 +2971,7 @@ std::unique_ptr BuildH #endif #if BUILDFLAG(ENABLE_SPELLCHECK) @@ -190,7 +236,7 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc handlers->AddHandler(std::make_unique()); handlers->AddHandler( std::make_unique( -@@ -2782,7 +2782,7 @@ std::unique_ptr BuildH +@@ -2978,7 +2979,7 @@ std::unique_ptr BuildH #endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) #endif // BUILDFLAG(ENABLE_SPELLCHECK) @@ -199,12 +245,21 @@ Index: chrome/browser/policy/configuration_policy_handler_list_factory.cc handlers->AddHandler(std::make_unique( key::kAllowSystemNotifications, prefs::kAllowSystemNotifications, base::Value::Type::BOOLEAN)); -@@ -2795,7 +2795,7 @@ std::unique_ptr BuildH - handlers->AddHandler( - std::make_unique( - chrome_schema)); +@@ -2995,7 +2996,7 @@ std::unique_ptr BuildH + /*new_policy_handler=*/std::make_unique< + first_party_sets::FirstPartySetsOverridesPolicyHandler>( + key::kRelatedWebsiteSetsOverrides, chrome_schema))); -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) || \ BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_ANDROID) handlers->AddHandler(std::make_unique()); #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || +@@ -3022,7 +3023,7 @@ std::unique_ptr BuildH + base::Value::Type::BOOLEAN))); + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ +- BUILDFLAG(IS_CHROMEOS_ASH) ++ BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) + handlers->AddHandler(std::make_unique()); + #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || + // BUILDFLAG(IS_CHROMEOS_ASH) diff --git a/www/chromium/patches/patch-chrome_browser_policy_device_management_service_configuration_cc b/www/chromium/patches/patch-chrome_browser_policy_device_management_service_configuration_cc index 8662000c5..e18184f93 100644 --- a/www/chromium/patches/patch-chrome_browser_policy_device_management_service_configuration_cc +++ b/www/chromium/patches/patch-chrome_browser_policy_device_management_service_configuration_cc @@ -1,7 +1,7 @@ Index: chrome/browser/policy/device_management_service_configuration.cc --- chrome/browser/policy/device_management_service_configuration.cc.orig +++ chrome/browser/policy/device_management_service_configuration.cc -@@ -22,7 +22,7 @@ +@@ -24,7 +24,7 @@ #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ @@ -10,7 +10,7 @@ Index: chrome/browser/policy/device_management_service_configuration.cc #include "chrome/browser/enterprise/connectors/common.h" #include "chrome/browser/enterprise/connectors/connectors_service.h" #endif -@@ -100,7 +100,7 @@ DeviceManagementServiceConfiguration::GetReportingConn +@@ -102,7 +102,7 @@ DeviceManagementServiceConfiguration::GetReportingConn content::BrowserContext* context) const { #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \ ((BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && \ diff --git a/www/chromium/patches/patch-chrome_browser_prefs_browser_prefs_cc b/www/chromium/patches/patch-chrome_browser_prefs_browser_prefs_cc index b0feac893..c895ef181 100644 --- a/www/chromium/patches/patch-chrome_browser_prefs_browser_prefs_cc +++ b/www/chromium/patches/patch-chrome_browser_prefs_browser_prefs_cc @@ -1,7 +1,7 @@ Index: chrome/browser/prefs/browser_prefs.cc --- chrome/browser/prefs/browser_prefs.cc.orig +++ chrome/browser/prefs/browser_prefs.cc -@@ -478,13 +478,13 @@ +@@ -488,18 +488,18 @@ #endif #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ @@ -17,7 +17,13 @@ Index: chrome/browser/prefs/browser_prefs.cc (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) #include "chrome/browser/browser_switcher/browser_switcher_prefs.h" #endif -@@ -517,7 +517,7 @@ + +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + #include "chrome/browser/enterprise/signin/enterprise_signin_prefs.h" + #endif + +@@ -534,7 +534,7 @@ #include "chrome/browser/sessions/session_service_log.h" #endif @@ -26,25 +32,16 @@ Index: chrome/browser/prefs/browser_prefs.cc #include "ui/color/system_theme.h" #endif -@@ -662,7 +662,7 @@ const char kPluginsPluginsList[] = "plugins.plugins_li - const char kPluginsShowDetails[] = "plugins.show_details"; +@@ -1722,7 +1722,7 @@ void RegisterLocalState(PrefRegistrySimple* registry) + registry->RegisterBooleanPref(prefs::kOopPrintDriversAllowedByPolicy, true); + #endif - // Deprecated 02/2023. --#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - const char kWebAppsUrlHandlerInfo[] = "web_apps.url_handler_info"; - #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + registry->RegisterBooleanPref(prefs::kChromeForTestingAllowed, true); + #endif -@@ -948,7 +948,7 @@ void RegisterLocalStatePrefsForMigration(PrefRegistryS - #endif // BUILDFLAG(IS_CHROMEOS_ASH) - - // Deprecated 02/2023. --#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - registry->RegisterDictionaryPref(kWebAppsUrlHandlerInfo); - #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) - -@@ -1863,12 +1863,12 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync +@@ -2067,12 +2067,12 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync #endif #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ @@ -57,14 +54,5 @@ Index: chrome/browser/prefs/browser_prefs.cc -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) browser_switcher::BrowserSwitcherPrefs::RegisterProfilePrefs(registry); + enterprise_signin::RegisterProfilePrefs(registry); #endif - -@@ -2018,7 +2018,7 @@ void MigrateObsoleteLocalStatePrefs(PrefService* local - #endif // BUILDFLAG(IS_CHROMEOS_ASH) - - // Added 02/2023 --#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) -+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) - local_state->ClearPref(kWebAppsUrlHandlerInfo); - #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) - diff --git a/www/chromium/patches/patch-chrome_browser_prefs_pref_service_incognito_allowlist_cc b/www/chromium/patches/patch-chrome_browser_prefs_pref_service_incognito_allowlist_cc index 6172ff504..e3ba08591 100644 --- a/www/chromium/patches/patch-chrome_browser_prefs_pref_service_incognito_allowlist_cc +++ b/www/chromium/patches/patch-chrome_browser_prefs_pref_service_incognito_allowlist_cc @@ -1,7 +1,7 @@ Index: chrome/browser/prefs/pref_service_incognito_allowlist.cc --- chrome/browser/prefs/pref_service_incognito_allowlist.cc.orig +++ chrome/browser/prefs/pref_service_incognito_allowlist.cc -@@ -168,7 +168,7 @@ const char* const kPersistentPrefNames[] = { +@@ -184,7 +184,7 @@ const char* const kPersistentPrefNames[] = { prefs::kShowFullscreenToolbar, #endif diff --git a/www/chromium/patches/patch-chrome_browser_printing_print_backend_service_manager_cc b/www/chromium/patches/patch-chrome_browser_printing_print_backend_service_manager_cc index 18662a41f..e1b72e5bc 100644 --- a/www/chromium/patches/patch-chrome_browser_printing_print_backend_service_manager_cc +++ b/www/chromium/patches/patch-chrome_browser_printing_print_backend_service_manager_cc @@ -1,8 +1,8 @@ Index: chrome/browser/printing/print_backend_service_manager.cc --- chrome/browser/printing/print_backend_service_manager.cc.orig +++ chrome/browser/printing/print_backend_service_manager.cc -@@ -33,7 +33,7 @@ - #include "printing/buildflags/buildflags.h" +@@ -34,7 +34,7 @@ + #include "printing/printing_context.h" #include "printing/printing_features.h" -#if BUILDFLAG(IS_LINUX) @@ -10,7 +10,7 @@ Index: chrome/browser/printing/print_backend_service_manager.cc #include "content/public/common/content_switches.h" #endif -@@ -851,7 +851,7 @@ PrintBackendServiceManager::GetServiceFromBundle( +@@ -861,7 +861,7 @@ PrintBackendServiceManager::GetServiceFromBundle( host.BindNewPipeAndPassReceiver(), content::ServiceProcessHost::Options() .WithDisplayName(IDS_UTILITY_PROCESS_PRINT_BACKEND_SERVICE_NAME) @@ -19,7 +19,7 @@ Index: chrome/browser/printing/print_backend_service_manager.cc .WithExtraCommandLineSwitches({switches::kMessageLoopTypeUi}) #endif .Pass()); -@@ -1024,7 +1024,7 @@ PrintBackendServiceManager::DetermineIdleTimeoutUpdate +@@ -1038,7 +1038,7 @@ PrintBackendServiceManager::DetermineIdleTimeoutUpdate return kNoClientsRegisteredResetOnIdleTimeout; case ClientType::kQueryWithUi: @@ -27,4 +27,4 @@ Index: chrome/browser/printing/print_backend_service_manager.cc +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) // No need to update if there were other query with UI clients. if (HasQueryWithUiClientForRemoteId(remote_id)) { - return absl::nullopt; + return std::nullopt; diff --git a/www/chromium/patches/patch-chrome_browser_printing_printer_query_cc b/www/chromium/patches/patch-chrome_browser_printing_printer_query_cc index 0d286b40f..5f388536c 100644 --- a/www/chromium/patches/patch-chrome_browser_printing_printer_query_cc +++ b/www/chromium/patches/patch-chrome_browser_printing_printer_query_cc @@ -3,7 +3,7 @@ Index: chrome/browser/printing/printer_query.cc +++ chrome/browser/printing/printer_query.cc @@ -341,7 +341,7 @@ void PrinterQuery::UpdatePrintSettings(base::Value::Di crash_key = std::make_unique( - print_backend->GetPrinterDriverInfo(printer_name)); + printer_name, print_backend->GetPrinterDriverInfo(printer_name)); -#if BUILDFLAG(IS_LINUX) && BUILDFLAG(USE_CUPS) +#if (BUILDFLAG(IS_BSD) || BUILDFLAG(IS_LINUX)) && BUILDFLAG(USE_CUPS) diff --git a/www/chromium/patches/patch-chrome_browser_profiles_chrome_browser_main_extra_parts_profiles_cc b/www/chromium/patches/patch-chrome_browser_profiles_chrome_browser_main_extra_parts_profiles_cc index 7c08c4a0e..193ea5790 100644 --- a/www/chromium/patches/patch-chrome_browser_profiles_chrome_browser_main_extra_parts_profiles_cc +++ b/www/chromium/patches/patch-chrome_browser_profiles_chrome_browser_main_extra_parts_profiles_cc @@ -1,9 +1,18 @@ Index: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc --- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig +++ chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc -@@ -385,18 +385,18 @@ +@@ -321,7 +321,7 @@ + #include "chromeos/constants/chromeos_features.h" #endif +-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) ++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + #include "chrome/browser/policy/messaging_layer/util/manual_test_heartbeat_event_factory.h" + #endif + +@@ -412,18 +412,18 @@ + + #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS_ASH) + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) @@ -21,20 +30,20 @@ Index: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) #include "chrome/browser/browser_switcher/browser_switcher_service_factory.h" - #include "chrome/browser/enterprise/connectors/analysis/local_binary_upload_service_factory.h" - #include "chrome/browser/enterprise/signals/signals_aggregator_factory.h" -@@ -596,7 +596,7 @@ void ChromeBrowserMainExtraPartsProfiles:: - if (breadcrumbs::IsEnabled()) { - BreadcrumbManagerKeyedServiceFactory::GetInstance(); - } + #include "chrome/browser/enterprise/client_certificates/certificate_provisioning_service_factory.h" + #include "chrome/browser/enterprise/client_certificates/certificate_store_factory.h" +@@ -658,7 +658,7 @@ void ChromeBrowserMainExtraPartsProfiles:: + DiceBoundSessionCookieServiceFactory::GetInstance(); + #endif // BUILDFLAG(ENABLE_DICE_SUPPORT) + #endif // BUILDFLAG(ENABLE_BOUND_SESSION_CREDENTIALS) -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) browser_switcher::BrowserSwitcherServiceFactory::GetInstance(); #endif browser_sync::UserEventServiceFactory::GetInstance(); -@@ -689,26 +689,26 @@ void ChromeBrowserMainExtraPartsProfiles:: +@@ -781,29 +781,29 @@ void ChromeBrowserMainExtraPartsProfiles:: + enterprise_commands::UserRemoteCommandsServiceFactory::GetInstance(); #endif - enterprise::ProfileIdServiceFactory::GetInstance(); #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ - BUILDFLAG(IS_CHROMEOS_ASH) + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) @@ -63,8 +72,12 @@ Index: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc + BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD) enterprise_signals::UserPermissionServiceFactory::GetInstance(); #endif +-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + enterprise_signin::EnterpriseSigninServiceFactory::GetInstance(); + #endif #if BUILDFLAG(ENABLE_SESSION_SERVICE) -@@ -817,7 +817,7 @@ void ChromeBrowserMainExtraPartsProfiles:: +@@ -927,7 +927,7 @@ void ChromeBrowserMainExtraPartsProfiles:: #endif // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. @@ -73,21 +86,30 @@ Index: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) metrics::DesktopProfileSessionDurationsServiceFactory::GetInstance(); #endif -@@ -912,7 +912,7 @@ void ChromeBrowserMainExtraPartsProfiles:: +@@ -1034,7 +1034,7 @@ void ChromeBrowserMainExtraPartsProfiles:: #if BUILDFLAG(IS_CHROMEOS) policy::PolicyCertServiceFactory::GetInstance(); #endif -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) policy::ProfileTokenPolicyWebSigninServiceFactory::GetInstance(); + policy::UserPolicyOidcSigninServiceFactory::GetInstance(); #endif - policy::UserCloudPolicyInvalidatorFactory::GetInstance(); -@@ -953,7 +953,7 @@ void ChromeBrowserMainExtraPartsProfiles:: - #if !BUILDFLAG(IS_ANDROID) - ProfileThemeUpdateServiceFactory::GetInstance(); +@@ -1076,7 +1076,7 @@ void ChromeBrowserMainExtraPartsProfiles:: + #if !BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_ANDROID) + ProfileStatisticsFactory::GetInstance(); #endif -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) ProfileTokenWebSigninInterceptorFactory::GetInstance(); + OidcAuthenticationSigninInterceptorFactory::GetInstance(); #endif - #if !BUILDFLAG(IS_ANDROID) +@@ -1095,7 +1095,7 @@ void ChromeBrowserMainExtraPartsProfiles:: + #endif + ReduceAcceptLanguageFactory::GetInstance(); + RendererUpdaterFactory::GetInstance(); +-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) ++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD) + reporting::ManualTestHeartbeatEventFactory::GetInstance(); + #endif + #if BUILDFLAG(IS_CHROMEOS_LACROS) diff --git a/www/chromium/patches/patch-chrome_browser_profiles_profile_impl_cc b/www/chromium/patches/patch-chrome_browser_profiles_profile_impl_cc index f64dbab31..72a4406c1 100644 --- a/www/chromium/patches/patch-chrome_browser_profiles_profile_impl_cc +++ b/www/chromium/patches/patch-chrome_browser_profiles_profile_impl_cc @@ -1,7 +1,7 @@ Index: chrome/browser/profiles/profile_impl.cc --- chrome/browser/profiles/profile_impl.cc.orig +++ chrome/browser/profiles/profile_impl.cc -@@ -258,6 +258,10 @@ +@@ -267,6 +267,10 @@ #include "chrome/browser/spellchecker/spellcheck_service.h" #endif @@ -21,7 +21,7 @@ Index: chrome/browser/profiles/profile_impl.cc ProfileManager* profile_manager = g_browser_process->profile_manager(); ProfileAttributesEntry* entry = profile_manager->GetProfileAttributesStorage() -@@ -873,7 +877,17 @@ void ProfileImpl::DoFinalInit(CreateMode create_mode) +@@ -893,7 +897,17 @@ void ProfileImpl::DoFinalInit(CreateMode create_mode) } base::FilePath ProfileImpl::last_selected_directory() { diff --git a/www/chromium/patches/patch-chrome_browser_profiles_profiles_state_cc b/www/chromium/patches/patch-chrome_browser_profiles_profiles_state_cc index cc1004758..8ce2d7f7a 100644 --- a/www/chromium/patches/patch-chrome_browser_profiles_profiles_state_cc +++ b/www/chromium/patches/patch-chrome_browser_profiles_profiles_state_cc @@ -1,7 +1,7 @@ Index: chrome/browser/profiles/profiles_state.cc --- chrome/browser/profiles/profiles_state.cc.orig +++ chrome/browser/profiles/profiles_state.cc -@@ -182,7 +182,7 @@ bool IsGuestModeRequested(const base::CommandLine& com +@@ -195,7 +195,7 @@ bool IsGuestModeRequested(const base::CommandLine& com PrefService* local_state, bool show_warning) { #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || \ diff --git a/www/chromium/patches/patch-chrome_browser_renderer_preferences_util_cc b/www/chromium/patches/patch-chrome_browser_renderer_preferences_util_cc index 67391a870..0c968e9bf 100644 --- a/www/chromium/patches/patch-chrome_browser_renderer_preferences_util_cc +++ b/www/chromium/patches/patch-chrome_browser_renderer_preferences_util_cc @@ -1,7 +1,7 @@ Index: chrome/browser/renderer_preferences_util.cc --- chrome/browser/renderer_preferences_util.cc.orig +++ chrome/browser/renderer_preferences_util.cc -@@ -36,7 +36,7 @@ +@@ -39,7 +39,7 @@ #include "ui/views/controls/textfield/textfield.h" #endif @@ -10,7 +10,7 @@ Index: chrome/browser/renderer_preferences_util.cc #include "chrome/browser/themes/theme_service.h" #include "chrome/browser/themes/theme_service_factory.h" #include "ui/linux/linux_ui.h" -@@ -149,7 +149,7 @@ void UpdateFromSystemSettings(blink::RendererPreferenc +@@ -154,7 +154,7 @@ void UpdateFromSystemSettings(blink::RendererPreferenc prefs->caret_blink_interval = views::Textfield::GetCaretBlinkInterval(); #endif @@ -19,7 +19,7 @@ Index: chrome/browser/renderer_preferences_util.cc auto* linux_ui_theme = ui::LinuxUiTheme::GetForProfile(profile); if (linux_ui_theme) { if (ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme()) { -@@ -172,7 +172,7 @@ void UpdateFromSystemSettings(blink::RendererPreferenc +@@ -177,7 +177,7 @@ void UpdateFromSystemSettings(blink::RendererPreferenc #endif #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \ diff --git a/www/chromium/patches/patch-chrome_browser_resources_sandbox_internals_sandbox_internals_ts b/www/chromium/patches/patch-chrome_browser_resources_sandbox_internals_sandbox_internals_ts deleted file mode 100644 index 73a480dd8..000000000 --- a/www/chromium/patches/patch-chrome_browser_resources_sandbox_internals_sandbox_internals_ts +++ /dev/null @@ -1,30 +0,0 @@ -Index: chrome/browser/resources/sandbox_internals/sandbox_internals.ts ---- chrome/browser/resources/sandbox_internals/sandbox_internals.ts.orig -+++ chrome/browser/resources/sandbox_internals/sandbox_internals.ts -@@ -2,7 +2,7 @@ - // Use of this source code is governed by a BSD-style license that can be - // found in the LICENSE file. - --// -+// - import './strings.m.js'; - - import {loadTimeData} from 'chrome://resources/js/load_time_data.js'; -@@ -121,7 +121,7 @@ function androidHandler() { - } - // - --// -+// - - /** - * Adds a status row that reports either Yes or No. -@@ -182,7 +182,7 @@ document.addEventListener('DOMContentLoaded', () => { - // - androidHandler(); - // -- // -+ // - linuxHandler(); - // - }); diff --git a/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_browser_proxy_ts b/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_browser_proxy_ts deleted file mode 100644 index 619e05087..000000000 --- a/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_browser_proxy_ts +++ /dev/null @@ -1,21 +0,0 @@ -Index: chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.ts ---- chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.ts.orig -+++ chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.ts -@@ -18,7 +18,7 @@ export interface AppearanceBrowserProxy { - - useDefaultTheme(): void; - -- // -+ // - useGtkTheme(): void; - useQtTheme(): void; - // -@@ -48,7 +48,7 @@ export class AppearanceBrowserProxyImpl implements App - chrome.send('useDefaultTheme'); - } - -- // -+ // - useGtkTheme() { - chrome.send('useGtkTheme'); - } diff --git a/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_html b/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_html deleted file mode 100644 index 7e80e171e..000000000 --- a/www/chromium/patches/patch-chrome_browser_resources_settings_appearance_page_appearance_page_html +++ /dev/null @@ -1,30 +0,0 @@ -Index: chrome/browser/resources/settings/appearance_page/appearance_page.html ---- chrome/browser/resources/settings/appearance_page/appearance_page.html.orig -+++ chrome/browser/resources/settings/appearance_page/appearance_page.html -@@ -27,7 +27,7 @@ - -- -+ - - -- -+ -