Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 2021 08:43:19 GMT
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 76daa653245e - main - www/chromium: update to 92.0.4515.159
Message-ID:  <202108220843.17M8hJa9099490@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=76daa653245e62b0f8e07ef4899c0a5bb176b3da

commit 76daa653245e62b0f8e07ef4899c0a5bb176b3da
Author:     Matthias Wolf <freebsd@rheinwolf.de>
AuthorDate: 2021-08-22 08:38:57 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2021-08-22 08:42:34 +0000

    www/chromium: update to 92.0.4515.159
    
    Mark broken on i386 for now, it does not compile there because of a
    ssize_t * vs off_t * mismatch.
    
    MFH:            2021Q3
    Security:       https://vuxml.freebsd.org/freebsd/128deba6-ff56-11eb-8514-3065ec8fd3ec.html
    Security:       https://vuxml.freebsd.org/freebsd/c3c6c4a3-f47d-11eb-b632-3065ec8fd3ec.html
    Security:       https://vuxml.freebsd.org/freebsd/76487640-ea29-11eb-a686-3065ec8fd3ec.html
---
 www/chromium/Makefile                              |  22 ++--
 www/chromium/distinfo                              |  10 +-
 .../extra-patch-build_config_compiler_pgo_pgo.gni  |   2 +-
 ...__allocator_page__allocator__internals__posix.h |   2 +-
 www/chromium/files/patch-BUILD.gn                  |  22 ++--
 ...patch-ash_display_mirror__window__controller.cc |   4 +-
 www/chromium/files/patch-base_BUILD.gn             |  44 ++++----
 .../files/patch-base_allocator_allocator.gni       |   4 +-
 ..._partition__allocator_address__pool__manager.cc |   4 +-
 ...__allocator_page__allocator__internals__posix.h |  14 ++-
 ...partition__allocator_partition__alloc__config.h |   4 +-
 ...tition__allocator_partition__alloc__unittest.cc |   6 +-
 ...locator_partition__allocator_partition__root.cc |  12 +--
 ...tition__allocator_starscan_pcscan__internal.cc} |   6 +-
 ...or_partition__allocator_starscan_stack_stack.cc |  39 +++++++
 www/chromium/files/patch-base_cpu.cc               |   6 +-
 www/chromium/files/patch-base_cpu.h                |   6 +-
 .../files/patch-base_debug_debugger__posix.cc      |   6 +-
 www/chromium/files/patch-base_debug_elf__reader.cc |   8 +-
 .../files/patch-base_debug_stack__trace__posix.cc  |   6 +-
 .../patch-base_debug_stack__trace__unittest.cc     |  10 +-
 www/chromium/files/patch-base_files_file__util.cc  |  11 ++
 www/chromium/files/patch-base_files_file__util.h   |  24 ++++-
 .../files/patch-base_files_file__util__posix.cc    |  72 +++++++++++--
 www/chromium/files/patch-base_files_scoped__file.h |  43 ++++++++
 .../files/patch-base_files_scoped__file__linux.cc  |  23 ++++
 www/chromium/files/patch-base_logging__unittest.cc |   6 +-
 ...-base_memory_platform__shared__memory__region.h |   8 +-
 www/chromium/files/patch-base_process_launch.h     |   8 +-
 .../files/patch-base_process_launch__posix.cc      |  17 ++-
 www/chromium/files/patch-base_process_memory.h     |   4 +-
 .../files/patch-base_process_memory__unittest.cc   |  20 ++--
 .../files/patch-base_process_process__handle.h     |   4 +-
 .../patch-base_process_process__handle__freebsd.cc |  19 +++-
 .../files/patch-base_process_process__metrics.h    |  31 ++++--
 ...patch-base_process_process__metrics__freebsd.cc |   8 +-
 .../patch-base_process_process__metrics__posix.cc  |  10 +-
 .../files/patch-base_process_process__unittest.cc  |   8 +-
 .../patch-base_profiler_stack__copier__signal.cc   |   8 +-
 .../patch-base_profiler_thread__delegate__posix.cc |  19 ++--
 www/chromium/files/patch-base_test_BUILD.gn        |   4 +-
 .../patch-base_test_launcher_test__launcher.cc     |   8 +-
 www/chromium/files/patch-base_test_test__suite.cc  |   8 +-
 ...e_threading_platform__thread__internal__posix.h |   4 +-
 ...patch-base_threading_platform__thread__linux.cc |  10 +-
 ...patch-base_threading_platform__thread__posix.cc |   6 +-
 www/chromium/files/patch-base_time_time.cc         |  17 +++
 .../files/patch-base_time_time__unittest.cc        |  10 +-
 ...heap__profiler__allocation__context__tracker.cc |   4 +-
 ...tch-base_trace__event_malloc__dump__provider.cc |   8 +-
 ...atch-base_trace__event_process__memory__dump.cc |   4 +-
 .../files/patch-base_tracing_trace__time.cc        |  14 +++
 ...ce__time.h => patch-base_tracing_trace__time.h} |  10 +-
 .../files/patch-build_config_compiler_BUILD.gn     |  30 +++---
 .../files/patch-build_linux_strip__binary.gni      |  15 +++
 .../files/patch-build_linux_strip__binary.py       |  12 +++
 ...patch-build_toolchain_get__concurrent__links.py |   9 +-
 www/chromium/files/patch-cc_BUILD.gn               |   6 +-
 .../files/patch-cc_test_layer__tree__test.cc       |   6 +-
 www/chromium/files/patch-cc_test_pixel__test.cc    |   4 +-
 www/chromium/files/patch-chrome_BUILD.gn           |   4 +-
 www/chromium/files/patch-chrome_app_BUILD.gn       |   4 +-
 .../files/patch-chrome_app_chrome__command__ids.h  |   4 +-
 .../files/patch-chrome_app_chrome__main.cc         |  15 ++-
 .../patch-chrome_app_chrome__main__delegate.cc     |  22 ++--
 .../files/patch-chrome_app_chromium__strings.grd   |   6 +-
 .../patch-chrome_app_generated__resources.grd      |  17 ++-
 .../patch-chrome_app_google__chrome__strings.grd   |   6 +-
 .../files/patch-chrome_app_profiles__strings.grdp  |   4 +-
 www/chromium/files/patch-chrome_browser_BUILD.gn   |  17 +--
 .../files/patch-chrome_browser_about__flags.cc     | 116 ++++++++++-----------
 ...h-chrome_browser_after__startup__task__utils.cc |  14 +--
 ...ta_chrome__browsing__data__remover__delegate.cc |   4 +-
 ..._browser_chrome__browser__interface__binders.cc |   8 +-
 .../patch-chrome_browser_chrome__browser__main.cc  |  14 +--
 ...-chrome_browser_chrome__browser__main__linux.cc |  10 +-
 ...ome_browser_chrome__content__browser__client.cc |  35 +++----
 ...rome_browser_chrome__content__browser__client.h |   4 +-
 ...custom__handlers_protocol__handler__registry.cc |   4 +-
 ...download_chrome__download__manager__delegate.cc |  10 +-
 ...ch-chrome_browser_download_download__commands.h |   4 +-
 ...hrome_browser_download_download__item__model.cc |   6 +-
 ...atch-chrome_browser_download_download__prefs.cc |  10 +-
 ...onnectors_device__trust_attestation__service.cc |  70 +++++++++++++
 ...connectors_device__trust_attestation__service.h |  14 +++
 ...nectors_device__trust_device__trust__service.cc |  41 +++-----
 ...nnectors_device__trust_device__trust__service.h |  28 ++---
 ...ser_enterprise_signals_device__info__fetcher.cc |   4 +-
 .../files/patch-chrome_browser_extensions_BUILD.gn |   4 +-
 ...api_erp_chrome_desktop_report_request_helper.cc |  16 +--
 ...n__action_browser__action__interactive__test.cc |   4 +-
 ...extensions_api_settings__private_prefs__util.cc |   6 +-
 ..._browser_extensions_external__provider__impl.cc |   6 +-
 ...e__file__system__access__permission__context.cc |   8 +-
 ...owser_first__run_first__run__internal__posix.cc |   4 +-
 .../patch-chrome_browser_flag__descriptions.cc     |  30 ++----
 .../patch-chrome_browser_flag__descriptions.h      |  16 +--
 ...ch-chrome_browser_media_audio__service__util.cc |   4 +-
 ...splay_wired__display__media__route__provider.cc |  23 ----
 ...chrome__browser__main__extra__parts__metrics.cc |   6 +-
 ...ser_metrics_chrome__metrics__service__client.cc |   6 +-
 ...ch-chrome_browser_metrics_perf_cpu__identity.cc |  11 ++
 ...er_metrics_process__memory__metrics__emitter.cc |   6 +-
 ...r_password__manager_password__store__factory.cc |   4 +-
 ...atch-chrome_browser_pdf_pdf__extension__test.cc |  35 ++++---
 ...rformance__manager_policies_policy__features.cc |  11 --
 ...formance__monitor_process__metrics__recorder.cc |  11 --
 ...wser_policy_browser__signin__policy__handler.cc |   4 +-
 ...onfiguration__policy__handler__list__factory.cc |  25 ++---
 .../patch-chrome_browser_prefs_browser__prefs.cc   |  10 +-
 ...h-chrome_browser_printing_print__job__worker.cc |  29 ++++--
 ...hrome__browser__main__extra__parts__profiles.cc |   4 +-
 .../files/patch-chrome_browser_profiles_profile.cc |   4 +-
 ..._browser_profiles_profile__attributes__entry.cc |   8 +-
 ...atch-chrome_browser_profiles_profiles__state.cc |   4 +-
 ...r__context__menu_render__view__context__menu.cc |   4 +-
 ...h-chrome_browser_renderer__preferences__util.cc |   6 +-
 ...__router_extension_src_utils_platform__utils.js |  11 --
 ...atch-chrome_browser_resources_settings_route.js |   4 +-
 ...h-chrome_browser_search_drive_drive__service.cc |   4 +-
 ...b__to__self_receiving__ui__handler__registry.cc |  23 ++--
 ...o__self_send__tab__to__self__client__service.cc |   4 +-
 .../patch-chrome_browser_service__sandbox__type.h  |  33 ++++++
 ...tch-chrome_browser_sessions_session__restore.cc |   4 +-
 ...ser_sharing_shared__clipboard_feature__flags.cc |  18 ----
 ...wser_sharing_shared__clipboard_feature__flags.h |  20 ----
 ...rowser_sharing_sharing__device__registration.cc |   4 +-
 ...tch-chrome_browser_sync_chrome__sync__client.cc |   6 +-
 ...browser_sync_profile__sync__service__factory.cc |   6 +-
 ...e_browser_task__manager_sampling_task__group.cc |  10 +-
 ...me_browser_task__manager_sampling_task__group.h |  15 +--
 ...r_task__manager_sampling_task__group__sampler.h |  12 +--
 ...r_task__manager_sampling_task__manager__impl.cc |   4 +-
 ...browser_task__manager_task__manager__observer.h |   4 +-
 .../files/patch-chrome_browser_ui_BUILD.gn         |  28 +++--
 ...rome_browser_ui_browser__command__controller.cc |  10 +-
 .../patch-chrome_browser_ui_browser__dialogs.h     |  11 ++
 ...browser_ui_startup_startup__browser__creator.cc |  25 ++++-
 .../files/patch-chrome_browser_ui_tab__helpers.cc  |   8 +-
 ...ui_task__manager_task__manager__table__model.cc |  10 +-
 ...h-chrome_browser_ui_views_accelerator__table.cc |   6 +-
 ...s_chrome__browser__main__extra__parts__views.cc |  10 +-
 ...owser_ui_views_download_download__item__view.cc |   6 +-
 ...chrome_browser_ui_views_frame_browser__frame.cc |  31 +++++-
 ...-chrome_browser_ui_views_frame_browser__view.cc |  13 +--
 ..._ui_views_frame_opaque__browser__frame__view.cc |   8 +-
 ..._ui_views_frame_system__menu__model__builder.cc |   8 +-
 ...ui_views_frame_system__menu__model__delegate.cc |   8 +-
 ..._ui_views_profiles_profile__menu__view__base.cc |   4 +-
 .../patch-chrome_browser_ui_views_tabs_tab.cc      |   4 +-
 ..._browser_ui_views_tabs_tab__drag__controller.cc |   6 +-
 .../patch-chrome_browser_ui_webui_about__ui.cc     |   6 +-
 ...i_webui_chrome__web__ui__controller__factory.cc |  18 ++--
 ..._browser_ui_webui_ntp_app__launcher__handler.cc |   4 +-
 ...tings_settings__localized__strings__provider.cc |   6 +-
 ...ponents_web__app__file__handler__registration.h |   4 +-
 ...ts_web__app__protocol__handler__registration.cc |  11 --
 ...web__applications_components_web__app__utils.cc |  27 +++++
 ...ons_externally__managed__app__install__task.cc} |   6 +-
 ...er_web__applications_web__app__install__task.cc |   4 +-
 ...browser_web__applications_web__app__provider.cc |   6 +-
 www/chromium/files/patch-chrome_common_BUILD.gn    |   6 +-
 .../patch-chrome_common_channel__info__posix.cc    |   6 +-
 .../files/patch-chrome_common_chrome__features.cc  |  12 +--
 .../files/patch-chrome_common_chrome__features.h   |  12 +--
 .../files/patch-chrome_common_chrome__paths.cc     |  18 ++--
 .../files/patch-chrome_common_chrome__paths.h      |   8 +-
 .../files/patch-chrome_common_chrome__switches.cc  |   4 +-
 .../files/patch-chrome_common_chrome__switches.h   |   4 +-
 .../files/patch-chrome_common_pref__names.cc       |  14 +--
 .../files/patch-chrome_common_pref__names.h        |  14 +--
 .../patch-chrome_common_webui__url__constants.cc   |  16 +--
 .../patch-chrome_common_webui__url__constants.h    |  10 +-
 ...chrome_services_speech_soda_soda__test__paths.h |  11 ++
 www/chromium/files/patch-chrome_test_BUILD.gn      |  19 +++-
 ...-chrome_test_base_in__process__browser__test.cc |   6 +-
 ...hrome_test_base_interactive__ui__tests__main.cc |   8 +-
 .../patch-chrome_test_base_test__browser__window.h |   4 +-
 .../files/patch-chrome_utility_services.cc         |   8 +-
 ...hromecast_browser_cast__browser__main__parts.cc |   6 +-
 ...chromecast_browser_cast__browser__main__parts.h |   4 +-
 ...ecast_browser_cast__content__browser__client.cc |   8 +-
 ...content__browser__client__receiver__bindings.cc |   4 +-
 ...ast_renderer_cast__content__renderer__client.cc |   4 +-
 www/chromium/files/patch-components_BUILD.gn       |   4 +-
 ...t_renderer_password__form__conversion__utils.cc |   4 +-
 ...ll_core_browser_autofill__external__delegate.cc |   4 +-
 ...utofill_core_browser_personal__data__manager.cc |   6 +-
 ...ill_core_common_autofill__payments__features.cc |   4 +-
 ...mponents_autofill_core_common_autofill__util.cc |   4 +-
 ...components_cast__channel_cast__message__util.cc |   4 +-
 ..._feature__engagement_public_event__constants.cc |   8 +-
 ...s_feature__engagement_public_event__constants.h |   8 +-
 ...e__engagement_public_feature__configurations.cc |   8 +-
 ...eature__engagement_public_feature__constants.cc |  10 +-
 ...feature__engagement_public_feature__constants.h |   6 +-
 ...nts_feature__engagement_public_feature__list.cc |   8 +-
 ...ents_feature__engagement_public_feature__list.h |  24 ++---
 .../patch-components_feed_core_v2_proto__util.cc   |   6 +-
 .../patch-components_flags__ui_flags__state.cc     |   4 +-
 ...tch-components_gcm__driver_gcm__client__impl.cc |   4 +-
 ...nts_invalidation_impl_invalidation__switches.cc |   4 +-
 .../files/patch-components_metrics_metrics__log.cc |   4 +-
 ...aint__preview_browser_paint__preview__client.cc |   4 +-
 ...tch-components_performance__manager_features.cc |  11 ++
 ...policy_core_common_cloud_cloud__policy__util.cc |   6 +-
 ...ponents_policy_resources_policy__templates.json |   8 +-
 ...ing_core_realtime_url__lookup__service__base.cc |   4 +-
 ...owsing_core_resources_gen__file__type__proto.py |   6 +-
 ...paint__preview__compositor__collection__impl.cc |   8 +-
 ..._paint__preview__compositor__collection__impl.h |   6 +-
 ...storage__monitor_removable__device__constants.h |   4 +-
 .../files/patch-components_viz_common_features.cc  |   8 +-
 ...onents_viz_host_renderer__settings__creation.cc |  11 ++
 ..._display__embedder_software__output__surface.cc |   6 +-
 ...e__sinks_root__compositor__frame__sink__impl.cc |   4 +-
 ...me__sinks_root__compositor__frame__sink__impl.h |   4 +-
 ...ch-components_viz_test_fake__output__surface.cc |   4 +-
 ...tch-components_viz_test_fake__output__surface.h |   4 +-
 ...tch-components_viz_test_mock__display__client.h |   4 +-
 .../files/patch-components_zucchini_main__utils.cc |  63 +++++++++++
 .../files/patch-content_app_content__main.cc       |  22 +++-
 ...atch-content_app_content__main__runner__impl.cc |  16 +--
 www/chromium/files/patch-content_browser_BUILD.gn  |   6 +-
 .../patch-content_browser_browser__main__loop.cc   |   8 +-
 ...wser_devtools_protocol_system__info__handler.cc |   4 +-
 ...ent_browser_download_download__manager__impl.cc |   8 +-
 ...browser_font__access_font__enumeration__cache.h |   4 +-
 .../patch-content_browser_gpu_compositor__util.cc  |   4 +-
 ...patch-content_browser_gpu_gpu__process__host.cc |   6 +-
 ...renderer__host_pepper_pepper__file__io__host.cc |   6 +-
 ...owser_renderer__host_render__message__filter.cc |   6 +-
 ...rowser_renderer__host_render__message__filter.h |   4 +-
 ...r_renderer__host_render__process__host__impl.cc |  16 +--
 ...wser_renderer__host_render__view__host__impl.cc |   4 +-
 ...derer__host_render__widget__host__view__aura.cc |  10 +-
 ...t_render__widget__host__view__event__handler.cc |   4 +-
 ...wser_web__contents_web__contents__view__aura.cc |   8 +-
 ...-content_common_mojo__core__library__support.cc |   4 +-
 www/chromium/files/patch-content_gpu_gpu__main.cc  |   6 +-
 ...t_ppapi__plugin_ppapi__blink__platform__impl.cc |   8 +-
 ...ch-content_ppapi__plugin_ppapi__plugin__main.cc |  23 ++++
 ...atch-content_public_common_content__features.cc |  24 ++++-
 ...patch-content_public_common_content__features.h |  14 +++
 ...atch-content_public_common_content__switches.cc |   4 +-
 ...patch-content_public_common_content__switches.h |   4 +-
 ...atch-content_public_test_browser__test__base.cc |   4 +-
 ...patch-content_renderer_render__process__impl.cc |  21 +++-
 .../patch-content_renderer_render__thread__impl.cc |  10 +-
 ...ent_renderer_renderer__blink__platform__impl.cc |  12 +--
 ...tent_renderer_renderer__blink__platform__impl.h |  12 +--
 ...er_renderer__main__platform__delegate__linux.cc |   4 +-
 www/chromium/files/patch-content_shell_BUILD.gn    |   8 +-
 ...nt_shell_browser_shell__browser__main__parts.cc |   6 +-
 ...hell_utility_shell__content__utility__client.cc |  20 ++++
 www/chromium/files/patch-content_test_BUILD.gn     |  14 +--
 www/chromium/files/patch-content_utility_BUILD.gn  |   6 +-
 .../files/patch-content_utility_utility__main.cc   |   8 +-
 ...i_declarative__webrequest_webrequest__action.cc |   4 +-
 ...sions_browser_api_messaging_message__service.cc |   8 +-
 ..._browser_api_web__request_form__data__parser.cc |   4 +-
 ..._browser__context__keyed__service__factories.cc |   4 +-
 ...tensions_common_api___permission__features.json |   6 +-
 www/chromium/files/patch-extensions_shell_BUILD.gn |   4 +-
 ...__buffer_common_gpu__memory__buffer__support.cc |  20 ++--
 ..._command__buffer_service_external__semaphore.cc |   8 +-
 ..._buffer_service_external__vk__image__backing.cc |  10 +-
 ...gpu_command__buffer_service_program__manager.cc |   4 +-
 ...mmand__buffer_service_shared__image__factory.cc |   4 +-
 ...ommand__buffer_service_webgpu__decoder__impl.cc |   4 +-
 .../files/patch-gpu_config_gpu__control__list.cc   |   6 +-
 ...-gpu_ipc_common_gpu__memory__buffer__support.cc |   4 +-
 .../files/patch-gpu_ipc_service_gpu__init.cc       |  32 +++---
 .../patch-gpu_ipc_service_gpu__watchdog__thread.cc |  12 +--
 www/chromium/files/patch-headless_BUILD.gn         |  10 +-
 ...ss_lib_browser_headless__browser__main__parts.h |  10 +-
 ...rowser_headless__browser__main__parts__linux.cc |   4 +-
 ...b_browser_headless__content__browser__client.cc |   4 +-
 ..._browser_headless__request__context__manager.cc |   6 +-
 ...adless_lib_headless__content__main__delegate.cc |   4 +-
 www/chromium/files/patch-ipc_ipc__channel__mojo.cc |   4 +-
 .../files/patch-ipc_ipc__message__utils.cc         |   4 +-
 www/chromium/files/patch-ipc_ipc__message__utils.h |   4 +-
 www/chromium/files/patch-media_audio_BUILD.gn      |   6 +-
 .../patch-media_audio_audio__input__device.cc      |   4 +-
 .../files/patch-media_base_media__switches.cc      |  28 ++++-
 .../files/patch-media_base_media__switches.h       |   4 +-
 .../files/patch-media_base_video__frame.cc         |  14 +--
 www/chromium/files/patch-media_base_video__frame.h |  12 +--
 ...ideo_create__video__capture__device__factory.cc |   6 +-
 ..._video_file__video__capture__device__factory.cc |   4 +-
 ...capture_video_video__capture__device__client.cc |   4 +-
 ...ideo_gpu__memory__buffer__video__frame__pool.cc |   4 +-
 ...ia_video_video__encode__accelerator__adapter.cc |   6 +-
 ...eo_video__encode__accelerator__adapter__test.cc |   4 +-
 .../files/patch-mojo_public_c_system_thunks.cc     |   6 +-
 ...ch-mojo_public_js_mojo__bindings__resources.grd |   4 +-
 www/chromium/files/patch-net_BUILD.gn              |  69 ++++++------
 .../patch-net_base_network__change__notifier.cc    |  20 +++-
 .../patch-net_base_network__change__notifier.h     |  20 ++++
 .../files/patch-net_cert_cert__verifier.cc         |   8 +-
 .../files/patch-net_cert_cert__verify__proc.cc     |   4 +-
 .../files/patch-net_cert_test__root__certs.h       |  26 -----
 www/chromium/files/patch-net_dns_BUILD.gn          |  20 ++--
 www/chromium/files/patch-net_dns_dns__util.cc      |   6 +-
 .../patch-net_nqe_network__quality__estimator.cc   |   4 +-
 ...xy__resolution_proxy__config__service__linux.cc |  19 ++--
 .../files/patch-net_socket_udp__socket__posix.cc   |  10 +-
 ..._tools_cert__verify__tool_cert__verify__tool.cc |   4 +-
 ...ch-net_tools_quic_quic__http__proxy__backend.cc |   4 +-
 .../files/patch-pdf_pdfium_pdfium__engine.cc       |  14 +--
 www/chromium/files/patch-printing_BUILD.gn         |  10 +-
 .../files/patch-printing_backend_cups__helper.cc   |  38 -------
 .../files/patch-printing_print__settings.cc        |   4 +-
 .../files/patch-printing_print__settings.h         |  12 +--
 .../patch-printing_print__settings__conversion.cc  |  25 ++---
 .../files/patch-printing_printing__features.h      |   9 +-
 .../files/patch-remoting_host_host__main.cc        |   8 +-
 .../files/patch-remoting_host_host__settings.cc    |  23 ++++
 ...ch-remoting_host_me2me__desktop__environment.cc |  17 ++-
 .../files/patch-remoting_host_mojo__ipc__server.cc |  32 ++++++
 ...h-remoting_host_remote__open__url__constants.cc |  11 ++
 .../patch-remoting_host_remoting__me2me__host.cc   |  18 ++--
 .../patch-remoting_host_scoped__url__forwarder.cc  |  19 ++++
 .../patch-remoting_host_setup_start__host__main.cc |  48 +++++++++
 www/chromium/files/patch-sandbox_policy_BUILD.gn   |   6 +-
 .../files/patch-sandbox_policy_switches.cc         |   4 +-
 www/chromium/files/patch-sandbox_policy_switches.h |   4 +-
 ...ices_device_geolocation_location__arbitrator.cc |   6 +-
 ...services_device_hid_hid__connection__freebsd.cc |   6 +-
 ...ch-services_device_hid_hid__service__freebsd.cc |  12 +--
 .../patch-services_network_network__context.cc     |   4 +-
 .../patch-services_network_network__service.cc     |   6 +-
 .../patch-services_network_network__service.h      |   4 +-
 ..._instrumentation_queued__request__dispatcher.cc |   6 +-
 ...p_memory__instrumentation_os__metrics__linux.cc |   4 +-
 ...ices_tracing_public_cpp_perfetto_trace__time.cc |  18 ----
 ...p_stack__sampling_tracing__sampler__profiler.cc |   4 +-
 .../files/patch-third__party_angle_BUILD.gn        |   8 +-
 ...angle_src_gpu__info__util_SystemInfo__linux.cpp |  11 +-
 ...tch-third__party_angle_src_libANGLE_Display.cpp |   4 +-
 ...y_angle_src_libANGLE_renderer_driver__utils.cpp |  10 +-
 ...rty_angle_src_libANGLE_renderer_driver__utils.h |   4 +-
 ...h-third__party_blink_public_platform_platform.h |   4 +-
 ...blink_renderer_controller_blink__initializer.cc |   8 +-
 ...nk_renderer_core_clipboard_system__clipboard.cc |  15 ---
 ...link_renderer_core_editing_editing__behavior.cc |   4 +-
 ...blink_renderer_core_exported_web__view__impl.cc |   6 +-
 ...y_blink_renderer_core_frame_web__frame__test.cc |   6 +-
 ..._renderer_core_scroll_scrollbar__theme__aura.cc |   6 +-
 ..._mediastream_processed__local__audio__source.cc |   4 +-
 ...peerconnection_webrtc__audio__renderer__test.cc |   4 +-
 ...odules_webaudio_audio__worklet__thread__test.cc |   4 +-
 ...odules_webgl_webgl__rendering__context__base.cc |   4 +-
 ...modules_webgl_webgl__webcodecs__video__frame.cc |   6 +-
 ...h-third__party_blink_renderer_platform_BUILD.gn |   4 +-
 ...ty_blink_renderer_platform_fonts_font__cache.cc |   6 +-
 ...nk_renderer_platform_fonts_font__description.cc |   6 +-
 ...latform_fonts_shaping_harfbuzz__shaper__test.cc |   4 +-
 ...nderer_platform_fonts_skia_font__cache__skia.cc |  10 +-
 ...er_platform_graphics_video__frame__submitter.cc |   4 +-
 ...nk_renderer_platform_scheduler_common_thread.cc |   4 +-
 ...arty_blink_renderer_platform_wtf_stack__util.cc |   4 +-
 ...-third__party_crashpad_crashpad_client_BUILD.gn |  10 +-
 ...crashpad_crashpad_util_posix_close__multiple.cc |   4 +-
 .../patch-third__party_dawn_src_common_Platform.h  |   4 +-
 ..._googletest_include_gtest_internal_gtest-port.h |   6 +-
 ...tch-third__party_leveldatabase_env__chromium.cc |   6 +-
 ...third__party_pdfium_core_fxge_fx__ge__linux.cpp |  29 ------
 ...arty_pdfium_core_fxge_linux_fx__linux__impl.cpp |  11 ++
 ...rd__party_perfetto_src_base_ctrl__c__handler.cc |   4 +-
 ...party_perfetto_src_base_test_vm__test__utils.cc |  11 ++
 .../patch-third__party_perfetto_src_base_utils.cc  |  10 +-
 ...d__party_perfetto_src_traced_service_service.cc |   4 +-
 ...etto_src_tracing_core_tracing__service__impl.cc |   6 +-
 ...__party_perfetto_src_tracing_platform__posix.cc |   6 +-
 ...skia_src_ports_SkFontHost__FreeType__common.cpp |  50 +++++++++
 ...rd__party_swiftshader_include_vulkan_vulkan.hpp |  42 ++++----
 ...party_swiftshader_src_OpenGL_libEGL_Display.cpp |   6 +-
 ...party_swiftshader_src_OpenGL_libEGL_Surface.cpp |   4 +-
 ...ftshader_src_OpenGL_libGLES__CM_libGLES__CM.hpp |  11 --
 ...y_vulkan-deps_vulkan-loader_src_loader_loader.c |   6 +-
 ...vulkan-loader_src_loader_vk__loader__platform.h |   6 +-
 .../files/patch-third__party_webrtc_BUILD.gn       |   4 +-
 ...ols_json__schema__compiler_feature__compiler.py |   4 +-
 .../patch-tools_json__schema__compiler_model.py    |   4 +-
 ...ch-tools_perf_chrome__telemetry__build_BUILD.gn |   4 +-
 ...patch-ui_base_clipboard_clipboard__constants.cc |   8 +-
 .../patch-ui_base_clipboard_clipboard__constants.h |   6 +-
 .../files/patch-ui_base_cursor_cursor__factory.cc  |   6 +-
 .../files/patch-ui_base_cursor_cursor__factory.h   |   6 +-
 .../patch-ui_base_resource_resource__bundle.cc     |  10 +-
 .../patch-ui_base_test_skia__gold__pixel__diff.cc  |   4 +-
 .../files/patch-ui_base_ui__base__features.cc      |  14 +--
 .../files/patch-ui_base_ui__base__features.h       |   8 +-
 .../files/patch-ui_compositor_compositor.cc        |   4 +-
 .../files/patch-ui_compositor_compositor.h         |   4 +-
 www/chromium/files/patch-ui_events_event.cc        |   4 +-
 ...ch-ui_events_keycodes_dom_keycode__converter.cc |   4 +-
 ...tch-ui_events_keycodes_dom_keycode__converter.h |   6 +-
 .../patch-ui_events_ozone_keyboard__hook__ozone.cc |   8 +-
 www/chromium/files/patch-ui_gfx_BUILD.gn           |   4 +-
 ...-ui_gfx_linux_client__native__pixmap__dmabuf.cc |   4 +-
 .../files/patch-ui_gfx_native__pixmap__handle.h    |   4 +-
 www/chromium/files/patch-ui_gfx_render__text.cc    |   6 +-
 www/chromium/files/patch-ui_gl_BUILD.gn            |   4 +-
 www/chromium/files/patch-ui_gl_gl__features.cc     |   4 +-
 .../patch-ui_gtk_printing_print__dialog__gtk.cc    |   4 +-
 ...i_message__center_views_message__popup__view.cc |   6 +-
 .../patch-ui_native__theme_native__theme__base.cc  |   4 +-
 ...rm__window_platform__window__init__properties.h |   4 +-
 .../files/patch-ui_views_controls_label.cc         |  20 ----
 .../patch-ui_views_controls_textfield_textfield.cc |  30 ++----
 .../files/patch-ui_views_focus_focus__manager.cc   |   6 +-
 .../files/patch-ui_views_selection__controller.cc  |  11 --
 .../files/patch-ui_views_style_platform__style.cc  |   8 +-
 ..._widget_desktop__aura_desktop__screen__ozone.cc |   8 +-
 ...__aura_desktop__window__tree__host__platform.cc |   4 +-
 .../patch-ui_views_widget_native__widget__aura.cc  |  19 +---
 www/chromium/files/patch-ui_views_widget_widget.cc |  20 ++++
 .../patch-ui_views_window_custom__frame__view.cc   |   4 +-
 www/chromium/files/patch-v8_BUILD.gn               |   6 +-
 www/chromium/files/patch-v8_src_api_api.cc         |   4 +-
 www/chromium/files/patch-v8_src_d8_d8.cc           |   6 +-
 www/chromium/files/patch-weblayer_BUILD.gn         |   4 +-
 ...h-weblayer_app_content__main__delegate__impl.cc |   4 +-
 ...-weblayer_browser_browser__main__parts__impl.cc |   6 +-
 ...layer_browser_content__browser__client__impl.cc |  10 +-
 www/chromium/files/sndio_input.cc                  |  12 +--
 www/chromium/files/sndio_input.h                   |   2 +-
 430 files changed, 2590 insertions(+), 1894 deletions(-)

diff --git a/www/chromium/Makefile b/www/chromium/Makefile
index cf322744e6fc..7ea8aca712e6 100644
--- a/www/chromium/Makefile
+++ b/www/chromium/Makefile
@@ -1,8 +1,8 @@
 # Created by: Florent Thoumie <flz@FreeBSD.org>
 
 PORTNAME=	chromium
-PORTVERSION=	91.0.4472.164
-CATEGORIES=	www java
+PORTVERSION=	92.0.4515.159
+CATEGORIES=	www
 MASTER_SITES=	https://commondatastorage.googleapis.com/chromium-browser-official/ \
 		LOCAL/rene/chromium/:fonts
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
@@ -14,6 +14,7 @@ LICENSE=	BSD3CLAUSE LGPL21 MPL11
 LICENSE_COMB=	multi
 
 BROKEN_FreeBSD_11_aarch64=	components/safe_browsing_db/v4_rice.cc:120:18: use of overloaded operator '&' is ambiguous
+BROKEN_i386=			../../base/files/file_util_posix.cc:1258:29: error: no matching function for call to 'sendfile' (ssize_t vs off_t)
 ONLY_FOR_ARCHS=			aarch64 amd64 i386
 
 BUILD_DEPENDS=	bash:shells/bash \
@@ -28,7 +29,8 @@ BUILD_DEPENDS=	bash:shells/bash \
 		${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat \
 		${LOCALBASE}/share/usbids/usb.ids:misc/usbids \
 		${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} \
-		${LOCALBASE}/include/va/va.h:multimedia/libva
+		${LOCALBASE}/include/va/va.h:multimedia/libva \
+		${LOCALBASE}/bin/python2.7:lang/python27
 
 LIB_DEPENDS=	libatk-bridge-2.0.so:accessibility/at-spi2-atk \
 		libatspi.so:accessibility/at-spi2-core \
@@ -66,7 +68,7 @@ RUN_DEPENDS=	xdg-open:devel/xdg-utils \
 		noto-basic>0:x11-fonts/noto-basic
 
 USES=		bison compiler:c++17-lang cpe desktop-file-utils dos2unix gl gnome jpeg localbase:ldflags \
-		ninja perl5 pkgconfig python:2.7,build shebangfix tar:xz xorg
+		ninja perl5 pkgconfig python:build shebangfix tar:xz xorg
 
 CPE_VENDOR=	google
 CPE_PRODUCT=	chrome
@@ -84,7 +86,8 @@ SHEBANG_FILES=	chrome/tools/build/linux/chrome-wrapper buildtools/linux64/clang-
 MAKE_ARGS=	-C out/${BUILDTYPE}
 ALL_TARGET=	chrome
 
-BINARY_ALIAS=	python=${PYTHON_CMD}
+BINARY_ALIAS=	python=${LOCALBASE}/bin/python2.7 \
+		python3=${PYTHON_CMD}
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-clang
 
 # TODO bz@ : install libwidevinecdm.so (see third_party/widevine/cdm/BUILD.gn)
@@ -261,14 +264,6 @@ pre-configure:
 		./build/linux/unbundle/replace_gn_files.py --system-libraries \
 		ffmpeg flac fontconfig freetype harfbuzz-ng libdrm libpng libwebp libxml libxslt openh264 opus snappy || ${FALSE}
 
-	# We need the site package from xcbgen, which installs as python3.x (really: default version), while the chromium
-	# build still needs to use python2.7. It works, because xcbgen can run with both versions, but we want to avoid
-	# having the pre-compiled pyc files from 2.7 in the 3.x site packages
-	# Remove this as soon as chromium uses python3.x as well
-	@${MKDIR} ${WRKDIR}/site-packages/xcbgen
-	${CP} ${PYTHONBASE}/lib/python${PYTHON_DEFAULT}/site-packages/xcbgen/*.py \
-		${WRKDIR}/site-packages/xcbgen
-
 do-configure:
 	# GN generator bootstrapping and generating ninja files
 	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} CC=${CC} CXX=${CXX} LD=${CXX} \
@@ -285,6 +280,7 @@ do-configure:
 	@${MKDIR} ${WRKSRC}/buildtools/freebsd
 	${LN} -sf ${WRKSRC}/buildtools/linux64/clang-format ${WRKSRC}/buildtools/freebsd
 	${LN} -sf ${WRKSRC}/out/${BUILDTYPE}/gn ${WRKSRC}/buildtools/freebsd
+	${LN} -sf /usr/bin/strip ${WRKSRC}/buildtools/freebsd/strip
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${DATADIR}
diff --git a/www/chromium/distinfo b/www/chromium/distinfo
index 34fb57c861b9..2138bdc60c5c 100644
--- a/www/chromium/distinfo
+++ b/www/chromium/distinfo
@@ -1,7 +1,7 @@
-TIMESTAMP = 1626468011
-SHA256 (chromium-91.0.4472.164.tar.xz) = 84e56fa2ad96d910cab429c513eeaca7bfa94096fef057bd024be826ce8426bd
-SIZE (chromium-91.0.4472.164.tar.xz) = 950253100
-SHA256 (chromium-91.0.4472.164-testdata.tar.xz) = 0f9da538d6f70ea0f360e71e8dbbb940f827dc20bb7dcd5a4566ae196fdbd366
-SIZE (chromium-91.0.4472.164-testdata.tar.xz) = 256786536
+TIMESTAMP = 1629197071
+SHA256 (chromium-92.0.4515.159.tar.xz) = d97d337d0d70e959a75f1f510f5d78d2b57b5bf24573b7ade9fff9f26a7cfd11
+SIZE (chromium-92.0.4515.159.tar.xz) = 958060524
+SHA256 (chromium-92.0.4515.159-testdata.tar.xz) = 5787a7e7a6567dcf04bc3d2c3b5ed01a8d215b6d47ef37bd1844444938f41ffa
+SIZE (chromium-92.0.4515.159-testdata.tar.xz) = 256835676
 SHA256 (test_fonts-85.tar.xz) = f22b61b3639acb147c98ec2e2305d8b96f0b55c8c74c40e2ea696402fae8cef9
 SIZE (test_fonts-85.tar.xz) = 9511984
diff --git a/www/chromium/files/extra-patch-build_config_compiler_pgo_pgo.gni b/www/chromium/files/extra-patch-build_config_compiler_pgo_pgo.gni
index 6e19cd7c7da5..ede4422aa141 100644
--- a/www/chromium/files/extra-patch-build_config_compiler_pgo_pgo.gni
+++ b/www/chromium/files/extra-patch-build_config_compiler_pgo_pgo.gni
@@ -1,4 +1,4 @@
---- build/config/compiler/pgo/pgo.gni.orig	2021-06-09 22:13:52 UTC
+--- build/config/compiler/pgo/pgo.gni.orig	2021-08-17 00:15:54 UTC
 +++ build/config/compiler/pgo/pgo.gni
 @@ -16,7 +16,7 @@ declare_args() {
        # TODO(crbug.com/1052397): Remove chromeos_is_browser_only once
diff --git a/www/chromium/files/patch-3p-pdfium_3p_base_allocator_partition__allocator_page__allocator__internals__posix.h b/www/chromium/files/patch-3p-pdfium_3p_base_allocator_partition__allocator_page__allocator__internals__posix.h
index d13e0e3e592a..b9cbe4cc1c83 100644
--- a/www/chromium/files/patch-3p-pdfium_3p_base_allocator_partition__allocator_page__allocator__internals__posix.h
+++ b/www/chromium/files/patch-3p-pdfium_3p_base_allocator_partition__allocator_page__allocator__internals__posix.h
@@ -1,4 +1,4 @@
---- third_party/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h.orig	2021-06-09 22:16:18 UTC
+--- third_party/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h.orig	2021-08-17 00:18:54 UTC
 +++ third_party/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h
 @@ -16,7 +16,7 @@
  #if defined(OS_ANDROID)
diff --git a/www/chromium/files/patch-BUILD.gn b/www/chromium/files/patch-BUILD.gn
index 4a38e2e73dcf..8528f242ee69 100644
--- a/www/chromium/files/patch-BUILD.gn
+++ b/www/chromium/files/patch-BUILD.gn
@@ -1,6 +1,6 @@
---- BUILD.gn.orig	2021-05-12 22:05:39 UTC
+--- BUILD.gn.orig	2021-07-19 18:45:04 UTC
 +++ BUILD.gn
-@@ -429,7 +429,7 @@ group("gn_all") {
+@@ -443,7 +443,7 @@ group("gn_all") {
      ]
    }
  
@@ -9,7 +9,7 @@
      deps += [
        "//third_party/breakpad:breakpad_unittests",
        "//third_party/breakpad:core-2-minidump",
-@@ -474,8 +474,6 @@ group("gn_all") {
+@@ -488,8 +488,6 @@ group("gn_all") {
        "//net:disk_cache_memory_test",
        "//net:quic_client",
        "//net:quic_server",
@@ -18,7 +18,7 @@
        "//testing:empty_main",
      ]
  
-@@ -530,10 +528,6 @@ group("gn_all") {
+@@ -544,10 +542,6 @@ group("gn_all") {
          "//chrome/test:load_library_perf_tests",
          "//chrome/test:sync_performance_tests",
          "//chrome/test/chromedriver:chromedriver",
@@ -29,7 +29,7 @@
          "//media/cast:generate_barcode_video",
          "//media/cast:generate_timecode_audio",
          "//net:crash_cache",
-@@ -592,10 +586,6 @@ group("gn_all") {
+@@ -606,10 +600,6 @@ group("gn_all") {
        "//mojo:mojo_perftests",
        "//services/service_manager/public/cpp",
        "//testing/gmock:gmock_main",
@@ -40,7 +40,7 @@
      ]
  
      if (!is_android) {
-@@ -673,7 +663,7 @@ group("gn_all") {
+@@ -687,7 +677,7 @@ group("gn_all") {
          host_os == "win") {
        deps += [ "//chrome/test/mini_installer:mini_installer_tests" ]
      }
@@ -49,7 +49,7 @@
      deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
    }
  
-@@ -688,7 +678,7 @@ group("gn_all") {
+@@ -702,7 +692,7 @@ group("gn_all") {
      }
    }
  
@@ -58,7 +58,7 @@
      deps += [
        "//third_party/crashpad/crashpad:crashpad_tests",
        "//third_party/crashpad/crashpad/handler:crashpad_handler",
-@@ -803,7 +793,6 @@ group("gn_all") {
+@@ -819,7 +809,6 @@ group("gn_all") {
        "//chrome/browser/vr:vr_common_perftests",
        "//chrome/browser/vr:vr_common_unittests",
        "//chrome/browser/vr:vr_pixeltests",
@@ -66,7 +66,7 @@
      ]
      if (is_android) {
        deps += [ "//chrome/browser/android/vr:vr_android_unittests" ]
-@@ -1102,7 +1091,7 @@ if (!is_ios) {
+@@ -1118,7 +1107,7 @@ if (!is_ios) {
        data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ]
      }
  
@@ -75,7 +75,7 @@
        data_deps +=
            [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
      }
-@@ -1111,7 +1100,7 @@ if (!is_ios) {
+@@ -1127,7 +1116,7 @@ if (!is_ios) {
        data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
      }
  
@@ -84,7 +84,7 @@
        data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
      }
  
-@@ -1355,9 +1344,6 @@ group("chromium_builder_perf") {
+@@ -1371,9 +1360,6 @@ group("chromium_builder_perf") {
  
      if (is_win) {
        data_deps += [ "//chrome/installer/mini_installer:mini_installer" ]
diff --git a/www/chromium/files/patch-ash_display_mirror__window__controller.cc b/www/chromium/files/patch-ash_display_mirror__window__controller.cc
index 86ac55d854fe..8e2ee6085452 100644
--- a/www/chromium/files/patch-ash_display_mirror__window__controller.cc
+++ b/www/chromium/files/patch-ash_display_mirror__window__controller.cc
@@ -1,6 +1,6 @@
---- ash/display/mirror_window_controller.cc.orig	2021-04-14 18:40:48 UTC
+--- ash/display/mirror_window_controller.cc.orig	2021-07-19 18:45:04 UTC
 +++ ash/display/mirror_window_controller.cc
-@@ -286,7 +286,11 @@ void MirrorWindowController::UpdateWindow(
+@@ -287,7 +287,11 @@ void MirrorWindowController::UpdateWindow(
                           return info.id() == iter->first;
                         }) == display_info_list.end()) {
          CloseAndDeleteHost(iter->second, true);
diff --git a/www/chromium/files/patch-base_BUILD.gn b/www/chromium/files/patch-base_BUILD.gn
index f18542dec520..071f2b46a17e 100644
--- a/www/chromium/files/patch-base_BUILD.gn
+++ b/www/chromium/files/patch-base_BUILD.gn
@@ -1,6 +1,6 @@
---- base/BUILD.gn.orig	2021-05-24 22:05:31 UTC
+--- base/BUILD.gn.orig	2021-07-19 18:45:05 UTC
 +++ base/BUILD.gn
-@@ -963,7 +963,7 @@ component("base") {
+@@ -972,7 +972,7 @@ component("base") {
        "timer/hi_res_timer_manager_posix.cc",
      ]
  
@@ -9,7 +9,7 @@
        sources += [
          "cpu_affinity_posix.cc",
          "cpu_affinity_posix.h",
-@@ -974,6 +974,11 @@ component("base") {
+@@ -983,6 +983,11 @@ component("base") {
          "profiler/thread_delegate_posix.h",
        ]
      }
@@ -21,7 +21,7 @@
    }
  
    if (is_win) {
-@@ -1377,7 +1382,7 @@ component("base") {
+@@ -1394,7 +1399,7 @@ component("base") {
    # building inside the cros_sdk environment - use host_toolchain as a
    # more robust check for this.
    if (!use_sysroot &&
@@ -30,7 +30,7 @@
        host_toolchain != "//build/toolchain/cros:host") {
      libs += [ "atomic" ]
    }
-@@ -1430,7 +1435,7 @@ component("base") {
+@@ -1447,7 +1452,7 @@ component("base") {
            "allocator/allocator_shim_default_dispatch_to_mac_zoned_malloc.cc",
          ]
        }
@@ -39,7 +39,7 @@
          sources += [ "allocator/allocator_shim_default_dispatch_to_glibc.cc" ]
        }
        if (is_win) {
-@@ -2064,6 +2069,34 @@ component("base") {
+@@ -2119,6 +2124,34 @@ component("base") {
      }
    }
  
@@ -74,21 +74,21 @@
    # iOS
    if (is_ios) {
      sources -= [
-@@ -3273,7 +3306,7 @@ if (build_base_unittests) {
-       }
-     }
- 
--    if (is_linux || is_chromeos) {
-+    if ((is_linux || is_chromeos) && !is_bsd) {
-       sources += [ "debug/proc_maps_linux_unittest.cc" ]
+@@ -3339,7 +3372,7 @@ test("base_unittests") {
      }
+   }
  
-@@ -3313,7 +3346,7 @@ if (build_base_unittests) {
-         "posix/unix_domain_socket_unittest.cc",
-         "task/thread_pool/task_tracker_posix_unittest.cc",
-       ]
--      if (!is_nacl && !is_apple) {
-+      if (!is_nacl && !is_apple && !is_bsd) {
-         sources += [
-           "cpu_affinity_posix_unittest.cc",
-           "profiler/stack_copier_signal_unittest.cc",
+-  if (is_linux || is_chromeos) {
++  if ((is_linux || is_chromeos) && !is_bsd) {
+     sources += [
+       "debug/proc_maps_linux_unittest.cc",
+       "files/scoped_file_linux_unittest.cc",
+@@ -3382,7 +3415,7 @@ test("base_unittests") {
+       "posix/unix_domain_socket_unittest.cc",
+       "task/thread_pool/task_tracker_posix_unittest.cc",
+     ]
+-    if (!is_nacl && !is_apple) {
++    if (!is_nacl && !is_apple && !is_bsd) {
+       sources += [
+         "cpu_affinity_posix_unittest.cc",
+         "profiler/stack_copier_signal_unittest.cc",
diff --git a/www/chromium/files/patch-base_allocator_allocator.gni b/www/chromium/files/patch-base_allocator_allocator.gni
index 460eda24c41a..a8a21f360289 100644
--- a/www/chromium/files/patch-base_allocator_allocator.gni
+++ b/www/chromium/files/patch-base_allocator_allocator.gni
@@ -1,6 +1,6 @@
---- base/allocator/allocator.gni.orig	2021-05-24 22:05:31 UTC
+--- base/allocator/allocator.gni.orig	2021-07-19 18:45:05 UTC
 +++ base/allocator/allocator.gni
-@@ -63,7 +63,7 @@ declare_args() {
+@@ -60,7 +60,7 @@ declare_args() {
    # not, and redesign or remove the flag accordingly.  We may want to assert a
    # possible conflict between |use_allocator = "partition"| and
    # |use_partition_alloc = true| rather than prioritizing use_partition_alloc.
diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_address__pool__manager.cc b/www/chromium/files/patch-base_allocator_partition__allocator_address__pool__manager.cc
index 3c2f4be3e9cb..8c16e950e5ba 100644
--- a/www/chromium/files/patch-base_allocator_partition__allocator_address__pool__manager.cc
+++ b/www/chromium/files/patch-base_allocator_partition__allocator_address__pool__manager.cc
@@ -1,4 +1,4 @@
---- base/allocator/partition_allocator/address_pool_manager.cc.orig	2021-04-14 18:40:48 UTC
+--- base/allocator/partition_allocator/address_pool_manager.cc.orig	2021-07-19 18:45:05 UTC
 +++ base/allocator/partition_allocator/address_pool_manager.cc
 @@ -8,6 +8,13 @@
  #include <sys/mman.h>
@@ -27,5 +27,5 @@
 +  PA_PCHECK(ptr == address);
 +  HANDLE_EINTR(close(fd));
  #else
+   static_assert(DecommittedMemoryIsAlwaysZeroed(), "");
    DecommitSystemPages(address, size, PageUpdatePermissions);
- #endif
diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__internals__posix.h b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__internals__posix.h
index 91f9b30c0ca2..5e523e2c6be3 100644
--- a/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__internals__posix.h
+++ b/www/chromium/files/patch-base_allocator_partition__allocator_page__allocator__internals__posix.h
@@ -1,24 +1,22 @@
---- base/allocator/partition_allocator/page_allocator_internals_posix.h.orig	2021-04-14 18:40:48 UTC
+--- base/allocator/partition_allocator/page_allocator_internals_posix.h.orig	2021-07-19 18:45:05 UTC
 +++ base/allocator/partition_allocator/page_allocator_internals_posix.h
-@@ -28,12 +28,16 @@
+@@ -28,10 +28,14 @@
  #if defined(OS_ANDROID)
  #include <sys/prctl.h>
  #endif
 -#if defined(OS_LINUX) || defined(OS_CHROMEOS)
 +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
  #include <sys/resource.h>
- 
- #include <algorithm>
  #endif
  
-+#if defined(OS_FREEBSD)
++#if defined(OS_BSD)
 +#include <fcntl.h>
 +#endif
 +
  #include "base/allocator/partition_allocator/page_allocator.h"
  
  #ifndef MAP_ANONYMOUS
-@@ -153,12 +157,19 @@ void* SystemAllocPagesInternal(void* hint,
+@@ -151,12 +155,19 @@ void* SystemAllocPagesInternal(void* hint,
    PA_DCHECK(PageTag::kFirst <= page_tag);
    PA_DCHECK(PageTag::kLast >= page_tag);
    int fd = VM_MAKE_TAG(static_cast<int>(page_tag));
@@ -38,7 +36,7 @@
  
  #if defined(OS_APPLE)
    // On macOS 10.14 and higher, executables that are code signed with the
-@@ -185,6 +196,8 @@ void* SystemAllocPagesInternal(void* hint,
+@@ -183,6 +194,8 @@ void* SystemAllocPagesInternal(void* hint,
      prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ret, length,
            PageTagToName(page_tag));
    }
@@ -47,7 +45,7 @@
  #endif
  
    return ret;
-@@ -317,6 +330,8 @@ void DiscardSystemPagesInternal(void* address, size_t 
+@@ -334,6 +347,8 @@ void DiscardSystemPagesInternal(void* address, size_t 
      ret = madvise(address, length, MADV_DONTNEED);
    }
    PA_PCHECK(ret == 0);
diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h
index 20ff541d2e02..76d20b689187 100644
--- a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h
+++ b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__config.h
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/partition_alloc_config.h.orig	2021-05-18 13:58:13 UTC
+--- base/allocator/partition_allocator/partition_alloc_config.h.orig	2021-07-19 18:45:05 UTC
 +++ base/allocator/partition_allocator/partition_alloc_config.h
-@@ -34,9 +34,13 @@ static_assert(sizeof(void*) != 8, "");
+@@ -46,9 +46,13 @@ static_assert(sizeof(void*) != 8, "");
  #define PA_HAS_LINUX_KERNEL
  #endif
  
diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__unittest.cc b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__unittest.cc
index 8f6488a80bd6..f9667782d087 100644
--- a/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__unittest.cc
+++ b/www/chromium/files/patch-base_allocator_partition__allocator_partition__alloc__unittest.cc
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/partition_alloc_unittest.cc.orig	2021-05-12 22:05:40 UTC
+--- base/allocator/partition_allocator/partition_alloc_unittest.cc.orig	2021-07-19 18:45:05 UTC
 +++ base/allocator/partition_allocator/partition_alloc_unittest.cc
-@@ -1659,7 +1659,7 @@ TEST_F(PartitionAllocTest, LostFreeSlotSpansBug) {
+@@ -1651,7 +1651,7 @@ TEST_F(PartitionAllocTest, LostFreeSlotSpansBug) {
  // cause flake.
  #if !defined(OS_WIN) &&            \
      (!defined(ARCH_CPU_64_BITS) || \
@@ -9,7 +9,7 @@
  
  // The following four tests wrap a called function in an expect death statement
  // to perform their test, because they are non-hermetic. Specifically they are
-@@ -1710,7 +1710,7 @@ TEST_F(PartitionAllocDeathTest, DISABLED_RepeatedTryRe
+@@ -1702,7 +1702,7 @@ TEST_F(PartitionAllocDeathTest, DISABLED_RepeatedTryRe
  }
  
  #endif  // !defined(ARCH_CPU_64_BITS) || (defined(OS_POSIX) &&
diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_partition__root.cc b/www/chromium/files/patch-base_allocator_partition__allocator_partition__root.cc
index 147faa94e4b7..f0e47dbc54d7 100644
--- a/www/chromium/files/patch-base_allocator_partition__allocator_partition__root.cc
+++ b/www/chromium/files/patch-base_allocator_partition__allocator_partition__root.cc
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/partition_root.cc.orig	2021-05-12 22:05:40 UTC
+--- base/allocator/partition_allocator/partition_root.cc.orig	2021-07-19 18:45:05 UTC
 +++ base/allocator/partition_allocator/partition_root.cc
-@@ -22,7 +22,7 @@
+@@ -25,7 +25,7 @@
  #include "wow64apiset.h"
  #endif
  
@@ -9,7 +9,7 @@
  #include <pthread.h>
  #endif
  
-@@ -36,7 +36,7 @@ namespace {
+@@ -39,7 +39,7 @@ namespace {
  
  #if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
  
@@ -18,7 +18,7 @@
  
  // NO_THREAD_SAFETY_ANALYSIS: acquires the lock and doesn't release it, by
  // design.
-@@ -89,7 +89,7 @@ void AfterForkInChild() {
+@@ -92,7 +92,7 @@ void AfterForkInChild() {
    internal::ThreadCacheRegistry::Instance()
        .ForcePurgeAllThreadAfterForkUnsafe();
  }
@@ -27,7 +27,7 @@
  
  std::atomic<bool> g_global_init_called;
  void PartitionAllocMallocInitOnce() {
-@@ -99,7 +99,7 @@ void PartitionAllocMallocInitOnce() {
+@@ -102,7 +102,7 @@ void PartitionAllocMallocInitOnce() {
    if (!g_global_init_called.compare_exchange_strong(expected, true))
      return;
  
@@ -36,7 +36,7 @@
    // When fork() is called, only the current thread continues to execute in the
    // child process. If the lock is held, but *not* by this thread when fork() is
    // called, we have a deadlock.
-@@ -124,7 +124,7 @@ void PartitionAllocMallocInitOnce() {
+@@ -127,7 +127,7 @@ void PartitionAllocMallocInitOnce() {
    int err =
        pthread_atfork(BeforeForkInParent, AfterForkInParent, AfterForkInChild);
    PA_CHECK(err == 0);
diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_starscan_pcscan.cc b/www/chromium/files/patch-base_allocator_partition__allocator_starscan_pcscan__internal.cc
similarity index 60%
rename from www/chromium/files/patch-base_allocator_partition__allocator_starscan_pcscan.cc
rename to www/chromium/files/patch-base_allocator_partition__allocator_starscan_pcscan__internal.cc
index fb0af07cb8d8..4e62c2a629f9 100644
--- a/www/chromium/files/patch-base_allocator_partition__allocator_starscan_pcscan.cc
+++ b/www/chromium/files/patch-base_allocator_partition__allocator_starscan_pcscan__internal.cc
@@ -1,6 +1,6 @@
---- base/allocator/partition_allocator/starscan/pcscan.cc.orig	2021-05-25 11:07:18 UTC
-+++ base/allocator/partition_allocator/starscan/pcscan.cc
-@@ -67,7 +67,7 @@ namespace internal {
+--- base/allocator/partition_allocator/starscan/pcscan_internal.cc.orig	2021-07-28 07:02:32 UTC
++++ base/allocator/partition_allocator/starscan/pcscan_internal.cc
+@@ -72,7 +72,7 @@ namespace internal {
  
  namespace {
  
diff --git a/www/chromium/files/patch-base_allocator_partition__allocator_starscan_stack_stack.cc b/www/chromium/files/patch-base_allocator_partition__allocator_starscan_stack_stack.cc
new file mode 100644
index 000000000000..44ee20228aa7
--- /dev/null
+++ b/www/chromium/files/patch-base_allocator_partition__allocator_starscan_stack_stack.cc
@@ -0,0 +1,39 @@
+--- base/allocator/partition_allocator/starscan/stack/stack.cc.orig	2021-07-28 10:41:10 UTC
++++ base/allocator/partition_allocator/starscan/stack/stack.cc
+@@ -17,6 +17,10 @@
+ #include <pthread.h>
+ #endif
+ 
++#if defined(OS_FREEBSD)
++#include <pthread_np.h>
++#endif
++
+ #if defined(LIBC_GLIBC)
+ extern "C" void* __libc_stack_end;
+ #endif
+@@ -54,7 +58,15 @@ void* GetStackTop() {
+ 
+ void* GetStackTop() {
+   pthread_attr_t attr;
++#if defined(OS_FREEBSD)
++  int error = pthread_attr_init(&attr);
++  if (error) {
++    return nullptr;
++  }
++  error = pthread_attr_get_np(pthread_self(), &attr);
++#else
+   int error = pthread_getattr_np(pthread_self(), &attr);
++#endif
+   if (!error) {
+     void* base;
+     size_t size;
+@@ -71,6 +83,9 @@ void* GetStackTop() {
+   // See https://code.google.com/p/nativeclient/issues/detail?id=3431.
+   return __libc_stack_end;
+ #endif  // defined(LIBC_GLIBC)
++#if defined(OS_FREEBSD)
++  pthread_attr_destroy(&attr);
++#endif
+   return nullptr;
+ }
+ 
diff --git a/www/chromium/files/patch-base_cpu.cc b/www/chromium/files/patch-base_cpu.cc
index c9a46b5903d3..7f8adecb5ac5 100644
*** 11318 LINES SKIPPED ***



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108220843.17M8hJa9099490>