Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Nov 2016 19:10:22 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r426855 - in head/www/chromium: . files
Message-ID:  <201611221910.uAMJAMW8099177@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Tue Nov 22 19:10:21 2016
New Revision: 426855
URL: https://svnweb.freebsd.org/changeset/ports/426855

Log:
  www/chromium: update to 54.0.2840.100
  
  Submitted by:	clutton <clutton@zoho.com>
  Reviewed by:	cpm, rene
  Obtained from:	https://github.com/paranormal/
  MFH:		2016Q4
  Security:        https://vuxml.freebsd.org/freebsd/769ba449-79e1-11e6-bf75-3065ec8fd3ec.html
  Security:        https://vuxml.freebsd.org/freebsd/653a8059-7c49-11e6-9242-3065ec8fd3ec.html
  Security:        https://vuxml.freebsd.org/freebsd/9c135c7e-9fa4-11e6-a265-3065ec8fd3ec.html
  Security:        https://vuxml.freebsd.org/freebsd/9118961b-9fa5-11e6-a265-3065ec8fd3ec.html
  Security:        https://vuxml.freebsd.org/freebsd/ae9cb9b8-a203-11e6-a265-3065ec8fd3ec.html
  Security:        https://vuxml.freebsd.org/freebsd/a3473f5a-a739-11e6-afaa-e8e0b747a45a.html
  Differential Revision:	https://reviews.freebsd.org/D8517

Added:
  head/www/chromium/files/extra-patch-10   (contents, props changed)
  head/www/chromium/files/patch-BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-base_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-base_allocator_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-base_allocator_allocator__shim__default__dispatch__to__glibc.cc   (contents, props changed)
  head/www/chromium/files/patch-base_allocator_allocator__shim__override__libc__symbols.h   (contents, props changed)
  head/www/chromium/files/patch-base_allocator_allocator__shim__unittest.cc   (contents, props changed)
  head/www/chromium/files/patch-base_debug_proc__maps__linux.cc   (contents, props changed)
  head/www/chromium/files/patch-base_files_file__path__unittest.cc   (contents, props changed)
  head/www/chromium/files/patch-base_files_file__util.h   (contents, props changed)
  head/www/chromium/files/patch-base_linux__util.cc   (contents, props changed)
  head/www/chromium/files/patch-base_native__library__posix.cc   (contents, props changed)
  head/www/chromium/files/patch-base_process_launch__posix.cc   (contents, props changed)
  head/www/chromium/files/patch-base_process_memory.h   (contents, props changed)
  head/www/chromium/files/patch-base_process_process__handle__freebsd.cc   (contents, props changed)
  head/www/chromium/files/patch-base_profiler_stack__sampling__profiler__unittest.cc   (contents, props changed)
  head/www/chromium/files/patch-base_test_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-base_test_test__file__util__posix.cc   (contents, props changed)
  head/www/chromium/files/patch-base_third__party_libevent_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-base_trace__event_malloc__dump__provider.cc   (contents, props changed)
  head/www/chromium/files/patch-breakpad_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-build_config_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-build_config_BUILDCONFIG.gn   (contents, props changed)
  head/www/chromium/files/patch-build_config_allocator.gni   (contents, props changed)
  head/www/chromium/files/patch-build_config_clang_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-build_config_compiler_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-build_config_crypto.gni   (contents, props changed)
  head/www/chromium/files/patch-build_config_features.gni   (contents, props changed)
  head/www/chromium/files/patch-build_config_linux_gtk2_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-build_config_linux_gtk3_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-build_config_linux_pkg-config.py   (contents, props changed)
  head/www/chromium/files/patch-build_config_sanitizers_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-build_config_sanitizers_sanitizers.gni   (contents, props changed)
  head/www/chromium/files/patch-build_config_ui.gni   (contents, props changed)
  head/www/chromium/files/patch-build_linux_libpci_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-build_secondary_third__party_nss_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-build_toolchain_gcc__toolchain.gni   (contents, props changed)
  head/www/chromium/files/patch-build_toolchain_get__concurrent__links.py   (contents, props changed)
  head/www/chromium/files/patch-chrome_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chrome_app_chrome__command__ids.h   (contents, props changed)
  head/www/chromium/files/patch-chrome_browser_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chrome_browser_browser__process__impl.cc   (contents, props changed)
  head/www/chromium/files/patch-chrome_browser_browser__process__impl.h   (contents, props changed)
  head/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chrome_browser_resources_safe__browsing_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chrome_browser_safe__browsing_permission__reporter.cc   (contents, props changed)
  head/www/chromium/files/patch-chrome_browser_ui_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chrome_browser_ui_libgtk2ui_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chrome_common_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chrome_common_extensions_api_schemas.gni   (contents, props changed)
  head/www/chromium/files/patch-chrome_common_features.gni   (contents, props changed)
  head/www/chromium/files/patch-chrome_common_variations_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chrome_test_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chromecast_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chromecast_browser_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chromecast_browser_metrics_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-chromecast_crash_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-components_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-components_content__settings_core_browser_website__settings__registry.cc   (contents, props changed)
  head/www/chromium/files/patch-components_content__settings_core_browser_website__settings__registry.h   (contents, props changed)
  head/www/chromium/files/patch-components_crash_content_app_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-components_crash_content_browser_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-components_gcm__driver_gcm__client.h   (contents, props changed)
  head/www/chromium/files/patch-components_gcm__driver_gcm__client__impl.cc   (contents, props changed)
  head/www/chromium/files/patch-components_metrics_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-components_os__crypt_os__crypt.h   (contents, props changed)
  head/www/chromium/files/patch-components_plugins_renderer_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-components_policy_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-components_storage__monitor_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-components_sync_base_get__session__name__linux.cc   (contents, props changed)
  head/www/chromium/files/patch-components_variations_proto_study.proto   (contents, props changed)
  head/www/chromium/files/patch-content_app_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-content_browser_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-content_browser_device__sensors_data__fetcher__shared__memory.h   (contents, props changed)
  head/www/chromium/files/patch-content_browser_devtools_protocol_color__picker.cc   (contents, props changed)
  head/www/chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.h   (contents, props changed)
  head/www/chromium/files/patch-content_browser_gpu_gpu__process__host.cc   (contents, props changed)
  head/www/chromium/files/patch-content_browser_media_media__internals.cc   (contents, props changed)
  head/www/chromium/files/patch-content_browser_renderer__host_media_video__capture__device__client.cc   (contents, props changed)
  head/www/chromium/files/patch-content_browser_tracing_tracing__controller__impl.cc   (contents, props changed)
  head/www/chromium/files/patch-content_common_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-content_gpu_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-content_public_common_child__process__host.h   (contents, props changed)
  head/www/chromium/files/patch-content_shell_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-content_test_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-device_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-device_battery_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-device_geolocation_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-device_geolocation_location__arbitrator__impl.cc   (contents, props changed)
  head/www/chromium/files/patch-device_hid_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-device_media__transfer__protocol_media__transfer__protocol__manager.h   (contents, props changed)
  head/www/chromium/files/patch-device_serial_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-extensions_browser_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-gpu_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-gpu_config_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-gpu_gles2__conform__support_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-gpu_gles2__conform__support_native_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-gpu_ipc_client_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-gpu_ipc_service_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-gpu_tools_compositor__model__bench_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-gpu_vulkan_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-ipc_ipc__channel.h   (contents, props changed)
  head/www/chromium/files/patch-ipc_ipc__channel__posix.cc   (contents, props changed)
  head/www/chromium/files/patch-ipc_ipc__channel__posix.h   (contents, props changed)
  head/www/chromium/files/patch-media_audio_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-media_base_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-media_capture_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-media_cast_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-media_cdm_ppapi_ppapi__cdm__adapter.gni   (contents, props changed)
  head/www/chromium/files/patch-mojo_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-mojo_edk_test_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-native__client__sdk_src_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-net_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-net_base_network__change__notifier.h   (contents, props changed)
  head/www/chromium/files/patch-ppapi_tests_extensions_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-printing_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-printing_cups__config__helper.py   (contents, props changed)
  head/www/chromium/files/patch-remoting_host_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-sdch_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-services_shell_standalone_context.cc   (contents, props changed)
  head/www/chromium/files/patch-services_ui_ws_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-skia_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_WebKit_Source_core_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_WebKit_Source_platform_fonts_SimpleFontData.cpp   (contents, props changed)
  head/www/chromium/files/patch-third__party_WebKit_Source_web_PopupMenuImpl.cpp   (contents, props changed)
  head/www/chromium/files/patch-third__party_WebKit_Source_wtf_Assertions.cpp   (contents, props changed)
  head/www/chromium/files/patch-third__party_WebKit_Source_wtf_Atomics.h   (contents, props changed)
  head/www/chromium/files/patch-third__party_WebKit_Source_wtf_ContainerAnnotations.h   (contents, props changed)
  head/www/chromium/files/patch-third__party_WebKit_Source_wtf_ThreadingPthreads.cpp   (contents, props changed)
  head/www/chromium/files/patch-third__party_angle_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_angle_build_angle__common.gni   (contents, props changed)
  head/www/chromium/files/patch-third__party_angle_src_tests_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_boringssl_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_boringssl_src_crypto_ex__data.c   (contents, props changed)
  head/www/chromium/files/patch-third__party_cython_rules.gni   (contents, props changed)
  head/www/chromium/files/patch-third__party_expat_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_ffmpeg_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_fontconfig_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_freetype2_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_glslang_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_harfbuzz-ng_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_libusb_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_libxml_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_libxslt_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_mesa_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_minigbm_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_opus_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_pdfium_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_pdfium_skia_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_sqlite_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_usrsctp_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_webrtc_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_webrtc_base_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_webrtc_modules_audio__device_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_webrtc_modules_video__coding_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_webrtc_system__wrappers_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_webrtc_system__wrappers_source_atomic32__non__darwin__unix.cc   (contents, props changed)
  head/www/chromium/files/patch-third__party_widevine_cdm_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_yasm_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-third__party_zlib_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-tools_battor__agent_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-tools_gn_args.cc   (contents, props changed)
  head/www/chromium/files/patch-tools_gn_bootstrap_bootstrap.py   (contents, props changed)
  head/www/chromium/files/patch-tools_gn_gn__unittests.isolate   (contents, props changed)
  head/www/chromium/files/patch-ui_app__list_views_app__list__item__view.cc   (contents, props changed)
  head/www/chromium/files/patch-ui_aura_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-ui_base_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-ui_base_ime_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-ui_base_ui__features.gni   (contents, props changed)
  head/www/chromium/files/patch-ui_compositor_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-ui_gfx_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-ui_gl_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-ui_views_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-ui_views_controls_webview_BUILD.gn   (contents, props changed)
  head/www/chromium/files/patch-v8_BUILD.gn   (contents, props changed)
Deleted:
  head/www/chromium/files/extra-patch-fixup-ffmpeg
  head/www/chromium/files/extra-patch-libusb-pc
  head/www/chromium/files/patch-base_base.gyp
  head/www/chromium/files/patch-base_base.gypi
  head/www/chromium/files/patch-base_process_memory.cc
  head/www/chromium/files/patch-base_third__party_libevent_libevent.gyp
  head/www/chromium/files/patch-base_threading_platform__thread__linux.cc
  head/www/chromium/files/patch-build_common.gypi
  head/www/chromium/files/patch-build_filename__rules.gypi
  head/www/chromium/files/patch-build_linux_system.gyp
  head/www/chromium/files/patch-build_linux_unbundle_libwebp.gyp
  head/www/chromium/files/patch-chrome_browser_browser__resources.grd
  head/www/chromium/files/patch-chrome_browser_extensions_window__open__apitest.cc
  head/www/chromium/files/patch-chrome_browser_ui_panels_panel__manager.cc
  head/www/chromium/files/patch-chrome_browser_ui_views_panels_panel__frame__view.cc
  head/www/chromium/files/patch-chrome_chrome__browser.gypi
  head/www/chromium/files/patch-chrome_chrome__browser__extensions.gypi
  head/www/chromium/files/patch-chrome_chrome__browser__ui.gypi
  head/www/chromium/files/patch-chrome_chrome__common.gypi
  head/www/chromium/files/patch-chrome_chrome__exe.gypi
  head/www/chromium/files/patch-chrome_chrome__resources.gyp
  head/www/chromium/files/patch-chrome_common_component__flash__hint__file__linux.h
  head/www/chromium/files/patch-chrome_common_extensions_api_schemas.gypi
  head/www/chromium/files/patch-chrome_common_variations_fieldtrial__testing__config.gyp
  head/www/chromium/files/patch-components_dom__distiller_core_page__features.cc
  head/www/chromium/files/patch-components_storage__monitor.gypi
  head/www/chromium/files/patch-content_browser_geolocation_location__arbitrator__impl.cc
  head/www/chromium/files/patch-content_browser_geolocation_wifi__data__provider__freebsd.cc
  head/www/chromium/files/patch-content_browser_geolocation_wifi__data__provider__freebsd.h
  head/www/chromium/files/patch-content_browser_indexed__db_indexed__db__backing__store.cc
  head/www/chromium/files/patch-content_content__browser.gypi
  head/www/chromium/files/patch-content_content__common.gypi
  head/www/chromium/files/patch-content_content__tests.gypi
  head/www/chromium/files/patch-content_renderer_media_webrtc__audio__renderer.cc
  head/www/chromium/files/patch-device_hid_hid.gyp
  head/www/chromium/files/patch-device_serial_serial.gyp
  head/www/chromium/files/patch-device_usb_usb.gyp
  head/www/chromium/files/patch-gpu_gpu__config.gypi
  head/www/chromium/files/patch-gpu_gpu__ipc__service.gypi
  head/www/chromium/files/patch-media_base_audio__splicer.cc
  head/www/chromium/files/patch-media_capture_video_video__capture__device.cc
  head/www/chromium/files/patch-media_capture_video_video__capture__device.h
  head/www/chromium/files/patch-media_filters_decrypting__audio__decoder.cc
  head/www/chromium/files/patch-media_media.gyp
  head/www/chromium/files/patch-native__client_build_common.gypi
  head/www/chromium/files/patch-native__client_src_shared_platform_platform.gyp
  head/www/chromium/files/patch-net_base_address__tracker__linux.cc
  head/www/chromium/files/patch-net_dns_dns__session.cc
  head/www/chromium/files/patch-net_net.gyp
  head/www/chromium/files/patch-net_net.gypi
  head/www/chromium/files/patch-net_net__common.gypi
  head/www/chromium/files/patch-net_quic_congestion__control_rtt__stats.cc
  head/www/chromium/files/patch-printing_backend_print__backend__cups.cc
  head/www/chromium/files/patch-printing_printing.gyp
  head/www/chromium/files/patch-remoting_remoting__host.gypi
  head/www/chromium/files/patch-services_shell_public_cpp_lib_initialize__base__and__icu.cc
  head/www/chromium/files/patch-services_shell_runner_init.cc
  head/www/chromium/files/patch-skia_skia__chrome.gypi
  head/www/chromium/files/patch-skia_skia__common.gypi
  head/www/chromium/files/patch-sync_util_get__session__name.cc
  head/www/chromium/files/patch-sync_util_get__session__name__linux.cc
  head/www/chromium/files/patch-third__party_WebKit_Source_core_core.gyp
  head/www/chromium/files/patch-third__party_WebKit_Source_platform_blink__platform.gyp
  head/www/chromium/files/patch-third__party_WebKit_Source_platform_image-decoders_png_PNGImageDecoder.cpp
  head/www/chromium/files/patch-third__party_WebKit_Source_platform_text_CharacterPropertyDataGenerator.cpp
  head/www/chromium/files/patch-third__party_WebKit_Source_web_web.gyp
  head/www/chromium/files/patch-third__party_WebKit_Source_wtf_wtf.gyp
  head/www/chromium/files/patch-third__party_ffmpeg_ffmpeg__generated.gypi
  head/www/chromium/files/patch-third__party_jsoncpp_jsoncpp.gyp
  head/www/chromium/files/patch-third__party_khronos_khronos.gyp
  head/www/chromium/files/patch-third__party_libXNVCtrl_libXNVCtrl.gyp
  head/www/chromium/files/patch-third__party_libjingle_libjingle.gyp
  head/www/chromium/files/patch-third__party_libjpeg_libjpeg.gyp
  head/www/chromium/files/patch-third__party_libphonenumber_libphonenumber.gyp
  head/www/chromium/files/patch-third__party_libusb_libusb.gyp
  head/www/chromium/files/patch-third__party_libxml_libxml.gyp
  head/www/chromium/files/patch-third__party_libxslt_libxslt.gyp
  head/www/chromium/files/patch-third__party_pdfium_build__gyp_standalone.gypi
  head/www/chromium/files/patch-third__party_pdfium_pdfium.gyp
  head/www/chromium/files/patch-third__party_protobuf_src_google_protobuf_stubs_platform__macros.h
  head/www/chromium/files/patch-third__party_re2_re2.gyp
  head/www/chromium/files/patch-third__party_sfntly_sfntly.gyp
  head/www/chromium/files/patch-third__party_snappy_snappy.gyp
  head/www/chromium/files/patch-third__party_sqlite_sqlite.gyp
  head/www/chromium/files/patch-third__party_usrsctp_usrsctp.gyp
  head/www/chromium/files/patch-third__party_webrtc_build_common.gypi
  head/www/chromium/files/patch-third__party_webrtc_modules_audio__device_audio__device.gypi
  head/www/chromium/files/patch-third__party_webrtc_modules_desktop__capture_desktop__capture.gypi
  head/www/chromium/files/patch-third__party_webrtc_modules_video__coding_receiver.cc
  head/www/chromium/files/patch-third__party_webrtc_system__wrappers_source_atomic32__posix.cc
  head/www/chromium/files/patch-tools_gyp_pylib_gyp_generator_make.py
  head/www/chromium/files/patch-tools_gyp_test_additional-targets_src_dir1_actions.gyp
  head/www/chromium/files/patch-tools_gyp_test_library_src_library.gyp
  head/www/chromium/files/patch-ui_accessibility_accessibility.gyp
  head/www/chromium/files/patch-ui_base_ui__base.gyp
  head/www/chromium/files/patch-ui_gl_gl.gyp
  head/www/chromium/files/patch-ui_gl_gl__surface__glx.cc
  head/www/chromium/files/patch-ui_views_controls_webview_webview.gyp
  head/www/chromium/files/patch-ui_views_views.gyp
  head/www/chromium/files/patch-v8_src_profiler_sampler.cc
Modified:
  head/www/chromium/Makefile
  head/www/chromium/distinfo
  head/www/chromium/files/extra-patch-clang
  head/www/chromium/files/extra-patch-gcc
  head/www/chromium/files/patch-base_posix_unix__domain__socket__linux.cc
  head/www/chromium/files/patch-base_process_launch.cc
  head/www/chromium/files/patch-base_process_launch.h
  head/www/chromium/files/patch-base_process_memory__unittest.cc
  head/www/chromium/files/patch-base_process_process__metrics.h
  head/www/chromium/files/patch-base_process_process__posix.cc
  head/www/chromium/files/patch-base_sys__info__freebsd.cc
  head/www/chromium/files/patch-base_sys__info__posix.cc
  head/www/chromium/files/patch-chrome_app_generated__resources.grd
  head/www/chromium/files/patch-chrome_browser_memory__details.cc
  head/www/chromium/files/patch-chrome_browser_resources_safe__browsing_gen__file__type__proto.py
  head/www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc
  head/www/chromium/files/patch-chrome_browser_ui_browser__view__prefs.cc
  head/www/chromium/files/patch-chrome_browser_ui_views_first__run__dialog.cc
  head/www/chromium/files/patch-chrome_browser_ui_webui_about__ui.cc
  head/www/chromium/files/patch-chrome_common_chrome__switches.cc
  head/www/chromium/files/patch-chrome_common_chrome__switches.h
  head/www/chromium/files/patch-chrome_common_pref__names.cc
  head/www/chromium/files/patch-chrome_common_pref__names.h
  head/www/chromium/files/patch-components_policy_resources_policy__templates.json
  head/www/chromium/files/patch-components_policy_tools_generate__policy__source.py
  head/www/chromium/files/patch-content_browser_browser__main__loop.cc
  head/www/chromium/files/patch-content_browser_gpu_gpu__data__manager__impl__private.cc
  head/www/chromium/files/patch-content_browser_ppapi__plugin__process__host.cc
  head/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc
  head/www/chromium/files/patch-content_browser_renderer__host_render__widget__host__view__aura.cc
  head/www/chromium/files/patch-content_browser_utility__process__host__impl.cc
  head/www/chromium/files/patch-content_gpu_gpu__child__thread.cc
  head/www/chromium/files/patch-content_gpu_gpu__main.cc
  head/www/chromium/files/patch-content_renderer_devtools_v8__sampling__profiler.cc
  head/www/chromium/files/patch-content_renderer_media_webrtc_processed__local__audio__source.cc
  head/www/chromium/files/patch-content_renderer_render__thread__impl.cc
  head/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.cc
  head/www/chromium/files/patch-content_renderer_webscrollbarbehavior__impl__gtkoraura.cc
  head/www/chromium/files/patch-content_shell_browser_shell__browser__context.cc
  head/www/chromium/files/patch-crypto_nss__util.cc
  head/www/chromium/files/patch-device_usb_usb__service__impl.cc
  head/www/chromium/files/patch-extensions_browser_api_serial_serial__api.cc
  head/www/chromium/files/patch-gpu_config_gpu__control__list.cc
  head/www/chromium/files/patch-media_audio_audio__manager.cc
  head/www/chromium/files/patch-media_capture_video_fake__video__capture__device__factory.cc
  head/www/chromium/files/patch-media_capture_video_file__video__capture__device__factory.cc
  head/www/chromium/files/patch-media_capture_video_linux_video__capture__device__linux.cc
  head/www/chromium/files/patch-media_capture_video_video__capture__device__factory.cc
  head/www/chromium/files/patch-net_base_address__tracker__linux.h
  head/www/chromium/files/patch-net_base_network__change__notifier.cc
  head/www/chromium/files/patch-net_proxy_proxy__config__service__linux.cc
  head/www/chromium/files/patch-net_proxy_proxy__service.cc
  head/www/chromium/files/patch-third__party_WebKit_Source_platform_fonts_FontPlatformData.cpp
  head/www/chromium/files/patch-third__party_WebKit_Source_platform_fonts_FontPlatformData.h
  head/www/chromium/files/patch-third__party_WebKit_Source_platform_fonts_skia_FontCacheSkia.cpp
  head/www/chromium/files/patch-third__party_ffmpeg_ffmpeg__generated.gni
  head/www/chromium/files/patch-third__party_ffmpeg_libavutil_mem.c
  head/www/chromium/files/patch-third__party_leveldatabase_env__chromium.cc
  head/www/chromium/files/patch-third__party_pdfium_fpdfsdk_javascript_PublicMethods.cpp
  head/www/chromium/files/patch-third__party_webrtc_base_physicalsocketserver.cc
  head/www/chromium/files/patch-third__party_webrtc_base_platform__thread.cc
  head/www/chromium/files/patch-ui_app__list_app__list__menu.cc
  head/www/chromium/files/patch-ui_app__list_views_app__list__view.cc
  head/www/chromium/files/patch-ui_base_ime_input__method__factory.cc
  head/www/chromium/files/patch-ui_base_resource_resource__bundle.cc
  head/www/chromium/files/patch-ui_gl_sync__control__vsync__provider.cc
  head/www/chromium/files/patch-ui_gl_sync__control__vsync__provider.h
  head/www/chromium/files/patch-ui_views_controls_textfield_textfield.cc
  head/www/chromium/files/patch-ui_views_style_platform__style.cc
  head/www/chromium/files/patch-v8_src_base_platform_platform-posix.cc
  head/www/chromium/pkg-plist

Modified: head/www/chromium/Makefile
==============================================================================
--- head/www/chromium/Makefile	Tue Nov 22 18:47:53 2016	(r426854)
+++ head/www/chromium/Makefile	Tue Nov 22 19:10:21 2016	(r426855)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	chromium
-PORTVERSION=	52.0.2743.116
-PORTREVISION=	4
+PORTVERSION=	54.0.2840.100
 CATEGORIES=	www
 MASTER_SITES=	http://commondatastorage.googleapis.com/chromium-browser-official/
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX} # default, but needed to get distinfo correct if TEST is on
@@ -14,9 +13,7 @@ COMMENT=	Google web browser based on Web
 LICENSE=	BSD3CLAUSE LGPL21 MPL
 LICENSE_COMB=	multi
 
-BROKEN_FreeBSD_9=does not patch
-
-CFLAGS+=	-isystem${LOCALBASE}/include -I${PREFIX}/include/atk-1.0
+BROKEN_FreeBSD_9=does not configure
 
 BUILD_DEPENDS=	${LOCALBASE}/bin/gperf:devel/gperf \
 		bash:shells/bash \
@@ -28,8 +25,7 @@ BUILD_DEPENDS=	${LOCALBASE}/bin/gperf:de
 		${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply \
 		${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib
 
-LIB_DEPENDS=	libasound.so:audio/alsa-lib \
-		libcairo.so:graphics/cairo \
+LIB_DEPENDS=	libcairo.so:graphics/cairo \
 		libcups.so:print/cups \
 		libdbus-1.so:devel/dbus \
 		libdbus-glib-1.so:devel/dbus-glib \
@@ -39,7 +35,6 @@ LIB_DEPENDS=	libasound.so:audio/alsa-lib
 		libfreetype.so:print/freetype2 \
 		libgnome-keyring.so:security/libgnome-keyring \
 		libharfbuzz.so:print/harfbuzz \
-		libevent.so:devel/libevent2 \
 		libexif.so:graphics/libexif \
 		libfontconfig.so:x11-fonts/fontconfig \
 		libgcrypt.so:security/libgcrypt \
@@ -56,101 +51,60 @@ LIB_DEPENDS=	libasound.so:audio/alsa-lib
 		libwebp.so:graphics/webp \
 		libxml2.so:textproc/libxml2
 
-RUN_DEPENDS=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \
-		alsa-lib>=1.1.1_1:audio/alsa-lib \
-		droid-fonts-ttf>0:x11-fonts/droid-fonts-ttf \
+RUN_DEPENDS=	droid-fonts-ttf>0:x11-fonts/droid-fonts-ttf \
 		xdg-open:devel/xdg-utils
 
 ONLY_FOR_ARCHS=	i386 amd64
-USES=		bison cpe desktop-file-utils execinfo jpeg \
+USES=		compiler bison cpe desktop-file-utils execinfo jpeg \
 		ninja perl5 pkgconfig python:2,build shebangfix tar:xz
-# chromium requires a recent compiler (C++11 capable, but clang 3.4 is
-# not able to build chromium. OTOH clang36 on FreeBSD 9.3 cannot build
-# chromium as the libc++ includes are not up to the task. USES flags
-# have to be set before bsd.ports.pre.mk and thereby cannot depend on
-# bsd.ports.pre.mk's variables, so I'm using a hack here.
-.if exists(/usr/lib/libc++.a)
-USES+=	compiler:c++14-lang
-.else
-USES+=	compiler:c++11-lib
-.endif
 
 CPE_VENDOR=	google
 CPE_PRODUCT=	chrome
 USE_PERL5=	build
 USE_XORG=	scrnsaverproto x11 xcomposite xcursor xext xdamage xfixes xi \
 		xproto xrandr xrender xscrnsaver xtst
-USE_GNOME=	atk glib20 gtk20 dconf libxslt
+USE_GNOME=	atk glib20 gtk20 dconf libxslt libxml2
 MAKE_ARGS=	-C out/${BUILDTYPE}
 SHEBANG_FILES=	chrome/tools/build/linux/chrome-wrapper
 ALL_TARGET=	chrome
 INSTALLS_ICONS=	yes
 
-#TODO bz@ : install libwidevinecdm.so (see
-#   third_party/widevine/cdm/widevine_cdm.gyp)
-# See build/common.gypi for all the available variables.
-GYP_DEFINES+=	\
-		clang_use_chrome_plugins=0 \
-		linux_breakpad=0 \
-		linux_use_heapchecker=0 \
-		linux_strip_binary=1 \
-		use_aura=1 \
-		test_isolation_mode=noop \
-		disable_nacl=1 \
-		enable_extensions=1 \
-		enable_one_click_signin=1 \
-		enable_openmax=1 \
-		enable_webrtc=1 \
-		werror= \
-		no_gc_sections=1 \
-		OS=freebsd \
-		os_ver=${OSVERSION} \
-		prefix_dir=${LOCALBASE} \
-		python_ver=${PYTHON_VER} \
-		use_allocator=none \
-		use_cups=1 \
-		linux_link_gsettings=1 \
-		linux_link_libpci=1 \
-		linux_link_libspeechd=1 \
-		libspeechd_h_prefix=speech-dispatcher/ \
-		usb_ids_path=${LOCALBASE}/share/usbids/usb.ids \
-		want_separate_host_toolset=0 \
-		use_system_bzip2=1 \
-		use_system_flac=1 \
-		use_system_harfbuzz=1 \
-		use_system_icu=1 \
-		use_system_jsoncpp=1 \
-		use_system_libevent=1 \
-		use_system_libexif=1 \
-		use_system_libjpeg=1 \
-		use_system_libpng=1 \
-		use_system_libusb=1 \
-		use_system_libwebp=1 \
-		use_system_libxml=1 \
-		use_system_libxslt=1 \
-		use_system_nspr=1 \
-		use_system_protobuf=0 \
-		use_system_re2=1 \
-		use_system_snappy=1 \
-		use_system_speex=1 \
-		use_system_xdg_utils=1 \
-		use_system_yasm=1 \
-		v8_use_external_startup_data=0
-# allow removal of third_party/adobe
-GYP_DEFINES+=	flapper_version_h_file='${WRKSRC}/flapper_version.h'
+# TODO bz@ : install libwidevinecdm.so (see third_party/widevine/cdm/BUILD.gn)
+#
+# Run "./out/${BUILDTYPE}/gn args out/${BUILDTYPE} --list" for all the variables.
+# 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+=	\
+		clang_use_chrome_plugins=false \
+		enable_hevc_demuxing=true \
+		enable_media_router=true \
+		enable_nacl=false \
+		enable_remoting=false \
+		toolkit_views=true \
+		use_allocator="none" \
+		use_aura=true \
+		use_experimental_allocator_shim=true \
+		treat_warnings_as_errors=false \
+		use_sysroot=false \
+		use_system_libjpeg=true \
+		use_system_sqlite=false   # chrome has additional patches
+# TODO: investigate building with these options:
+# use_system_icu use_system_harfbuzz use_system_minigbm
+GN_BOOTSTRAP_FLAGS=	--no-clean --no-rebuild
 
 # FreeBSD Chromium Api Key
 # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
 # Note: these are for FreeBSD use ONLY. For your own distribution,
 # please get your own set of keys.
-GYP_DEFINES+=	google_api_key=AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8 \
-		google_default_client_id=996322985003.apps.googleusercontent.com \
-		google_default_client_secret=IR1za9-1VK0zZ0f_O8MVFicn
+GN_ARGS+=	google_api_key="AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8" \
+		google_default_client_id="996322985003.apps.googleusercontent.com" \
+		google_default_client_secret="IR1za9-1VK0zZ0f_O8MVFicn"
 
 SUB_FILES=	chromium-browser.desktop chrome
 SUB_LIST+=	COMMENT="${COMMENT}"
 
-OPTIONS_DEFINE=	CODECS GCONF PULSEAUDIO TEST KERBEROS DEBUG DRIVER
+OPTIONS_DEFINE=	ALSA CODECS GCONF PULSEAUDIO TEST KERBEROS DEBUG DRIVER
 CODECS_DESC=	Compile and enable patented codecs like H.264
 DRIVER_DESC=	Install chromedriver
 
@@ -158,44 +112,39 @@ OPTIONS_DEFAULT=	CODECS GCONF KERBEROS
 OPTIONS_SUB=	yes
 
 GCONF_USE=	GNOME=gconf2
+ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
+ALSA_RUN_DEPENDS=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \
+			alsa-lib>=1.1.1_1:audio/alsa-lib
 PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
 DRIVER_MAKE_ARGS=chromedriver
 TEST_DISTFILES=	${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX}
 
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MALSA}
+GN_ARGS+=	use_alsa=true
+.else
+GN_ARGS+=	use_alsa=false
+.endif
+
 .if ${PORT_OPTIONS:MCODECS}
-GYP_DEFINES+=	ffmpeg_branding=Chrome
-GYP_DEFINES+=	proprietary_codecs=1
+GN_ARGS+=	ffmpeg_branding="Chrome"
+GN_ARGS+=	proprietary_codecs=true
 .else
-GYP_DEFINES+=	ffmpeg_branding=Chromium
-GYP_DEFINES+=	proprietary_codecs=0
+GN_ARGS+=	ffmpeg_branding="Chromium"
+GN_ARGS+=	proprietary_codecs=false
 .endif
 
 .if ${PORT_OPTIONS:MGCONF}
-GYP_DEFINES+=	use_gconf=1
+GN_ARGS+=	use_gconf=true
 .else
-GYP_DEFINES+=	use_gconf=0
+GN_ARGS+=	use_gconf=false
 .endif
 
 .if ${PORT_OPTIONS:MPULSEAUDIO}
-GYP_DEFINES+=	use_pulseaudio=1
+GN_ARGS+=	use_pulseaudio=true
 .else
-GYP_DEFINES+=	use_pulseaudio=0
-.endif
-
-.if empty(MACHINE_CPU:Msse2)
-GYP_DEFINES+=	disable_sse2=1
-.endif
-
-.if !exists(/usr/libdata/pkgconfig/libusb-1.0.pc)
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch-libusb-pc
-.endif
-
-# pointed out by "Tomek" on freebsd-chromium@
-.if !exists(/usr/lib/libexecinfo.so)
-CFLAGS+=	-fno-omit-frame-pointer
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch-fixup-ffmpeg
+GN_ARGS+=	use_pulseaudio=false
 .endif
 
 .if ${PORT_OPTIONS:MTEST}
@@ -206,180 +155,80 @@ ALL_TARGET+=	${TEST_TARGETS}
 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
 .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
 .endif
 
-CONFIGURE_ENV+=	CC="${CC}" \
-		CXX="${CXX}" \
-		GYP_GENERATORS=ninja \
-		GYP_DEFINES="${GYP_DEFINES}"
 MAKE_ENV+=	BUILDTYPE=${BUILDTYPE} \
 		GPERF="${LOCALBASE}/bin/gperf"
 
 .include <bsd.port.pre.mk>
 
 .if ${CHOSEN_COMPILER_TYPE} == gcc
-GYP_DEFINES+=	gcc_version=${CXX:S/g++//}
+GN_ARGS+=	gcc_version=${CXX:S/g++//}
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-gcc
-CFLAGS+=	-fno-stack-protector # gcc 4.8 cannot find __stack_chk_fail_local
 .else
-GYP_DEFINES+=	clang=1
-CFLAGS+=	-Wno-unknown-warning-option \
-			-D_LIBCPP_TRIVIAL_PAIR_COPY_CTOR=1 # work around base r261801
+BUILD_DEPENDS+=	clang39:devel/llvm39
+CC=		clang39
+CXX=		clang++39
+# /usr/local/include unlike gcc isn't clang's default
+MAKE_ENV+=	C_INCLUDE_PATH=${LOCALBASE}/include \
+		CPLUS_INCLUDE_PATH=${LOCALBASE}/include
+GN_ARGS+=	is_clang=true
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-clang
-CONFIGURE_ENV+=	AR=/usr/bin/ar
 .endif
 
-.if ! ${PORT_OPTIONS:MKERBEROS}
-GYP_DEFINES+=	use_kerberos=0
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1002000
+BUILD_DEPENDS+=	${LOCALBASE}/lib/c++/libstdc++.so:devel/libc++
+CXXFLAGS+=	-stdlib=libc++ -isystem ${LOCALBASE}/include/c++/v1
 .endif
 
-# according to portlint the below is passed via bsd.port.mk,
-# but 'make -V CONFIGURE_ENV' does not show it:
-CONFIGURE_ENV+=	CFLAGS="${CFLAGS}" \
-		CPPFLAGS="${CPPFLAGS}" \
-		CXXFLAGS="${CXXFLAGS}" \
-		LDFLAGS="${LDFLAGS}"
+.if ${OSVERSION} < 1100000
+EXTRA_PATCHES+=	${FILESDIR}/extra-patch-10
+.endif
+
+.if ! ${PORT_OPTIONS:MKERBEROS}
+GN_ARGS+=	use_kerberos=true
+.endif
 
 pre-everything::
 	@${ECHO_MSG}
-	@${ECHO_MSG} "To build Chromium, you should have around 2 GB of memory"
+	@${ECHO_MSG} "To build Chromium, you should have around 2GB of memory,"
 .if ${PORT_OPTIONS:MDEBUG}
-	@${ECHO_MSG} "and lots of free diskspace (~ 8.5GB)."
+	@${ECHO_MSG} "lots of free diskspace (~ 40GB)"
+	@${ECHO_MSG} "and no less then 16GB of memory for linking."
 .else
 	@${ECHO_MSG} "and a fair amount of free diskspace (~ 3.7GB)."
 .endif
 	@${ECHO_MSG}
 	@${ECHO_MSG} "Make sure you have Python build with the SEM option ON"
 	@${ECHO_MSG} "(default in python27-2.7.8 since r361735)"
-
-post-patch:
-	@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|" \
-		${WRKSRC}/crypto/crypto.gyp \
-		${WRKSRC}/v8/src/v8.gyp \
-		${WRKSRC}/v8/gypfiles/toolchain.gypi
-	@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \
-		${WRKSRC}/chrome/common/chrome_paths.cc \
-		${WRKSRC}/base/base.gyp
+	@${ECHO_MSG}
 
 pre-configure:
-	# phajdan-jr: list of things *not* to remove, so maybe the script
-	#             should be called "keep_bundled_libraries.py"
+	# We used to remove bundled libraries to be sure that chromium uses
+	# system libraries and not shippen ones.
+	# cd ${WRKSRC} && ${PYTHON_CMD} \
+	#./build/linux/unbundle/remove_bundled_libraries.py [list of preserved]
 	cd ${WRKSRC} && ${PYTHON_CMD} \
-		./build/linux/unbundle/remove_bundled_libraries.py \
-		'base/third_party/dmg_fp' \
-		'base/third_party/dynamic_annotations' \
-		'base/third_party/icu' \
-		'base/third_party/nspr' \
-		'base/third_party/superfasthash' \
-		'base/third_party/symbolize' \
-		'base/third_party/valgrind' \
-		'base/third_party/xdg_mime' \
-		'base/third_party/xdg_user_dirs' \
-		'breakpad/src/third_party/curl' \
-		'chrome/third_party/mock4js' \
-		'chrome/third_party/mozilla_security_manager' \
-		'courgette/third_party' \
-		'net/third_party/mozilla_security_manager' \
-		'net/third_party/nss' \
-		'third_party/WebKit' \
-		'third_party/analytics' \
-		'third_party/angle' \
-		'third_party/angle/src/third_party' \
-		'third_party/blanketjs' \
-		'third_party/brotli' \
-		'third_party/boringssl' \
-		'third_party/cacheinvalidation' \
-		'third_party/catapult' \
-		'third_party/catapult/third_party/beautifulsoup4' \
-		'third_party/catapult/third_party/py_vulcanize' \
-		'third_party/catapult/third_party/py_vulcanize/py_vulcanize' \
-		'third_party/catapult/third_party/py_vulcanize/third_party/rcssmin' \
-		'third_party/catapult/third_party/py_vulcanize/third_party/rjsmin' \
-		'third_party/catapult/tracing' \
-		'third_party/catapult/tracing/third_party' \
-		'third_party/cld' \
-		'third_party/cros_system_api' \
-		'third_party/dom_distiller_js' \
-		'third_party/dom_distiller_js/dist/proto_gen/third_party/dom_distiller_js' \
-		'third_party/ffmpeg' \
-		'third_party/gardiner_mod' \
-		'third_party/fips181' \
-		'third_party/flot' \
-		'third_party/google_input_tools' \
-		'third_party/google_input_tools/third_party/closure_library' \
-		'third_party/google_input_tools/third_party/closure_library/third_party/closure' \
-		'third_party/hunspell' \
-		'third_party/iccjpeg' \
-		'third_party/icu/icu.isolate' \
-		'third_party/jinja2' \
-		'third_party/jstemplate' \
-		'third_party/khronos' \
-		'third_party/leveldatabase' \
-		'third_party/libaddressinput' \
-		'third_party/libjingle' \
-		'third_party/libphonenumber' \
-		'third_party/libsrtp' \
-		'third_party/libvpx' \
-		'third_party/libvpx/source/libvpx/third_party/x86inc' \
-		'third_party/libwebm' \
-		'third_party/libxml/chromium' \
-		'third_party/libXNVCtrl' \
-		'third_party/libyuv' \
-		'third_party/lss' \
-		'third_party/lzma_sdk' \
-		'third_party/markupsafe' \
-		'third_party/mesa' \
-		'third_party/modp_b64' \
-		'third_party/mt19937ar' \
-		'third_party/openh264' \
-		'third_party/openmax_dl' \
-		'third_party/opus' \
-		'third_party/ots' \
-		'third_party/pdfium' \
-		'third_party/pdfium/third_party' \
-		'third_party/ply' \
-		'third_party/polymer' \
-		'third_party/protobuf' \
-		'third_party/protobuf/third_party' \
-		'third_party/protobuf/third_party/six' \
-		'third_party/pywebsocket' \
-		'third_party/qcms' \
-		'third_party/qunit' \
-		'third_party/sfntly' \
-		'third_party/sinonjs' \
-		'third_party/skia' \
-		'third_party/smhasher' \
-		'third_party/sqlite' \
-		'third_party/tcmalloc' \
-		'third_party/tlslite' \
-		'third_party/usrsctp' \
-		'third_party/web-animations-js' \
-		'third_party/webdriver' \
-		'third_party/webrtc' \
-		'third_party/widevine' \
-		'third_party/woff2' \
-		'third_party/x86inc' \
-		'third_party/yasm' \
-		'third_party/zlib' \
-		'url/third_party/mozilla' \
-		'v8/src/third_party/valgrind' \
-		'v8/src/third_party/fdlibm' \
-		--do-remove || ${FALSE}
-	cd ${WRKSRC} && ${PYTHON_CMD} \
-		./build/linux/unbundle/replace_gyp_files.py \
-		${GYP_DEFINES:C/^/-D/} || ${FALSE}
-	# allow removal of third_party/adobe
-	${ECHO_CMD} > ${WRKSRC}/flapper_version.h
-	# missing file: file is in -testdata only, but configure stage
-	# will fail if it's not there. do not break TESTS build while
-	# allowing regular build without pulling in -testdata.
-	${TOUCH} ${WRKSRC}/chrome/test/data/webui/i18n_process_css_test.html
+		./build/linux/unbundle/replace_gn_files.py --system-libraries \
+		flac harfbuzz-ng libwebp libxml libxslt snappy yasm || ${FALSE}
 
 do-configure:
-	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PYTHON_CMD} \
-		./build/gyp_chromium chrome/chrome.gyp --depth .
+	# GN generator bootstrapping and generating ninja files
+	cd ${WRKSRC} && ${SETENV} CC=${CC} CXX=${CXX} ${PYTHON_CMD} \
+		./tools/gn/bootstrap/bootstrap.py ${GN_BOOTSTRAP_FLAGS}
+	cd ${WRKSRC} && ${SETENV} ./out/${BUILDTYPE}/gn \
+		gen --args='${GN_ARGS}' out/${BUILDTYPE}
 
 test regression-test: build
 .for t in ${TEST_TARGETS}
@@ -397,14 +246,17 @@ do-install:
 .endfor
 	${INSTALL_SCRIPT} ${WRKSRC}/chrome/tools/build/linux/chrome-wrapper \
 		${STAGEDIR}${DATADIR}
-.for p in chrome_100_percent content_resources keyboard_resources resources
+.for p in chrome_100_percent chrome_200_percent keyboard_resources resources
 	${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/${p}.pak \
 		${STAGEDIR}${DATADIR}
 .endfor
+.for d in icudtl.dat natives_blob.bin
+	${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/${d} ${STAGEDIR}${DATADIR}
+.endfor
 	${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/chrome \
 		${STAGEDIR}${DATADIR}
 	cd ${WRKSRC}/out/${BUILDTYPE} && \
-		${COPYTREE_SHARE} "locales pseudo_locales resources" ${STAGEDIR}${DATADIR}
+		${COPYTREE_SHARE} "locales resources" ${STAGEDIR}${DATADIR}
 	@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
 	${INSTALL_DATA} ${WRKDIR}/chromium-browser.desktop \
 		${STAGEDIR}${DESKTOPDIR}

Modified: head/www/chromium/distinfo
==============================================================================
--- head/www/chromium/distinfo	Tue Nov 22 18:47:53 2016	(r426854)
+++ head/www/chromium/distinfo	Tue Nov 22 19:10:21 2016	(r426855)
@@ -1,5 +1,5 @@
-TIMESTAMP = 1470404034
-SHA256 (chromium-52.0.2743.116.tar.xz) = a194ae1edb041024b3d4b6ba438f32fefdb6f1ecb24a96c50248a486b237a101
-SIZE (chromium-52.0.2743.116.tar.xz) = 458156660
-SHA256 (chromium-52.0.2743.116-testdata.tar.xz) = d3d059e1215702d8665f02b47a10e14458f54f423c323a9fcc987e6e43767c0b
-SIZE (chromium-52.0.2743.116-testdata.tar.xz) = 122423496
+TIMESTAMP = 1478859835
+SHA256 (chromium-54.0.2840.100.tar.xz) = e2e7f54a780c93ec2e933af09e1126837e6cf940b57213d39f36d58df10c89df
+SIZE (chromium-54.0.2840.100.tar.xz) = 479762112
+SHA256 (chromium-54.0.2840.100-testdata.tar.xz) = 44319fea6de4dbb1f6d0bbeeec633b69b7064f53a54893df5b720935a6d27460
+SIZE (chromium-54.0.2840.100-testdata.tar.xz) = 123519620

Added: head/www/chromium/files/extra-patch-10
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/extra-patch-10	Tue Nov 22 19:10:21 2016	(r426855)
@@ -0,0 +1,10 @@
+--- content/renderer/devtools/v8_sampling_profiler.cc.orig	2016-10-06 04:02:19.000000000 +0300
++++ content/renderer/devtools/v8_sampling_profiler.cc	2016-10-30 03:00:33.775227000 +0300
+@@ -22,6 +22,7 @@
+
+ #if defined(OS_POSIX)
+ #include <signal.h>
++#include <ucontext.h>
+ #define USE_SIGNALS
+ #endif
+

Modified: head/www/chromium/files/extra-patch-clang
==============================================================================
--- head/www/chromium/files/extra-patch-clang	Tue Nov 22 18:47:53 2016	(r426854)
+++ head/www/chromium/files/extra-patch-clang	Tue Nov 22 19:10:21 2016	(r426855)
@@ -1,13 +1,14 @@
---- base/strings/safe_sprintf_unittest.cc   2015-04-15 00:18:48.000000000 +0200
-+++ base/strings/safe_sprintf_unittest.cc   2015-04-18 22:08:45.000000000 +0200
-@@ -729,12 +729,14 @@
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wconversion-null"
- #endif
+--- base/strings/safe_sprintf_unittest.cc.orig	2016-10-06 04:02:08.000000000 +0300
++++ base/strings/safe_sprintf_unittest.cc	2016-10-25 21:42:28.951114000 +0300
+@@ -728,6 +728,7 @@
+ }
+
+ TEST(SafeSPrintfTest, EmitNULL) {
 +/* Avoid compiler error: http://pastebin.com/1edWUE84
-   EXPECT_EQ(1, SafeSPrintf(buf, "%d", NULL));
-   EXPECT_EQ("0", std::string(buf));
-   EXPECT_EQ(3, SafeSPrintf(buf, "%p", NULL));
+   char buf[40];
+ #if defined(__GNUC__)
+ #pragma GCC diagnostic push
+@@ -739,6 +740,7 @@
    EXPECT_EQ("0x0", std::string(buf));
    EXPECT_EQ(6, SafeSPrintf(buf, "%s", NULL));
    EXPECT_EQ("<NULL>", std::string(buf));
@@ -41,7 +42,7 @@
 +++ base/tracked_objects_unittest.cc    2015-09-03 09:20:53.370191000 -0400
 @@ -58,9 +58,9 @@
      Births* birth = ThreadData::TallyABirthIfActive(location);
- 
+
      if (ThreadData::status() == ThreadData::DEACTIVATED)
 -      EXPECT_EQ(reinterpret_cast<Births*>(NULL), birth);
 +      EXPECT_EQ(static_cast<Births*>(NULL), birth);
@@ -49,7 +50,7 @@
 -      EXPECT_NE(reinterpret_cast<Births*>(NULL), birth);
 +      EXPECT_NE(static_cast<Births*>(NULL), birth);
    }
- 
+
    // Helper function to verify the most common test expectations.
 --- components/sync_sessions/synced_session_tracker.cc.orig	2016-01-21 13:04:41.772845558 +0100
 +++ components/sync_sessions/synced_session_tracker.cc	2016-01-21 13:05:17.652842509 +0100
@@ -70,34 +71,34 @@
          .Times(2)
 -        .WillRepeatedly(Return(reinterpret_cast<AudioOutputStream*>(NULL)));
 +        .WillRepeatedly(Return(static_cast<AudioOutputStream*>(NULL)));
- 
+
      EXPECT_CALL(callback_, OnError(_))
          .Times(2);
 --- third_party/hunspell/src/hunspell/affentry.hxx.orig 2015-07-21 18:46:37.322427000 -0400
 +++ third_party/hunspell/src/hunspell/affentry.hxx  2015-07-21 18:48:02.034251000 -0400
 @@ -27,7 +27,7 @@
-   struct hentry *      checkword(const char * word, int len, char in_compound, 
+   struct hentry *      checkword(const char * word, int len, char in_compound,
                              const FLAG needflag = FLAG_NULL);
- 
+
 -  struct hentry *      check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL);
 +  struct hentry *      check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = 0);
- 
+
    char *      check_morph(const char * word, int len, char in_compound,
                              const FLAG needflag = FLAG_NULL);
 @@ -90,7 +90,7 @@
  //                    const FLAG cclass = FLAG_NULL, const FLAG needflag = FLAG_NULL, char in_compound=IN_CPD_NOT);
                      const FLAG cclass = FLAG_NULL, const FLAG needflag = FLAG_NULL, const FLAG badflag = 0);
- 
+
 -  struct hentry *   check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL);
 +  struct hentry *   check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = 0);
- 
+
    char *      check_twosfx_morph(const char * word, int len, int optflags,
                   PfxEntry* ppfx, const FLAG needflag = FLAG_NULL);
 --- third_party/sfntly/src/cpp/src/sfntly/table/core/cmap_table.cc	2015-04-15 00:31:48.000000000 +0200
 +++ third_party/sfntly/src/cpp/src/sfntly/table/core/cmap_table.cc	2015-04-18 22:05:41.000000000 +0200
 @@ -439,7 +439,7 @@
  }
- 
+
  CMapTable::CMapFormat0::Builder::Builder(const CMapId& cmap_id)
 -    : CMap::Builder(reinterpret_cast<ReadableFontData*>(NULL),
 +    : CMap::Builder(static_cast<ReadableFontData*>(NULL),
@@ -133,13 +134,13 @@
        glyph_id_array_(glyph_id_array->begin(), glyph_id_array->end()) {
 @@ -966,7 +966,7 @@
  }
- 
+
  CMapTable::CMapFormat4::Builder::Builder(const CMapId& cmap_id)
 -    : CMap::Builder(reinterpret_cast<ReadableFontData*>(NULL),
 +    : CMap::Builder(static_cast<ReadableFontData*>(NULL),
                      CMapFormat::kFormat4, cmap_id) {
  }
- 
+
 --- third_party/webrtc/base/taskrunner.cc	2015-04-15 00:32:17.000000000 +0200
 +++ third_party/webrtc/base/taskrunner.cc	2015-04-18 22:10:53.000000000 +0200
 @@ -102,7 +102,7 @@
@@ -148,6 +149,6 @@
                     tasks_.end(),
 -                   reinterpret_cast<Task *>(NULL));
 +                   static_cast<Task *>(NULL));
- 
+
    tasks_.erase(it, tasks_.end());
- 
+

Modified: head/www/chromium/files/extra-patch-gcc
==============================================================================
--- head/www/chromium/files/extra-patch-gcc	Tue Nov 22 18:47:53 2016	(r426854)
+++ head/www/chromium/files/extra-patch-gcc	Tue Nov 22 19:10:21 2016	(r426855)
@@ -3,27 +3,27 @@
 @@ -5,6 +5,7 @@
  #ifndef MEDIA_FILTERS_FILE_DATA_SOURCE_H_
  #define MEDIA_FILTERS_FILE_DATA_SOURCE_H_
- 
+
 +#include <cstdio>
  #include <string>
- 
+
  #include "base/files/file.h"
 --- content/public/common/child_process_sandbox_support_linux.h.orig	2013-10-11 19:30:28.000000000 +0200
 +++ content/public/common/child_process_sandbox_support_linux.h	2013-10-16 15:29:00.000000000 +0200
 @@ -7,6 +7,7 @@
- 
+
  #include <stdint.h>
  #include <string>
 +#include <sys/types.h>
- 
+
  #include "content/common/content_export.h"
- 
+
 --- third_party/ffmpeg/libavutil/cpu.c.orig	2013-11-16 01:26:14.000000000 +0100
 +++ third_party/ffmpeg/libavutil/cpu.c	2013-11-19 00:24:53.000000000 +0100
 @@ -24,6 +24,9 @@
  #include "opt.h"
  #include "common.h"
- 
+
 +/* TODO(rene) work around a compile error with GCC 4.6.4 on FreeBSD */
 +#define __BSD_VISIBLE 1
 +
@@ -35,22 +35,22 @@
 @@ -2,6 +2,8 @@
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
- 
+
 +#include <stdio.h>
 +
  #include "content/browser/browser_shutdown_profile_dumper.h"
- 
+
  #include "base/base_switches.h"
 --- testing/perf/perf_test.cc	2014-03-03 12:59:30.000000000 -0500
 +++ testing/perf/perf_test.cc.orig	2014-02-20 15:28:27.000000000 -0500
 @@ -2,10 +2,10 @@
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
- 
+
 +#include <stdio.h>
 +
  #include "testing/perf/perf_test.h"
- 
+
 -#include <stdio.h>
 -
  #include "base/logging.h"
@@ -59,7 +59,7 @@
 --- ui/gfx/codec/jpeg_codec.cc.orig	2014-10-02 19:19:03.000000000 +0200
 +++ ui/gfx/codec/jpeg_codec.cc	2014-10-05 22:38:28.000000000 +0200
 @@ -13,6 +13,7 @@
- 
+
  extern "C" {
  #if defined(USE_SYSTEM_LIBJPEG)
 +#include <stdio.h>
@@ -70,77 +70,44 @@
 +++ third_party/webrtc/common_audio/wav_file.h	2014-10-18 12:04:03.000000000 +0200
 @@ -14,6 +14,7 @@
  #ifdef __cplusplus
- 
+
  #include <stdint.h>
 +#include <stdio.h>
  #include <cstddef>
  #include <string>
- 
+
 --- v8/src/base/platform/platform.h.orig	2015-01-27 03:22:59.000000000 +0100
 +++ v8/src/base/platform/platform.h	2015-01-28 18:37:43.268781292 +0100
 @@ -22,6 +22,7 @@
  #define V8_BASE_PLATFORM_PLATFORM_H_
- 
+
  #include <cstdarg>
 +#include <cstdio>
  #include <string>
  #include <vector>
- 
+
 --- v8/src/compiler/graph-visualizer.cc.orig	2015-04-28 22:29:10.000000000 +0200
 +++ v8/src/compiler/graph-visualizer.cc	2015-05-02 21:01:32.086593000 +0200
 @@ -5,6 +5,7 @@
  #include "src/compiler/graph-visualizer.h"
- 
+
  #include <sstream>
 +#include <cstdio>
  #include <string>
- 
+
  #include "src/code-stubs.h"
-@@ -25,7 +26,7 @@
- namespace compiler {
- 
- 
--FILE* OpenVisualizerLogFile(CompilationInfo* info, const char* phase,
-+std::FILE* OpenVisualizerLogFile(CompilationInfo* info, const char* phase,
-                             const char* suffix, const char* mode) {
-   EmbeddedVector<char, 256> filename;
-   SmartArrayPointer<char> function_name;
 --- third_party/ffmpeg/libavutil/autorename_libavutil_cpu.c.orig	2015-07-24 22:27:11.000000000 +0200
 +++ third_party/ffmpeg/libavutil/autorename_libavutil_cpu.c	2015-07-26 17:38:40.937606000 +0200
-@@ -34,6 +34,7 @@
- #include <windows.h>
- #endif
- #if HAVE_SYSCTL
+@@ -1,2 +1,3 @@
+ // File automatically generated. See crbug.com/495833.
 +#define __BSD_VISIBLE 1
- #if HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
---- v8/src/compiler/graph-visualizer.h.orig	2015-07-24 22:28:03.000000000 +0200
-+++ v8/src/compiler/graph-visualizer.h	2015-07-26 18:37:45.488253000 +0200
-@@ -5,7 +5,7 @@
- #ifndef V8_COMPILER_GRAPH_VISUALIZER_H_
- #define V8_COMPILER_GRAPH_VISUALIZER_H_
- 
--#include <stdio.h>
-+#include <cstdio>
- #include <iosfwd>
- 
- namespace v8 {
-@@ -21,7 +21,7 @@
- class Schedule;
- class SourcePositionTable;
- 
--FILE* OpenVisualizerLogFile(CompilationInfo* info, const char* phase,
-+std::FILE* OpenVisualizerLogFile(CompilationInfo* info, const char* phase,
-                             const char* suffix, const char* mode);
- 
- struct AsDOT {
+ #include "cpu.c"
 --- v8/src/log-utils.h.orig	2015-10-13 21:04:45.000000000 +0200
 +++ v8/src/log-utils.h	2015-10-17 10:17:35.535561000 +0200
 @@ -5,6 +5,9 @@
  #ifndef V8_LOG_UTILS_H_
  #define V8_LOG_UTILS_H_
- 
+
 +#include <cstdarg>
 +#include <cstdio>
 +
@@ -151,7 +118,7 @@
 +++ third_party/webrtc/modules/remote_bitrate_estimator/overuse_detector.cc	2015-11-01 11:32:36.293750000 +0100
 @@ -11,6 +11,7 @@
  #include "webrtc/modules/remote_bitrate_estimator/overuse_detector.h"
- 
+
  #include <algorithm>
 +#include <cstdio>
  #include <sstream>
@@ -162,15 +129,15 @@
 @@ -42,7 +42,7 @@
    else if (hue * 3.0 < 2.0)
      result = temp1 + (temp2 - temp1) * (2.0 / 3.0 - hue) * 6.0;
- 
+
 -  return static_cast<int>(std::round(result * 255));
 +  return static_cast<int>(round(result * 255));
  }
- 
+
  // Assumes sRGB.
 @@ -85,7 +85,7 @@
  }
- 
+
  uint8_t GetLuma(SkColor color) {
 -  return static_cast<uint8_t>(std::round((0.299 * SkColorGetR(color)) +
 +  return static_cast<uint8_t>(round((0.299 * SkColorGetR(color)) +
@@ -188,12 +155,12 @@
 +                        static_cast<int>(round(g)),
 +                        static_cast<int>(round(b)));
  }
- 
+
  void BuildLumaHistogram(const SkBitmap& bitmap, int histogram[256]) {
 @@ -275,10 +275,10 @@
    double b = (SkColorGetB(foreground) * f_weight +
                SkColorGetB(background) * b_weight) / 255.0;
- 
+
 -  return SkColorSetARGB(static_cast<int>(std::round(normalizer)),
 -                        static_cast<int>(std::round(r)),
 -                        static_cast<int>(std::round(g)),
@@ -203,18 +170,18 @@
 +                        static_cast<int>(round(g)),
 +                        static_cast<int>(round(b)));
  }
- 
+
  bool IsDark(SkColor color) {
 --- media/filters/audio_clock.cc.orig	2016-04-07 11:55:00.678817033 +0200
 +++ media/filters/audio_clock.cc	2016-04-07 11:55:28.152814716 +0200
 @@ -121,7 +121,7 @@
    }
- 
+
    return base::TimeDelta::FromMicroseconds(
 -      std::round(frames_until_timestamp * microseconds_per_frame_));
 +      round(frames_until_timestamp * microseconds_per_frame_));
  }
- 
+
  void AudioClock::ContiguousAudioDataBufferedForTesting(
 --- media/filters/audio_clock.h.orig	2016-04-08 14:22:02.833940146 +0200
 +++ media/filters/audio_clock.h	2016-04-08 14:22:14.433876920 +0200
@@ -230,7 +197,7 @@
 -        std::round(back_timestamp_micros_));
 +        round(back_timestamp_micros_));
    }
- 
+
    // Returns the amount of wall time until |timestamp| will be played by the
 --- content/browser/web_contents/web_contents_impl.cc.orig	2016-04-08 15:44:21.989537858 +0200
 +++ content/browser/web_contents/web_contents_impl.cc	2016-04-08 15:44:44.574535099 +0200
@@ -246,7 +213,7 @@
 --- chrome/browser/ui/views/frame/browser_root_view.cc.orig	2016-04-08 17:23:19.749128496 +0200
 +++ chrome/browser/ui/views/frame/browser_root_view.cc	2016-04-08 17:23:30.609126494 +0200
 @@ -139,10 +139,10 @@
- 
+
        // Number of integer scroll events that have passed in each direction.
        int whole_scroll_amount_x =
 -          std::lround(static_cast<double>(scroll_remainder_x_) /
@@ -256,16 +223,16 @@
 -          std::lround(static_cast<double>(scroll_remainder_y_) /
 +          lround(static_cast<double>(scroll_remainder_y_) /
                        ui::MouseWheelEvent::kWheelDelta);
- 
+
        // Adjust the remainder such that any whole scrolls we have taken action
 --- base/process/memory.h.orig	2016-06-06 21:05:12.000000000 +0200
 +++ base/process/memory.h	2016-06-12 20:04:24.000000000 +0200
 @@ -6,6 +6,7 @@
  #define BASE_PROCESS_MEMORY_H_
- 
+
  #include <stddef.h>
 +#include <stdlib.h>
- 
+
  #include "base/base_export.h"
  #include "base/process/process_handle.h"
 --- media/audio/audio_output_device.cc.orig	2016-06-06 21:05:19.000000000 +0200
@@ -278,61 +245,39 @@
 +  render_callback_->Render(output_bus_.get(), round(frames_delayed),
                             frames_skipped);
  }
- 
+
 --- media/audio/audio_output_stream_sink.cc.orig	2016-06-06 21:05:19.000000000 +0200
 +++ media/audio/audio_output_stream_sink.cc	2016-06-12 20:35:05.000000000 +0200
 @@ -85,7 +85,7 @@
    if (!active_render_callback_)
      return 0;
- 
+
 -  uint32_t frames_delayed = std::round(static_cast<double>(total_bytes_delay) /
 +  uint32_t frames_delayed = round(static_cast<double>(total_bytes_delay) /
                                         active_params_.GetBytesPerFrame());
- 
+
    return active_render_callback_->Render(dest, frames_delayed, frames_skipped);
---- media/base/audio_renderer_mixer_input.cc.orig	2016-06-06 21:05:19.000000000 +0200
-+++ media/base/audio_renderer_mixer_input.cc	2016-06-12 20:50:35.000000000 +0200
-@@ -164,7 +164,7 @@
-   // TODO(chcunningham): Delete this conversion and change ProvideInput to more
-   // precisely describe delay as a count of frames delayed instead of TimeDelta.
-   // See http://crbug.com/587522.
--  uint32_t frames_delayed = std::round(buffer_delay.InMicroseconds() /
-+  uint32_t frames_delayed = round(buffer_delay.InMicroseconds() /
-                                        params_.GetMicrosecondsPerFrame());
- 
-   int frames_filled = callback_->Render(audio_bus, frames_delayed, 0);
---- media/base/audio_renderer_mixer.cc.orig	2016-06-06 21:05:19.000000000 +0200
-+++ media/base/audio_renderer_mixer.cc	2016-06-12 20:52:34.000000000 +0200
-@@ -138,7 +138,7 @@
-   // expect a count of frames delayed instead of TimeDelta (less precise).
-   // See http://crbug.com/587522.
-   base::TimeDelta audio_delay = base::TimeDelta::FromMicroseconds(
--      std::round(frames_delayed * output_params_.GetMicrosecondsPerFrame()));
-+      round(frames_delayed * output_params_.GetMicrosecondsPerFrame()));
- 
-   master_converter_.ConvertWithDelay(audio_delay, audio_bus);
-   return audio_bus->frames();
 --- third_party/WebKit/Source/modules/battery/battery_status.h.orig	2016-06-06 21:05:36.000000000 +0200
 +++ third_party/WebKit/Source/modules/battery/battery_status.h	2016-06-13 20:21:31.000000000 +0200
 @@ -46,7 +46,7 @@
      // of reducing the possibility of fingerprinting and triggers less level
      // change events on platforms where the granularity is high.
-     ASSERT(level >= 0 && level <= 1);
+     DCHECK(level >= 0 && level <= 1);
 -    return std::round(level * 100) / 100.f;
 +    return round(level * 100) / 100.f;
    }
- 
+
    bool charging_;
 --- chrome/common/channel_info_posix.cc.orig	2016-06-06 21:05:14.000000000 +0200
 +++ chrome/common/channel_info_posix.cc	2016-06-13 21:36:53.000000000 +0200
 @@ -8,6 +8,8 @@
  #include "build/build_config.h"
  #include "components/version_info/version_info.h"
- 
+
 +#include <stdlib.h>
 +
  namespace chrome {
- 
+
  namespace {
 --- chrome/browser/ui/views/tabs/tab_strip.cc.orig	2016-06-06 21:05:14.000000000 +0200
 +++ chrome/browser/ui/views/tabs/tab_strip.cc	2016-06-13 22:03:03.000000000 +0200
@@ -360,3 +305,13 @@
            CreateShadowDrawLooper(SkColorSetA(stroke_color, alpha)));
        canvas->DrawPath(fill, paint);
 
+--- base/trace_event/heap_profiler_allocation_context_tracker.cc.orig	2016-08-03 22:02:10.000000000 +0300
++++ base/trace_event/heap_profiler_allocation_context_tracker.cc	2016-08-21 04:17:53.717876000 +0300
+@@ -13,6 +13,7 @@
+ #include "base/threading/thread_local_storage.h"
+ #include "base/trace_event/heap_profiler_allocation_context.h"
+
++#include <stdio.h>
+ #if defined(OS_LINUX) || defined(OS_ANDROID)
+ #include <sys/prctl.h>
+ #endif

Added: head/www/chromium/files/patch-BUILD.gn
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-BUILD.gn	Tue Nov 22 19:10:21 2016	(r426855)
@@ -0,0 +1,164 @@
+--- BUILD.gn.orig	2016-10-06 04:02:07.000000000 +0300
++++ BUILD.gn	2016-10-13 10:32:25.742762000 +0300
+@@ -201,7 +201,7 @@
+     ]
+   }
+ 
+-  if (!is_ios && !is_android && !is_chromecast) {
++  if (!is_ios && !is_android && !is_bsd && !is_chromecast) {
+     deps += [
+       "//chrome",
+       "//chrome/test:browser_tests",
+@@ -260,7 +260,7 @@
+     ]
+   }
+ 
+-  if (!is_ios) {
++  if (!is_ios && !is_bsd) {
+     # 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 += [
+@@ -300,7 +300,7 @@
+       "//ui/touch_selection:ui_touch_selection_unittests",
+       "//url/ipc:url_ipc_unittests",
+     ]
+-  } else {
++  } else if (!is_bsd) {
+     deps += [ "//ios:all" ]
+   }
+ 
+@@ -457,7 +457,7 @@
+     ]
+   }
+ 
+-  if (is_linux) {
++  if (is_linux || is_bsd) {
+     # The following are definitely linux-only.

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***



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