From d35a37ca62483f1e6ab205fc154b63fd7b57694b Mon Sep 17 00:00:00 2001 From: cpm Date: Fri, 23 Jun 2017 12:52:40 +0000 Subject: MFH: r443998 www/chromium: update to 59.0.3071.104 - Use https in WWW and MASTER_SITES - Sort ONLY_FOR_ARCHS, USES, USE_GNOME and GN_ARGS - Put in correct place MAKE_ENV+= V=1 variable - Use LLD linker by default for supported archs - Fix DEBUG option - Fix gpu_info_collector.cc warning: control may reach end of non-void function [-Wreturn-type] - Get rid of multiple definition errors Changelog: https://chromium.googlesource.com/chromium/src/+log/58.0.3029.110..59.0.3071.104?pretty=fuller&n=10000 Security: https://www.vuxml.org/freebsd/52f4b48b-4ac3-11e7-99aa-e8e0b747a45a.html Security: https://www.vuxml.org/freebsd/f53dd5cc-527f-11e7-a772-e8e0b747a45a.html Approved by: ports-secteam (feld) --- www/chromium/Makefile | 35 +-- www/chromium/Makefile.tests | 1 - www/chromium/distinfo | 10 +- www/chromium/files/patch-BUILD.gn | 34 +-- ...patch-apps_ui_views_app__window__frame__view.cc | 4 +- ...patch-ash_display_mirror__window__controller.cc | 4 +- www/chromium/files/patch-base_BUILD.gn | 48 ++-- .../files/patch-base_allocator_allocator__shim.cc | 4 +- ...llocator__shim__default__dispatch__to__glibc.cc | 6 +- ...tch-base_allocator_allocator__shim__unittest.cc | 8 +- .../files/patch-base_debug_debugger__posix.cc | 57 +++++ ...atch-base_debug_thread__heap__usage__tracker.cc | 7 +- .../files/patch-base_files_file__path__unittest.cc | 4 +- www/chromium/files/patch-base_files_file__util.h | 4 +- .../files/patch-base_native__library__posix.cc | 4 +- ...patch-base_posix_unix__domain__socket__linux.cc | 6 +- www/chromium/files/patch-base_process_launch.cc | 4 +- www/chromium/files/patch-base_process_memory.cc | 4 +- www/chromium/files/patch-base_process_memory.h | 4 +- .../files/patch-base_process_memory__stubs.cc | 18 -- .../files/patch-base_process_memory__unittest.cc | 8 +- .../patch-base_process_process__info__linux.cc | 10 +- ...atch-base_process_process__iterator__freebsd.cc | 4 +- .../files/patch-base_process_process__metrics.h | 31 ++- ...patch-base_process_process__metrics__freebsd.cc | 14 +- .../files/patch-base_process_process__posix.cc | 11 +- .../files/patch-base_sys__info__freebsd.cc | 4 +- www/chromium/files/patch-base_sys__info__posix.cc | 4 +- www/chromium/files/patch-base_test_BUILD.gn | 4 +- .../patch-base_test_launcher_test__launcher.cc | 4 +- .../patch-base_test_test__file__util__posix.cc | 4 +- ...patch-base_threading_platform__thread__linux.cc | 6 +- ...-base_threading_thread__task__runner__handle.cc | 4 +- ...tch-base_trace__event_malloc__dump__provider.cc | 11 - ...atch-base_trace__event_process__memory__dump.cc | 4 +- .../files/patch-base_trace__event_trace__log.cc | 20 ++ www/chromium/files/patch-breakpad_BUILD.gn | 4 +- .../files/patch-build__overrides_pdfium.gni | 11 + www/chromium/files/patch-build_config_BUILD.gn | 8 +- .../files/patch-build_config_BUILDCONFIG.gn | 4 +- .../files/patch-build_config_allocator.gni | 25 +- .../files/patch-build_config_clang_BUILD.gn | 10 +- .../files/patch-build_config_compiler_BUILD.gn | 80 +++++-- www/chromium/files/patch-build_config_crypto.gni | 4 +- www/chromium/files/patch-build_config_features.gni | 15 +- .../files/patch-build_config_freetype_BUILD.gn | 11 + .../files/patch-build_config_sanitizers_BUILD.gn | 6 +- www/chromium/files/patch-build_config_ui.gni | 14 +- .../files/patch-build_toolchain_gcc__toolchain.gni | 30 +-- ...patch-cc_layers_scrollbar__layer__impl__base.cc | 4 +- .../files/patch-cc_trees_property__tree.cc | 4 +- www/chromium/files/patch-chrome_BUILD.gn | 8 +- .../files/patch-chrome_app_chrome__command__ids.h | 4 +- .../files/patch-chrome_app_chrome__main.cc | 6 +- .../patch-chrome_app_chrome__main__delegate.cc | 24 +- .../patch-chrome_app_chrome__main__delegate.h | 4 +- .../files/patch-chrome_app_chromium__strings.grd | 4 +- .../patch-chrome_app_generated__resources.grd | 17 +- .../patch-chrome_app_google__chrome__strings.grd | 4 +- .../files/patch-chrome_app_mash_mash__runner.cc | 4 +- ...patch-chrome_app_resources_locale__settings.grd | 11 - .../files/patch-chrome_app_settings__strings.grdp | 6 +- ...chrome_app_shutdown__signal__handlers__posix.cc | 8 +- www/chromium/files/patch-chrome_browser_BUILD.gn | 26 ++- .../files/patch-chrome_browser_about__flags.cc | 36 ++- ...h-chrome_browser_after__startup__task__utils.cc | 4 +- .../patch-chrome_browser_browser__process__impl.cc | 4 +- .../patch-chrome_browser_browser__process__impl.h | 4 +- .../patch-chrome_browser_browser__resources.grd | 4 +- .../patch-chrome_browser_chrome__browser__main.cc | 19 +- ...-chrome_browser_chrome__browser__main__linux.cc | 6 +- ...-chrome_browser_chrome__browser__main__posix.cc | 4 +- ...ome_browser_chrome__content__browser__client.cc | 57 +++-- ...rome_browser_chrome__content__browser__client.h | 4 +- ...rome_browser_diagnostics_diagnostics__writer.cc | 4 +- ...hrome_browser_diagnostics_diagnostics__writer.h | 4 +- ...download_chrome__download__manager__delegate.cc | 6 +- ...h-chrome_browser_download_download__commands.cc | 10 +- ...atch-chrome_browser_download_download__prefs.cc | 14 +- ...wser_download_download__shelf__context__menu.cc | 4 +- ...e_browser_download_download__status__updater.cc | 4 +- .../files/patch-chrome_browser_extensions_BUILD.gn | 20 +- ...owser_extensions_activity__log_activity__log.cc | 4 +- ..._writer__private_image__writer__private__api.cc | 4 +- ...er_extensions_api_messaging_message__service.cc | 8 +- ...extensions_api_settings__private_prefs__util.cc | 6 +- ...__audio__private_webrtc__audio__private__api.cc | 13 ++ ...ome_browser_extensions_bookmark__app__helper.cc | 4 +- ..._browser__context__keyed__service__factories.cc | 4 +- ..._browser_extensions_external__provider__impl.cc | 6 +- .../patch-chrome_browser_flag__descriptions.cc | 19 ++ .../patch-chrome_browser_flag__descriptions.h | 20 ++ ...ser_interstitials_chrome__controller__client.cc | 6 +- ..._galleries_fileapi_mtp__device__map__service.cc | 4 +- ...dia__galleries_media__file__system__registry.cc | 4 +- .../files/patch-chrome_browser_memory__details.cc | 4 +- .../patch-chrome_browser_memory__details__linux.cc | 14 ++ ...chrome__browser__main__extra__parts__metrics.cc | 4 +- ...-chrome_browser_net_async__dns__field__trial.cc | 4 +- ...tions_message__center__notification__manager.cc | 4 +- ...d__manager_chrome__password__manager__client.cc | 12 +- ...e_browser_plugins_plugins__resource__service.cc | 8 +- ...me_browser_policy_policy__prefs__browsertest.cc | 4 +- ...tch-chrome_browser_process__singleton__posix.cc | 6 +- ...ome_browser_profiles_profile__impl__io__data.cc | 4 +- ...r__context__menu_render__view__context__menu.cc | 8 +- ...h-chrome_browser_renderer__preferences__util.cc | 6 +- ...ources_safe__browsing_gen__file__type__proto.py | 4 +- ...settings_appearance__page_appearance__page.html | 29 +++ ...dent__reporting_incident__reporting__service.cc | 4 +- ..._browser_safe__browsing_permission__reporter.cc | 4 +- ...tch-chrome_browser_sync_chrome__sync__client.cc | 6 +- ...e_browser_task__manager_sampling_task__group.cc | 4 +- ..._task__manager_sampling_task__group__sampler.cc | 6 +- ...r_task__manager_sampling_task__group__sampler.h | 10 +- ...r_task__manager_sampling_task__manager__impl.cc | 4 +- ...ome_browser_tracing_crash__service__uploader.cc | 4 +- .../files/patch-chrome_browser_ui_BUILD.gn | 4 +- ...rome_browser_ui_browser__command__controller.cc | 12 +- ...rowser_ui_input__method_input__method__engine.h | 4 +- ...chrome_browser_ui_startup_bad__flags__prompt.cc | 4 +- ...browser_ui_startup_startup__browser__creator.cc | 9 +- .../files/patch-chrome_browser_ui_tab__helpers.cc | 6 +- ...ui_task__manager_task__manager__table__model.cc | 10 +- ...h-chrome_browser_ui_toolbar_app__menu__model.cc | 4 +- ...h-chrome_browser_ui_views_accelerator__table.cc | 8 +- ...pps_chrome__native__app__window__views__aura.cc | 4 +- ...s_chrome__browser__main__extra__parts__views.cc | 19 +- ...rome_browser_ui_views_chrome__views__delegate.h | 4 +- ...h-chrome_browser_ui_views_first__run__dialog.cc | 6 +- ..._ui_views_frame_opaque__browser__frame__view.cc | 4 +- ...ue__browser__frame__view__platform__specific.cc | 4 +- ..._ui_views_frame_system__menu__model__builder.cc | 6 +- ...ui_views_frame_system__menu__model__delegate.cc | 4 +- ..._browser_ui_views_tabs_tab__drag__controller.cc | 8 +- ...atch-chrome_browser_ui_views_tabs_tab__strip.cc | 4 +- .../patch-chrome_browser_ui_webui_about__ui.cc | 97 ++++---- ...i_webui_chrome__web__ui__controller__factory.cc | 17 +- ...r_ui_webui_options_browser__options__handler.cc | 26 +-- ...er_ui_webui_options_browser__options__handler.h | 4 +- ...rowser_ui_webui_settings_appearance__handler.cc | 6 +- ...browser_ui_webui_settings_appearance__handler.h | 4 +- ...s_md__settings__localized__strings__provider.cc | 12 +- ...ch-chrome_browser_web__applications_web__app.cc | 4 +- ...tch-chrome_browser_web__applications_web__app.h | 4 +- www/chromium/files/patch-chrome_chrome__paks.gni | 6 +- .../files/patch-chrome_common_chrome__paths.cc | 58 ++++- .../patch-chrome_common_chrome__paths__internal.h | 4 +- .../files/patch-chrome_common_chrome__switches.cc | 4 +- .../files/patch-chrome_common_chrome__switches.h | 4 +- .../patch-chrome_common_extensions_api_BUILD.gn | 4 +- ...common_extensions_chrome__extensions__client.cc | 6 +- .../patch-chrome_common_extensions_command.cc | 4 +- .../files/patch-chrome_common_features.gni | 6 +- .../files/patch-chrome_common_pref__names.cc | 8 +- .../files/patch-chrome_common_pref__names.h | 8 +- .../files/patch-chrome_common_url__constants.cc | 15 +- .../files/patch-chrome_common_url__constants.h | 15 +- ...derer_pepper_pepper__flash__font__file__host.cc | 8 +- ...nderer_pepper_pepper__flash__font__file__host.h | 4 +- www/chromium/files/patch-chrome_test_BUILD.gn | 36 +-- ...-chrome_test_base_in__process__browser__test.cc | 4 +- ...ch-chrome_test_base_testing__browser__process.h | 4 +- ...rome_test_chromedriver_chrome_chrome__finder.cc | 6 +- ...hromecast_browser_cast__browser__main__parts.cc | 19 +- ...ecast_browser_cast__content__browser__client.cc | 4 +- www/chromium/files/patch-chromecast_crash_BUILD.gn | 4 +- www/chromium/files/patch-components_BUILD.gn | 4 +- ...t_renderer_password__form__conversion__utils.cc | 4 +- ..._autofill_core_browser_autofill__experiments.cc | 4 +- ...ngs_core_browser_website__settings__registry.cc | 4 +- ...omponents_cookie__config_cookie__store__util.cc | 4 +- ...atch-components_filesystem_file__system__app.cc | 6 +- .../patch-components_flags__ui_flags__state.cc | 4 +- .../files/patch-components_metrics_BUILD.gn | 8 +- ...trics_system__memory__stats__recorder__linux.cc | 4 +- ...patch-components_neterror_resources_neterror.js | 4 +- .../files/patch-components_policy_BUILD.gn | 6 +- ...ponents_policy_resources_policy__templates.json | 8 +- ...components_storage__monitor_storage__monitor.cc | 6 +- ...s_storage__monitor_storage__monitor__freebsd.cc | 51 +---- ...atch-components_sync_base_get__session__name.cc | 4 +- ...child__memory__dump__manager__delegate__impl.cc | 11 - ..._tracing_child_child__trace__message__filter.cc | 11 + ...mon_process__metrics__memory__dump__provider.cc | 18 +- ...mmon_process__metrics__memory__dump__provider.h | 6 +- ...ponents_update__client_update__query__params.cc | 4 +- www/chromium/files/patch-content_app_BUILD.gn | 4 +- .../patch-content_app_content__main__runner.cc | 10 +- www/chromium/files/patch-content_browser_BUILD.gn | 14 +- ..._browser_accessibility_browser__accessibility.h | 4 +- ...accessibility_browser__accessibility__manager.h | 4 +- .../patch-content_browser_browser__main__loop.cc | 4 +- ...wser_child__process__launcher__helper__linux.cc | 12 +- ...tent_browser_devtools_protocol_color__picker.cc | 4 +- .../patch-content_browser_download_base__file.cc | 6 +- ...rowser_gpu_gpu__data__manager__impl__private.cc | 10 +- ...browser_gpu_gpu__data__manager__impl__private.h | 4 +- ...patch-content_browser_gpu_gpu__internals__ui.cc | 4 +- ...patch-content_browser_gpu_gpu__process__host.cc | 4 +- ...patch-content_browser_media_media__internals.cc | 4 +- ...ent_browser_memory_memory__coordinator__impl.cc | 4 +- ...patch-content_browser_memory_memory__monitor.cc | 4 +- ...content_browser_ppapi__plugin__process__host.cc | 10 +- ...renderer__host_media_video__capture__manager.cc | 20 -- ...owser_renderer__host_render__message__filter.cc | 4 +- ...rowser_renderer__host_render__message__filter.h | 6 +- ...r_renderer__host_render__process__host__impl.cc | 22 +- ...wser_renderer__host_render__view__host__impl.cc | 4 +- ...derer__host_render__widget__host__view__aura.cc | 8 +- ...t_render__widget__host__view__event__handler.cc | 4 +- ...nt_browser_tracing_tracing__controller__impl.cc | 6 +- ...content_browser_utility__process__host__impl.cc | 16 +- .../files/patch-content_child_child__process.cc | 4 +- .../files/patch-content_child_child__process.h | 4 +- .../patch-content_child_child__thread__impl.cc | 4 +- .../patch-content_child_child__thread__impl.h | 4 +- www/chromium/files/patch-content_common_BUILD.gn | 6 +- ...patch-content_common_child__process__messages.h | 6 +- ...h-content_common_content__switches__internal.cc | 4 +- ...ndbox__linux_sandbox__debug__handling__linux.cc | 4 +- ...ch-content_common_set__process__title__linux.cc | 19 -- ...tch-content_common_set__process__title__linux.h | 20 -- .../files/patch-content_common_view__messages.h | 4 +- www/chromium/files/patch-content_gpu_BUILD.gn | 4 +- .../files/patch-content_gpu_gpu__child__thread.cc | 18 -- www/chromium/files/patch-content_gpu_gpu__main.cc | 8 +- .../patch-content_gpu_in__process__gpu__thread.cc | 4 +- ...ch-content_public_common_child__process__host.h | 6 +- ...atch-content_public_common_content__switches.cc | 4 +- ...patch-content_public_common_content__switches.h | 4 +- ...h-content_public_common_renderer__preferences.h | 4 +- ...media_webrtc_processed__local__audio__source.cc | 4 +- .../patch-content_renderer_render__thread__impl.cc | 8 +- ...ent_renderer_renderer__blink__platform__impl.cc | 20 +- ...tent_renderer_renderer__blink__platform__impl.h | 4 +- ...er_renderer__main__platform__delegate__linux.cc | 6 +- ...nt_renderer_webscrollbarbehavior__impl__aura.cc | 14 +- www/chromium/files/patch-content_shell_BUILD.gn | 12 +- ...ontent_shell_browser_shell__browser__context.cc | 4 +- ...nt_shell_browser_shell__browser__main__parts.cc | 4 +- www/chromium/files/patch-content_test_BUILD.gn | 10 +- www/chromium/files/patch-crypto_nss__util.cc | 4 +- www/chromium/files/patch-device_BUILD.gn | 6 +- www/chromium/files/patch-device_battery_BUILD.gn | 4 +- www/chromium/files/patch-device_bluetooth_BUILD.gn | 4 +- .../patch-device_gamepad_gamepad__provider.cc | 4 +- ...atch-device_geolocation_location__arbitrator.cc | 4 +- ...-device_sensors_data__fetcher__shared__memory.h | 4 +- www/chromium/files/patch-device_serial_BUILD.gn | 10 +- ...tch-device_serial_serial__io__handler__posix.cc | 4 +- www/chromium/files/patch-device_usb_BUILD.gn | 21 ++ .../files/patch-device_usb_usb__context.cc | 4 +- .../files/patch-device_usb_usb__service__impl.cc | 10 +- .../files/patch-device_usb_usb__service__impl.h | 7 +- ..._networking__private__event__router__factory.cc | 4 +- ...ch-extensions_browser_api_serial_serial__api.cc | 4 +- www/chromium/files/patch-gpu_config_BUILD.gn | 30 +-- .../files/patch-gpu_config_gpu__control__list.cc | 12 +- ...atch-gpu_config_gpu__control__list__unittest.cc | 12 - .../files/patch-gpu_config_gpu__info__collector.cc | 6 +- .../files/patch-gpu_config_gpu__test__config.cc | 10 +- www/chromium/files/patch-gpu_ipc_service_BUILD.gn | 19 +- .../files/patch-gpu_ipc_service_gpu__init.cc | 12 +- www/chromium/files/patch-gpu_vulkan_BUILD.gn | 4 +- ...b_browser_headless__content__browser__client.cc | 6 +- ...ib_browser_headless__content__browser__client.h | 4 +- ...adless_lib_headless__content__main__delegate.cc | 10 +- ...eadless_lib_headless__content__main__delegate.h | 4 +- www/chromium/files/patch-ipc_ipc__channel.h | 4 +- .../files/patch-ipc_ipc__message__utils.cc | 4 +- www/chromium/files/patch-ipc_ipc__message__utils.h | 4 +- .../patch-mash_package_mash__packaged__service.cc | 6 +- ...patch-media__audio__alsa__audio_manager_alsa.cc | 12 +- www/chromium/files/patch-media_audio_BUILD.gn | 11 +- .../files/patch-media_audio_audio__manager.cc | 8 +- www/chromium/files/patch-media_base_BUILD.gn | 6 +- .../files/patch-media_base_audio__latency.cc | 4 +- .../files/patch-media_base_video__frame.cc | 10 +- www/chromium/files/patch-media_base_video__frame.h | 18 +- www/chromium/files/patch-media_capture_BUILD.gn | 4 +- ..._video_fake__video__capture__device__factory.cc | 4 +- ..._video_file__video__capture__device__factory.cc | 4 +- ..._capture_video_linux_v4l2__capture__delegate.cc | 8 +- ...re_video_linux_video__capture__device__linux.cc | 12 +- ...capture_video_video__capture__device__client.cc | 4 +- ...apture_video_video__capture__device__factory.cc | 10 +- www/chromium/files/patch-media_cast_BUILD.gn | 8 +- .../files/patch-media_ffmpeg_ffmpeg__common.h | 18 +- .../files/patch-media_filters_ffmpeg__demuxer.cc | 31 +-- ...tch-media_formats_common_offset__byte__queue.cc | 4 +- .../patch-media_formats_mp2t_es__parser__adts.cc | 6 +- ...ch-media_formats_mp2t_es__parser__mpeg1audio.cc | 6 +- www/chromium/files/patch-net_BUILD.gn | 30 +-- .../files/patch-net_base_mime__util__unittest.cc | 4 +- .../patch-net_base_network__change__notifier.cc | 4 +- www/chromium/files/patch-net_dns_dns__util.cc | 8 +- .../files/patch-net_dns_host__resolver__proc.cc | 4 +- .../patch-net_http_http__auth__gssapi__posix.cc | 4 +- ...atch-net_proxy_proxy__config__service__linux.cc | 18 +- .../files/patch-net_proxy_proxy__service.cc | 4 +- .../files/patch-net_socket_udp__socket__posix.cc | 8 +- ...t__verify__tool_verify__using__path__builder.cc | 4 +- ...et_tools_get__server__time_get__server__time.cc | 4 +- ..._url__request_url__request__context__builder.cc | 4 +- .../files/patch-pdf_pdfium_pdfium__engine.cc | 12 +- .../files/patch-ppapi_proxy_file__io__resource.cc | 8 +- ...ed__impl_private_net__address__private__impl.cc | 4 +- www/chromium/files/patch-printing_BUILD.gn | 6 +- www/chromium/files/patch-remoting_host_BUILD.gn | 8 +- .../files/patch-remoting_host_host__details.cc | 4 +- ...s_catalog_public_cpp_manifest__parsing__util.cc | 6 +- www/chromium/files/patch-services_catalog_store.cc | 4 +- ...me__zone__monitor_time__zone__monitor__linux.cc | 4 +- ..._manager_embedder_set__process__title__linux.cc | 19 ++ ...__manager_embedder_set__process__title__linux.h | 20 ++ ..._cpp_standalone__service_standalone__service.cc | 4 +- .../files/patch-services_ui_gpu_gpu__main.cc | 4 +- .../files/patch-services_ui_gpu_gpu__service.cc | 29 +++ www/chromium/files/patch-skia_BUILD.gn | 19 +- .../patch-skia_ext_SkMemory__new__handler.cpp | 4 +- .../patch-storage_browser_quota_quota__settings.cc | 4 +- .../files/patch-testing_gtest_src_gtest.cc | 4 +- ...third__party_WebKit_Source_core_layout_BUILD.gn | 4 +- ...arty_WebKit_Source_platform_fonts_FontCache.cpp | 8 +- ..._party_WebKit_Source_platform_fonts_FontCache.h | 12 +- ...bKit_Source_platform_fonts_FontPlatformData.cpp | 68 +++--- ...WebKit_Source_platform_fonts_FontPlatformData.h | 20 +- ...WebKit_Source_platform_fonts_SimpleFontData.cpp | 16 +- ...it_Source_platform_fonts_skia_FontCacheSkia.cpp | 8 +- ...WebKit_Source_platform_heap_StackFrameDepth.cpp | 4 +- ...party_WebKit_Source_platform_wtf_Assertions.cpp | 20 ++ ...ird__party_WebKit_Source_platform_wtf_Atomics.h | 11 + ...hird__party_WebKit_Source_platform_wtf_BUILD.gn | 13 ++ ...rd__party_WebKit_Source_platform_wtf_ByteSwap.h | 24 ++ ...bKit_Source_platform_wtf_ContainerAnnotations.h | 11 + ..._party_WebKit_Source_platform_wtf_StackUtil.cpp | 13 ++ ...ebKit_Source_platform_wtf_ThreadingPthreads.cpp | 29 +++ ...hird__party_WebKit_Source_web_PopupMenuImpl.cpp | 10 +- ...h-third__party_WebKit_Source_wtf_Assertions.cpp | 20 -- .../patch-third__party_WebKit_Source_wtf_Atomics.h | 11 - .../patch-third__party_WebKit_Source_wtf_BUILD.gn | 13 -- ...patch-third__party_WebKit_Source_wtf_ByteSwap.h | 24 -- ..._party_WebKit_Source_wtf_ContainerAnnotations.h | 11 - ...ch-third__party_WebKit_Source_wtf_StackUtil.cpp | 13 -- ...__party_WebKit_Source_wtf_ThreadingPthreads.cpp | 29 --- .../files/patch-third__party_angle_BUILD.gn | 10 +- .../patch-third__party_angle_src_tests_BUILD.gn | 4 +- ...ch-third__party_boringssl_src_crypto_ex__data.c | 4 +- .../files/patch-third__party_expat_BUILD.gn | 4 +- ...patch-third__party_ffmpeg_ffmpeg__generated.gni | 58 ++--- .../files/patch-third__party_harfbuzz-ng_BUILD.gn | 6 +- ...st_cpp_src_phonenumbers_base_memory_singleton.h | 4 +- ...pp_src_phonenumbers_base_synchronization_lock.h | 4 +- .../files/patch-third__party_libusb_BUILD.gn | 251 ++------------------- ...h-third__party_libxml_chromium_libxml__utils.cc | 22 ++ .../files/patch-third__party_mesa_BUILD.gn | 12 +- .../files/patch-third__party_opus_BUILD.gn | 4 +- .../files/patch-third__party_pdfium_BUILD.gn | 4 +- ...__party_pdfium_fpdfsdk_javascript_JS__Value.cpp | 4 +- ...rty_pdfium_fpdfsdk_javascript_PublicMethods.cpp | 8 +- .../files/patch-third__party_pdfium_skia_BUILD.gn | 10 +- .../files/patch-third__party_webrtc_BUILD.gn | 4 +- .../files/patch-third__party_webrtc_base_BUILD.gn | 6 +- .../patch-third__party_webrtc_base_byteorder.h | 11 + .../patch-third__party_webrtc_base_httpcommon.cc | 4 +- .../patch-third__party_webrtc_base_network.cc | 6 +- ...hird__party_webrtc_base_physicalsocketserver.cc | 8 +- ...ch-third__party_webrtc_base_platform__thread.cc | 12 +- ...rd__party_webrtc_modules_audio__device_BUILD.gn | 6 +- ...rd__party_webrtc_modules_video__coding_BUILD.gn | 6 +- ...h-third__party_webrtc_system__wrappers_BUILD.gn | 6 +- .../files/patch-third__party_widevine_cdm_BUILD.gn | 12 +- .../files/patch-third__party_yasm_BUILD.gn | 4 +- .../files/patch-third__party_zlib_BUILD.gn | 8 +- www/chromium/files/patch-tools_gn_args.cc | 4 +- .../files/patch-tools_gn_bootstrap_bootstrap.py | 21 +- www/chromium/files/patch-tools_grit_grit__rule.gni | 11 + ...ch-tools_perf_chrome__telemetry__build_BUILD.gn | 4 +- ...-ui_accessibility_platform_ax__platform__node.h | 11 - .../patch-ui_app__list_app__list__constants.cc | 11 - .../patch-ui_app__list_app__list__constants.h | 13 -- ...tch-ui_app__list_views_app__list__item__view.cc | 11 - www/chromium/files/patch-ui_aura_BUILD.gn | 4 +- www/chromium/files/patch-ui_base_BUILD.gn | 16 +- ...agdrop_os__exchange__data__provider__factory.cc | 4 +- ...h-ui_base_ime_ime__engine__handler__interface.h | 4 +- .../patch-ui_base_ime_input__method__factory.cc | 4 +- .../patch-ui_base_resource_resource__bundle.cc | 6 +- www/chromium/files/patch-ui_base_ui__features.gni | 6 +- www/chromium/files/patch-ui_compositor_BUILD.gn | 4 +- ...vents_devices_x11_device__data__manager__x11.cc | 6 +- .../files/patch-ui_events_event__switches.cc | 4 +- www/chromium/files/patch-ui_gfx_BUILD.gn | 6 +- www/chromium/files/patch-ui_gfx_canvas__skia.cc | 4 +- www/chromium/files/patch-ui_gfx_font__list.cc | 4 +- .../files/patch-ui_gfx_font__render__params.h | 4 +- www/chromium/files/patch-ui_gfx_render__text.cc | 4 +- www/chromium/files/patch-ui_gl_BUILD.gn | 12 +- .../patch-ui_gl_sync__control__vsync__provider.cc | 8 +- .../patch-ui_gl_sync__control__vsync__provider.h | 6 +- ...tch-ui_message__center_message__center__style.h | 4 +- ...e__center_views_message__center__button__bar.cc | 12 +- ...ge__center_views_message__center__button__bar.h | 4 +- ...message__center_views_message__view__factory.cc | 4 +- www/chromium/files/patch-ui_views_BUILD.gn | 6 +- ...ews_accessibility_native__view__accessibility.h | 11 - ...tch-ui_views_bubble_bubble__dialog__delegate.cc | 4 +- .../files/patch-ui_views_controls_label.cc | 6 +- .../patch-ui_views_controls_textfield_textfield.cc | 14 +- .../patch-ui_views_examples_widget__example.cc | 4 +- www/chromium/files/patch-ui_views_mus_BUILD.gn | 4 +- .../files/patch-ui_views_mus_aura__init.cc | 10 +- .../files/patch-ui_views_selection__controller.cc | 4 +- .../files/patch-ui_views_views__delegate.cc | 4 +- .../files/patch-ui_views_views__delegate.h | 4 +- .../files/patch-ui_views_views__switches.cc | 6 +- .../patch-ui_views_window_custom__frame__view.cc | 4 +- .../patch-ui_views_window_dialog__delegate.cc | 4 +- www/chromium/files/patch-v8_BUILD.gn | 10 +- .../patch-v8_src_base_platform_platform-posix.cc | 4 +- www/chromium/files/patch-v8_src_globals.h | 4 +- www/chromium/files/patch-v8_src_wasm_wasm-result.h | 10 - www/chromium/pkg-descr | 2 +- www/chromium/pkg-plist | 168 +++++++++++++- 425 files changed, 2287 insertions(+), 2135 deletions(-) create mode 100644 www/chromium/files/patch-base_debug_debugger__posix.cc delete mode 100644 www/chromium/files/patch-base_process_memory__stubs.cc delete mode 100644 www/chromium/files/patch-base_trace__event_malloc__dump__provider.cc create mode 100644 www/chromium/files/patch-base_trace__event_trace__log.cc create mode 100644 www/chromium/files/patch-build__overrides_pdfium.gni create mode 100644 www/chromium/files/patch-build_config_freetype_BUILD.gn delete mode 100644 www/chromium/files/patch-chrome_app_resources_locale__settings.grd create mode 100644 www/chromium/files/patch-chrome_browser_extensions_api_webrtc__audio__private_webrtc__audio__private__api.cc create mode 100644 www/chromium/files/patch-chrome_browser_flag__descriptions.cc create mode 100644 www/chromium/files/patch-chrome_browser_flag__descriptions.h create mode 100644 www/chromium/files/patch-chrome_browser_memory__details__linux.cc create mode 100644 www/chromium/files/patch-chrome_browser_resources_settings_appearance__page_appearance__page.html delete mode 100644 www/chromium/files/patch-components_tracing_child_child__memory__dump__manager__delegate__impl.cc create mode 100644 www/chromium/files/patch-components_tracing_child_child__trace__message__filter.cc delete mode 100644 www/chromium/files/patch-content_browser_renderer__host_media_video__capture__manager.cc delete mode 100644 www/chromium/files/patch-content_common_set__process__title__linux.cc delete mode 100644 www/chromium/files/patch-content_common_set__process__title__linux.h delete mode 100644 www/chromium/files/patch-content_gpu_gpu__child__thread.cc create mode 100644 www/chromium/files/patch-device_usb_BUILD.gn delete mode 100644 www/chromium/files/patch-gpu_config_gpu__control__list__unittest.cc create mode 100644 www/chromium/files/patch-services_service__manager_embedder_set__process__title__linux.cc create mode 100644 www/chromium/files/patch-services_service__manager_embedder_set__process__title__linux.h create mode 100644 www/chromium/files/patch-services_ui_gpu_gpu__service.cc create mode 100644 www/chromium/files/patch-third__party_WebKit_Source_platform_wtf_Assertions.cpp create mode 100644 www/chromium/files/patch-third__party_WebKit_Source_platform_wtf_Atomics.h create mode 100644 www/chromium/files/patch-third__party_WebKit_Source_platform_wtf_BUILD.gn create mode 100644 www/chromium/files/patch-third__party_WebKit_Source_platform_wtf_ByteSwap.h create mode 100644 www/chromium/files/patch-third__party_WebKit_Source_platform_wtf_ContainerAnnotations.h create mode 100644 www/chromium/files/patch-third__party_WebKit_Source_platform_wtf_StackUtil.cpp create mode 100644 www/chromium/files/patch-third__party_WebKit_Source_platform_wtf_ThreadingPthreads.cpp delete mode 100644 www/chromium/files/patch-third__party_WebKit_Source_wtf_Assertions.cpp delete mode 100644 www/chromium/files/patch-third__party_WebKit_Source_wtf_Atomics.h delete mode 100644 www/chromium/files/patch-third__party_WebKit_Source_wtf_BUILD.gn delete mode 100644 www/chromium/files/patch-third__party_WebKit_Source_wtf_ByteSwap.h delete mode 100644 www/chromium/files/patch-third__party_WebKit_Source_wtf_ContainerAnnotations.h delete mode 100644 www/chromium/files/patch-third__party_WebKit_Source_wtf_StackUtil.cpp delete mode 100644 www/chromium/files/patch-third__party_WebKit_Source_wtf_ThreadingPthreads.cpp create mode 100644 www/chromium/files/patch-third__party_libxml_chromium_libxml__utils.cc create mode 100644 www/chromium/files/patch-third__party_webrtc_base_byteorder.h create mode 100644 www/chromium/files/patch-tools_grit_grit__rule.gni delete mode 100644 www/chromium/files/patch-ui_accessibility_platform_ax__platform__node.h delete mode 100644 www/chromium/files/patch-ui_app__list_app__list__constants.cc delete mode 100644 www/chromium/files/patch-ui_app__list_app__list__constants.h delete mode 100644 www/chromium/files/patch-ui_app__list_views_app__list__item__view.cc delete mode 100644 www/chromium/files/patch-ui_views_accessibility_native__view__accessibility.h delete mode 100644 www/chromium/files/patch-v8_src_wasm_wasm-result.h diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 6a5d253..c6eb773 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -2,9 +2,9 @@ # $FreeBSD$ PORTNAME= chromium -PORTVERSION= 58.0.3029.110 +PORTVERSION= 59.0.3071.104 CATEGORIES= www -MASTER_SITES= http://commondatastorage.googleapis.com/chromium-browser-official/ +MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} # default, but needed to get distinfo correct if TEST is on MAINTAINER= chromium@FreeBSD.org @@ -57,16 +57,17 @@ LIB_DEPENDS= libspeechd.so:accessibility/speech-dispatcher \ RUN_DEPENDS= xdg-open:devel/xdg-utils \ droid-fonts-ttf>0:x11-fonts/droid-fonts-ttf -ONLY_FOR_ARCHS= i386 amd64 -USES= compiler bison cpe desktop-file-utils execinfo jpeg \ +ONLY_FOR_ARCHS= amd64 i386 +USES= bison compiler cpe desktop-file-utils execinfo jpeg \ ninja perl5 pkgconfig python:2,build shebangfix tar:xz CPE_VENDOR= google CPE_PRODUCT= chrome +USE_LDCONFIG= ${DATADIR} USE_PERL5= build USE_XORG= scrnsaverproto x11 xcb xcomposite xcursor xext xdamage xfixes xi \ xproto xrandr xrender xscrnsaver xtst -USE_GNOME= atk glib20 gtk20 gtk30 dconf libxslt libxml2 +USE_GNOME= atk dconf glib20 gtk20 gtk30 libxml2 libxslt MAKE_ARGS= -C out/${BUILDTYPE} SHEBANG_FILES= chrome/tools/build/linux/chrome-wrapper ALL_TARGET= chrome @@ -78,20 +79,22 @@ INSTALLS_ICONS= yes # Some parts don't have use_system_* flag, and can be turned on/off by using # replace_gn_files.py script, some parts just turned on/off for target host # OS "target_os == is_bsd", like libusb, libpci. -GN_ARGS+= is_clang=true \ - clang_use_chrome_plugins=false \ +GN_ARGS+= clang_use_chrome_plugins=false \ enable_media_router=true \ enable_nacl=false \ enable_one_click_signin=true \ enable_remoting=false \ enable_webrtc=false \ fieldtrial_testing_like_official_build=true \ + is_clang=true \ toolkit_views=true \ + treat_warnings_as_errors=false \ use_allocator="none" \ use_aura=true \ use_cups=true \ use_experimental_allocator_shim=false \ - treat_warnings_as_errors=false \ + use_gtk3=true \ + use_lld=true \ use_sysroot=false \ use_system_libjpeg=true \ use_system_sqlite=false # chrome has additional patches @@ -146,17 +149,13 @@ GN_ARGS+= proprietary_codecs=false GN_ARGS+= enable_hevc_demuxing=false .endif -DEBUG_MAKE_ENV= V=1 .if ${PORT_OPTIONS:MDEBUG} BUILDTYPE= Debug GN_ARGS+= is_debug=true GN_BOOTSTRAP_FLAGS+= --debug -#GN_ARGS+= is_component_build=true +MAKE_ENV+= V=1 .else BUILDTYPE= Release -.if ${ARCH} == amd64 -GN_ARGS+= use_lld=true # harder, better, faster, stronger -.endif GN_ARGS+= is_debug=false GN_ARGS+= symbol_level=0 GN_ARGS+= remove_webcore_debug_symbols=true @@ -244,8 +243,8 @@ test regression-test: build do-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_MAN} ${WRKSRC}/out/${BUILDTYPE}/chrome.1 ${STAGEDIR}${MANPREFIX}/man/man1 -.for t in font_service test_ime_driver ui - ${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/${t}.service \ +.for m in font_service test_ime_driver ui + ${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/${m}.service \ ${STAGEDIR}${DATADIR} .endfor .for s in 22 24 48 64 128 256 @@ -274,6 +273,12 @@ do-install: ${INSTALL_SCRIPT} ${WRKDIR}/chrome ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/mksnapshot \ ${STAGEDIR}${DATADIR} +.if ${PORT_OPTIONS:MDEBUG} + ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/*.so \ + ${STAGEDIR}${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/character_data_generator \ + ${STAGEDIR}${DATADIR} +.endif .if ${PORT_OPTIONS:MDRIVER} ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/chromedriver \ ${STAGEDIR}${PREFIX}/bin diff --git a/www/chromium/Makefile.tests b/www/chromium/Makefile.tests index c21315d..6319f41 100644 --- a/www/chromium/Makefile.tests +++ b/www/chromium/Makefile.tests @@ -4,7 +4,6 @@ TEST_TARGETS= base_unittests \ crypto_unittests \ cacheinvalidation_unittests \ gpu_unittests \ - sync_unit_tests \ printing_unittests \ sql_unittests \ content_unittests \ diff --git a/www/chromium/distinfo b/www/chromium/distinfo index d0de517..f42c365 100644 --- a/www/chromium/distinfo +++ b/www/chromium/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1494416961 -SHA256 (chromium-58.0.3029.110.tar.xz) = f24cef3dd2acf9dd5ccdeeca47fea42d1c1ddff32b7375dc9e0cd35a4e8d78ff -SIZE (chromium-58.0.3029.110.tar.xz) = 518167664 -SHA256 (chromium-58.0.3029.110-testdata.tar.xz) = 53ace1eaee38bc3bb11aef932851131d563a2deefb2fd9c9f1fa524b7098e472 -SIZE (chromium-58.0.3029.110-testdata.tar.xz) = 124161428 +TIMESTAMP = 1497583686 +SHA256 (chromium-59.0.3071.104.tar.xz) = a949fa166cdcdbd8419fbdb4583804613d9845130f0c851e4c647d79a4c300d0 +SIZE (chromium-59.0.3071.104.tar.xz) = 531895868 +SHA256 (chromium-59.0.3071.104-testdata.tar.xz) = 4826be59b1f29dcf25c9868d0cac296fb2c98a8f1f944e6a3d7cea275705b771 +SIZE (chromium-59.0.3071.104-testdata.tar.xz) = 124231072 diff --git a/www/chromium/files/patch-BUILD.gn b/www/chromium/files/patch-BUILD.gn index 7ca8be9..131ea9d 100644 --- a/www/chromium/files/patch-BUILD.gn +++ b/www/chromium/files/patch-BUILD.gn @@ -1,6 +1,6 @@ ---- BUILD.gn.orig 2017-04-19 19:06:27 UTC +--- BUILD.gn.orig 2017-06-05 19:03:00 UTC +++ BUILD.gn -@@ -220,7 +220,7 @@ group("both_gn_and_gyp") { +@@ -95,7 +95,7 @@ group("gn_all") { ] } @@ -9,7 +9,7 @@ deps += [ "//chrome", "//chrome/test:browser_tests", -@@ -277,7 +277,7 @@ group("both_gn_and_gyp") { +@@ -153,7 +153,7 @@ group("gn_all") { ] } @@ -18,7 +18,7 @@ # TODO(GYP): Figure out which of these should actually build on iOS, # and whether there should be other targets that are iOS-only and missing. deps += [ -@@ -322,7 +322,7 @@ group("both_gn_and_gyp") { +@@ -199,7 +199,7 @@ group("gn_all") { "//ui/touch_selection:ui_touch_selection_unittests", "//url/ipc:url_ipc_unittests", ] @@ -27,7 +27,7 @@ deps += [ "//ios:all" ] } -@@ -482,7 +482,7 @@ group("both_gn_and_gyp") { +@@ -359,7 +359,7 @@ group("gn_all") { ] } @@ -36,7 +36,7 @@ # The following are definitely linux-only. deps += [ "//chrome:manpage", -@@ -505,9 +505,16 @@ group("both_gn_and_gyp") { +@@ -382,9 +382,16 @@ group("gn_all") { # TODO(dpranke): add the linux_dump_symbols flag? deps += [ "//chrome:linux_symbols" ] } @@ -54,7 +54,7 @@ deps += [ "//base:base_i18n_perftests", "//base:base_perftests", -@@ -578,7 +585,7 @@ group("both_gn_and_gyp") { +@@ -455,7 +462,7 @@ group("gn_all") { if (enable_nacl) { deps += [ "//components/nacl/loader:nacl_loader_unittests" ] @@ -63,7 +63,7 @@ # TODO(dpranke): Figure out what platforms should actually have this. deps += [ "//components/nacl/loader:nacl_helper" ] -@@ -684,7 +691,7 @@ group("both_gn_and_gyp") { +@@ -557,7 +564,7 @@ group("gn_all") { deps += [ "//chrome/installer/mini_installer:next_version_mini_installer" ] } @@ -72,7 +72,7 @@ deps += [ "//breakpad:symupload($host_toolchain)" ] } -@@ -728,7 +735,7 @@ group("gn_only") { +@@ -595,7 +602,7 @@ group("gn_all") { deps += [ "//components/proximity_auth:proximity_auth_unittests" ] } @@ -81,7 +81,7 @@ deps += [ "//mash:all", "//media/mojo/services:media_service_unittests", -@@ -754,7 +761,7 @@ group("gn_only") { +@@ -620,7 +627,7 @@ group("gn_all") { } } @@ -90,7 +90,7 @@ # TODO(GYP): Figure out if any of these should be in gn_all # and figure out how cross-platform they are deps += [ -@@ -794,7 +801,7 @@ group("gn_only") { +@@ -659,7 +666,7 @@ group("gn_all") { } if (target_cpu == "x86" || target_cpu == "x64") { @@ -99,7 +99,7 @@ deps += [ "//chrome/test:load_library_perf_tests" ] } deps += [ -@@ -802,7 +809,7 @@ group("gn_only") { +@@ -667,7 +674,7 @@ group("gn_all") { "//third_party/libjpeg_turbo:simd_asm", ] } @@ -108,7 +108,7 @@ deps += [ "//v8:v8_shell" ] } } -@@ -812,7 +819,7 @@ group("gn_only") { +@@ -677,7 +684,7 @@ group("gn_all") { } if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) || @@ -117,7 +117,7 @@ deps += [ "//testing/libfuzzer/fuzzers", "//testing/libfuzzer/tests:libfuzzer_tests", -@@ -844,7 +851,7 @@ group("gn_only") { +@@ -828,7 +835,7 @@ if (is_chromeos) { group("gn_mojo_targets") { testonly = true @@ -126,7 +126,7 @@ # TODO(GYP): Figure out if any of these should be in gn_all # and figure out how cross-platform they are deps = [ -@@ -870,7 +877,7 @@ group("gn_visibility") { +@@ -854,7 +861,7 @@ group("gn_visibility") { } } @@ -135,7 +135,7 @@ # This group includes all of the targets needed to build and test Blink, # including running the layout tests (see below). group("blink_tests") { -@@ -935,7 +942,7 @@ if (!is_ios) { +@@ -921,7 +928,7 @@ if (!is_ios) { data_deps += [ "//content/shell:content_shell_crash_service" ] } @@ -144,7 +144,7 @@ data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] } -@@ -943,7 +950,7 @@ if (!is_ios) { +@@ -929,7 +936,7 @@ if (!is_ios) { data_deps += [ "//breakpad:dump_syms($host_toolchain)" ] } diff --git a/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc b/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc index debd179..fc573f1 100644 --- a/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc +++ b/www/chromium/files/patch-apps_ui_views_app__window__frame__view.cc @@ -1,6 +1,6 @@ ---- apps/ui/views/app_window_frame_view.cc.orig 2017-04-19 19:06:27 UTC +--- apps/ui/views/app_window_frame_view.cc.orig 2017-06-05 19:03:00 UTC +++ apps/ui/views/app_window_frame_view.cc -@@ -132,7 +132,7 @@ gfx::Rect AppWindowFrameView::GetBoundsF +@@ -132,7 +132,7 @@ gfx::Rect AppWindowFrameView::GetBoundsForClientView() gfx::Rect AppWindowFrameView::GetWindowBoundsForClientBounds( const gfx::Rect& client_bounds) const { gfx::Rect window_bounds = client_bounds; 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 b70a8c5..03fc836 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 2017-04-19 19:06:27 UTC +--- ash/display/mirror_window_controller.cc.orig 2017-06-05 19:03:00 UTC +++ ash/display/mirror_window_controller.cc -@@ -251,7 +251,11 @@ void MirrorWindowController::UpdateWindo +@@ -249,7 +249,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 58fb5db..fe7b884 100644 --- a/www/chromium/files/patch-base_BUILD.gn +++ b/www/chromium/files/patch-base_BUILD.gn @@ -1,6 +1,15 @@ ---- base/BUILD.gn.orig 2017-04-19 19:06:28 UTC -+++ base/BUILD.gn -@@ -1156,6 +1156,9 @@ component("base") { +--- base/BUILD.gn.orig 2017-06-05 21:03:00.000000000 +0200 ++++ base/BUILD.gn 2017-06-13 19:23:34.211227000 +0200 +@@ -1098,7 +1098,7 @@ + "base_paths_win.h", + ] + +- if (is_linux) { ++ if (is_linux || is_bsd) { + sources += [ "base_paths_posix.cc" ] + } + } +@@ -1157,6 +1157,9 @@ deps += [ "//base/allocator:tcmalloc" ] } else if (is_linux && use_allocator == "none") { sources += [ "allocator/allocator_shim_default_dispatch_to_glibc.cc" ] @@ -10,7 +19,7 @@ } else if (is_android && use_allocator == "none") { sources += [ "allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc", -@@ -1171,6 +1174,34 @@ component("base") { +@@ -1172,6 +1175,33 @@ } } @@ -28,7 +37,6 @@ + ] + sources += [ + "files/file_path_watcher_stub.cc", -+ "process/memory_stubs.cc", + "process/process_handle_freebsd.cc", + "process/process_iterator_freebsd.cc", + "process/process_metrics_freebsd.cc", @@ -45,7 +53,7 @@ # Allow more direct string conversions on platforms with native utf8 # strings if (is_mac || is_ios || is_chromeos || is_chromecast) { -@@ -1467,7 +1498,7 @@ component("base") { +@@ -1469,7 +1499,7 @@ } # Linux. @@ -54,7 +62,7 @@ if (is_asan || is_lsan || is_msan || is_tsan) { # For llvm-sanitizer. data += [ "//third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6" ] -@@ -1492,7 +1523,7 @@ component("base") { +@@ -1494,7 +1524,7 @@ "//base/third_party/xdg_user_dirs", ] } else { @@ -63,30 +71,16 @@ sources -= [ "nix/mime_util_xdg.cc", "nix/mime_util_xdg.h", -@@ -1508,6 +1539,13 @@ component("base") { - } - } - -+ if (is_bsd) { -+ sources -= [ -+ "threading/platform_thread_linux.cc", -+ ] -+ sources += [ "threading/platform_thread_freebsd.cc" ] +@@ -2325,6 +2355,12 @@ + "trace_event/trace_event_android_unittest.cc", + ] + set_sources_assignment_filter(sources_assignment_filter) + } + - # iOS - if (is_ios) { - set_sources_assignment_filter([]) -@@ -2309,6 +2347,12 @@ test("base_unittests") { - set_sources_assignment_filter(sources_assignment_filter) - } - + if (is_bsd) { + sources -= [ + "debug/proc_maps_linux_unittest.cc", + ] -+ } -+ + } + if (is_win) { - deps += [ "//base:scoped_handle_test_dll" ] - if (current_cpu == "x64") { diff --git a/www/chromium/files/patch-base_allocator_allocator__shim.cc b/www/chromium/files/patch-base_allocator_allocator__shim.cc index 511d90c..ec8cc26 100644 --- a/www/chromium/files/patch-base_allocator_allocator__shim.cc +++ b/www/chromium/files/patch-base_allocator_allocator__shim.cc @@ -1,6 +1,6 @@ ---- base/allocator/allocator_shim.cc.orig 2017-04-19 19:06:28 UTC +--- base/allocator/allocator_shim.cc.orig 2017-06-05 19:03:00 UTC +++ base/allocator/allocator_shim.cc -@@ -81,7 +81,7 @@ inline const allocator::AllocatorDispatc +@@ -83,7 +83,7 @@ inline const allocator::AllocatorDispatch* GetChainHea // Unfortunately due to that bug NoBarrier_Load() is mistakenly fully // barriered on Linux+Clang, and that causes visible perf regressons. return reinterpret_cast( diff --git a/www/chromium/files/patch-base_allocator_allocator__shim__default__dispatch__to__glibc.cc b/www/chromium/files/patch-base_allocator_allocator__shim__default__dispatch__to__glibc.cc index 3c57e65..7b1ac77 100644 --- a/www/chromium/files/patch-base_allocator_allocator__shim__default__dispatch__to__glibc.cc +++ b/www/chromium/files/patch-base_allocator_allocator__shim__default__dispatch__to__glibc.cc @@ -1,15 +1,15 @@ ---- base/allocator/allocator_shim_default_dispatch_to_glibc.cc.orig 2017-04-19 19:06:28 UTC +--- base/allocator/allocator_shim_default_dispatch_to_glibc.cc.orig 2017-06-05 19:03:00 UTC +++ base/allocator/allocator_shim_default_dispatch_to_glibc.cc @@ -3,19 +3,28 @@ // found in the LICENSE file. #include "base/allocator/allocator_shim.h" -- --#include +#include +#include +#include +-#include +- // This translation unit defines a default dispatch for the allocator shim which // routes allocations to libc functions. -// The code here is strongly inspired from tcmalloc's libc_override_glibc.h. diff --git a/www/chromium/files/patch-base_allocator_allocator__shim__unittest.cc b/www/chromium/files/patch-base_allocator_allocator__shim__unittest.cc index a27e4d2..f51926b 100644 --- a/www/chromium/files/patch-base_allocator_allocator__shim__unittest.cc +++ b/www/chromium/files/patch-base_allocator_allocator__shim__unittest.cc @@ -1,6 +1,6 @@ ---- base/allocator/allocator_shim_unittest.cc.orig 2017-04-19 19:06:28 UTC +--- base/allocator/allocator_shim_unittest.cc.orig 2017-06-05 19:03:00 UTC +++ base/allocator/allocator_shim_unittest.cc -@@ -289,7 +289,7 @@ TEST_F(AllocatorShimTest, InterceptLibcS +@@ -293,7 +293,7 @@ TEST_F(AllocatorShimTest, InterceptLibcSymbols) { ASSERT_GE(aligned_allocs_intercepted_by_size[61], 1u); #endif // !OS_WIN @@ -9,7 +9,7 @@ void* memalign_ptr = memalign(128, 53); ASSERT_NE(nullptr, memalign_ptr); ASSERT_EQ(0u, reinterpret_cast(memalign_ptr) % 128); -@@ -302,7 +302,7 @@ TEST_F(AllocatorShimTest, InterceptLibcS +@@ -306,7 +306,7 @@ TEST_F(AllocatorShimTest, InterceptLibcSymbols) { ASSERT_GE(aligned_allocs_intercepted_by_alignment[kPageSize], 1u); // pvalloc rounds the size up to the next page. ASSERT_GE(aligned_allocs_intercepted_by_size[kPageSize], 1u); @@ -18,7 +18,7 @@ char* realloc_ptr = static_cast(malloc(10)); strcpy(realloc_ptr, "foobar"); -@@ -318,13 +318,13 @@ TEST_F(AllocatorShimTest, InterceptLibcS +@@ -322,13 +322,13 @@ TEST_F(AllocatorShimTest, InterceptLibcSymbols) { free(zero_alloc_ptr); ASSERT_GE(frees_intercepted_by_addr[Hash(zero_alloc_ptr)], 1u); diff --git a/www/chromium/files/patch-base_debug_debugger__posix.cc b/www/chromium/files/patch-base_debug_debugger__posix.cc new file mode 100644 index 0000000..4eb799c --- /dev/null +++ b/www/chromium/files/patch-base_debug_debugger__posix.cc @@ -0,0 +1,57 @@ +--- base/debug/debugger_posix.cc.orig 2017-06-18 01:23:49.065175000 +0200 ++++ base/debug/debugger_posix.cc 2017-06-18 01:58:29.603481000 +0200 +@@ -84,7 +84,7 @@ + KERN_PROC, + KERN_PROC_PID, + getpid() +-#if defined(OS_OPENBSD) ++#if defined(OS_BSD) + , sizeof(struct kinfo_proc), + 0 + #endif +@@ -92,33 +92,36 @@ + + // Caution: struct kinfo_proc is marked __APPLE_API_UNSTABLE. The source and + // binary interfaces may change. +- struct kinfo_proc info; +- size_t info_size = sizeof(info); ++ struct kinfo_proc *info; ++ size_t info_size; + +-#if defined(OS_OPENBSD) + if (sysctl(mib, arraysize(mib), NULL, &info_size, NULL, 0) < 0) + return -1; + ++ info = (struct kinfo_proc *)malloc(info_size); ++ + mib[5] = (info_size / sizeof(struct kinfo_proc)); +-#endif + +- int sysctl_result = sysctl(mib, arraysize(mib), &info, &info_size, NULL, 0); ++ int sysctl_result = sysctl(mib, arraysize(mib), info, &info_size, NULL, 0); + DCHECK_EQ(sysctl_result, 0); + if (sysctl_result != 0) { + is_set = true; + being_debugged = false; +- return being_debugged; ++ goto out; + } + + // This process is being debugged if the P_TRACED flag is set. + is_set = true; + #if defined(OS_FREEBSD) +- being_debugged = (info.ki_flag & P_TRACED) != 0; ++ being_debugged = (info->ki_flag & P_TRACED) != 0; + #elif defined(OS_BSD) +- being_debugged = (info.p_flag & P_TRACED) != 0; ++ being_debugged = (info->p_flag & P_TRACED) != 0; + #else +- being_debugged = (info.kp_proc.p_flag & P_TRACED) != 0; ++ being_debugged = (info->kp_proc.p_flag & P_TRACED) != 0; + #endif ++ ++out: ++ free(info); + return being_debugged; + } + diff --git a/www/chromium/files/patch-base_debug_thread__heap__usage__tracker.cc b/www/chromium/files/patch-base_debug_thread__heap__usage__tracker.cc index 3c59be9..3e3a6ea 100644 --- a/www/chromium/files/patch-base_debug_thread__heap__usage__tracker.cc +++ b/www/chromium/files/patch-base_debug_thread__heap__usage__tracker.cc @@ -1,6 +1,6 @@ ---- base/debug/thread_heap_usage_tracker.cc.orig 2017-04-19 19:06:28 UTC +--- base/debug/thread_heap_usage_tracker.cc.orig 2017-06-05 19:03:00 UTC +++ base/debug/thread_heap_usage_tracker.cc -@@ -16,11 +16,13 @@ +@@ -16,10 +16,12 @@ #include "base/threading/thread_local_storage.h" #include "build/build_config.h" @@ -9,8 +9,7 @@ #include #else #include - #endif +#endif + #endif namespace base { - namespace debug { diff --git a/www/chromium/files/patch-base_files_file__path__unittest.cc b/www/chromium/files/patch-base_files_file__path__unittest.cc index 167644a..a0c6dcd 100644 --- a/www/chromium/files/patch-base_files_file__path__unittest.cc +++ b/www/chromium/files/patch-base_files_file__path__unittest.cc @@ -1,6 +1,6 @@ ---- base/files/file_path_unittest.cc.orig 2017-04-19 19:06:28 UTC +--- base/files/file_path_unittest.cc.orig 2017-06-05 19:03:00 UTC +++ base/files/file_path_unittest.cc -@@ -1133,7 +1133,7 @@ TEST_F(FilePathTest, FromUTF8Unsafe_And_ +@@ -1133,7 +1133,7 @@ TEST_F(FilePathTest, FromUTF8Unsafe_And_AsUTF8Unsafe) "\xEF\xBC\xA1\xEF\xBC\xA2\xEF\xBC\xA3.txt" }, }; diff --git a/www/chromium/files/patch-base_files_file__util.h b/www/chromium/files/patch-base_files_file__util.h index 9600826..4c643cc 100644 --- a/www/chromium/files/patch-base_files_file__util.h +++ b/www/chromium/files/patch-base_files_file__util.h @@ -1,6 +1,6 @@ ---- base/files/file_util.h.orig 2017-04-19 19:06:28 UTC +--- base/files/file_util.h.orig 2017-06-05 19:03:00 UTC +++ base/files/file_util.h -@@ -406,7 +406,7 @@ BASE_EXPORT bool VerifyPathControlledByA +@@ -406,7 +406,7 @@ BASE_EXPORT bool VerifyPathControlledByAdmin(const bas // the directory |path|, in the number of FilePath::CharType, or -1 on failure. BASE_EXPORT int GetMaximumPathComponentLength(const base::FilePath& path); diff --git a/www/chromium/files/patch-base_native__library__posix.cc b/www/chromium/files/patch-base_native__library__posix.cc index b1db681..1a6aca9 100644 --- a/www/chromium/files/patch-base_native__library__posix.cc +++ b/www/chromium/files/patch-base_native__library__posix.cc @@ -1,6 +1,6 @@ ---- base/native_library_posix.cc.orig 2017-04-19 19:06:28 UTC +--- base/native_library_posix.cc.orig 2017-06-05 19:03:00 UTC +++ base/native_library_posix.cc -@@ -35,7 +35,7 @@ NativeLibrary LoadNativeLibraryWithOptio +@@ -35,7 +35,7 @@ NativeLibrary LoadNativeLibraryWithOptions(const FileP // further investigation, as it might vary across versions. Crash here to // warn developers that they're trying to rely on uncertain behavior. CHECK(!options.prefer_own_symbols); diff --git a/www/chromium/files/patch-base_posix_unix__domain__socket__linux.cc b/www/chromium/files/patch-base_posix_unix__domain__socket__linux.cc index 997b59b..cd56938 100644 --- a/www/chromium/files/patch-base_posix_unix__domain__socket__linux.cc +++ b/www/chromium/files/patch-base_posix_unix__domain__socket__linux.cc @@ -1,4 +1,4 @@ ---- base/posix/unix_domain_socket_linux.cc.orig 2017-04-19 19:06:28 UTC +--- base/posix/unix_domain_socket_linux.cc.orig 2017-06-05 19:03:00 UTC +++ base/posix/unix_domain_socket_linux.cc @@ -23,6 +23,15 @@ @@ -16,7 +16,7 @@ const size_t UnixDomainSocket::kMaxFileDescriptors = 16; #if !defined(OS_NACL_NONSFI) -@@ -40,8 +49,14 @@ static bool CreateSocketPair(ScopedFD* o +@@ -37,8 +46,14 @@ bool CreateSocketPair(ScopedFD* one, ScopedFD* two) { // static bool UnixDomainSocket::EnableReceiveProcessId(int fd) { @@ -31,7 +31,7 @@ } #endif // !defined(OS_NACL_NONSFI) -@@ -147,7 +162,11 @@ ssize_t UnixDomainSocket::RecvMsgWithFla +@@ -144,7 +159,11 @@ ssize_t UnixDomainSocket::RecvMsgWithFlags(int fd, // The PNaCl toolchain for Non-SFI binary build does not support // SCM_CREDENTIALS. if (cmsg->cmsg_level == SOL_SOCKET && diff --git a/www/chromium/files/patch-base_process_launch.cc b/www/chromium/files/patch-base_process_launch.cc index 2dca0a6..35a223e 100644 --- a/www/chromium/files/patch-base_process_launch.cc +++ b/www/chromium/files/patch-base_process_launch.cc @@ -1,6 +1,6 @@ ---- base/process/launch.cc.orig 2017-04-19 19:06:28 UTC +--- base/process/launch.cc.orig 2017-06-05 19:03:00 UTC +++ base/process/launch.cc -@@ -15,7 +15,7 @@ LaunchOptions::~LaunchOptions() = defaul +@@ -15,7 +15,7 @@ LaunchOptions::~LaunchOptions() = default; LaunchOptions LaunchOptionsForTest() { LaunchOptions options; diff --git a/www/chromium/files/patch-base_process_memory.cc b/www/chromium/files/patch-base_process_memory.cc index bb441fd..566b355 100644 --- a/www/chromium/files/patch-base_process_memory.cc +++ b/www/chromium/files/patch-base_process_memory.cc @@ -1,6 +1,6 @@ ---- base/process/memory.cc.orig 2017-04-19 19:06:28 UTC +--- base/process/memory.cc.orig 2017-06-05 19:03:00 UTC +++ base/process/memory.cc -@@ -31,7 +31,7 @@ void TerminateBecauseOutOfMemory(size_t +@@ -31,7 +31,7 @@ void TerminateBecauseOutOfMemory(size_t size) { #endif // Defined in memory_mac.mm for Mac. diff --git a/www/chromium/files/patch-base_process_memory.h b/www/chromium/files/patch-base_process_memory.h index f2b7f52..555b834 100644 --- a/www/chromium/files/patch-base_process_memory.h +++ b/www/chromium/files/patch-base_process_memory.h @@ -1,6 +1,6 @@ ---- base/process/memory.h.orig 2017-04-19 19:06:28 UTC +--- base/process/memory.h.orig 2017-06-05 19:03:00 UTC +++ base/process/memory.h -@@ -32,7 +32,7 @@ BASE_EXPORT void EnableTerminationOnOutO +@@ -32,7 +32,7 @@ BASE_EXPORT void EnableTerminationOnOutOfMemory(); // Crash reporting classifies such crashes as OOM. BASE_EXPORT void TerminateBecauseOutOfMemory(size_t size); diff --git a/www/chromium/files/patch-base_process_memory__stubs.cc b/www/chromium/files/patch-base_process_memory__stubs.cc deleted file mode 100644 index 80d7a0c..0000000 --- a/www/chromium/files/patch-base_process_memory__stubs.cc +++ /dev/null @@ -1,18 +0,0 @@ ---- base/process/memory_stubs.cc.orig 2017-04-19 19:06:28 UTC -+++ base/process/memory_stubs.cc -@@ -31,6 +31,8 @@ void TerminateBecauseOutOfMemory(size_t - // their respective stdlib function since those functions will return null on a - // failure to allocate. - -+#if !defined(OS_FREEBSD) -+// FreeBSD brings it's own implementation in memory.cc -- cmt - bool UncheckedMalloc(size_t size, void** result) { - *result = malloc(size); - return *result != nullptr; -@@ -40,5 +42,6 @@ bool UncheckedCalloc(size_t num_items, s - *result = calloc(num_items, size); - return *result != nullptr; - } -+#endif - - } // namespace base diff --git a/www/chromium/files/patch-base_process_memory__unittest.cc b/www/chromium/files/patch-base_process_memory__unittest.cc index 41f8b29..c401f82 100644 --- a/www/chromium/files/patch-base_process_memory__unittest.cc +++ b/www/chromium/files/patch-base_process_memory__unittest.cc @@ -1,7 +1,7 @@ ---- base/process/memory_unittest.cc.orig 2017-04-19 19:06:28 UTC +--- base/process/memory_unittest.cc.orig 2017-06-05 19:03:00 UTC +++ base/process/memory_unittest.cc -@@ -93,10 +93,10 @@ TEST(MemoryTest, AllocatorShimWorking) { - ASSERT_TRUE(base::allocator::IsAllocatorInitialized()); +@@ -101,10 +101,10 @@ TEST(MemoryTest, AllocatorShimWorking) { + #endif } -// OpenBSD does not support these tests. Don't test these on ASan/TSan/MSan @@ -13,7 +13,7 @@ BUILDFLAG(ENABLE_WIN_ALLOCATOR_SHIM_TESTS) && \ !defined(MEMORY_TOOL_REPLACES_ALLOCATOR) -@@ -488,5 +488,5 @@ TEST_F(OutOfMemoryHandledTest, Unchecked +@@ -508,5 +508,5 @@ TEST_F(OutOfMemoryHandledTest, UncheckedCalloc) { EXPECT_FALSE(base::UncheckedCalloc(1, test_size_, &value_)); EXPECT_TRUE(value_ == NULL); } diff --git a/www/chromium/files/patch-base_process_process__info__linux.cc b/www/chromium/files/patch-base_process_process__info__linux.cc index ce71cfc..1391a12 100644 --- a/www/chromium/files/patch-base_process_process__info__linux.cc +++ b/www/chromium/files/patch-base_process_process__info__linux.cc @@ -1,4 +1,4 @@ ---- base/process/process_info_linux.cc.orig 2017-04-19 19:06:28 UTC +--- base/process/process_info_linux.cc.orig 2017-06-05 19:03:00 UTC +++ base/process/process_info_linux.cc @@ -11,10 +11,28 @@ #include "base/process/process_handle.h" @@ -28,10 +28,10 @@ +#else int64_t start_ticks = internal::ReadProcSelfStatsAndGetFieldAsInt64(internal::VM_STARTTIME); - DCHECK(start_ticks); -@@ -22,6 +40,7 @@ const Time CurrentProcessInfo::CreationT - Time boot_time = internal::GetBootTime(); - DCHECK(!boot_time.is_null()); + if (!start_ticks) +@@ -24,6 +42,7 @@ const Time CurrentProcessInfo::CreationTime() { + if (boot_time.is_null()) + return Time(); return Time(boot_time + start_offset); +#endif } diff --git a/www/chromium/files/patch-base_process_process__iterator__freebsd.cc b/www/chromium/files/patch-base_process_process__iterator__freebsd.cc index 2ac07ce..e9b72d6 100644 --- a/www/chromium/files/patch-base_process_process__iterator__freebsd.cc +++ b/www/chromium/files/patch-base_process_process__iterator__freebsd.cc @@ -1,4 +1,4 @@ ---- base/process/process_iterator_freebsd.cc.orig 2017-04-19 19:06:28 UTC +--- base/process/process_iterator_freebsd.cc.orig 2017-06-05 19:03:00 UTC +++ base/process/process_iterator_freebsd.cc @@ -10,6 +10,10 @@ #include @@ -11,7 +11,7 @@ #include "base/logging.h" #include "base/macros.h" #include "base/strings/string_split.h" -@@ -72,19 +76,13 @@ bool ProcessIterator::CheckForNextProces +@@ -72,19 +76,13 @@ bool ProcessIterator::CheckForNextProcess() { for (; index_of_kinfo_proc_ < kinfo_procs_.size(); ++index_of_kinfo_proc_) { size_t length; struct kinfo_proc kinfo = kinfo_procs_[index_of_kinfo_proc_]; diff --git a/www/chromium/files/patch-base_process_process__metrics.h b/www/chromium/files/patch-base_process_process__metrics.h index b40a0e8..1503c97 100644 --- a/www/chromium/files/patch-base_process_process__metrics.h +++ b/www/chromium/files/patch-base_process_process__metrics.h @@ -1,4 +1,4 @@ ---- base/process/process_metrics.h.orig 2017-04-19 19:06:28 UTC +--- base/process/process_metrics.h.orig 2017-06-05 19:03:00 UTC +++ base/process/process_metrics.h @@ -22,6 +22,12 @@ #include "base/values.h" @@ -13,7 +13,34 @@ #if defined(OS_MACOSX) #include #include "base/process/port_provider_mac.h" -@@ -329,13 +335,17 @@ BASE_EXPORT bool GetSystemMemoryInfo(Sys +@@ -205,7 +211,7 @@ class BASE_EXPORT ProcessMetrics { + // otherwise. + bool GetIOCounters(IoCounters* io_counters) const; + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // Returns the number of file descriptors currently open by the process, or + // -1 on error. + int GetOpenFdCount() const; +@@ -213,7 +219,7 @@ class BASE_EXPORT ProcessMetrics { + // Returns the soft limit of file descriptors that can be opened by the + // process, or -1 on error. + int GetOpenFdSoftLimit() const; +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + private: + #if !defined(OS_MACOSX) || defined(OS_IOS) +@@ -289,7 +295,7 @@ BASE_EXPORT void SetFdLimit(unsigned int max_descripto + #endif // defined(OS_POSIX) + + #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +- defined(OS_ANDROID) ++ defined(OS_ANDROID) || defined(OS_BSD) + // Data about system-wide memory consumption. Values are in KB. Available on + // Windows, Mac, Linux, Android and Chrome OS. + // +@@ -383,13 +389,17 @@ BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoK // CPU-related ticks. Returns -1 on parse error. // Exposed for testing. BASE_EXPORT int ParseProcStatCPU(const std::string& input); diff --git a/www/chromium/files/patch-base_process_process__metrics__freebsd.cc b/www/chromium/files/patch-base_process_process__metrics__freebsd.cc index 89aa3be..264992c 100644 --- a/www/chromium/files/patch-base_process_process__metrics__freebsd.cc +++ b/www/chromium/files/patch-base_process_process__metrics__freebsd.cc @@ -1,4 +1,4 @@ ---- base/process/process_metrics_freebsd.cc.orig 2017-04-19 19:06:28 UTC +--- base/process/process_metrics_freebsd.cc.orig 2017-06-05 19:03:00 UTC +++ base/process/process_metrics_freebsd.cc @@ -13,6 +13,9 @@ #include "base/memory/ptr_util.h" @@ -10,10 +10,12 @@ namespace base { ProcessMetrics::ProcessMetrics(ProcessHandle process) -@@ -122,4 +125,23 @@ size_t GetSystemCommitCharge() { - return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize); - } +@@ -120,6 +123,25 @@ size_t GetSystemCommitCharge() { + pagesize = getpagesize(); + return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize); ++} ++ +int GetNumberOfThreads(ProcessHandle process) { + // Taken from FreeBSD top (usr.bin/top/machine.c) + @@ -31,6 +33,6 @@ + return 0; + + return nproc; -+} -+ + } + } // namespace base diff --git a/www/chromium/files/patch-base_process_process__posix.cc b/www/chromium/files/patch-base_process_process__posix.cc index cfaca45..7ea5ddd 100644 --- a/www/chromium/files/patch-base_process_process__posix.cc +++ b/www/chromium/files/patch-base_process_process__posix.cc @@ -1,5 +1,5 @@ ---- base/process/process_posix.cc.orig 2017-04-19 19:06:28 UTC -+++ base/process/process_posix.cc +--- base/process/process_posix.cc.orig 2017-06-15 21:03:00.000000000 +0200 ++++ base/process/process_posix.cc 2017-06-19 15:25:27.760111000 +0200 @@ -21,8 +21,18 @@ #include #endif @@ -19,7 +19,7 @@ #if !defined(OS_NACL_NONSFI) bool WaitpidWithTimeout(base::ProcessHandle handle, -@@ -184,13 +194,13 @@ bool WaitForExitWithTimeoutImpl(base::Pr +@@ -184,13 +194,13 @@ base::ProcessHandle parent_pid = base::GetParentProcessId(handle); base::ProcessHandle our_pid = base::GetCurrentProcessHandle(); if (parent_pid != our_pid) { @@ -36,7 +36,7 @@ } int status; -@@ -257,12 +267,16 @@ Process Process::DeprecatedGetProcessFro +@@ -256,12 +266,16 @@ return Process(handle); } @@ -55,7 +55,7 @@ // static void Process::TerminateCurrentProcessImmediately(int exit_code) { -@@ -370,15 +384,32 @@ bool Process::WaitForExitWithTimeout(Tim +@@ -369,15 +383,31 @@ bool Process::IsProcessBackgrounded() const { // See SetProcessBackgrounded(). DCHECK(IsValid()); @@ -82,7 +82,6 @@ + int priority = value ? kBackgroundPriority : kForegroundPriority; + int result = setpriority(PRIO_PROCESS, process_, priority); + -+ DPCHECK(result == 0); + return result == 0; +#endif // !defined(OS_FREEBSD) } diff --git a/www/chromium/files/patch-base_sys__info__freebsd.cc b/www/chromium/files/patch-base_sys__info__freebsd.cc index 3010800..e4e7c84 100644 --- a/www/chromium/files/patch-base_sys__info__freebsd.cc +++ b/www/chromium/files/patch-base_sys__info__freebsd.cc @@ -1,4 +1,4 @@ ---- base/sys_info_freebsd.cc.orig 2017-04-19 19:06:28 UTC +--- base/sys_info_freebsd.cc.orig 2017-06-05 19:03:00 UTC +++ base/sys_info_freebsd.cc @@ -12,12 +12,34 @@ @@ -39,7 +39,7 @@ NOTREACHED(); return 0; } -@@ -25,14 +47,24 @@ int64_t SysInfo::AmountOfPhysicalMemory( +@@ -25,14 +47,24 @@ int64_t SysInfo::AmountOfPhysicalMemory() { } // static diff --git a/www/chromium/files/patch-base_sys__info__posix.cc b/www/chromium/files/patch-base_sys__info__posix.cc index 90ecf30..6e94c5b 100644 --- a/www/chromium/files/patch-base_sys__info__posix.cc +++ b/www/chromium/files/patch-base_sys__info__posix.cc @@ -1,4 +1,4 @@ ---- base/sys_info_posix.cc.orig 2017-04-19 19:06:28 UTC +--- base/sys_info_posix.cc.orig 2017-06-05 19:03:00 UTC +++ base/sys_info_posix.cc @@ -35,7 +35,7 @@ @@ -9,7 +9,7 @@ int NumberOfProcessors() { // sysconf returns the number of "logical" (not "physical") processors on both // Mac and Linux. So we get the number of max available "logical" processors. -@@ -128,7 +128,7 @@ bool GetDiskSpaceInfo(const base::FilePa +@@ -128,7 +128,7 @@ bool GetDiskSpaceInfo(const base::FilePath& path, namespace base { diff --git a/www/chromium/files/patch-base_test_BUILD.gn b/www/chromium/files/patch-base_test_BUILD.gn index 2bc772b..18d53d6 100644 --- a/www/chromium/files/patch-base_test_BUILD.gn +++ b/www/chromium/files/patch-base_test_BUILD.gn @@ -1,6 +1,6 @@ ---- base/test/BUILD.gn.orig 2017-04-19 19:06:28 UTC +--- base/test/BUILD.gn.orig 2017-06-05 19:03:00 UTC +++ base/test/BUILD.gn -@@ -312,7 +312,7 @@ static_library("run_all_base_unittests") +@@ -314,7 +314,7 @@ static_library("run_all_base_unittests") { ] } diff --git a/www/chromium/files/patch-base_test_launcher_test__launcher.cc b/www/chromium/files/patch-base_test_launcher_test__launcher.cc index 0d81c98..4900d32 100644 --- a/www/chromium/files/patch-base_test_launcher_test__launcher.cc +++ b/www/chromium/files/patch-base_test_launcher_test__launcher.cc @@ -1,6 +1,6 @@ ---- base/test/launcher/test_launcher.cc.orig 2017-04-19 19:06:28 UTC +--- base/test/launcher/test_launcher.cc.orig 2017-06-05 19:03:00 UTC +++ base/test/launcher/test_launcher.cc -@@ -60,6 +60,10 @@ +@@ -61,6 +61,10 @@ #include "base/win/windows_version.h" #endif diff --git a/www/chromium/files/patch-base_test_test__file__util__posix.cc b/www/chromium/files/patch-base_test_test__file__util__posix.cc index be8a681..7a8cfbf 100644 --- a/www/chromium/files/patch-base_test_test__file__util__posix.cc +++ b/www/chromium/files/patch-base_test_test__file__util__posix.cc @@ -1,6 +1,6 @@ ---- base/test/test_file_util_posix.cc.orig 2017-04-19 19:06:28 UTC +--- base/test/test_file_util_posix.cc.orig 2017-06-05 19:03:00 UTC +++ base/test/test_file_util_posix.cc -@@ -79,7 +79,7 @@ bool DieFileDie(const FilePath& file, bo +@@ -79,7 +79,7 @@ bool DieFileDie(const FilePath& file, bool recurse) { return DeleteFile(file, recurse); } diff --git a/www/chromium/files/patch-base_threading_platform__thread__linux.cc b/www/chromium/files/patch-base_threading_platform__thread__linux.cc index dc0070c..cd6f6ee 100644 --- a/www/chromium/files/patch-base_threading_platform__thread__linux.cc +++ b/www/chromium/files/patch-base_threading_platform__thread__linux.cc @@ -1,4 +1,4 @@ ---- base/threading/platform_thread_linux.cc.orig 2017-04-19 19:06:28 UTC +--- base/threading/platform_thread_linux.cc.orig 2017-06-05 19:03:01 UTC +++ base/threading/platform_thread_linux.cc @@ -19,7 +19,9 @@ @@ -10,7 +10,7 @@ #include #include #include -@@ -130,7 +132,7 @@ void PlatformThread::SetName(const std:: +@@ -130,7 +132,7 @@ void PlatformThread::SetName(const std::string& name) ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name); tracked_objects::ThreadData::InitializeThreadContext(name); @@ -19,7 +19,7 @@ // On linux we can get the thread names to show up in the debugger by setting // the process name for the LWP. We don't want to do this for the main // thread because that would rename the process, causing tools like killall -@@ -150,7 +152,7 @@ void PlatformThread::SetName(const std:: +@@ -150,7 +152,7 @@ void PlatformThread::SetName(const std::string& name) #endif // !defined(OS_NACL) } diff --git a/www/chromium/files/patch-base_threading_thread__task__runner__handle.cc b/www/chromium/files/patch-base_threading_thread__task__runner__handle.cc index 468a4f2..e6f1289 100644 --- a/www/chromium/files/patch-base_threading_thread__task__runner__handle.cc +++ b/www/chromium/files/patch-base_threading_thread__task__runner__handle.cc @@ -1,4 +1,4 @@ ---- base/threading/thread_task_runner_handle.cc.orig 2017-04-19 19:06:28 UTC +--- base/threading/thread_task_runner_handle.cc.orig 2017-06-05 19:03:01 UTC +++ base/threading/thread_task_runner_handle.cc @@ -7,6 +7,7 @@ #include @@ -16,7 +16,7 @@ // static ScopedClosureRunner ThreadTaskRunnerHandle::OverrideForTesting( scoped_refptr overriding_task_runner) { -@@ -77,6 +79,7 @@ ScopedClosureRunner ThreadTaskRunnerHand +@@ -77,6 +79,7 @@ ScopedClosureRunner ThreadTaskRunnerHandle::OverrideFo base::Passed(&overriding_task_runner), base::Unretained(ttrh->task_runner_.get()))); } diff --git a/www/chromium/files/patch-base_trace__event_malloc__dump__provider.cc b/www/chromium/files/patch-base_trace__event_malloc__dump__provider.cc deleted file mode 100644 index e8a0513..0000000 --- a/www/chromium/files/patch-base_trace__event_malloc__dump__provider.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- base/trace_event/malloc_dump_provider.cc.orig 2017-04-19 19:06:28 UTC -+++ base/trace_event/malloc_dump_provider.cc -@@ -21,7 +21,7 @@ - #if defined(OS_MACOSX) - #include - #else --#include -+#include - #endif - #if defined(OS_WIN) - #include diff --git a/www/chromium/files/patch-base_trace__event_process__memory__dump.cc b/www/chromium/files/patch-base_trace__event_process__memory__dump.cc index 446490d..0f20b8c 100644 --- a/www/chromium/files/patch-base_trace__event_process__memory__dump.cc +++ b/www/chromium/files/patch-base_trace__event_process__memory__dump.cc @@ -1,6 +1,6 @@ ---- base/trace_event/process_memory_dump.cc.orig 2017-04-19 19:06:28 UTC +--- base/trace_event/process_memory_dump.cc.orig 2017-06-05 19:03:01 UTC +++ base/trace_event/process_memory_dump.cc -@@ -83,7 +83,7 @@ size_t ProcessMemoryDump::CountResidentB +@@ -83,7 +83,7 @@ size_t ProcessMemoryDump::CountResidentBytes(void* sta const size_t kMaxChunkSize = 8 * 1024 * 1024; size_t max_vec_size = GetSystemPageCount(std::min(mapped_size, kMaxChunkSize), page_size); diff --git a/www/chromium/files/patch-base_trace__event_trace__log.cc b/www/chromium/files/patch-base_trace__event_trace__log.cc new file mode 100644 index 0000000..deaabaf --- /dev/null +++ b/www/chromium/files/patch-base_trace__event_trace__log.cc @@ -0,0 +1,20 @@ +--- base/trace_event/trace_log.cc.orig 2017-06-05 19:03:01 UTC ++++ base/trace_event/trace_log.cc +@@ -1504,7 +1504,7 @@ void TraceLog::AddMetadataEventsWhileLocked() { + process_name_); + } + +-#if !defined(OS_NACL) && !defined(OS_IOS) ++#if !defined(OS_NACL) && !defined(OS_IOS) && !defined(OS_BSD) + Time process_creation_time = CurrentProcessInfo::CreationTime(); + if (!process_creation_time.is_null()) { + TimeDelta process_uptime = Time::Now() - process_creation_time; +@@ -1512,7 +1512,7 @@ void TraceLog::AddMetadataEventsWhileLocked() { + current_thread_id, "process_uptime_seconds", + "uptime", process_uptime.InSeconds()); + } +-#endif // !defined(OS_NACL) && !defined(OS_IOS) ++#endif // !defined(OS_NACL) && !defined(OS_IOS) && !defined(OS_BSD) + + if (!process_labels_.empty()) { + std::vector labels; diff --git a/www/chromium/files/patch-breakpad_BUILD.gn b/www/chromium/files/patch-breakpad_BUILD.gn index 9bc9d65..a2b5f2b 100644 --- a/www/chromium/files/patch-breakpad_BUILD.gn +++ b/www/chromium/files/patch-breakpad_BUILD.gn @@ -1,6 +1,6 @@ ---- breakpad/BUILD.gn.orig 2017-04-19 19:06:28 UTC +--- breakpad/BUILD.gn.orig 2017-06-05 19:03:01 UTC +++ breakpad/BUILD.gn -@@ -468,7 +468,7 @@ if (is_mac) { +@@ -472,7 +472,7 @@ if (is_mac) { } } diff --git a/www/chromium/files/patch-build__overrides_pdfium.gni b/www/chromium/files/patch-build__overrides_pdfium.gni new file mode 100644 index 0000000..639d860 --- /dev/null +++ b/www/chromium/files/patch-build__overrides_pdfium.gni @@ -0,0 +1,11 @@ +--- build_overrides/pdfium.gni.orig 2017-06-05 19:03:01 UTC ++++ build_overrides/pdfium.gni +@@ -10,7 +10,7 @@ pdf_enable_xfa_override = false + + # Build PDFium either using the bundled FreeType, or using a third-party + # FreeType, configured by the embedder in //build/config/freetype. +-pdf_bundle_freetype_override = !is_linux && !is_win ++pdf_bundle_freetype_override = false + + # Disable use of Skia backend. + pdf_use_skia_override = false diff --git a/www/chromium/files/patch-build_config_BUILD.gn b/www/chromium/files/patch-build_config_BUILD.gn index 2f85025..2459ef3 100644 --- a/www/chromium/files/patch-build_config_BUILD.gn +++ b/www/chromium/files/patch-build_config_BUILD.gn @@ -1,6 +1,6 @@ ---- build/config/BUILD.gn.orig 2017-04-19 19:06:28 UTC +--- build/config/BUILD.gn.orig 2017-06-05 19:03:01 UTC +++ build/config/BUILD.gn -@@ -193,7 +193,7 @@ config("debug") { +@@ -169,7 +169,7 @@ config("debug") { # builds, and we have to tell it to turn it off. defines += [ "_HAS_ITERATOR_DEBUGGING=0" ] } @@ -9,7 +9,7 @@ # Enable libstdc++ debugging facilities to help catch problems early, see # http://crbug.com/65151 . # TODO(phajdan.jr): Should we enable this for all of POSIX? -@@ -276,7 +276,7 @@ config("default_libs") { +@@ -258,7 +258,7 @@ config("default_libs") { "CoreText.framework", "Foundation.framework", ] @@ -18,7 +18,7 @@ libs = [ "dl", "rt", -@@ -307,7 +307,7 @@ config("executable_config") { +@@ -292,7 +292,7 @@ config("executable_config") { ] } else if (is_ios) { configs += [ "//build/config/ios:ios_dynamic_flags" ] diff --git a/www/chromium/files/patch-build_config_BUILDCONFIG.gn b/www/chromium/files/patch-build_config_BUILDCONFIG.gn index 841b49d..098fd9c 100644 --- a/www/chromium/files/patch-build_config_BUILDCONFIG.gn +++ b/www/chromium/files/patch-build_config_BUILDCONFIG.gn @@ -1,4 +1,4 @@ ---- build/config/BUILDCONFIG.gn.orig 2017-04-19 19:06:28 UTC +--- build/config/BUILDCONFIG.gn.orig 2017-06-05 19:03:01 UTC +++ build/config/BUILDCONFIG.gn @@ -131,12 +131,13 @@ declare_args() { is_official_build = false @@ -36,7 +36,7 @@ # See comments in build/toolchain/cros/BUILD.gn about board compiles. if (is_clang) { _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" -@@ -342,8 +343,17 @@ if (current_os == "win" || current_os == +@@ -342,8 +343,17 @@ if (current_os == "win" || current_os == "winrt_81" || is_nacl = false is_posix = true is_win = false diff --git a/www/chromium/files/patch-build_config_allocator.gni b/www/chromium/files/patch-build_config_allocator.gni index ad40417..d85afb9 100644 --- a/www/chromium/files/patch-build_config_allocator.gni +++ b/www/chromium/files/patch-build_config_allocator.gni @@ -1,16 +1,11 @@ ---- build/config/allocator.gni.orig 2017-04-19 19:06:28 UTC +--- build/config/allocator.gni.orig 2017-06-05 19:03:01 UTC +++ build/config/allocator.gni -@@ -45,10 +45,10 @@ assert(use_allocator == "none" || use_al - assert(!is_win || use_allocator == "none", "Tcmalloc doesn't work on Windows.") - assert(!is_mac || use_allocator == "none", "Tcmalloc doesn't work on macOS.") - --assert(!use_experimental_allocator_shim || is_linux || is_android || is_win || -- is_mac, -+assert(!use_experimental_allocator_shim || is_linux || is_android || is_win || -+ is_mac || is_bsd, - "use_experimental_allocator_shim supported only on Linux, Android, " + -- "Windows and macOS targets") -+ "Windows, macOS and BSD targets") - - if (is_win && use_experimental_allocator_shim) { - assert(!is_component_build, +@@ -18,7 +18,7 @@ if (is_android || current_cpu == "mipsel" || is_mac || + # against the debug CRT with "is_nacl=false". + if ((is_linux || is_android || is_mac || + (is_win && !is_component_build && !is_debug)) && !is_asan && !is_lsan && +- !is_tsan && !is_msan) { ++ !is_tsan && !is_msan && !is_bsd) { + _default_use_experimental_allocator_shim = true + } else { + _default_use_experimental_allocator_shim = false diff --git a/www/chromium/files/patch-build_config_clang_BUILD.gn b/www/chromium/files/patch-build_config_clang_BUILD.gn index 9a30eeb..ce0ea6d 100644 --- a/www/chromium/files/patch-build_config_clang_BUILD.gn +++ b/www/chromium/files/patch-build_config_clang_BUILD.gn @@ -1,6 +1,6 @@ ---- build/config/clang/BUILD.gn.orig 2017-04-19 19:06:28 UTC +--- build/config/clang/BUILD.gn.orig 2017-06-05 19:03:01 UTC +++ build/config/clang/BUILD.gn -@@ -20,7 +20,7 @@ config("find_bad_constructs") { +@@ -19,7 +19,7 @@ config("find_bad_constructs") { rebase_path("${clang_base_path}/lib/libFindBadConstructs.dylib", root_build_dir), ] @@ -9,12 +9,12 @@ cflags += [ "-Xclang", "-load", -@@ -41,7 +41,7 @@ config("find_bad_constructs") { +@@ -40,7 +40,7 @@ config("find_bad_constructs") { "check-auto-raw-pointer", ] -- if ((is_linux || is_android) && !is_chromecast) { -+ if ((is_linux || is_bsd || is_android) && !is_chromecast) { +- if (is_linux || is_android) { ++ if (is_linux || is_bsd || is_android) { cflags += [ "-Xclang", "-plugin-arg-find-bad-constructs", diff --git a/www/chromium/files/patch-build_config_compiler_BUILD.gn b/www/chromium/files/patch-build_config_compiler_BUILD.gn index 9709580..63941e8 100644 --- a/www/chromium/files/patch-build_config_compiler_BUILD.gn +++ b/www/chromium/files/patch-build_config_compiler_BUILD.gn @@ -1,6 +1,15 @@ ---- build/config/compiler/BUILD.gn.orig 2017-04-19 19:06:28 UTC -+++ build/config/compiler/BUILD.gn -@@ -158,7 +158,7 @@ config("compiler") { +--- build/config/compiler/BUILD.gn.orig 2017-06-05 21:03:01.000000000 +0200 ++++ build/config/compiler/BUILD.gn 2017-06-13 16:28:04.062660000 +0200 +@@ -37,7 +37,7 @@ + # only two architectures that are currently checked in). Turn this off when + # you are using a custom toolchain and need to control -B in cflags. + linux_use_bundled_binutils = +- linux_use_bundled_binutils_override && is_linux && ++ linux_use_bundled_binutils_override && (is_linux && !is_bsd) && + (current_cpu == "x64" || current_cpu == "x86") + binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", + root_build_dir) +@@ -156,7 +156,7 @@ configs += [ "//build/config/win:compiler" ] } else if (is_android) { configs += [ "//build/config/android:compiler" ] @@ -9,16 +18,34 @@ configs += [ "//build/config/linux:compiler" ] } else if (is_nacl) { configs += [ "//build/config/nacl:compiler" ] -@@ -301,7 +301,7 @@ config("compiler") { +@@ -207,7 +207,7 @@ + + # Linker warnings. + if (fatal_linker_warnings && !(is_chromeos && current_cpu == "arm") && +- !(is_android && use_order_profiling) && !is_mac && !is_ios) { ++ !(is_android && use_order_profiling) && !is_mac && !is_ios && !is_bsd) { + # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 + # TODO(lizeb,pasko): Fix link errors when linking with order_profiling=1 + # crbug.com/485542 +@@ -304,7 +304,7 @@ # Linux/Android common flags setup. # --------------------------------- - if (is_linux || is_android) { + if (is_linux || is_bsd || is_android) { - cflags += [ - "-fPIC", - "-pipe", # Use pipes for communicating between sub-processes. Faster. -@@ -428,14 +428,14 @@ config("compiler") { + if (use_pic) { + cflags += [ "-fPIC" ] + ldflags += [ "-fPIC" ] +@@ -319,7 +319,7 @@ + "-Wl,-z,relro", + ] + if (!using_sanitizer) { +- if (!use_cfi_diag) { ++ if (!use_cfi_diag && !is_bsd) { + ldflags += [ "-Wl,-z,defs" ] + } + +@@ -429,14 +429,14 @@ # clang-cl (used if is_win) doesn't expose this flag. # Currently disabled for nacl since its toolchain lacks this flag (too old). # TODO(zforman): Once nacl's toolchain is updated, remove check. @@ -35,7 +62,7 @@ # gnu++11 instead of c++11 is needed because some code uses typeof() (a # GNU extension). # TODO(thakis): Eventually switch this to c++11 instead, -@@ -488,7 +488,7 @@ config("compiler") { +@@ -493,7 +493,7 @@ ] # Apply a lower LTO optimization level as the default is too slow. @@ -44,7 +71,7 @@ if (use_lld) { ldflags += [ "-Wl,--lto-O1" ] } else { -@@ -508,7 +508,7 @@ config("compiler") { +@@ -513,7 +513,7 @@ # targeting ARM, without this flag, LTO produces a .text section that is # larger than the maximum call displacement, preventing the linker from # relocating calls (http://llvm.org/PR22999). @@ -53,7 +80,7 @@ ldflags += [ "-Wl,-plugin-opt,-function-sections" ] } } -@@ -776,7 +776,7 @@ config("compiler_codegen") { +@@ -781,7 +781,7 @@ # configs -= [ "//build/config/compiler:clang_stackrealign" ] # See https://crbug.com/556393 for details of where it must be avoided. config("clang_stackrealign") { @@ -62,7 +89,7 @@ cflags = [ # Align the stack on 16-byte boundaries, http://crbug.com/418554. "-mstack-alignment=16", -@@ -830,7 +830,7 @@ config("runtime_library") { +@@ -835,7 +835,7 @@ # smaller. if (is_win) { configs += [ "//build/config/win:runtime_library" ] @@ -71,16 +98,16 @@ configs += [ "//build/config/linux:runtime_library" ] } else if (is_ios) { configs += [ "//build/config/ios:runtime_library" ] -@@ -1087,7 +1087,7 @@ config("default_warnings") { +@@ -1097,7 +1097,7 @@ + "-Wno-address-of-packed-member", - # use_xcode_clang only refers to the iOS toolchain, host binaries use - # chromium's clang always. -- if (!is_nacl && (!use_xcode_clang || current_toolchain == host_toolchain)) { -+ if (!is_nacl && !is_bsd && (!use_xcode_clang || current_toolchain == host_toolchain)) { - # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not - # recognize. - cflags += [ -@@ -1144,7 +1144,7 @@ config("chromium_code") { + # TODO(hans): https://crbug.com/681136 +- "-Wno-unused-lambda-capture", ++ # "-Wno-unused-lambda-capture", + + # TODO(thakis ): https://crbug.com/683349 + "-Wno-user-defined-warnings", +@@ -1137,7 +1137,7 @@ ] if (!is_debug && !using_sanitizer && @@ -89,7 +116,7 @@ # _FORTIFY_SOURCE isn't really supported by Clang now, see # http://llvm.org/bugs/show_bug.cgi?id=16821. # It seems to work fine with Ubuntu 12 headers though, so use it in -@@ -1203,7 +1203,7 @@ config("no_chromium_code") { +@@ -1196,7 +1196,7 @@ ] } @@ -98,3 +125,12 @@ cflags_cc += [ # Don't warn about hash_map in third-party code. "-Wno-deprecated", +@@ -1644,7 +1644,7 @@ + "-g2", + ] + } else { +- cflags = [ "-g2" ] ++ cflags = [ "-g0" ] + } + if (use_debug_fission) { + cflags += [ "-gsplit-dwarf" ] diff --git a/www/chromium/files/patch-build_config_crypto.gni b/www/chromium/files/patch-build_config_crypto.gni index 29f38a6..aed07e7 100644 --- a/www/chromium/files/patch-build_config_crypto.gni +++ b/www/chromium/files/patch-build_config_crypto.gni @@ -1,6 +1,6 @@ ---- build/config/crypto.gni.orig 2017-04-19 19:06:28 UTC +--- build/config/crypto.gni.orig 2017-06-05 19:03:01 UTC +++ build/config/crypto.gni -@@ -20,4 +20,4 @@ use_openssl_certs = is_android || is_nac +@@ -20,4 +20,4 @@ use_openssl_certs = is_android || is_nacl # True if NSS is used for certificate handling. It is possible to use OpenSSL # for the crypto library, but NSS for the platform certificate library. diff --git a/www/chromium/files/patch-build_config_features.gni b/www/chromium/files/patch-build_config_features.gni index bb7ef35..abd2ce5 100644 --- a/www/chromium/files/patch-build_config_features.gni +++ b/www/chromium/files/patch-build_config_features.gni @@ -1,8 +1,11 @@ ---- build/config/features.gni.orig 2017-04-19 19:06:28 UTC +--- build/config/features.gni.orig 2017-06-05 19:03:01 UTC +++ build/config/features.gni -@@ -60,13 +60,13 @@ declare_args() { +@@ -58,15 +58,15 @@ declare_args() { + fieldtrial_testing_like_official_build = is_chrome_branded + # libudev usage. This currently only affects the content layer. - use_udev = is_linux && !is_chromecast +- use_udev = is_linux && !is_chromecast ++ use_udev = is_linux && !is_chromecast && !is_bsd - use_dbus = is_linux && !is_chromecast + use_dbus = (is_linux || is_bsd) && !is_chromecast @@ -14,6 +17,6 @@ - use_gio = is_linux && !is_chromeos && !is_chromecast + use_gio = (is_linux || is_bsd) && !is_chromeos && !is_chromecast - - # Whether or not to use external popup menu. - use_external_popup_menu = is_android || is_mac + } + # + # ============================================= diff --git a/www/chromium/files/patch-build_config_freetype_BUILD.gn b/www/chromium/files/patch-build_config_freetype_BUILD.gn new file mode 100644 index 0000000..53452ca --- /dev/null +++ b/www/chromium/files/patch-build_config_freetype_BUILD.gn @@ -0,0 +1,11 @@ +--- build/config/freetype/BUILD.gn.orig 2017-06-05 19:03:01 UTC ++++ build/config/freetype/BUILD.gn +@@ -9,7 +9,7 @@ group("freetype") { + public_deps = [ + "//third_party/freetype", + ] +- } else if (is_linux) { ++ } else if (is_linux || is_bsd) { + public_configs = [ "//build/linux:freetype_from_pkgconfig" ] + } + } diff --git a/www/chromium/files/patch-build_config_sanitizers_BUILD.gn b/www/chromium/files/patch-build_config_sanitizers_BUILD.gn index e385f3e..56efe1f 100644 --- a/www/chromium/files/patch-build_config_sanitizers_BUILD.gn +++ b/www/chromium/files/patch-build_config_sanitizers_BUILD.gn @@ -1,6 +1,6 @@ ---- build/config/sanitizers/BUILD.gn.orig 2017-04-19 19:06:28 UTC +--- build/config/sanitizers/BUILD.gn.orig 2017-06-05 19:03:01 UTC +++ build/config/sanitizers/BUILD.gn -@@ -428,7 +428,7 @@ config("lsan_flags") { +@@ -438,7 +438,7 @@ config("lsan_flags") { config("msan_flags") { if (is_msan) { @@ -9,7 +9,7 @@ if (!defined(msan_blacklist_path)) { msan_blacklist_path = rebase_path("//tools/msan/blacklist.txt", root_build_dir) -@@ -443,7 +443,7 @@ config("msan_flags") { +@@ -453,7 +453,7 @@ config("msan_flags") { config("tsan_flags") { if (is_tsan) { diff --git a/www/chromium/files/patch-build_config_ui.gni b/www/chromium/files/patch-build_config_ui.gni index 47d20b7..c3816df 100644 --- a/www/chromium/files/patch-build_config_ui.gni +++ b/www/chromium/files/patch-build_config_ui.gni @@ -1,4 +1,4 @@ ---- build/config/ui.gni.orig 2017-04-19 19:06:28 UTC +--- build/config/ui.gni.orig 2017-06-05 19:03:01 UTC +++ build/config/ui.gni @@ -31,10 +31,10 @@ declare_args() { @@ -10,15 +10,11 @@ # Whether we should use glib, a low level C utility library. - use_glib = is_linux + use_glib = is_linux || is_bsd + } - # Indicates if Wayland display server support is enabled. - enable_wayland_server = is_chromeos -@@ -55,17 +55,17 @@ declare_args() { - - # Use GPU accelerated cross process image transport by default on linux builds - # with the Aura window manager. --ui_compositor_image_transport = use_aura && is_linux -+ui_compositor_image_transport = use_aura && (is_linux || is_bsd) + declare_args() { +@@ -48,14 +48,14 @@ declare_args() { + # These variables depend on other variables and can't be set externally. # Indicates if the UI toolkit depends on X11. -use_x11 = is_linux && !use_ozone diff --git a/www/chromium/files/patch-build_toolchain_gcc__toolchain.gni b/www/chromium/files/patch-build_toolchain_gcc__toolchain.gni index 9c4b56c..2655553 100644 --- a/www/chromium/files/patch-build_toolchain_gcc__toolchain.gni +++ b/www/chromium/files/patch-build_toolchain_gcc__toolchain.gni @@ -1,8 +1,8 @@ ---- build/toolchain/gcc_toolchain.gni.orig 2017-04-19 19:06:28 UTC +--- build/toolchain/gcc_toolchain.gni.orig 2017-06-05 19:03:01 UTC +++ build/toolchain/gcc_toolchain.gni -@@ -12,6 +12,11 @@ import("//build/toolchain/clang_static_a - import("//build/toolchain/goma.gni") - import("//build/toolchain/toolchain.gni") +@@ -19,6 +19,11 @@ analyzer_wrapper = + rebase_path("//build/toolchain/clang_static_analyzer_wrapper.py", + root_build_dir) + " --mode=clang" +declare_args() { + extra_cxxflags = "" @@ -12,7 +12,7 @@ # This template defines a toolchain for something that works like gcc # (including clang). # -@@ -483,10 +488,22 @@ template("clang_toolchain") { +@@ -548,13 +553,22 @@ template("clang_toolchain") { } gcc_toolchain(target_name) { @@ -20,6 +20,9 @@ - cc = "$prefix/clang" - cxx = "$prefix/clang++" - ld = cxx +- readelf = "${toolprefix}readelf" +- ar = "${prefix}/llvm-ar" +- nm = "${toolprefix}nm" + if (is_bsd) { + cc = "${toolprefix}clang39" + cxx = "${toolprefix}clang++39" @@ -33,20 +36,9 @@ + cxx = "$prefix/clang++" + ld = cxx + readelf = "${toolprefix}readelf" -+ ar = "${toolprefix}ar" ++ ar = "${prefix}/llvm-ar" + nm = "${toolprefix}nm" + } - if (use_clang_static_analyzer) { - # Static analysis isn't supported under GOMA. See crbug.com/687245 -@@ -507,10 +524,6 @@ template("clang_toolchain") { - root_build_dir) - } - -- readelf = "${toolprefix}readelf" -- ar = "${toolprefix}ar" -- nm = "${toolprefix}nm" -- - forward_variables_from(invoker, [ "strip" ]) - - toolchain_args = { + forward_variables_from(invoker, + [ diff --git a/www/chromium/files/patch-cc_layers_scrollbar__layer__impl__base.cc b/www/chromium/files/patch-cc_layers_scrollbar__layer__impl__base.cc index de6cc4a..481776b 100644 --- a/www/chromium/files/patch-cc_layers_scrollbar__layer__impl__base.cc +++ b/www/chromium/files/patch-cc_layers_scrollbar__layer__impl__base.cc @@ -1,6 +1,6 @@ ---- cc/layers/scrollbar_layer_impl_base.cc.orig 2017-04-19 19:06:28 UTC +--- cc/layers/scrollbar_layer_impl_base.cc.orig 2017-06-05 19:03:01 UTC +++ cc/layers/scrollbar_layer_impl_base.cc -@@ -174,8 +174,8 @@ gfx::Rect ScrollbarLayerImplBase::Comput +@@ -175,8 +175,8 @@ gfx::Rect ScrollbarLayerImplBase::ComputeThumbQuadRect int thumb_offset = TrackStart(); if (maximum > 0) { float ratio = clamped_current_pos / maximum; diff --git a/www/chromium/files/patch-cc_trees_property__tree.cc b/www/chromium/files/patch-cc_trees_property__tree.cc index 3aeb9ed..549b140 100644 --- a/www/chromium/files/patch-cc_trees_property__tree.cc +++ b/www/chromium/files/patch-cc_trees_property__tree.cc @@ -1,6 +1,6 @@ ---- cc/trees/property_tree.cc.orig 2017-04-19 19:06:28 UTC +--- cc/trees/property_tree.cc.orig 2017-06-05 19:03:01 UTC +++ cc/trees/property_tree.cc -@@ -1229,13 +1229,13 @@ gfx::ScrollOffset ScrollTree::MaxScrollO +@@ -1256,13 +1256,13 @@ gfx::ScrollOffset ScrollTree::MaxScrollOffset(int scro gfx::Size clip_layer_bounds = scroll_clip_layer_bounds(scroll_node->id); diff --git a/www/chromium/files/patch-chrome_BUILD.gn b/www/chromium/files/patch-chrome_BUILD.gn index c2b3e91..3f15b7c 100644 --- a/www/chromium/files/patch-chrome_BUILD.gn +++ b/www/chromium/files/patch-chrome_BUILD.gn @@ -1,6 +1,6 @@ ---- chrome/BUILD.gn.orig 2017-04-19 19:06:28 UTC +--- chrome/BUILD.gn.orig 2017-06-05 19:03:01 UTC +++ chrome/BUILD.gn -@@ -142,7 +142,7 @@ if (!is_android && !is_mac) { +@@ -143,7 +143,7 @@ if (!is_android && !is_mac) { data = [ "$root_out_dir/resources.pak", ] @@ -9,7 +9,7 @@ data += [ "$root_out_dir/chrome_100_percent.pak", "$root_out_dir/locales/en-US.pak", -@@ -223,7 +223,7 @@ if (!is_android && !is_mac) { +@@ -225,7 +225,7 @@ if (!is_android && !is_mac) { sources += [ "app/chrome_exe_main_aura.cc" ] } @@ -18,7 +18,7 @@ sources += [ "app/chrome_dll_resource.h", "app/chrome_main.cc", -@@ -1647,7 +1647,7 @@ if (enable_resource_whitelist_generation +@@ -1655,7 +1655,7 @@ if (enable_resource_whitelist_generation) { } } diff --git a/www/chromium/files/patch-chrome_app_chrome__command__ids.h b/www/chromium/files/patch-chrome_app_chrome__command__ids.h index 804bba9..e18cc4f 100644 --- a/www/chromium/files/patch-chrome_app_chrome__command__ids.h +++ b/www/chromium/files/patch-chrome_app_chrome__command__ids.h @@ -1,6 +1,6 @@ ---- chrome/app/chrome_command_ids.h.orig 2017-04-19 19:06:28 UTC +--- chrome/app/chrome_command_ids.h.orig 2017-06-05 19:03:01 UTC +++ chrome/app/chrome_command_ids.h -@@ -71,7 +71,7 @@ +@@ -67,7 +67,7 @@ #define IDC_VISIT_DESKTOP_OF_LRU_USER_2 34049 #define IDC_VISIT_DESKTOP_OF_LRU_USER_3 34050 diff --git a/www/chromium/files/patch-chrome_app_chrome__main.cc b/www/chromium/files/patch-chrome_app_chrome__main.cc index a3195d1..50542f5 100644 --- a/www/chromium/files/patch-chrome_app_chrome__main.cc +++ b/www/chromium/files/patch-chrome_app_chrome__main.cc @@ -1,6 +1,6 @@ ---- chrome/app/chrome_main.cc.orig 2017-05-09 19:02:41 UTC +--- chrome/app/chrome_main.cc.orig 2017-06-05 19:03:01 UTC +++ chrome/app/chrome_main.cc -@@ -97,14 +97,14 @@ int ChromeMain(int argc, const char** ar +@@ -97,14 +97,14 @@ int ChromeMain(int argc, const char** argv) { ALLOW_UNUSED_LOCAL(command_line); #endif @@ -15,5 +15,5 @@ -#endif // defined(OS_LINUX) || defined(OS_MACOSX) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) - #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) + #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) version_info::Channel channel = chrome::GetChannel(); diff --git a/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc b/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc index 80cc63a..34838cf 100644 --- a/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc +++ b/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc @@ -1,4 +1,4 @@ ---- chrome/app/chrome_main_delegate.cc.orig 2017-04-19 19:06:28 UTC +--- chrome/app/chrome_main_delegate.cc.orig 2017-06-05 19:03:01 UTC +++ chrome/app/chrome_main_delegate.cc @@ -89,7 +89,7 @@ #include "chrome/app/chrome_crash_reporter_client.h" @@ -23,8 +23,8 @@ #include "base/environment.h" #endif -@@ -163,7 +163,7 @@ base::LazyInstance::Destru + g_chrome_content_browser_client = LAZY_INSTANCE_INITIALIZER; #endif -#if defined(OS_POSIX) @@ -32,7 +32,7 @@ base::LazyInstance::Leaky g_chrome_crash_client = LAZY_INSTANCE_INITIALIZER; #endif -@@ -280,7 +280,7 @@ static void AdjustLinuxOOMScore(const st +@@ -284,7 +284,7 @@ void AdjustLinuxOOMScore(const std::string& process_ty // and resources loaded. bool SubprocessNeedsResourceBundle(const std::string& process_type) { return @@ -41,7 +41,7 @@ // The zygote process opens the resources for the renderers. process_type == switches::kZygoteProcess || #endif -@@ -332,7 +332,7 @@ void HandleHelpSwitches(const base::Comm +@@ -336,7 +336,7 @@ void HandleHelpSwitches(const base::CommandLine& comma } #endif @@ -50,7 +50,7 @@ void SIGTERMProfilingShutdown(int signal) { Profiling::Stop(); struct sigaction sigact; -@@ -399,7 +399,7 @@ void InitializeUserDataDir(base::Command +@@ -403,7 +403,7 @@ void InitializeUserDataDir(base::CommandLine* command_ std::string process_type = command_line->GetSwitchValueASCII(switches::kProcessType); @@ -59,7 +59,7 @@ // On Linux, Chrome does not support running multiple copies under different // DISPLAYs, so the profile directory can be specified in the environment to // support the virtual desktop use-case. -@@ -592,7 +592,7 @@ bool ChromeMainDelegate::BasicStartupCom +@@ -596,7 +596,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi std::string format_str = command_line.GetSwitchValueASCII(switches::kDiagnosticsFormat); if (format_str == "machine") { @@ -68,7 +68,7 @@ } else if (format_str == "log") { format = diagnostics::DiagnosticsWriter::LOG; } else { -@@ -642,7 +642,7 @@ bool ChromeMainDelegate::BasicStartupCom +@@ -646,7 +646,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi std::string format_str = command_line.GetSwitchValueASCII(switches::kDiagnosticsFormat); if (format_str == "machine") { @@ -77,7 +77,7 @@ } else if (format_str == "human") { format = diagnostics::DiagnosticsWriter::HUMAN; } else { -@@ -754,7 +754,7 @@ void ChromeMainDelegate::PreSandboxStart +@@ -758,7 +758,7 @@ void ChromeMainDelegate::PreSandboxStartup() { std::string process_type = command_line.GetSwitchValueASCII(switches::kProcessType); @@ -86,7 +86,7 @@ crash_reporter::SetCrashReporterClient(g_chrome_crash_client.Pointer()); #endif -@@ -884,7 +884,7 @@ void ChromeMainDelegate::PreSandboxStart +@@ -888,7 +888,7 @@ void ChromeMainDelegate::PreSandboxStartup() { chrome::InitializePDF(); #endif @@ -95,7 +95,7 @@ // Zygote needs to call InitCrashReporter() in RunZygote(). if (process_type != switches::kZygoteProcess) { #if defined(OS_ANDROID) -@@ -899,7 +899,7 @@ void ChromeMainDelegate::PreSandboxStart +@@ -903,7 +903,7 @@ void ChromeMainDelegate::PreSandboxStartup() { breakpad::InitCrashReporter(process_type); #endif // defined(OS_ANDROID) } @@ -104,7 +104,7 @@ // After all the platform Breakpads have been initialized, store the command // line for crash reporting. -@@ -1005,7 +1005,7 @@ bool ChromeMainDelegate::DelaySandboxIni +@@ -1009,7 +1009,7 @@ bool ChromeMainDelegate::DelaySandboxInitialization( #endif return process_type == switches::kRelauncherProcess; } diff --git a/www/chromium/files/patch-chrome_app_chrome__main__delegate.h b/www/chromium/files/patch-chrome_app_chrome__main__delegate.h index 0d28e5d..b228ed3 100644 --- a/www/chromium/files/patch-chrome_app_chrome__main__delegate.h +++ b/www/chromium/files/patch-chrome_app_chrome__main__delegate.h @@ -1,6 +1,6 @@ ---- chrome/app/chrome_main_delegate.h.orig 2017-04-19 19:06:28 UTC +--- chrome/app/chrome_main_delegate.h.orig 2017-06-05 19:03:01 UTC +++ chrome/app/chrome_main_delegate.h -@@ -42,7 +42,7 @@ class ChromeMainDelegate : public conten +@@ -42,7 +42,7 @@ class ChromeMainDelegate : public content::ContentMain const std::string& process_type) override; bool ShouldSendMachPort(const std::string& process_type) override; bool DelaySandboxInitialization(const std::string& process_type) override; diff --git a/www/chromium/files/patch-chrome_app_chromium__strings.grd b/www/chromium/files/patch-chrome_app_chromium__strings.grd index 9982377..9bff618 100644 --- a/www/chromium/files/patch-chrome_app_chromium__strings.grd +++ b/www/chromium/files/patch-chrome_app_chromium__strings.grd @@ -1,6 +1,6 @@ ---- chrome/app/chromium_strings.grd.orig 2017-04-19 19:06:28 UTC +--- chrome/app/chromium_strings.grd.orig 2017-06-05 19:03:01 UTC +++ chrome/app/chromium_strings.grd -@@ -891,7 +891,7 @@ Signing in anyway will merge Chromium in +@@ -886,7 +886,7 @@ Signing in anyway will merge Chromium information like diff --git a/www/chromium/files/patch-chrome_app_generated__resources.grd b/www/chromium/files/patch-chrome_app_generated__resources.grd index 0cb8a46..3ef8cb8 100644 --- a/www/chromium/files/patch-chrome_app_generated__resources.grd +++ b/www/chromium/files/patch-chrome_app_generated__resources.grd @@ -1,15 +1,6 @@ ---- chrome/app/generated_resources.grd.orig 2017-04-19 19:06:28 UTC +--- chrome/app/generated_resources.grd.orig 2017-06-05 19:03:01 UTC +++ chrome/app/generated_resources.grd -@@ -6535,7 +6535,7 @@ Keep your key file in a safe place. You - - Right-to-left - -- -+ - - Enable Input IME API - -@@ -9629,7 +9629,7 @@ I don't think this site should be blocke +@@ -8084,7 +8084,7 @@ I don't think this site should be blocked! Appearance @@ -18,7 +9,7 @@ Themes -@@ -9637,7 +9637,7 @@ I don't think this site should be blocke +@@ -8092,7 +8092,7 @@ I don't think this site should be blocked! Reset to default theme @@ -27,7 +18,7 @@ Use GTK+ theme -@@ -10903,7 +10903,7 @@ Tell us what happened exactly before you +@@ -9347,7 +9347,7 @@ Tell us what happened exactly before you got the profi Set as default diff --git a/www/chromium/files/patch-chrome_app_google__chrome__strings.grd b/www/chromium/files/patch-chrome_app_google__chrome__strings.grd index 28c9099..779dc37c 100644 --- a/www/chromium/files/patch-chrome_app_google__chrome__strings.grd +++ b/www/chromium/files/patch-chrome_app_google__chrome__strings.grd @@ -1,6 +1,6 @@ ---- chrome/app/google_chrome_strings.grd.orig 2017-04-19 19:06:28 UTC +--- chrome/app/google_chrome_strings.grd.orig 2017-06-05 19:03:01 UTC +++ chrome/app/google_chrome_strings.grd -@@ -892,7 +892,7 @@ Signing in anyway will merge Chrome info +@@ -887,7 +887,7 @@ Signing in anyway will merge Chrome information like b diff --git a/www/chromium/files/patch-chrome_app_mash_mash__runner.cc b/www/chromium/files/patch-chrome_app_mash_mash__runner.cc index 29251db..f548004 100644 --- a/www/chromium/files/patch-chrome_app_mash_mash__runner.cc +++ b/www/chromium/files/patch-chrome_app_mash_mash__runner.cc @@ -1,6 +1,6 @@ ---- chrome/app/mash/mash_runner.cc.orig 2017-04-19 19:06:28 UTC +--- chrome/app/mash/mash_runner.cc.orig 2017-06-05 19:03:01 UTC +++ chrome/app/mash/mash_runner.cc -@@ -263,7 +263,7 @@ int MashMain() { +@@ -302,7 +302,7 @@ int MashMain() { // TODO(sky): wire this up correctly. service_manager::InitializeLogging(); diff --git a/www/chromium/files/patch-chrome_app_resources_locale__settings.grd b/www/chromium/files/patch-chrome_app_resources_locale__settings.grd deleted file mode 100644 index 367c458..0000000 --- a/www/chromium/files/patch-chrome_app_resources_locale__settings.grd +++ /dev/null @@ -1,11 +0,0 @@ ---- chrome/app/resources/locale_settings.grd.orig 2017-04-19 19:06:29 UTC -+++ chrome/app/resources/locale_settings.grd -@@ -151,7 +151,7 @@ - 55 - - -- -+ - - - 300 diff --git a/www/chromium/files/patch-chrome_app_settings__strings.grdp b/www/chromium/files/patch-chrome_app_settings__strings.grdp index 8a79a33..af278e8 100644 --- a/www/chromium/files/patch-chrome_app_settings__strings.grdp +++ b/www/chromium/files/patch-chrome_app_settings__strings.grdp @@ -1,6 +1,6 @@ ---- chrome/app/settings_strings.grdp.orig 2017-04-19 19:06:29 UTC +--- chrome/app/settings_strings.grdp.orig 2017-06-05 19:03:01 UTC +++ chrome/app/settings_strings.grdp -@@ -240,7 +240,7 @@ +@@ -278,7 +278,7 @@ Themes @@ -9,7 +9,7 @@ GTK+ -@@ -254,7 +254,7 @@ +@@ -292,7 +292,7 @@ Use Classic diff --git a/www/chromium/files/patch-chrome_app_shutdown__signal__handlers__posix.cc b/www/chromium/files/patch-chrome_app_shutdown__signal__handlers__posix.cc index ed25b0f..92e2227 100644 --- a/www/chromium/files/patch-chrome_app_shutdown__signal__handlers__posix.cc +++ b/www/chromium/files/patch-chrome_app_shutdown__signal__handlers__posix.cc @@ -1,4 +1,4 @@ ---- chrome/app/shutdown_signal_handlers_posix.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/app/shutdown_signal_handlers_posix.cc.orig 2017-06-05 19:03:01 UTC +++ chrome/app/shutdown_signal_handlers_posix.cc @@ -183,6 +183,11 @@ void InstallShutdownSignalHandlers( g_pipe_pid = getpid(); @@ -12,11 +12,11 @@ #if !defined(ADDRESS_SANITIZER) && !defined(KEEP_SHADOW_STACKS) const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 2; #else -@@ -191,6 +196,7 @@ void InstallShutdownSignalHandlers( +@@ -190,6 +195,7 @@ void InstallShutdownSignalHandlers( + // shadow stacks) bloat the stack frames, so we need to increase the stack // size to avoid hitting the guard page. const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 4; - #endif +#endif + #endif ShutdownDetector* detector = new ShutdownDetector( g_shutdown_pipe_read_fd, shutdown_callback, task_runner); - // PlatformThread does not delete its delegate. diff --git a/www/chromium/files/patch-chrome_browser_BUILD.gn b/www/chromium/files/patch-chrome_browser_BUILD.gn index 5d12d99..a7d89d1 100644 --- a/www/chromium/files/patch-chrome_browser_BUILD.gn +++ b/www/chromium/files/patch-chrome_browser_BUILD.gn @@ -1,6 +1,6 @@ ---- chrome/browser/BUILD.gn.orig 2017-04-19 19:06:29 UTC -+++ chrome/browser/BUILD.gn -@@ -2219,7 +2219,7 @@ split_static_library("browser") { +--- chrome/browser/BUILD.gn.orig 2017-06-15 21:03:01.000000000 +0200 ++++ chrome/browser/BUILD.gn 2017-06-18 05:06:25.091310000 +0200 +@@ -2296,7 +2296,7 @@ deps += [ "//device/udev_linux" ] } @@ -9,7 +9,7 @@ deps += [ "//third_party/speech-dispatcher" ] } -@@ -3606,7 +3606,7 @@ split_static_library("browser") { +@@ -3721,7 +3721,7 @@ } } @@ -18,3 +18,21 @@ if (use_aura) { deps += [ "//build/linux:fontconfig" ] if (use_dbus) { +@@ -3734,7 +3734,7 @@ + } + } + +- if (is_linux || is_win || is_mac) { ++ if (is_linux || is_win || is_mac || is_bsd) { + sources += [ + "payments/chrome_payment_request_delegate.cc", + "payments/chrome_payment_request_delegate.h", +@@ -3744,7 +3744,7 @@ + deps += [ "//components/payments/content" ] + } + +- if (is_linux || is_win) { ++ if (is_linux || is_win || is_bsd) { + sources += [ + "renderer_context_menu/spelling_options_submenu_observer.cc", + "renderer_context_menu/spelling_options_submenu_observer.h", diff --git a/www/chromium/files/patch-chrome_browser_about__flags.cc b/www/chromium/files/patch-chrome_browser_about__flags.cc index 9a4ca2a..f781c07 100644 --- a/www/chromium/files/patch-chrome_browser_about__flags.cc +++ b/www/chromium/files/patch-chrome_browser_about__flags.cc @@ -1,34 +1,32 @@ ---- chrome/browser/about_flags.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/about_flags.cc.orig 2017-06-05 19:03:01 UTC +++ chrome/browser/about_flags.cc -@@ -856,7 +856,7 @@ const FeatureEntry kFeatureEntries[] = { - kOsLinux | kOsCrOS | kOsWin | kOsAndroid, - ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSmoothScrolling, - switches::kDisableSmoothScrolling)}, --#if defined(USE_AURA) || defined(OS_LINUX) -+#if defined(USE_AURA) || defined(OS_LINUX) || defined(OS_BSD) - {"overlay-scrollbars", IDS_FLAGS_OVERLAY_SCROLLBARS_NAME, - IDS_FLAGS_OVERLAY_SCROLLBARS_DESCRIPTION, - // Uses the system preference on Mac (a different implementation). -@@ -1374,11 +1374,11 @@ const FeatureEntry kFeatureEntries[] = { +@@ -1588,12 +1588,12 @@ const FeatureEntry kFeatureEntries[] = { ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTranslateNewUX, switches::kDisableTranslateNewUX)}, #endif // OS_MACOSX -#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_BSD) - {"translate-2016q2-ui", IDS_FLAGS_TRANSLATE_2016Q2_UI_NAME, - IDS_FLAGS_TRANSLATE_2016Q2_UI_DESCRIPTION, kOsCrOS | kOsWin | kOsLinux, + {"translate-2016q2-ui", flag_descriptions::kTranslate2016q2UiName, + flag_descriptions::kTranslate2016q2UiDescription, + kOsCrOS | kOsWin | kOsLinux, FEATURE_VALUE_TYPE(translate::kTranslateUI2016Q2)}, -#endif // OS_LINUX || OS_WIN || OS_CHROMEOS +#endif // OS_LINUX || OS_WIN || OS_CHROMEOS || OS_BSD - {"translate-lang-by-ulp", IDS_FLAGS_TRANSLATE_LANGUAGE_BY_ULP_NAME, - IDS_FLAGS_TRANSLATE_LANGUAGE_BY_ULP_DESCRIPTION, kOsAll, + {"translate-lang-by-ulp", flag_descriptions::kTranslateLanguageByUlpName, + flag_descriptions::kTranslateLanguageByUlpDescription, kOsAll, FEATURE_VALUE_TYPE(translate::kTranslateLanguageByULP)}, -@@ -1802,7 +1802,7 @@ const FeatureEntry kFeatureEntries[] = { - IDS_FLAGS_ENABLE_MATERIAL_DESIGN_EXTENSIONS_DESCRIPTION, kOsDesktop, +@@ -2071,12 +2071,12 @@ const FeatureEntry kFeatureEntries[] = { + flag_descriptions::kEnableMaterialDesignExtensionsDescription, kOsDesktop, FEATURE_VALUE_TYPE(features::kMaterialDesignExtensions)}, #endif // ENABLE_EXTENSIONS -#if defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) - {"enable-input-ime-api", IDS_FLAGS_ENABLE_INPUT_IME_API_NAME, - IDS_FLAGS_ENABLE_INPUT_IME_API_DESCRIPTION, kOsWin | kOsLinux, + {"enable-input-ime-api", flag_descriptions::kEnableInputImeApiName, + flag_descriptions::kEnableInputImeApiDescription, kOsWin | kOsLinux, ENABLE_DISABLE_VALUE_TYPE(switches::kEnableInputImeAPI, + switches::kDisableInputImeAPI)}, +-#endif // OS_WIN || OS_LINUX ++#endif // OS_WIN || OS_LINUX || OS_BSD + {"enable-origin-trials", flag_descriptions::kOriginTrialsName, + flag_descriptions::kOriginTrialsDescription, kOsAll, + FEATURE_VALUE_TYPE(features::kOriginTrials)}, diff --git a/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc b/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc index 809ef02..06f200b 100644 --- a/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc +++ b/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc @@ -1,6 +1,6 @@ ---- chrome/browser/after_startup_task_utils.cc.orig 2017-05-02 19:02:47 UTC +--- chrome/browser/after_startup_task_utils.cc.orig 2017-06-05 19:03:01 UTC +++ chrome/browser/after_startup_task_utils.cc -@@ -93,7 +93,7 @@ void QueueTask(std::unique_ptr queue void SetBrowserStartupIsComplete() { DCHECK_CURRENTLY_ON(BrowserThread::UI); diff --git a/www/chromium/files/patch-chrome_browser_browser__process__impl.cc b/www/chromium/files/patch-chrome_browser_browser__process__impl.cc index b5a9b40..518fe76 100644 --- a/www/chromium/files/patch-chrome_browser_browser__process__impl.cc +++ b/www/chromium/files/patch-chrome_browser_browser__process__impl.cc @@ -1,4 +1,4 @@ ---- chrome/browser/browser_process_impl.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/browser_process_impl.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/browser_process_impl.cc @@ -171,7 +171,7 @@ #include "chrome/browser/media/webrtc/webrtc_log_uploader.h" @@ -9,7 +9,7 @@ #include "chrome/browser/memory/tab_manager.h" #endif -@@ -789,7 +789,7 @@ gcm::GCMDriver* BrowserProcessImpl::gcm_ +@@ -810,7 +810,7 @@ gcm::GCMDriver* BrowserProcessImpl::gcm_driver() { memory::TabManager* BrowserProcessImpl::GetTabManager() { DCHECK(CalledOnValidThread()); diff --git a/www/chromium/files/patch-chrome_browser_browser__process__impl.h b/www/chromium/files/patch-chrome_browser_browser__process__impl.h index aab0658..3e96886 100644 --- a/www/chromium/files/patch-chrome_browser_browser__process__impl.h +++ b/www/chromium/files/patch-chrome_browser_browser__process__impl.h @@ -1,6 +1,6 @@ ---- chrome/browser/browser_process_impl.h.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/browser_process_impl.h.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/browser_process_impl.h -@@ -342,7 +342,7 @@ class BrowserProcessImpl : public Browse +@@ -343,7 +343,7 @@ class BrowserProcessImpl : public BrowserProcess, std::unique_ptr device_client_; diff --git a/www/chromium/files/patch-chrome_browser_browser__resources.grd b/www/chromium/files/patch-chrome_browser_browser__resources.grd index 979666f..94932ff 100644 --- a/www/chromium/files/patch-chrome_browser_browser__resources.grd +++ b/www/chromium/files/patch-chrome_browser_browser__resources.grd @@ -1,6 +1,6 @@ ---- chrome/browser/browser_resources.grd.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/browser_resources.grd.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/browser_resources.grd -@@ -383,7 +383,7 @@ +@@ -404,7 +404,7 @@ diff --git a/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc b/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc index 793212a..7182527 100644 --- a/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc +++ b/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc @@ -1,7 +1,7 @@ ---- chrome/browser/chrome_browser_main.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/chrome_browser_main.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/chrome_browser_main.cc -@@ -181,7 +181,7 @@ - #include "chrome/browser/lifetime/application_lifetime.h" +@@ -183,7 +183,7 @@ + #include "chrome/browser/feedback/feedback_profile_observer.h" #endif // defined(OS_ANDROID) -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) @@ -9,7 +9,7 @@ #include "chrome/browser/first_run/upgrade_util_linux.h" #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) -@@ -276,7 +276,7 @@ +@@ -274,7 +274,7 @@ #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ @@ -18,20 +18,19 @@ #include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h" #endif -@@ -479,10 +479,10 @@ void RegisterComponentsForUpdate() { +@@ -477,9 +477,9 @@ void RegisterComponentsForUpdate() { #if !defined(OS_ANDROID) RegisterPepperFlashComponent(cus); -#if !defined(OS_CHROMEOS) +#if !defined(OS_CHROMEOS) && !defined(OS_BSD) - RegisterSwiftShaderComponent(cus); RegisterWidevineCdmComponent(cus); -#endif // !defined(OS_CHROMEOS) +#endif // !defined(OS_CHROMEOS) && !defined(OS_BSD) #endif // !defined(OS_ANDROID) #if !defined(DISABLE_NACL) && !defined(OS_ANDROID) -@@ -764,7 +764,7 @@ void ChromeBrowserMainParts::SetupFieldT +@@ -761,7 +761,7 @@ void ChromeBrowserMainParts::SetupFieldTrials() { field_trial_synchronizer_ = new FieldTrialSynchronizer(); #if defined(OS_WIN) || defined(OS_MACOSX) || \ @@ -39,8 +38,8 @@ + (defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD)) metrics::DesktopSessionDurationTracker::Initialize(); #endif - -@@ -1194,11 +1194,11 @@ int ChromeBrowserMainParts::PreCreateThr + metrics::RendererUptimeTracker::Initialize(); +@@ -1191,11 +1191,11 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { } #endif // !defined(OS_ANDROID) && !defined(OS_CHROMEOS) @@ -54,7 +53,7 @@ // Initialize tracking synchronizer system. tracking_synchronizer_ = new metrics::TrackingSynchronizer( -@@ -1387,7 +1387,7 @@ void ChromeBrowserMainParts::PreBrowserS +@@ -1374,7 +1374,7 @@ void ChromeBrowserMainParts::PreBrowserStart() { // Start the tab manager here so that we give the most amount of time for the // other services to start up before we start adjusting the oom priority. diff --git a/www/chromium/files/patch-chrome_browser_chrome__browser__main__linux.cc b/www/chromium/files/patch-chrome_browser_chrome__browser__main__linux.cc index 0cbc57b..4f69e8b 100644 --- a/www/chromium/files/patch-chrome_browser_chrome__browser__main__linux.cc +++ b/www/chromium/files/patch-chrome_browser_chrome__browser__main__linux.cc @@ -1,6 +1,6 @@ ---- chrome/browser/chrome_browser_main_linux.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/chrome_browser_main_linux.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/chrome_browser_main_linux.cc -@@ -77,12 +77,14 @@ void ChromeBrowserMainPartsLinux::PrePro +@@ -77,12 +77,14 @@ void ChromeBrowserMainPartsLinux::PreProfileInit() { void ChromeBrowserMainPartsLinux::PostProfileInit() { ChromeBrowserMainPartsPosix::PostProfileInit(); @@ -16,7 +16,7 @@ bluez::DBusThreadManagerLinux::Initialize(); bluez::BluezDBusManager::Initialize( bluez::DBusThreadManagerLinux::Get()->GetSystemBus(), false); -@@ -92,7 +94,7 @@ void ChromeBrowserMainPartsLinux::PostMa +@@ -92,7 +94,7 @@ void ChromeBrowserMainPartsLinux::PostMainMessageLoopS } void ChromeBrowserMainPartsLinux::PostDestroyThreads() { diff --git a/www/chromium/files/patch-chrome_browser_chrome__browser__main__posix.cc b/www/chromium/files/patch-chrome_browser_chrome__browser__main__posix.cc index ee7a9e5..39a217d 100644 --- a/www/chromium/files/patch-chrome_browser_chrome__browser__main__posix.cc +++ b/www/chromium/files/patch-chrome_browser_chrome__browser__main__posix.cc @@ -1,6 +1,6 @@ ---- chrome/browser/chrome_browser_main_posix.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/chrome_browser_main_posix.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/chrome_browser_main_posix.cc -@@ -134,7 +134,7 @@ void ChromeBrowserMainPartsPosix::PostMa +@@ -134,7 +134,7 @@ void ChromeBrowserMainPartsPosix::PostMainMessageLoopS void ChromeBrowserMainPartsPosix::ShowMissingLocaleMessageBox() { #if defined(OS_CHROMEOS) NOTREACHED(); // Should not ever happen on ChromeOS. diff --git a/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc b/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc index 5afc8b6..eb8e8ff 100644 --- a/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc +++ b/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc @@ -1,6 +1,6 @@ ---- chrome/browser/chrome_content_browser_client.cc.orig 2017-04-19 19:06:29 UTC -+++ chrome/browser/chrome_content_browser_client.cc -@@ -244,7 +244,7 @@ +--- chrome/browser/chrome_content_browser_client.cc.orig 2017-06-15 21:03:01.000000000 +0200 ++++ chrome/browser/chrome_content_browser_client.cc 2017-06-18 04:59:41.793684000 +0200 +@@ -249,7 +249,7 @@ #include "mash/public/interfaces/launchable.mojom.h" #include "services/service_manager/public/cpp/interface_factory.h" #include "services/service_manager/public/interfaces/interface_provider_spec.mojom.h" @@ -9,16 +9,16 @@ #include "chrome/browser/chrome_browser_main_linux.h" #elif defined(OS_ANDROID) #include "chrome/browser/android/app_hooks.h" -@@ -265,7 +265,7 @@ +@@ -266,7 +266,7 @@ + #include "chrome/browser/payments/payment_request_factory.h" + #endif + +-#if defined(OS_LINUX) || defined(OS_WIN) ++#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) #include "chrome/browser/webshare/share_service_impl.h" #endif --#if defined(OS_POSIX) && !defined(OS_MACOSX) -+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD) - #include "base/debug/leak_annotations.h" - #include "components/crash/content/app/breakpad_linux.h" - #include "components/crash/content/browser/crash_handler_host_linux.h" -@@ -289,7 +289,7 @@ +@@ -294,7 +294,7 @@ #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" #endif @@ -27,7 +27,7 @@ #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h" #endif -@@ -700,7 +700,7 @@ bool CertMatchesFilter(const net::X509Ce +@@ -711,7 +711,7 @@ return false; } @@ -36,7 +36,16 @@ breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( const std::string& process_type) { base::FilePath dumps_path; -@@ -1023,7 +1023,7 @@ content::BrowserMainParts* ChromeContent +@@ -761,7 +761,7 @@ + + return -1; + } +-#endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) ++#endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) && !defined(OS_BSD) + + void SetApplicationLocaleOnIOThread(const std::string& locale) { + DCHECK_CURRENTLY_ON(BrowserThread::IO); +@@ -1038,7 +1038,7 @@ main_parts = new ChromeBrowserMainPartsMac(parameters); #elif defined(OS_CHROMEOS) main_parts = new chromeos::ChromeBrowserMainPartsChromeos(parameters); @@ -45,7 +54,7 @@ main_parts = new ChromeBrowserMainPartsLinux(parameters); #elif defined(OS_ANDROID) main_parts = new ChromeBrowserMainPartsAndroid(parameters); -@@ -1039,7 +1039,7 @@ content::BrowserMainParts* ChromeContent +@@ -1054,7 +1054,7 @@ // Construct additional browser parts. Stages are called in the order in // which they are added. #if defined(TOOLKIT_VIEWS) @@ -54,7 +63,7 @@ main_parts->AddParts(new ChromeBrowserMainExtraPartsViewsLinux()); #else main_parts->AddParts(new ChromeBrowserMainExtraPartsViews()); -@@ -1680,7 +1680,7 @@ void ChromeContentBrowserClient::AppendE +@@ -1704,7 +1704,7 @@ command_line->AppendSwitchASCII(switches::kMetricsClientID, client_info->client_id); } @@ -63,7 +72,7 @@ if (breakpad::IsCrashReporterEnabled()) { std::string switch_value; std::unique_ptr client_info = -@@ -2972,7 +2972,7 @@ void ChromeContentBrowserClient::GetAddi +@@ -2982,7 +2982,7 @@ } } @@ -72,7 +81,7 @@ void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( const base::CommandLine& command_line, int child_process_id, -@@ -3001,7 +3001,7 @@ void ChromeContentBrowserClient::GetAddi +@@ -3011,7 +3011,7 @@ } #endif // defined(OS_ANDROID) } @@ -81,12 +90,12 @@ #if defined(OS_WIN) base::string16 ChromeContentBrowserClient::GetAppContainerSidForSandboxType( -@@ -3193,6 +3193,8 @@ void ChromeContentBrowserClient::Registe - base::Bind(&ForwardShareServiceRequest, - web_contents->GetJavaInterfaces()->GetWeakPtr())); +@@ -3219,7 +3219,7 @@ + } + #endif + +-#if defined(OS_LINUX) || defined(OS_WIN) ++#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) + if (!ChromeOriginTrialPolicy().IsFeatureDisabled("WebShare")) { + registry->AddInterface(base::Bind(&ShareServiceImpl::Create)); } -+#elif defined(OS_BSD) -+ NOTREACHED(); - #else - if (AreExperimentalWebPlatformFeaturesEnabled() && - base::FeatureList::IsEnabled(features::kWebPayments)) { diff --git a/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h b/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h index 6767afa..9cf932c 100644 --- a/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h +++ b/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h @@ -1,6 +1,6 @@ ---- chrome/browser/chrome_content_browser_client.h.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/chrome_content_browser_client.h.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/chrome_content_browser_client.h -@@ -270,12 +270,12 @@ class ChromeContentBrowserClient : publi +@@ -271,12 +271,12 @@ class ChromeContentBrowserClient : public content::Con content::RenderFrameHost* render_frame_host, blink::WebPageVisibilityState* visibility_state) override; diff --git a/www/chromium/files/patch-chrome_browser_diagnostics_diagnostics__writer.cc b/www/chromium/files/patch-chrome_browser_diagnostics_diagnostics__writer.cc index f3c2b2c..6d9ed48 100644 --- a/www/chromium/files/patch-chrome_browser_diagnostics_diagnostics__writer.cc +++ b/www/chromium/files/patch-chrome_browser_diagnostics_diagnostics__writer.cc @@ -1,6 +1,6 @@ ---- chrome/browser/diagnostics/diagnostics_writer.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/diagnostics/diagnostics_writer.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/diagnostics/diagnostics_writer.cc -@@ -263,7 +263,7 @@ bool DiagnosticsWriter::WriteResult(bool +@@ -263,7 +263,7 @@ bool DiagnosticsWriter::WriteResult(bool success, console_->SetColor(color); console_->Write(base::ASCIIToUTF16(result)); } diff --git a/www/chromium/files/patch-chrome_browser_diagnostics_diagnostics__writer.h b/www/chromium/files/patch-chrome_browser_diagnostics_diagnostics__writer.h index f882fdc..3958b67 100644 --- a/www/chromium/files/patch-chrome_browser_diagnostics_diagnostics__writer.h +++ b/www/chromium/files/patch-chrome_browser_diagnostics_diagnostics__writer.h @@ -1,6 +1,6 @@ ---- chrome/browser/diagnostics/diagnostics_writer.h.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/diagnostics/diagnostics_writer.h.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/diagnostics/diagnostics_writer.h -@@ -19,7 +19,7 @@ class DiagnosticsWriter : public Diagnos +@@ -19,7 +19,7 @@ class DiagnosticsWriter : public DiagnosticsModel::Obs public: // The type of formatting done by this writer. enum FormatType { diff --git a/www/chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc b/www/chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc index 472e818..a70b608 100644 --- a/www/chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc +++ b/www/chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc @@ -1,6 +1,6 @@ ---- chrome/browser/download/chrome_download_manager_delegate.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/download/chrome_download_manager_delegate.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/download/chrome_download_manager_delegate.cc -@@ -777,7 +777,7 @@ void ChromeDownloadManagerDelegate::OnDo +@@ -828,7 +828,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe target_info->is_filetype_handled_safely) DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true); @@ -9,7 +9,7 @@ if (item->GetOriginalMimeType() == "application/x-x509-user-cert") DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true); #endif -@@ -792,7 +792,7 @@ void ChromeDownloadManagerDelegate::OnDo +@@ -842,7 +842,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe bool ChromeDownloadManagerDelegate::IsOpenInBrowserPreferreredForFile( const base::FilePath& path) { diff --git a/www/chromium/files/patch-chrome_browser_download_download__commands.cc b/www/chromium/files/patch-chrome_browser_download_download__commands.cc index 60d885a..bd4a290 100644 --- a/www/chromium/files/patch-chrome_browser_download_download__commands.cc +++ b/www/chromium/files/patch-chrome_browser_download_download__commands.cc @@ -1,6 +1,6 @@ ---- chrome/browser/download/download_commands.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/download/download_commands.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/download/download_commands.cc -@@ -219,7 +219,7 @@ bool DownloadCommands::IsCommandChecked( +@@ -219,7 +219,7 @@ bool DownloadCommands::IsCommandChecked(Command comman return download_item_->GetOpenWhenComplete() || download_crx_util::IsExtensionDownload(*download_item_); case ALWAYS_OPEN_TYPE: @@ -9,7 +9,7 @@ if (CanOpenPdfInSystemViewer()) { DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext( download_item_->GetBrowserContext()); -@@ -263,7 +263,7 @@ void DownloadCommands::ExecuteCommand(Co +@@ -263,7 +263,7 @@ void DownloadCommands::ExecuteCommand(Command command) bool is_checked = IsCommandChecked(ALWAYS_OPEN_TYPE); DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext( download_item_->GetBrowserContext()); @@ -18,7 +18,7 @@ if (CanOpenPdfInSystemViewer()) { prefs->SetShouldOpenPdfInSystemReader(!is_checked); DownloadItemModel(download_item_) -@@ -376,7 +376,7 @@ Browser* DownloadCommands::GetBrowser() +@@ -376,7 +376,7 @@ Browser* DownloadCommands::GetBrowser() const { return browser_displayer.browser(); } @@ -27,7 +27,7 @@ bool DownloadCommands::IsDownloadPdf() const { base::FilePath path = download_item_->GetTargetFilePath(); return path.MatchesExtension(FILE_PATH_LITERAL(".pdf")); -@@ -393,7 +393,7 @@ bool DownloadCommands::CanOpenPdfInSyste +@@ -393,7 +393,7 @@ bool DownloadCommands::CanOpenPdfInSystemViewer() cons return IsDownloadPdf() && (IsAdobeReaderDefaultPDFViewer() ? is_adobe_pdf_reader_up_to_date : true); diff --git a/www/chromium/files/patch-chrome_browser_download_download__prefs.cc b/www/chromium/files/patch-chrome_browser_download_download__prefs.cc index e5fa2f1..2a7b821 100644 --- a/www/chromium/files/patch-chrome_browser_download_download__prefs.cc +++ b/www/chromium/files/patch-chrome_browser_download_download__prefs.cc @@ -1,4 +1,4 @@ ---- chrome/browser/download/download_prefs.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/download/download_prefs.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/download/download_prefs.cc @@ -56,7 +56,7 @@ namespace { // Consider downloads 'dangerous' if they go to the home directory on Linux and @@ -9,7 +9,7 @@ base::FilePath home_dir = base::GetHomeDir(); if (download_path == home_dir) { return true; -@@ -136,7 +136,7 @@ DownloadPrefs::DownloadPrefs(Profile* pr +@@ -136,7 +136,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profi GetDefaultDownloadDirectoryForProfile())); #endif // defined(OS_CHROMEOS) @@ -18,7 +18,7 @@ should_open_pdf_in_system_reader_ = prefs->GetBoolean(prefs::kOpenPdfDownloadInSystemReader); #endif -@@ -213,7 +213,7 @@ void DownloadPrefs::RegisterProfilePrefs +@@ -213,7 +213,7 @@ void DownloadPrefs::RegisterProfilePrefs( default_download_path); registry->RegisterFilePathPref(prefs::kSaveFileDefaultDirectory, default_download_path); @@ -27,7 +27,7 @@ registry->RegisterBooleanPref(prefs::kOpenPdfDownloadInSystemReader, false); #endif } -@@ -290,7 +290,7 @@ bool DownloadPrefs::IsDownloadPathManage +@@ -290,7 +290,7 @@ bool DownloadPrefs::IsDownloadPathManaged() const { } bool DownloadPrefs::IsAutoOpenUsed() const { @@ -36,7 +36,7 @@ if (ShouldOpenPdfInSystemReader()) return true; #endif -@@ -304,7 +304,7 @@ bool DownloadPrefs::IsAutoOpenEnabledBas +@@ -304,7 +304,7 @@ bool DownloadPrefs::IsAutoOpenEnabledBasedOnExtension( return false; DCHECK(extension[0] == base::FilePath::kExtensionSeparator); extension.erase(0, 1); @@ -45,7 +45,7 @@ if (extension == FILE_PATH_LITERAL("pdf") && ShouldOpenPdfInSystemReader()) return true; #endif -@@ -338,7 +338,7 @@ void DownloadPrefs::DisableAutoOpenBased +@@ -338,7 +338,7 @@ void DownloadPrefs::DisableAutoOpenBasedOnExtension( SaveAutoOpenState(); } @@ -54,7 +54,7 @@ void DownloadPrefs::SetShouldOpenPdfInSystemReader(bool should_open) { if (should_open_pdf_in_system_reader_ == should_open) return; -@@ -359,7 +359,7 @@ bool DownloadPrefs::ShouldOpenPdfInSyste +@@ -359,7 +359,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons #endif void DownloadPrefs::ResetAutoOpen() { diff --git a/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc b/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc index e06e08c..d8d342f 100644 --- a/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc +++ b/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc @@ -1,6 +1,6 @@ ---- chrome/browser/download/download_shelf_context_menu.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/download/download_shelf_context_menu.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/download/download_shelf_context_menu.cc -@@ -127,7 +127,7 @@ base::string16 DownloadShelfContextMenu: +@@ -127,7 +127,7 @@ base::string16 DownloadShelfContextMenu::GetLabelForCo : IDS_DOWNLOAD_MENU_PLATFORM_OPEN_ALWAYS; break; } diff --git a/www/chromium/files/patch-chrome_browser_download_download__status__updater.cc b/www/chromium/files/patch-chrome_browser_download_download__status__updater.cc index 63c5546..01d3642 100644 --- a/www/chromium/files/patch-chrome_browser_download_download__status__updater.cc +++ b/www/chromium/files/patch-chrome_browser_download_download__status__updater.cc @@ -1,4 +1,4 @@ ---- chrome/browser/download/download_status_updater.cc.orig 2017-05-02 19:02:47 UTC +--- chrome/browser/download/download_status_updater.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/download/download_status_updater.cc @@ -13,7 +13,7 @@ #include "base/memory/ptr_util.h" @@ -9,7 +9,7 @@ #include "ui/views/linux_ui/linux_ui.h" #endif -@@ -136,7 +136,7 @@ void DownloadStatusUpdater::OnDownloadUp +@@ -136,7 +136,7 @@ void DownloadStatusUpdater::OnDownloadUpdated( #if defined(OS_ANDROID) || (defined(USE_AURA) && !defined(OS_WIN)) void DownloadStatusUpdater::UpdateAppIconDownloadProgress( content::DownloadItem* download) { diff --git a/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn b/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn index c929a83..9bee1e4 100644 --- a/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn +++ b/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn @@ -1,6 +1,6 @@ ---- chrome/browser/extensions/BUILD.gn.orig 2017-05-02 19:02:47 UTC +--- chrome/browser/extensions/BUILD.gn.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/extensions/BUILD.gn -@@ -1040,7 +1040,7 @@ static_library("extensions") { +@@ -1033,7 +1033,7 @@ static_library("extensions") { sources -= [ "global_shortcut_listener_ozone.cc" ] } @@ -9,7 +9,7 @@ deps += [ "//build/linux:fontconfig" ] if (use_dbus) { -@@ -1100,7 +1100,7 @@ static_library("extensions") { +@@ -1095,7 +1095,7 @@ static_library("extensions") { ] } @@ -18,16 +18,16 @@ sources += [ "api/input_ime/input_ime_api.cc", "api/input_ime/input_ime_api.h", -@@ -1133,6 +1133,12 @@ static_library("extensions") { - defines += [ "ENABLE_HOTWORDING" ] - } +@@ -1126,6 +1126,12 @@ static_library("extensions") { + if (enable_hotwording) { + defines += [ "ENABLE_HOTWORDING" ] ++ } ++ + if (is_bsd) { + sources -= [ + "api/image_writer_private/removable_storage_provider_linux.cc", + ] -+ } -+ + } + if (enable_service_discovery) { - sources += [ - "api/mdns/dns_sd_delegate.cc", diff --git a/www/chromium/files/patch-chrome_browser_extensions_activity__log_activity__log.cc b/www/chromium/files/patch-chrome_browser_extensions_activity__log_activity__log.cc index 7de12bc..6e77c6f 100644 --- a/www/chromium/files/patch-chrome_browser_extensions_activity__log_activity__log.cc +++ b/www/chromium/files/patch-chrome_browser_extensions_activity__log_activity__log.cc @@ -1,6 +1,6 @@ ---- chrome/browser/extensions/activity_log/activity_log.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/extensions/activity_log/activity_log.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/extensions/activity_log/activity_log.cc -@@ -48,7 +48,11 @@ +@@ -50,7 +50,11 @@ #include "extensions/common/extension.h" #include "extensions/common/extension_messages.h" #include "extensions/common/one_shot_event.h" diff --git a/www/chromium/files/patch-chrome_browser_extensions_api_image__writer__private_image__writer__private__api.cc b/www/chromium/files/patch-chrome_browser_extensions_api_image__writer__private_image__writer__private__api.cc index ea797b9..47e9a49d 100644 --- a/www/chromium/files/patch-chrome_browser_extensions_api_image__writer__private_image__writer__private__api.cc +++ b/www/chromium/files/patch-chrome_browser_extensions_api_image__writer__private_image__writer__private__api.cc @@ -1,6 +1,6 @@ ---- chrome/browser/extensions/api/image_writer_private/image_writer_private_api.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/extensions/api/image_writer_private/image_writer_private_api.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/extensions/api/image_writer_private/image_writer_private_api.cc -@@ -167,10 +167,12 @@ ImageWriterPrivateListRemovableStorageDe +@@ -167,10 +167,12 @@ ImageWriterPrivateListRemovableStorageDevicesFunction: } bool ImageWriterPrivateListRemovableStorageDevicesFunction::RunAsync() { diff --git a/www/chromium/files/patch-chrome_browser_extensions_api_messaging_message__service.cc b/www/chromium/files/patch-chrome_browser_extensions_api_messaging_message__service.cc index 03706ca..88c496d 100644 --- a/www/chromium/files/patch-chrome_browser_extensions_api_messaging_message__service.cc +++ b/www/chromium/files/patch-chrome_browser_extensions_api_messaging_message__service.cc @@ -1,6 +1,6 @@ ---- chrome/browser/extensions/api/messaging/message_service.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/extensions/api/messaging/message_service.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/extensions/api/messaging/message_service.cc -@@ -106,7 +106,7 @@ MessageService::PolicyPermission Message +@@ -105,7 +105,7 @@ MessageService::PolicyPermission MessageService::IsNat const char kReceivingEndDoesntExistError[] = "Could not establish connection. Receiving end does not exist."; @@ -9,7 +9,7 @@ const char kMissingPermissionError[] = "Access to native messaging requires nativeMessaging permission."; const char kProhibitedByPoliciesError[] = -@@ -383,7 +383,7 @@ void MessageService::OpenChannelToNative +@@ -383,7 +383,7 @@ void MessageService::OpenChannelToNativeApp( if (!source) return; @@ -18,7 +18,7 @@ content::WebContents* web_contents = content::WebContents::FromRenderFrameHost(source); ExtensionWebContentsObserver* extension_web_contents_observer = -@@ -446,12 +446,12 @@ void MessageService::OpenChannelToNative +@@ -446,12 +446,12 @@ void MessageService::OpenChannelToNativeApp( channel->opener->IncrementLazyKeepaliveCount(); AddChannel(std::move(channel), receiver_port_id); diff --git a/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc b/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc index 9c87dd5..05b8bfc 100644 --- a/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc +++ b/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc @@ -1,6 +1,6 @@ ---- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/extensions/api/settings_private/prefs_util.cc -@@ -83,7 +83,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil +@@ -84,7 +84,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist settings_private::PrefType::PREF_TYPE_BOOLEAN; (*s_whitelist)[bookmarks::prefs::kShowBookmarkBar] = settings_private::PrefType::PREF_TYPE_BOOLEAN; @@ -9,7 +9,7 @@ (*s_whitelist)[::prefs::kUseCustomChromeFrame] = settings_private::PrefType::PREF_TYPE_BOOLEAN; #endif -@@ -93,7 +93,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil +@@ -94,7 +94,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist // Appearance settings. (*s_whitelist)[::prefs::kCurrentThemeID] = settings_private::PrefType::PREF_TYPE_STRING; diff --git a/www/chromium/files/patch-chrome_browser_extensions_api_webrtc__audio__private_webrtc__audio__private__api.cc b/www/chromium/files/patch-chrome_browser_extensions_api_webrtc__audio__private_webrtc__audio__private__api.cc new file mode 100644 index 0000000..10bbfa5 --- /dev/null +++ b/www/chromium/files/patch-chrome_browser_extensions_api_webrtc__audio__private_webrtc__audio__private__api.cc @@ -0,0 +1,13 @@ +--- chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc.orig 2017-06-05 19:03:02 UTC ++++ chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc +@@ -563,7 +563,10 @@ bool WebrtcAudioPrivateSetAudioExperimentsFunction::Ru + return false; + } + ++#if BUILDFLAG(ENABLE_WEBRTC) ++ // To workaround side effect of having 'enable_webrtc=false' + host->SetEchoCanceller3(*params->audio_experiments.enable_aec3); ++#endif + } + + SendResponse(true); diff --git a/www/chromium/files/patch-chrome_browser_extensions_bookmark__app__helper.cc b/www/chromium/files/patch-chrome_browser_extensions_bookmark__app__helper.cc index 9a5eb09..59f7816 100644 --- a/www/chromium/files/patch-chrome_browser_extensions_bookmark__app__helper.cc +++ b/www/chromium/files/patch-chrome_browser_extensions_bookmark__app__helper.cc @@ -1,6 +1,6 @@ ---- chrome/browser/extensions/bookmark_app_helper.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/extensions/bookmark_app_helper.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/extensions/bookmark_app_helper.cc -@@ -721,7 +721,7 @@ void BookmarkAppHelper::FinishInstallati +@@ -721,7 +721,7 @@ void BookmarkAppHelper::FinishInstallation(const Exten #if !defined(OS_MACOSX) #if !defined(USE_ASH) web_app::ShortcutLocations creation_locations; diff --git a/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc b/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc index 4876024..b8487ad 100644 --- a/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc +++ b/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc @@ -1,4 +1,4 @@ ---- chrome/browser/extensions/browser_context_keyed_service_factories.cc.orig 2017-05-02 19:02:47 UTC +--- chrome/browser/extensions/browser_context_keyed_service_factories.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/extensions/browser_context_keyed_service_factories.cc @@ -63,7 +63,7 @@ #include "chrome/browser/chromeos/extensions/media_player_api.h" @@ -9,7 +9,7 @@ #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" #endif -@@ -107,7 +107,7 @@ void EnsureBrowserContextKeyedServiceFac +@@ -107,7 +107,7 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() #if defined(OS_CHROMEOS) extensions::InputImeAPI::GetFactoryInstance(); extensions::InputMethodAPI::GetFactoryInstance(); diff --git a/www/chromium/files/patch-chrome_browser_extensions_external__provider__impl.cc b/www/chromium/files/patch-chrome_browser_extensions_external__provider__impl.cc index 253b102..f9b8ba3 100644 --- a/www/chromium/files/patch-chrome_browser_extensions_external__provider__impl.cc +++ b/www/chromium/files/patch-chrome_browser_extensions_external__provider__impl.cc @@ -1,6 +1,6 @@ ---- chrome/browser/extensions/external_provider_impl.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/extensions/external_provider_impl.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/extensions/external_provider_impl.cc -@@ -638,7 +638,7 @@ void ExternalProviderImpl::CreateExterna +@@ -655,7 +655,7 @@ void ExternalProviderImpl::CreateExternalProviders( Manifest::EXTERNAL_PREF, Manifest::EXTERNAL_PREF_DOWNLOAD, oem_extension_creation_flags)); } @@ -9,7 +9,7 @@ if (!profile->IsLegacySupervised()) { provider_list->push_back(base::MakeUnique( service, -@@ -664,7 +664,7 @@ void ExternalProviderImpl::CreateExterna +@@ -681,7 +681,7 @@ void ExternalProviderImpl::CreateExternalProviders( bundled_extension_creation_flags)); // Define a per-user source of external extensions. diff --git a/www/chromium/files/patch-chrome_browser_flag__descriptions.cc b/www/chromium/files/patch-chrome_browser_flag__descriptions.cc new file mode 100644 index 0000000..08734e1 --- /dev/null +++ b/www/chromium/files/patch-chrome_browser_flag__descriptions.cc @@ -0,0 +1,19 @@ +--- chrome/browser/flag_descriptions.cc.orig 2017-06-05 19:03:02 UTC ++++ chrome/browser/flag_descriptions.cc +@@ -1598,14 +1598,14 @@ const char kForceUiDirectionLtr[] = "Left-to-right"; + + const char kForceUiDirectionRtl[] = "Right-to-left"; + +-#if defined(OS_WIN) || defined(OS_LINUX) ++#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) + + const char kEnableInputImeApiName[] = "Enable Input IME API"; + + const char kEnableInputImeApiDescription[] = + "Enable the use of chrome.input.ime API."; + +-#endif // defined(OS_WIN) || defined(OS_LINUX) ++#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) + + const char kEnableGroupedHistoryName[] = "Group history by domain"; + diff --git a/www/chromium/files/patch-chrome_browser_flag__descriptions.h b/www/chromium/files/patch-chrome_browser_flag__descriptions.h new file mode 100644 index 0000000..ad08074 --- /dev/null +++ b/www/chromium/files/patch-chrome_browser_flag__descriptions.h @@ -0,0 +1,20 @@ +--- chrome/browser/flag_descriptions.h.orig 2017-06-05 19:03:02 UTC ++++ chrome/browser/flag_descriptions.h +@@ -1754,7 +1754,7 @@ extern const char kForceUiDirectionLtr[]; + // Name for the option to force right-to-left UI direction mode. + extern const char kForceUiDirectionRtl[]; + +-#if defined(OS_WIN) || defined(OS_LINUX) ++#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) + + // Name of the flag to enable che chrome.input.ime API. + extern const char kEnableInputImeApiName[]; +@@ -1762,7 +1762,7 @@ extern const char kEnableInputImeApiName[]; + // Description of the flag to enable the chrome.input.ime API. + extern const char kEnableInputImeApiDescription[]; + +-#endif // defined(OS_WIN) || defined(OS_LINUX) ++#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) + + // Enables grouping websites by domain on chrome://history. + extern const char kEnableGroupedHistoryName[]; diff --git a/www/chromium/files/patch-chrome_browser_interstitials_chrome__controller__client.cc b/www/chromium/files/patch-chrome_browser_interstitials_chrome__controller__client.cc index 0a8e0dd..a2aca14 100644 --- a/www/chromium/files/patch-chrome_browser_interstitials_chrome__controller__client.cc +++ b/www/chromium/files/patch-chrome_browser_interstitials_chrome__controller__client.cc @@ -1,6 +1,6 @@ ---- chrome/browser/interstitials/chrome_controller_client.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/interstitials/chrome_controller_client.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/interstitials/chrome_controller_client.cc -@@ -46,7 +46,7 @@ void LaunchDateAndTimeSettingsOnFileThre +@@ -46,7 +46,7 @@ void LaunchDateAndTimeSettingsOnFileThread() { #if defined(OS_ANDROID) chrome::android::OpenDateAndTimeSettings(); @@ -9,7 +9,7 @@ struct ClockCommand { const char* const pathname; const char* const argument; -@@ -131,7 +131,7 @@ ChromeControllerClient::~ChromeControlle +@@ -131,7 +131,7 @@ ChromeControllerClient::~ChromeControllerClient() {} bool ChromeControllerClient::CanLaunchDateAndTimeSettings() { #if defined(OS_ANDROID) || defined(OS_CHROMEOS) || defined(OS_LINUX) || \ diff --git a/www/chromium/files/patch-chrome_browser_media__galleries_fileapi_mtp__device__map__service.cc b/www/chromium/files/patch-chrome_browser_media__galleries_fileapi_mtp__device__map__service.cc index b768a3c..f12c6ab 100644 --- a/www/chromium/files/patch-chrome_browser_media__galleries_fileapi_mtp__device__map__service.cc +++ b/www/chromium/files/patch-chrome_browser_media__galleries_fileapi_mtp__device__map__service.cc @@ -1,6 +1,6 @@ ---- chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc -@@ -37,10 +37,12 @@ void MTPDeviceMapService::RegisterMTPFil +@@ -37,10 +37,12 @@ void MTPDeviceMapService::RegisterMTPFileSystem( // Note that this initializes the delegate asynchronously, but since // the delegate will only be used from the IO thread, it is guaranteed // to be created before use of it expects it to be there. diff --git a/www/chromium/files/patch-chrome_browser_media__galleries_media__file__system__registry.cc b/www/chromium/files/patch-chrome_browser_media__galleries_media__file__system__registry.cc index 0806713..b222bbb 100644 --- a/www/chromium/files/patch-chrome_browser_media__galleries_media__file__system__registry.cc +++ b/www/chromium/files/patch-chrome_browser_media__galleries_media__file__system__registry.cc @@ -1,6 +1,6 @@ ---- chrome/browser/media_galleries/media_file_system_registry.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/media_galleries/media_file_system_registry.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/media_galleries/media_file_system_registry.cc -@@ -758,7 +758,10 @@ class MediaFileSystemRegistry::MediaFile +@@ -758,7 +758,10 @@ 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/files/patch-chrome_browser_memory__details.cc b/www/chromium/files/patch-chrome_browser_memory__details.cc index 760e08c..0ff492b 100644 --- a/www/chromium/files/patch-chrome_browser_memory__details.cc +++ b/www/chromium/files/patch-chrome_browser_memory__details.cc @@ -1,4 +1,4 @@ ---- chrome/browser/memory_details.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/memory_details.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/memory_details.cc @@ -35,7 +35,7 @@ #include "extensions/features/features.h" @@ -9,7 +9,7 @@ #include "content/public/browser/zygote_host_linux.h" #endif -@@ -337,7 +337,7 @@ void MemoryDetails::CollectChildInfoOnUI +@@ -344,7 +344,7 @@ void MemoryDetails::CollectChildInfoOnUIThread() { process.titles.push_back(title); } diff --git a/www/chromium/files/patch-chrome_browser_memory__details__linux.cc b/www/chromium/files/patch-chrome_browser_memory__details__linux.cc new file mode 100644 index 0000000..e7bc28c --- /dev/null +++ b/www/chromium/files/patch-chrome_browser_memory__details__linux.cc @@ -0,0 +1,14 @@ +--- chrome/browser/memory_details_linux.cc.orig 2017-06-05 19:03:02 UTC ++++ chrome/browser/memory_details_linux.cc +@@ -71,9 +71,10 @@ ProcessData GetProcessDataMemoryInformation( + std::unique_ptr metrics( + base::ProcessMetrics::CreateProcessMetrics(pid)); + metrics->GetWorkingSetKBytes(&pmi.working_set); ++#if !defined(OS_BSD) + pmi.num_open_fds = metrics->GetOpenFdCount(); + pmi.open_fds_soft_limit = metrics->GetOpenFdSoftLimit(); +- ++#endif + process_data.processes.push_back(pmi); + } + return process_data; diff --git a/www/chromium/files/patch-chrome_browser_metrics_chrome__browser__main__extra__parts__metrics.cc b/www/chromium/files/patch-chrome_browser_metrics_chrome__browser__main__extra__parts__metrics.cc index ddb0520..643b452 100644 --- a/www/chromium/files/patch-chrome_browser_metrics_chrome__browser__main__extra__parts__metrics.cc +++ b/www/chromium/files/patch-chrome_browser_metrics_chrome__browser__main__extra__parts__metrics.cc @@ -1,6 +1,6 @@ ---- chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc -@@ -42,12 +42,14 @@ +@@ -39,12 +39,14 @@ #if defined(OS_LINUX) && !defined(OS_CHROMEOS) #include diff --git a/www/chromium/files/patch-chrome_browser_net_async__dns__field__trial.cc b/www/chromium/files/patch-chrome_browser_net_async__dns__field__trial.cc index d3bfbb0..28e794f 100644 --- a/www/chromium/files/patch-chrome_browser_net_async__dns__field__trial.cc +++ b/www/chromium/files/patch-chrome_browser_net_async__dns__field__trial.cc @@ -1,6 +1,6 @@ ---- chrome/browser/net/async_dns_field_trial.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/net/async_dns_field_trial.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/net/async_dns_field_trial.cc -@@ -61,7 +61,7 @@ void HistogramPrefSource(PrefSource sour +@@ -61,7 +61,7 @@ void HistogramPrefSource(PrefSource source, bool enabl } // namespace bool ConfigureAsyncDnsFieldTrial() { diff --git a/www/chromium/files/patch-chrome_browser_notifications_message__center__notification__manager.cc b/www/chromium/files/patch-chrome_browser_notifications_message__center__notification__manager.cc index d96e823..8ab783c 100644 --- a/www/chromium/files/patch-chrome_browser_notifications_message__center__notification__manager.cc +++ b/www/chromium/files/patch-chrome_browser_notifications_message__center__notification__manager.cc @@ -1,6 +1,6 @@ ---- chrome/browser/notifications/message_center_notification_manager.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/notifications/message_center_notification_manager.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/notifications/message_center_notification_manager.cc -@@ -63,7 +63,7 @@ MessageCenterNotificationManager::Messag +@@ -62,7 +62,7 @@ MessageCenterNotificationManager::MessageCenterNotific base::MakeUnique(message_center)); #if defined(OS_WIN) || defined(OS_MACOSX) \ diff --git a/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc b/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc index beef5ef..2f74947 100644 --- a/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc +++ b/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc @@ -1,14 +1,14 @@ ---- chrome/browser/password_manager/chrome_password_manager_client.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/password_manager/chrome_password_manager_client.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/password_manager/chrome_password_manager_client.cc -@@ -62,7 +62,11 @@ +@@ -63,7 +63,11 @@ + #include "extensions/features/features.h" + #include "google_apis/gaia/gaia_urls.h" #include "net/base/url_util.h" - #include "net/http/transport_security_state.h" - #include "net/url_request/url_request_context.h" +#if defined(OS_BSD) +#include +#else #include "third_party/re2/src/re2/re2.h" +#endif - #if defined(OS_ANDROID) - #include "chrome/browser/android/tab_android.h" + #if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE) + #include "chrome/browser/browser_process.h" diff --git a/www/chromium/files/patch-chrome_browser_plugins_plugins__resource__service.cc b/www/chromium/files/patch-chrome_browser_plugins_plugins__resource__service.cc index 713560d..fd93190 100644 --- a/www/chromium/files/patch-chrome_browser_plugins_plugins__resource__service.cc +++ b/www/chromium/files/patch-chrome_browser_plugins_plugins__resource__service.cc @@ -1,9 +1,9 @@ ---- chrome/browser/plugins/plugins_resource_service.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/plugins/plugins_resource_service.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/plugins/plugins_resource_service.cc -@@ -31,7 +31,7 @@ GURL GetPluginsServerURL() { - std::string filename; - #if defined(OS_WIN) +@@ -59,7 +59,7 @@ GURL GetPluginsServerURL() { filename = "plugins_win.json"; + #elif defined(OS_CHROMEOS) + filename = "plugins_chromeos.json"; -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) filename = "plugins_linux.json"; diff --git a/www/chromium/files/patch-chrome_browser_policy_policy__prefs__browsertest.cc b/www/chromium/files/patch-chrome_browser_policy_policy__prefs__browsertest.cc index 1b61eb9..02457cb 100644 --- a/www/chromium/files/patch-chrome_browser_policy_policy__prefs__browsertest.cc +++ b/www/chromium/files/patch-chrome_browser_policy_policy__prefs__browsertest.cc @@ -1,6 +1,6 @@ ---- chrome/browser/policy/policy_prefs_browsertest.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/policy/policy_prefs_browsertest.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/policy/policy_prefs_browsertest.cc -@@ -180,6 +180,8 @@ class PolicyTestCase { +@@ -181,6 +181,8 @@ class PolicyTestCase { const std::string os("chromeos"); #elif defined(OS_LINUX) const std::string os("linux"); diff --git a/www/chromium/files/patch-chrome_browser_process__singleton__posix.cc b/www/chromium/files/patch-chrome_browser_process__singleton__posix.cc index f6752e3..91f3b0a 100644 --- a/www/chromium/files/patch-chrome_browser_process__singleton__posix.cc +++ b/www/chromium/files/patch-chrome_browser_process__singleton__posix.cc @@ -1,4 +1,4 @@ ---- chrome/browser/process_singleton_posix.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/process_singleton_posix.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/process_singleton_posix.cc @@ -93,11 +93,11 @@ #include "net/base/network_interfaces.h" @@ -14,7 +14,7 @@ #include "ui/views/linux_ui/linux_ui.h" #endif -@@ -321,7 +321,7 @@ bool DisplayProfileInUseError(const base +@@ -322,7 +322,7 @@ bool DisplayProfileInUseError(const base::FilePath& lo if (g_disable_prompt) return false; @@ -23,7 +23,7 @@ base::string16 relaunch_button_text = l10n_util::GetStringUTF16( IDS_PROFILE_IN_USE_LINUX_RELAUNCH); return ShowProcessSingletonDialog(error, relaunch_button_text); -@@ -855,7 +855,7 @@ ProcessSingleton::NotifyResult ProcessSi +@@ -866,7 +866,7 @@ ProcessSingleton::NotifyResult ProcessSingleton::Notif // The other process is shutting down, it's safe to start a new process. return PROCESS_NONE; } else if (strncmp(buf, kACKToken, arraysize(kACKToken) - 1) == 0) { diff --git a/www/chromium/files/patch-chrome_browser_profiles_profile__impl__io__data.cc b/www/chromium/files/patch-chrome_browser_profiles_profile__impl__io__data.cc index ab79228..eaee8d6 100644 --- a/www/chromium/files/patch-chrome_browser_profiles_profile__impl__io__data.cc +++ b/www/chromium/files/patch-chrome_browser_profiles_profile__impl__io__data.cc @@ -1,6 +1,6 @@ ---- chrome/browser/profiles/profile_impl_io_data.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/profiles/profile_impl_io_data.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/profiles/profile_impl_io_data.cc -@@ -103,7 +103,7 @@ net::BackendType ChooseCacheBackendType( +@@ -100,7 +100,7 @@ net::BackendType ChooseCacheBackendType() { } #endif // #if !defined(OS_ANDROID) diff --git a/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc b/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc index 139aab7..18dfbfe 100644 --- a/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc +++ b/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc @@ -1,6 +1,6 @@ ---- chrome/browser/renderer_context_menu/render_view_context_menu.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/renderer_context_menu/render_view_context_menu.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/renderer_context_menu/render_view_context_menu.cc -@@ -1390,7 +1390,7 @@ void RenderViewContextMenu::AppendEditab +@@ -1376,7 +1376,7 @@ void RenderViewContextMenu::AppendEditableItems() { // 'Undo' and 'Redo' for text input with no suggestions and no text selected. // We make an exception for OS X as context clicking will select the closest // word. In this case both items are always shown. @@ -9,7 +9,7 @@ menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_UNDO, IDS_CONTENT_CONTEXT_UNDO); menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_REDO, -@@ -1428,7 +1428,7 @@ void RenderViewContextMenu::AppendLangua +@@ -1414,7 +1414,7 @@ void RenderViewContextMenu::AppendLanguageSettings() { if (!use_spelling) return; @@ -18,7 +18,7 @@ menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS, IDS_CONTENT_CONTEXT_LANGUAGE_SETTINGS); #else -@@ -1666,7 +1666,7 @@ bool RenderViewContextMenu::IsCommandIdE +@@ -1648,7 +1648,7 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) case IDC_CHECK_SPELLING_WHILE_TYPING: return prefs->GetBoolean(spellcheck::prefs::kEnableSpellcheck); diff --git a/www/chromium/files/patch-chrome_browser_renderer__preferences__util.cc b/www/chromium/files/patch-chrome_browser_renderer__preferences__util.cc index e7ba736..7f72ec7 100644 --- a/www/chromium/files/patch-chrome_browser_renderer__preferences__util.cc +++ b/www/chromium/files/patch-chrome_browser_renderer__preferences__util.cc @@ -1,4 +1,4 @@ ---- chrome/browser/renderer_preferences_util.cc.orig 2017-04-19 19:06:29 UTC +--- chrome/browser/renderer_preferences_util.cc.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/renderer_preferences_util.cc @@ -20,7 +20,7 @@ #include "third_party/WebKit/public/public_features.h" @@ -18,7 +18,7 @@ #include "chrome/browser/themes/theme_service.h" #include "chrome/browser/themes/theme_service_factory.h" #include "ui/views/linux_ui/linux_ui.h" -@@ -134,7 +134,7 @@ void UpdateFromSystemSettings(content::R +@@ -134,7 +134,7 @@ void UpdateFromSystemSettings(content::RendererPrefere prefs->caret_blink_interval = interval.InSecondsF(); #endif @@ -27,7 +27,7 @@ views::LinuxUI* linux_ui = views::LinuxUI::instance(); if (linux_ui) { if (ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme()) { -@@ -156,7 +156,7 @@ void UpdateFromSystemSettings(content::R +@@ -156,7 +156,7 @@ void UpdateFromSystemSettings(content::RendererPrefere } #endif diff --git a/www/chromium/files/patch-chrome_browser_resources_safe__browsing_gen__file__type__proto.py b/www/chromium/files/patch-chrome_browser_resources_safe__browsing_gen__file__type__proto.py index 45859bf..d63c069 100644 --- a/www/chromium/files/patch-chrome_browser_resources_safe__browsing_gen__file__type__proto.py +++ b/www/chromium/files/patch-chrome_browser_resources_safe__browsing_gen__file__type__proto.py @@ -1,4 +1,4 @@ ---- chrome/browser/resources/safe_browsing/gen_file_type_proto.py.orig 2017-04-19 19:06:30 UTC +--- chrome/browser/resources/safe_browsing/gen_file_type_proto.py.orig 2017-06-05 19:03:02 UTC +++ chrome/browser/resources/safe_browsing/gen_file_type_proto.py @@ -31,6 +31,7 @@ def PlatformTypes(): "android": download_file_types_pb2.DownloadFileType.PLATFORM_ANDROID, @@ -8,7 +8,7 @@ "mac": download_file_types_pb2.DownloadFileType.PLATFORM_MAC, "win": download_file_types_pb2.DownloadFileType.PLATFORM_WINDOWS, } -@@ -169,7 +170,7 @@ class DownloadFileTypeProtoGenerator(Bin +@@ -169,7 +170,7 @@ class DownloadFileTypeProtoGenerator(BinaryProtoGenera 'Outfile must have a %d for version and %s for platform.') parser.add_option('-t', '--type', help='The platform type. One of android, chromeos, ' + diff --git a/www/chromium/files/patch-chrome_browser_resources_settings_appearance__page_appearance__page.html b/www/chromium/files/patch-chrome_browser_resources_settings_appearance__page_appearance__page.html new file mode 100644 index 0000000..11fe4b5 --- /dev/null +++ b/www/chromium/files/patch-chrome_browser_resources_settings_appearance__page_appearance__page.html @@ -0,0 +1,29 @@ +--- chrome/browser/resources/settings/appearance_page/appearance_page.html.orig 2017-06-05 19:03:02 UTC ++++ chrome/browser/resources/settings/appearance_page/appearance_page.html +@@ -72,7 +72,7 @@ + aria-label="$i18n{themes}" + aria-describedby="themesSecondary"> + +- ++ + + +- ++ +