Index: head/www/chromium/Makefile =================================================================== --- head/www/chromium/Makefile (revision 493749) +++ head/www/chromium/Makefile (revision 493750) @@ -1,331 +1,342 @@ # Created by: Florent Thoumie # $FreeBSD$ PORTNAME= chromium -PORTVERSION= 71.0.3578.98 -PORTREVISION= 2 +PORTVERSION= 72.0.3626.119 CATEGORIES?= www MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \ LOCAL/cpm/chromium/:fonts DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER?= chromium@FreeBSD.org COMMENT?= Google web browser based on WebKit LICENSE= BSD3CLAUSE LGPL21 MPL11 LICENSE_COMB= multi BUILD_DEPENDS= bash:shells/bash \ ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR} \ .if !defined(GN_ONLY) BUILD_DEPENDS+= gperf:devel/gperf \ yasm:devel/yasm \ ffmpeg>=3.2.2,1:multimedia/ffmpeg \ flock:sysutils/flock \ node:www/node \ ${LOCALBASE}/bin/ar:devel/binutils \ ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat \ ${LOCALBASE}/share/usbids/usb.ids:misc/usbids \ ${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} .endif .if !defined(GN_ONLY) LIB_DEPENDS= libatk-bridge-2.0.so:accessibility/at-spi2-atk \ libatspi.so:accessibility/at-spi2-core \ libspeechd.so:accessibility/speech-dispatcher \ libsnappy.so:archivers/snappy \ libFLAC.so:audio/flac \ libopus.so:audio/opus \ libspeex.so:audio/speex \ libdbus-1.so:devel/dbus \ libdbus-glib-1.so:devel/dbus-glib \ libicuuc.so:devel/icu \ libjsoncpp.so:devel/jsoncpp \ libpci.so:devel/libpci \ libnspr4.so:devel/nspr \ libre2.so:devel/re2 \ libcairo.so:graphics/cairo \ libdrm.so:graphics/libdrm \ libexif.so:graphics/libexif \ libpng.so:graphics/png \ libwebp.so:graphics/webp \ libavcodec.so:multimedia/ffmpeg \ libopenh264.so:multimedia/openh264 \ libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz \ libharfbuzz-icu.so:print/harfbuzz-icu \ libgcrypt.so:security/libgcrypt \ libsecret-1.so:security/libsecret \ libnss3.so:security/nss \ libexpat.so:textproc/expat2 \ libfontconfig.so:x11-fonts/fontconfig RUN_DEPENDS= xdg-open:devel/xdg-utils \ noto-lite>0:x11-fonts/noto-lite BROKEN_FreeBSD_11_aarch64= components/safe_browsing_db/v4_rice.cc:120:18: use of overloaded operator '&' is ambiguous ONLY_FOR_ARCHS= aarch64 amd64 i386 .endif .if defined(GN_ONLY) USES= compiler:c++14-lang dos2unix localbase:ldflags ninja pkgconfig \ python:2.7,build shebangfix tar:xz .else USES= bison cpe desktop-file-utils dos2unix gl gnome jpeg localbase:ldflags \ ninja perl5 pkgconfig python:2.7,build shebangfix tar:xz .endif MAKE_ARGS= -C out/${BUILDTYPE} BINARY_ALIAS= python=${PYTHON_CMD} DOS2UNIX_FILES= third_party/skia/third_party/vulkanmemoryallocator/include/vk_mem_alloc.h .if !defined(GN_ONLY) CPE_VENDOR= google CPE_PRODUCT= chrome USE_GL= gl USE_LDCONFIG= ${DATADIR} USE_PERL5= build USE_XORG= x11 xcb xcomposite xcursor xext xdamage xfixes xi \ xorgproto xrandr xrender xscrnsaver xtst USE_GNOME= atk dconf glib20 gtk30 libxml2 libxslt SHEBANG_FILES= chrome/tools/build/linux/chrome-wrapper ALL_TARGET= chrome INSTALLS_ICONS= yes .endif EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang # TODO bz@ : install libwidevinecdm.so (see third_party/widevine/cdm/BUILD.gn) # # Run "./out/${BUILDTYPE}/gn args out/${BUILDTYPE} --list" for all 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_hangout_services_extension=true \ enable_nacl=false \ enable_one_click_signin=true \ enable_remoting=false \ fieldtrial_testing_like_official_build=true \ is_clang=true \ jumbo_file_merge_limit=8 \ toolkit_views=true \ treat_warnings_as_errors=false \ use_allocator="none" \ use_allocator_shim=false \ use_aura=true \ use_bundled_fontconfig=false \ use_custom_libcxx=false \ use_gnome_keyring=false \ use_jumbo_build=true \ use_lld=true \ use_sysroot=false \ use_system_freetype=true \ use_system_harfbuzz=true \ use_system_libjpeg=true \ extra_cxxflags="${CXXFLAGS}" \ extra_ldflags="${LDFLAGS}" # TODO: investigate building with these options: # use_system_minigbm GN_BOOTSTRAP_FLAGS= --no-clean --no-rebuild --skip-generate-buildfiles # 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. GN_ARGS+= google_api_key="AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8" \ google_default_client_id="996322985003.apps.googleusercontent.com" \ google_default_client_secret="IR1za9-1VK0zZ0f_O8MVFicn" .if !defined(GN_ONLY) SUB_FILES= chromium-browser.desktop chrome pkg-message SUB_LIST+= COMMENT="${COMMENT}" OPTIONS_DEFINE= CODECS CUPS DEBUG DRIVER KERBEROS TEST CODECS_DESC= Compile and enable patented codecs like H.264 DRIVER_DESC= Install chromedriver OPTIONS_GROUP= AUDIO OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO SNDIO OPTIONS_DEFAULT= ALSA CODECS CUPS DRIVER KERBEROS OPTIONS_SUB= yes ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \ alsa-lib>=1.1.1_1:audio/alsa-lib ALSA_VARS= GN_ARGS+=use_alsa=true ALSA_VARS_OFF= GN_ARGS+=use_alsa=false CODECS_VARS= GN_ARGS+=ffmpeg_branding="Chrome" \ GN_ARGS+=proprietary_codecs=true \ GN_ARGS+=enable_hevc_demuxing=true CODECS_VARS_OFF= GN_ARGS+=ffmpeg_branding="Chromium" \ GN_ARGS+=proprietary_codecs=false \ GN_ARGS+=enable_hevc_demuxing=false CUPS_LIB_DEPENDS= libcups.so:print/cups CUPS_VARS= GN_ARGS+=use_cups=true CUPS_VARS_OFF= GN_ARGS+=use_cups=false DEBUG_VARS= BUILDTYPE=Debug \ GN_ARGS+=is_debug=true \ GN_ARGS+=is_component_build=false \ GN_BOOTSTRAP_FLAGS+=--debug \ WANTSPACE="lots of free disk space (~ 13GB)" DEBUG_VARS_OFF= BUILDTYPE=Release \ GN_ARGS+=is_debug=false \ GN_ARGS+=is_official_build=true \ GN_ARGS+=symbol_level=0 \ GN_ARGS+=remove_webcore_debug_symbols=true \ WANTSPACE="a fair amount of free disk space (~ 6.5GB)" -DRIVER_BUILD_DEPENDS= git:devel/git DRIVER_MAKE_ARGS= chromedriver KERBEROS_VARS= GN_ARGS+=use_kerberos=true KERBEROS_VARS_OFF= GN_ARGS+=use_kerberos=false PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_VARS= GN_ARGS+=use_pulseaudio=true PULSEAUDIO_VARS_OFF= GN_ARGS+=use_pulseaudio=false # With SNDIO=on we exclude audio_manager_linux from the build (see # media/audio/BUILD.gn) and use audio_manager_openbsd which does not # support falling back to ALSA or PulseAudio. SNDIO_PREVENTS= ALSA PULSEAUDIO SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio SNDIO_VARS= GN_ARGS+=use_sndio=true SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false .endif .include "Makefile.tests" TEST_ALL_TARGET= ${TEST_TARGETS} TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX} \ test_fonts${EXTRACT_SUFX}:fonts .include # swiftshader/lib/{libEGL.so,libGLESv2.so} is x86 only .if ${ARCH} == aarch64 PLIST_SUB+= NOT_AARCH64="@comment " .else PLIST_SUB+= NOT_AARCH64="" .endif +# Make better javascript with java +.if ${ARCH} == amd64 && !defined(GN_ONLY) +JAVA_BUILD= yes +JAVA_VERSION= 1.8 +USE_JAVA= yes +.endif + # Allow relocations against read-only segments (override lld default) LDFLAGS_i386= -Wl,-znotext # TODO: -isystem, would be just as ugly as this approach, but more reliably # build would fail without C_INCLUDE_PATH/CPLUS_INCLUDE_PATH env var set. MAKE_ENV+= C_INCLUDE_PATH=${LOCALBASE}/include \ CPLUS_INCLUDE_PATH=${LOCALBASE}/include .if !defined(GN_ONLY) pre-everything:: @${ECHO_MSG} @${ECHO_MSG} "To build Chromium, you should have around 2GB of memory" @${ECHO_MSG} "and ${WANTSPACE}." @${ECHO_MSG} post-extract-TEST-on: @${MKDIR} ${WRKSRC}/third_party/test_fonts/test_fonts @${MV} ${WRKDIR}/test_fonts ${WRKSRC}/third_party/test_fonts/ post-patch: @${REINPLACE_CMD} -e 's|@@PACKAGE@@|chromium|' \ -e 's|@@MENUNAME@@|Chromium Web Browser|' \ ${WRKSRC}/chrome/app/resources/manpage.1.in post-patch-SNDIO-on: @${MKDIR} ${WRKSRC}/media/audio/sndio ${WRKSRC}/media/audio/openbsd @${CP} ${FILESDIR}/sndio_output.* ${WRKSRC}/media/audio/sndio @${CP} ${FILESDIR}/sndio_input.* ${WRKSRC}/media/audio/sndio @${CP} ${FILESDIR}/audio_manager_openbsd.* ${WRKSRC}/media/audio/openbsd pre-configure: # We used to remove bundled libraries to be sure that chromium uses # system libraries and not shipped ones. # cd ${WRKSRC} && ${PYTHON_CMD} \ #./build/linux/unbundle/remove_bundled_libraries.py [list of preserved] cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PYTHON_CMD} \ ./build/linux/unbundle/replace_gn_files.py --system-libraries \ ffmpeg flac freetype harfbuzz-ng libdrm libusb libwebp libxml libxslt openh264 opus snappy yasm || ${FALSE} .endif do-configure: # GN generator bootstrapping and generating ninja files cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} CC=${CC} CXX=${CXX} LD=${CXX} \ READELF=${READELF} AR=${AR} NM=${NM} ${PYTHON_CMD} \ ./tools/gn/bootstrap/bootstrap.py ${GN_BOOTSTRAP_FLAGS} .if !defined(GN_ONLY) cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./out/${BUILDTYPE}/gn \ gen --args='${GN_ARGS}' out/${BUILDTYPE} # Setup nodejs dependency @${MKDIR} ${WRKSRC}/third_party/node/freebsd/node-freebsd-x64/bin ${LN} -sf ${LOCALBASE}/bin/node ${WRKSRC}/third_party/node/freebsd/node-freebsd-x64/bin/node + + # Setup java dependency on amd64 +.if ${ARCH} == amd64 + @${MKDIR} ${WRKDIR}/bin + ${LN} -sf ${LOCALBASE}/openjdk8/bin/java ${WRKDIR}/bin/java +.endif .endif do-test-TEST-on: cd ${WRKSRC}/out/${BUILDTYPE}/gn_build && ./gn_unittests .for t in ${TEST_TARGETS} cd ${WRKSRC}/out/${BUILDTYPE} && ${SETENV} LC_ALL=en_US.UTF-8 \ ./${t} --gtest_filter=-${EXCLUDE_${t}:ts:} || ${TRUE} .endfor .if !defined(GN_ONLY) do-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_MAN} ${WRKSRC}/chrome/app/resources/manpage.1.in \ ${STAGEDIR}${MANPREFIX}/man/man1/chrome.1 .for s in 22 24 48 64 128 256 @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps ${INSTALL_DATA} ${WRKSRC}/chrome/app/theme/chromium/product_logo_${s}.png \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/chrome.png .endfor ${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/*.png ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/*.pak ${STAGEDIR}${DATADIR} .for d in protoc icudtl.dat mksnapshot natives_blob.bin snapshot_blob.bin v8_context_snapshot.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 resources" ${STAGEDIR}${DATADIR} @${MKDIR} ${STAGEDIR}${DESKTOPDIR} ${INSTALL_DATA} ${WRKDIR}/chromium-browser.desktop \ ${STAGEDIR}${DESKTOPDIR} ${INSTALL_SCRIPT} ${WRKDIR}/chrome ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/chrome/tools/build/linux/chrome-wrapper \ ${STAGEDIR}${DATADIR} # ANGLE .for f in libEGL.so libGLESv2.so ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/${f} ${STAGEDIR}${DATADIR} .endfor # SwiftShader .if ${ARCH} != aarch64 @${MKDIR} ${STAGEDIR}${DATADIR}/swiftshader .for g in libEGL.so libGLESv2.so ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/swiftshader/${g} \ ${STAGEDIR}${DATADIR}/swiftshader .endfor .endif post-install-DEBUG-on: ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/*.so \ ${STAGEDIR}${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/character_data_generator \ ${STAGEDIR}${DATADIR} post-install-DRIVER-on: ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/chromedriver \ ${STAGEDIR}${PREFIX}/bin .endif .include Index: head/www/chromium/distinfo =================================================================== --- head/www/chromium/distinfo (revision 493749) +++ head/www/chromium/distinfo (revision 493750) @@ -1,7 +1,7 @@ -TIMESTAMP = 1544905827 -SHA256 (chromium-71.0.3578.98.tar.xz) = 1c56a9e30825774c83d568d194e9585625c6e90f81ee0ef09760fcedc86b9d45 -SIZE (chromium-71.0.3578.98.tar.xz) = 633860888 -SHA256 (chromium-71.0.3578.98-testdata.tar.xz) = 5559bc92d6fbf17e88828dbeb94015d2f7998a12e2d0fe27a33096f7c16b434f -SIZE (chromium-71.0.3578.98-testdata.tar.xz) = 350636612 +TIMESTAMP = 1550860551 +SHA256 (chromium-72.0.3626.119.tar.xz) = b3953ce18044117d98f0b1b9922aeb93030a7b49b85b140060c6fe3e467a917a +SIZE (chromium-72.0.3626.119.tar.xz) = 686429876 +SHA256 (chromium-72.0.3626.119-testdata.tar.xz) = 03e7d1beb09dd2c4f544e2df04b20e9b6262b8f8e43d16c1bd032b36cd67403a +SIZE (chromium-72.0.3626.119-testdata.tar.xz) = 351950800 SHA256 (test_fonts.tar.xz) = cf9cbe3b7f1c4c42d426bddc65ec178d333ad7e205a36fe0a606a3c0c545ece1 SIZE (test_fonts.tar.xz) = 200040 Index: head/www/chromium/files/patch-content_browser_service_worker_service_worker_fetch_dispatcher.cc =================================================================== --- head/www/chromium/files/patch-content_browser_service_worker_service_worker_fetch_dispatcher.cc (revision 493749) +++ head/www/chromium/files/patch-content_browser_service_worker_service_worker_fetch_dispatcher.cc (nonexistent) @@ -1,11 +0,0 @@ ---- content/browser/service_worker/service_worker_fetch_dispatcher.cc.orig 2019-01-09 21:08:27.096726000 +0100 -+++ content/browser/service_worker/service_worker_fetch_dispatcher.cc 2019-01-09 21:09:45.655612000 +0100 -@@ -625,7 +625,7 @@ - network::ResourceRequest request; - request.method = original_request->method(); - request.url = original_request->url(); -- // TODO(horo): Set site_for_cookies to support Same-site Cookies. -+ request.site_for_cookies = original_request->site_for_cookies(); - request.request_initiator = - original_request->initiator().has_value() - ? original_request->initiator() Property changes on: head/www/chromium/files/patch-content_browser_service_worker_service_worker_fetch_dispatcher.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-v8_src_builtins_builtins-string-gen.cc =================================================================== --- head/www/chromium/files/patch-v8_src_builtins_builtins-string-gen.cc (revision 493749) +++ head/www/chromium/files/patch-v8_src_builtins_builtins-string-gen.cc (nonexistent) @@ -1,61 +0,0 @@ ---- v8/src/builtins/builtins-string-gen.cc.orig 2019-01-09 20:22:12.074879000 +0100 -+++ v8/src/builtins/builtins-string-gen.cc 2019-01-09 21:52:28.439367000 +0100 -@@ -2493,41 +2493,38 @@ - } - } - --TNode StringBuiltinsAssembler::IsStringPrimitiveWithNoCustomIteration( -- TNode object, TNode context) { -- Label if_false(this, Label::kDeferred), exit(this); -- TVARIABLE(BoolT, var_result); -+void StringBuiltinsAssembler::BranchIfStringPrimitiveWithNoCustomIteration( -+ TNode object, TNode context, Label* if_true, -+ Label* if_false) { -+ GotoIf(TaggedIsSmi(object), if_false); -+ GotoIfNot(IsString(CAST(object)), if_false); - -- GotoIf(TaggedIsSmi(object), &if_false); -- GotoIfNot(IsString(CAST(object)), &if_false); -+ // Bailout if the new array doesn't fit in new space. -+ const TNode length = LoadStringLengthAsWord(CAST(object)); -+ // Since we don't have allocation site, base size does not include -+ // AllocationMemento::kSize. -+ GotoIfFixedArraySizeDoesntFitInNewSpace( -+ length, if_false, JSArray::kSize + FixedArray::kHeaderSize, -+ INTPTR_PARAMETERS); - - // Check that the String iterator hasn't been modified in a way that would - // affect iteration. - Node* protector_cell = LoadRoot(RootIndex::kStringIteratorProtector); - DCHECK(isolate()->heap()->string_iterator_protector()->IsPropertyCell()); -- var_result = -- WordEqual(LoadObjectField(protector_cell, PropertyCell::kValueOffset), -- SmiConstant(Isolate::kProtectorValid)); -- Goto(&exit); -- -- BIND(&if_false); -- { -- var_result = Int32FalseConstant(); -- Goto(&exit); -- } -- -- BIND(&exit); -- return var_result.value(); -+ Branch(WordEqual(LoadObjectField(protector_cell, PropertyCell::kValueOffset), -+ SmiConstant(Isolate::kProtectorValid)), -+ if_true, if_false); - } - -+// This function assumes StringPrimitiveWithNoCustomIteration is true. - TNode StringBuiltinsAssembler::StringToList(TNode context, - TNode string) { -- CSA_ASSERT(this, IsStringPrimitiveWithNoCustomIteration(string, context)); - const ElementsKind kind = PACKED_ELEMENTS; - const TNode length = LoadStringLengthAsWord(string); - - Node* const array_map = - LoadJSArrayElementsMap(kind, LoadNativeContext(context)); -+ // Allocate the array to new space, assuming that the new array will fit in. - Node* const array = AllocateJSArray(kind, array_map, length, SmiTag(length)); - Node* const elements = LoadElements(array); - Property changes on: head/www/chromium/files/patch-v8_src_builtins_builtins-string-gen.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-tools_gn_bootstrap_bootstrap.py =================================================================== --- head/www/chromium/files/patch-tools_gn_bootstrap_bootstrap.py (revision 493749) +++ head/www/chromium/files/patch-tools_gn_bootstrap_bootstrap.py (nonexistent) @@ -1,20 +0,0 @@ ---- tools/gn/bootstrap/bootstrap.py.orig 2018-12-12 22:56:27.000000000 +0100 -+++ tools/gn/bootstrap/bootstrap.py 2018-12-16 00:01:37.174054000 +0100 -@@ -76,8 +76,6 @@ - '--no-last-commit-position', - '--out-path=' + gn_build_dir, - ] -- if not options.with_sysroot: -- cmd.append('--no-sysroot') - if options.debug: - cmd.append('--debug') - subprocess.check_call(cmd) -@@ -86,6 +84,8 @@ - os.path.join(BOOTSTRAP_DIR, 'last_commit_position.h'), gn_build_dir) - subprocess.check_call( - ['ninja', '-C', gn_build_dir, 'gn', '-w', 'dupbuild=err']) -+ subprocess.check_call( -+ ['ninja', '-C', gn_build_dir, 'gn_unittests', '-w', 'dupbuild=err']) - shutil.copy2(os.path.join(gn_build_dir, 'gn'), gn_path) - - if not options.skip_generate_buildfiles: Property changes on: head/www/chromium/files/patch-tools_gn_bootstrap_bootstrap.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_shaping_harfbuzz__face.cc =================================================================== --- head/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_shaping_harfbuzz__face.cc (revision 493749) +++ head/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_shaping_harfbuzz__face.cc (nonexistent) @@ -1,20 +0,0 @@ ---- third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc.orig 2018-12-29 14:23:27.944448000 +0100 -+++ third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc 2018-12-29 14:29:49.494355000 +0100 -@@ -139,7 +139,7 @@ - static void HarfBuzzGetGlyphHorizontalAdvances(hb_font_t* font, - void* font_data, - unsigned count, -- hb_codepoint_t* first_glyph, -+ const hb_codepoint_t* first_glyph, - unsigned int glyph_stride, - hb_position_t* first_advance, - unsigned int advance_stride, -@@ -147,7 +147,7 @@ - HarfBuzzFontData* hb_font_data = - reinterpret_cast(font_data); - SkiaTextMetrics(&hb_font_data->paint_) -- .GetGlyphWidthForHarfBuzz(count, first_glyph, glyph_stride, first_advance, -+ .GetGlyphWidthForHarfBuzz(count, const_cast(first_glyph), glyph_stride, first_advance, - advance_stride); - } - Property changes on: head/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_shaping_harfbuzz__face.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_pdfium_fxjs_js__define.cpp =================================================================== --- head/www/chromium/files/patch-third__party_pdfium_fxjs_js__define.cpp (revision 493749) +++ head/www/chromium/files/patch-third__party_pdfium_fxjs_js__define.cpp (nonexistent) @@ -1,22 +0,0 @@ ---- third_party/pdfium/fxjs/js_define.cpp.orig 2018-12-15 15:47:24.332696000 +0100 -+++ third_party/pdfium/fxjs/js_define.cpp 2018-12-15 15:47:30.435519000 +0100 -@@ -24,6 +24,11 @@ - return 0; - time_t t = 0; - FXSYS_time(&t); -+#ifdef __FreeBSD__ -+ struct tm lt; -+ localtime_r(&t, <); -+ return (double)(-(lt.tm_gmtoff * 1000)); -+#else - localtime(&t); - #if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ - // In gcc 'timezone' is a global variable declared in time.h. In VC++, that -@@ -32,6 +37,7 @@ - _get_timezone(&timezone); - #endif // _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ - return (double)(-(timezone * 1000)); -+#endif // __FreeBSD__ - } - - int GetDaylightSavingTA(double d) { Property changes on: head/www/chromium/files/patch-third__party_pdfium_fxjs_js__define.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-v8_src_builtins_builtins-string-gen.h =================================================================== --- head/www/chromium/files/patch-v8_src_builtins_builtins-string-gen.h (revision 493749) +++ head/www/chromium/files/patch-v8_src_builtins_builtins-string-gen.h (nonexistent) @@ -1,15 +0,0 @@ ---- v8/src/builtins/builtins-string-gen.h.orig 2019-01-09 20:22:23.363855000 +0100 -+++ v8/src/builtins/builtins-string-gen.h 2019-01-09 20:25:02.361877000 +0100 -@@ -23,8 +23,10 @@ - Node* rhs, Node* rhs_instance_type, - TNode length, Label* if_equal, - Label* if_not_equal, Label* if_indirect); -- TNode IsStringPrimitiveWithNoCustomIteration(TNode object, -- TNode context); -+ void BranchIfStringPrimitiveWithNoCustomIteration(TNode object, -+ TNode context, -+ Label* if_true, -+ Label* if_false); - - protected: - TNode StringToList(TNode context, TNode string); Property changes on: head/www/chromium/files/patch-v8_src_builtins_builtins-string-gen.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-base_process_process__info__linux.cc =================================================================== --- head/www/chromium/files/patch-base_process_process__info__linux.cc (revision 493749) +++ head/www/chromium/files/patch-base_process_process__info__linux.cc (nonexistent) @@ -1,39 +0,0 @@ ---- 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" - #include "base/time/time.h" - -+#if defined(__FreeBSD__) || defined(__DragonFly__) -+#include -+#include -+#include -+#endif -+ - namespace base { - - // static - const Time CurrentProcessInfo::CreationTime() { -+#if defined(__FreeBSD__) || defined(__DragonFly__) -+ int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, getpid() }; -+ struct kinfo_proc proc; -+ size_t len = sizeof(struct kinfo_proc); -+ if (sysctl(mib, arraysize(mib), &proc, &len, NULL, 0) < 0) -+ return Time(); -+#if defined(__DragonFly__) -+ return Time::FromTimeVal(proc.kp_start); -+#else -+ return Time::FromTimeVal(proc.ki_start); -+#endif -+#else - int64_t start_ticks = - internal::ReadProcSelfStatsAndGetFieldAsInt64(internal::VM_STARTTIME); - 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 - } - - } // namespace base Property changes on: head/www/chromium/files/patch-base_process_process__info__linux.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-net_base_network__interfaces__freebsd.cc =================================================================== --- head/www/chromium/files/patch-net_base_network__interfaces__freebsd.cc (revision 493749) +++ head/www/chromium/files/patch-net_base_network__interfaces__freebsd.cc (nonexistent) @@ -1,243 +0,0 @@ ---- net/base/network_interfaces_freebsd.cc.orig 2017-07-05 18:08:44.779023000 +0200 -+++ net/base/network_interfaces_freebsd.cc 2017-07-05 22:03:18.679624000 +0200 -@@ -0,0 +1,240 @@ -+// Copyright (c) 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#include "net/base/network_interfaces_freebsd.h" -+ -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+ -+#include -+#include -+ -+#include "base/files/file_path.h" -+#include "base/logging.h" -+#include "base/strings/string_number_conversions.h" -+#include "base/strings/string_tokenizer.h" -+#include "base/strings/string_util.h" -+#include "base/threading/thread_restrictions.h" -+#include "net/base/escape.h" -+#include "net/base/ip_endpoint.h" -+#include "net/base/net_errors.h" -+#include "net/base/network_interfaces_posix.h" -+#include "url/gurl.h" -+ -+namespace net { -+ -+namespace { -+ -+// FreeBSD implementation of IPAttributesGetterFreeBSD which calls ioctl on socket to -+// retrieve IP attributes. -+class IPAttributesGetterFreeBSDImpl : public internal::IPAttributesGetterFreeBSD { -+ public: -+ IPAttributesGetterFreeBSDImpl(); -+ ~IPAttributesGetterFreeBSDImpl() override; -+ bool IsInitialized() const override; -+ bool GetIPAttributes(const char* ifname, -+ const sockaddr* sock_addr, -+ int* native_attributes) override; -+ -+ private: -+ int ioctl_socket_; -+}; -+ -+IPAttributesGetterFreeBSDImpl::IPAttributesGetterFreeBSDImpl() -+ : ioctl_socket_(socket(AF_INET6, SOCK_DGRAM, 0)) { -+ DCHECK_GE(ioctl_socket_, 0); -+} -+ -+bool IPAttributesGetterFreeBSDImpl::IsInitialized() const { -+ return ioctl_socket_ >= 0; -+} -+ -+IPAttributesGetterFreeBSDImpl::~IPAttributesGetterFreeBSDImpl() { -+ if (ioctl_socket_ >= 0) { -+ close(ioctl_socket_); -+ } -+} -+ -+bool IPAttributesGetterFreeBSDImpl::GetIPAttributes(const char* ifname, -+ const sockaddr* sock_addr, -+ int* native_attributes) { -+ struct in6_ifreq ifr = {}; -+ strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name) - 1); -+ memcpy(&ifr.ifr_ifru.ifru_addr, sock_addr, sock_addr->sa_len); -+ int rv = ioctl(ioctl_socket_, SIOCGIFAFLAG_IN6, &ifr); -+ if (rv >= 0) { -+ *native_attributes = ifr.ifr_ifru.ifru_flags; -+ } -+ return (rv >= 0); -+} -+ -+// When returning true, the platform native IPv6 address attributes were -+// successfully converted to net IP address attributes. Otherwise, returning -+// false and the caller should drop the IP address which can't be used by the -+// application layer. -+bool TryConvertNativeToNetIPAttributes(int native_attributes, -+ int* net_attributes) { -+ // For FreeBSD, we disallow addresses with attributes IN6_IFF_ANYCASE, -+ // IN6_IFF_DUPLICATED, IN6_IFF_TENTATIVE, and IN6_IFF_DETACHED as these are -+ // still progressing through duplicated address detection (DAD) or are not -+ // suitable to be used in an one-to-one communication and shouldn't be used -+ // by the application layer. -+ if (native_attributes & (IN6_IFF_ANYCAST | IN6_IFF_DUPLICATED | -+ IN6_IFF_TENTATIVE | IN6_IFF_DETACHED)) { -+ return false; -+ } -+ -+ if (native_attributes & IN6_IFF_DEPRECATED) { -+ *net_attributes |= IP_ADDRESS_ATTRIBUTE_DEPRECATED; -+ } -+ -+ return true; -+} -+ -+NetworkChangeNotifier::ConnectionType GetNetworkInterfaceType( -+ int addr_family, -+ const std::string& interface_name) { -+ NetworkChangeNotifier::ConnectionType type = -+ NetworkChangeNotifier::CONNECTION_UNKNOWN; -+ -+ struct ifmediareq ifmr = {}; -+ strncpy(ifmr.ifm_name, interface_name.c_str(), sizeof(ifmr.ifm_name) - 1); -+ -+ int s = socket(addr_family, SOCK_DGRAM, 0); -+ if (s == -1) { -+ return type; -+ } -+ -+ if (ioctl(s, SIOCGIFMEDIA, &ifmr) != -1) { -+ if (ifmr.ifm_current & IFM_IEEE80211) { -+ type = NetworkChangeNotifier::CONNECTION_WIFI; -+ } else if (ifmr.ifm_current & IFM_ETHER) { -+ type = NetworkChangeNotifier::CONNECTION_ETHERNET; -+ } -+ } -+ close(s); -+ return type; -+} -+ -+} // namespace -+ -+namespace internal { -+ -+bool GetNetworkListImpl(NetworkInterfaceList* networks, -+ int policy, -+ const ifaddrs* interfaces, -+ IPAttributesGetterFreeBSD* ip_attributes_getter) { -+ // Enumerate the addresses assigned to network interfaces which are up. -+ for (const ifaddrs* interface = interfaces; interface != NULL; -+ interface = interface->ifa_next) { -+ // Skip loopback interfaces, and ones which are down. -+ if (!(IFF_RUNNING & interface->ifa_flags)) -+ continue; -+ if (IFF_LOOPBACK & interface->ifa_flags) -+ continue; -+ // Skip interfaces with no address configured. -+ struct sockaddr* addr = interface->ifa_addr; -+ if (!addr) -+ continue; -+ -+ // Skip unspecified addresses (i.e. made of zeroes) and loopback addresses -+ // configured on non-loopback interfaces. -+ if (IsLoopbackOrUnspecifiedAddress(addr)) -+ continue; -+ -+ const std::string& name = interface->ifa_name; -+ // Filter out VMware interfaces, typically named vmnet1 and vmnet8. -+ if (ShouldIgnoreInterface(name, policy)) { -+ continue; -+ } -+ -+ NetworkChangeNotifier::ConnectionType connection_type = -+ NetworkChangeNotifier::CONNECTION_UNKNOWN; -+ -+ int ip_attributes = IP_ADDRESS_ATTRIBUTE_NONE; -+ -+ // Retrieve native ip attributes and convert to net version if a getter is -+ // given. -+ if (ip_attributes_getter && ip_attributes_getter->IsInitialized()) { -+ int native_attributes = 0; -+ if (addr->sa_family == AF_INET6 && -+ ip_attributes_getter->GetIPAttributes( -+ interface->ifa_name, interface->ifa_addr, &native_attributes)) { -+ if (!TryConvertNativeToNetIPAttributes(native_attributes, -+ &ip_attributes)) { -+ continue; -+ } -+ } -+ } -+ -+ connection_type = GetNetworkInterfaceType(addr->sa_family, name); -+ -+ IPEndPoint address; -+ -+ int addr_size = 0; -+ if (addr->sa_family == AF_INET6) { -+ addr_size = sizeof(sockaddr_in6); -+ } else if (addr->sa_family == AF_INET) { -+ addr_size = sizeof(sockaddr_in); -+ } -+ -+ if (address.FromSockAddr(addr, addr_size)) { -+ uint8_t prefix_length = 0; -+ if (interface->ifa_netmask) { -+ // If not otherwise set, assume the same sa_family as ifa_addr. -+ if (interface->ifa_netmask->sa_family == 0) { -+ interface->ifa_netmask->sa_family = addr->sa_family; -+ } -+ IPEndPoint netmask; -+ if (netmask.FromSockAddr(interface->ifa_netmask, addr_size)) { -+ prefix_length = MaskPrefixLength(netmask.address()); -+ } -+ } -+ networks->push_back(NetworkInterface( -+ name, name, if_nametoindex(name.c_str()), connection_type, -+ address.address(), prefix_length, ip_attributes)); -+ } -+ } -+ -+ return true; -+} -+ -+} // namespace internal -+ -+bool GetNetworkList(NetworkInterfaceList* networks, int policy) { -+ if (networks == NULL) -+ return false; -+ -+ // getifaddrs() may require IO operations. -+ base::AssertBlockingAllowed(); -+ -+ ifaddrs* interfaces; -+ if (getifaddrs(&interfaces) < 0) { -+ PLOG(ERROR) << "getifaddrs"; -+ return false; -+ } -+ -+ std::unique_ptr ip_attributes_getter; -+ -+ ip_attributes_getter.reset(new IPAttributesGetterFreeBSDImpl()); -+ -+ bool result = internal::GetNetworkListImpl(networks, policy, interfaces, -+ ip_attributes_getter.get()); -+ freeifaddrs(interfaces); -+ return result; -+} -+ -+std::string GetWifiSSID() { -+ NOTIMPLEMENTED(); -+ return ""; -+} -+ -+} // namespace net Property changes on: head/www/chromium/files/patch-net_base_network__interfaces__freebsd.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_webrtc_rtc_base_platform_thread.cc =================================================================== --- head/www/chromium/files/patch-third__party_webrtc_rtc_base_platform_thread.cc (revision 493749) +++ head/www/chromium/files/patch-third__party_webrtc_rtc_base_platform_thread.cc (nonexistent) @@ -1,12 +0,0 @@ ---- third_party/webrtc/rtc_base/platform_thread.cc.orig 2018-06-13 00:12:10.000000000 +0200 -+++ third_party/webrtc/rtc_base/platform_thread.cc 2018-07-19 21:16:37.263549000 +0200 -@@ -15,7 +15,9 @@ - #include "rtc_base/timeutils.h" - - #if defined(WEBRTC_LINUX) -+#if !defined(__FreeBSD__) - #include -+#endif - #include - #endif - Property changes on: head/www/chromium/files/patch-third__party_webrtc_rtc_base_platform_thread.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-base_sys__info__posix.cc =================================================================== --- head/www/chromium/files/patch-base_sys__info__posix.cc (revision 493749) +++ head/www/chromium/files/patch-base_sys__info__posix.cc (nonexistent) @@ -1,38 +0,0 @@ ---- base/sys_info_posix.cc.orig 2018-01-04 21:05:38.000000000 +0100 -+++ base/sys_info_posix.cc 2018-01-27 20:03:02.391851000 +0100 -@@ -35,7 +35,7 @@ - - namespace { - --#if !defined(OS_OPENBSD) && !defined(OS_FUCHSIA) -+#if !defined(OS_BSD) && !defined(OS_FUCHSIA) - 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. -@@ -62,7 +62,7 @@ - base::LazyInstance< - base::internal::LazySysInfoValue >::Leaky - g_lazy_number_of_processors = LAZY_INSTANCE_INITIALIZER; --#endif // !defined(OS_OPENBSD) && !defined(OS_FUCHSIA) -+#endif // !defined(OS_BSD) && !defined(OS_FUCHSIA) - - #if !defined(OS_FUCHSIA) - int64_t AmountOfVirtualMemory() { -@@ -130,7 +130,7 @@ - - namespace base { - --#if !defined(OS_OPENBSD) && !defined(OS_FUCHSIA) -+#if !defined(OS_BSD) && !defined(OS_FUCHSIA) - int SysInfo::NumberOfProcessors() { - return g_lazy_number_of_processors.Get().value(); - } -@@ -223,6 +223,8 @@ - arch = "x86"; - } else if (arch == "amd64") { - arch = "x86_64"; -+ } else if (arch == "arm64") { -+ arch = "aarch64"; - } else if (std::string(info.sysname) == "AIX") { - arch = "ppc64"; - } Property changes on: head/www/chromium/files/patch-base_sys__info__posix.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-tools_gn_util_ticks.cc =================================================================== --- head/www/chromium/files/patch-tools_gn_util_ticks.cc (revision 493749) +++ head/www/chromium/files/patch-tools_gn_util_ticks.cc (nonexistent) @@ -1,38 +0,0 @@ ---- tools/gn/util/ticks.cc.orig 2018-12-12 23:06:54.000000000 +0100 -+++ tools/gn/util/ticks.cc 2018-12-15 22:06:44.653261000 +0100 -@@ -11,7 +11,7 @@ - #include - #elif defined(OS_MACOSX) - #include --#elif defined(OS_LINUX) || defined(OS_AIX) -+#elif defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD) - #include - #else - #error Port. -@@ -27,7 +27,7 @@ - #elif defined(OS_MACOSX) - mach_timebase_info_data_t g_timebase; - uint64_t g_start; --#elif defined(OS_LINUX) || defined(OS_AIX) -+#elif defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD) - uint64_t g_start; - #else - #error Port. -@@ -44,7 +44,7 @@ - #elif defined(OS_MACOSX) - mach_timebase_info(&g_timebase); - g_start = (mach_absolute_time() * g_timebase.numer) / g_timebase.denom; --#elif defined(OS_LINUX) || defined(OS_AIX) -+#elif defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD) - struct timespec ts; - clock_gettime(CLOCK_MONOTONIC, &ts); - g_start = static_cast(ts.tv_sec) * kNano + -@@ -74,7 +74,7 @@ - #elif defined(OS_MACOSX) - now = - ((mach_absolute_time() * g_timebase.numer) / g_timebase.denom) - g_start; --#elif defined(OS_LINUX) || defined(OS_AIX) -+#elif defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD) - struct timespec ts; - clock_gettime(CLOCK_MONOTONIC, &ts); - now = (static_cast(ts.tv_sec) * kNano + Property changes on: head/www/chromium/files/patch-tools_gn_util_ticks.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-net_base_network__interfaces__freebsd.h =================================================================== --- head/www/chromium/files/patch-net_base_network__interfaces__freebsd.h (revision 493749) +++ head/www/chromium/files/patch-net_base_network__interfaces__freebsd.h (nonexistent) @@ -1,47 +0,0 @@ ---- net/base/network_interfaces_freebsd.h.orig 2017-07-04 23:05:05.313339000 +0200 -+++ net/base/network_interfaces_freebsd.h 2017-07-04 23:04:51.039635000 +0200 -@@ -0,0 +1,44 @@ -+// Copyright (c) 2014 The Chromium Authors. All rights reserved. -+// Use of this source code is governed by a BSD-style license that can be -+// found in the LICENSE file. -+ -+#ifndef NET_BASE_NETWORK_INTERFACES_FREEBSD_H_ -+#define NET_BASE_NETWORK_INTERFACES_FREEBSD_H_ -+ -+// This file is only used to expose some of the internals -+// of network_interfaces_mac.cc to tests. -+ -+#include -+ -+#include "base/macros.h" -+#include "net/base/net_export.h" -+#include "net/base/network_interfaces.h" -+ -+struct ifaddrs; -+struct sockaddr; -+ -+namespace net { -+namespace internal { -+ -+class NET_EXPORT IPAttributesGetterFreeBSD { -+ public: -+ IPAttributesGetterFreeBSD() {} -+ virtual ~IPAttributesGetterFreeBSD() {} -+ virtual bool IsInitialized() const = 0; -+ virtual bool GetIPAttributes(const char* ifname, -+ const sockaddr* sock_addr, -+ int* native_attributes) = 0; -+ -+ private: -+ DISALLOW_COPY_AND_ASSIGN(IPAttributesGetterFreeBSD); -+}; -+ -+NET_EXPORT bool GetNetworkListImpl(NetworkInterfaceList* networks, -+ int policy, -+ const ifaddrs* interfaces, -+ IPAttributesGetterFreeBSD* ip_attributes_getter); -+ -+} // namespace internal -+} // namespace net -+ -+#endif // NET_BASE_NETWORK_INTERFACES_FREEBSD_H_ Property changes on: head/www/chromium/files/patch-net_base_network__interfaces__freebsd.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-tools_gn_util_semaphore.h =================================================================== --- head/www/chromium/files/patch-tools_gn_util_semaphore.h (revision 493749) +++ head/www/chromium/files/patch-tools_gn_util_semaphore.h (nonexistent) @@ -1,20 +0,0 @@ ---- tools/gn/util/semaphore.h.orig 2018-12-12 23:06:54.000000000 +0100 -+++ tools/gn/util/semaphore.h 2018-12-15 22:00:54.077539000 +0100 -@@ -15,7 +15,7 @@ - #include - #elif defined(OS_MACOSX) - #include --#elif defined(OS_LINUX) || defined(OS_AIX) -+#elif defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD) - #include - #else - #error Port. -@@ -35,7 +35,7 @@ - - #if defined(OS_MACOSX) - typedef semaphore_t NativeHandle; --#elif defined(OS_LINUX) || defined(OS_AIX) -+#elif defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD) - typedef sem_t NativeHandle; - #elif defined(OS_WIN) - typedef HANDLE NativeHandle; Property changes on: head/www/chromium/files/patch-tools_gn_util_semaphore.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_speech_tts__controller__impl.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_speech_tts__controller__impl.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_speech_tts__controller__impl.cc (nonexistent) @@ -1,16 +0,0 @@ ---- chrome/browser/speech/tts_controller_impl.cc.orig 2017-04-19 19:06:30 UTC -+++ chrome/browser/speech/tts_controller_impl.cc -@@ -347,9 +347,13 @@ int TtsControllerImpl::QueueSize() { - } - - TtsPlatformImpl* TtsControllerImpl::GetPlatformImpl() { -+#if defined(OS_BSD) -+ return NULL; -+#else - if (!platform_impl_) - platform_impl_ = TtsPlatformImpl::GetInstance(); - return platform_impl_; -+#endif - } - - int TtsControllerImpl::GetMatchingVoice( Property changes on: head/www/chromium/files/patch-chrome_browser_speech_tts__controller__impl.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_pdfium_third__party_base_logging.h =================================================================== --- head/www/chromium/files/patch-third__party_pdfium_third__party_base_logging.h (revision 493749) +++ head/www/chromium/files/patch-third__party_pdfium_third__party_base_logging.h (nonexistent) @@ -1,11 +0,0 @@ ---- third_party/pdfium/third_party/base/logging.h.orig 2017-04-19 19:07:50 UTC -+++ third_party/pdfium/third_party/base/logging.h -@@ -10,7 +10,7 @@ - - #ifndef _WIN32 - #define NULL_DEREF_IF_POSSIBLE \ -- *(reinterpret_cast(NULL) + 42) = 0x42; -+ *(reinterpret_cast(__null) + 42) = 0x42; - #else - #define NULL_DEREF_IF_POSSIBLE - #endif Property changes on: head/www/chromium/files/patch-third__party_pdfium_third__party_base_logging.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-v8_src_builtins_builtins-iterator-gen.cc =================================================================== --- head/www/chromium/files/patch-v8_src_builtins_builtins-iterator-gen.cc (revision 493749) +++ head/www/chromium/files/patch-v8_src_builtins_builtins-iterator-gen.cc (nonexistent) @@ -1,19 +0,0 @@ ---- v8/src/builtins/builtins-iterator-gen.cc.orig 2019-01-09 20:18:02.120534000 +0100 -+++ v8/src/builtins/builtins-iterator-gen.cc 2019-01-09 21:49:23.285517000 +0100 -@@ -284,12 +284,12 @@ - - BIND(&check_string); - { -+ Label string_fast_call(this); - StringBuiltinsAssembler string_assembler(state()); -- GotoIfNot(string_assembler.IsStringPrimitiveWithNoCustomIteration(iterable, -- context), -- &slow_path); -+ string_assembler.BranchIfStringPrimitiveWithNoCustomIteration( -+ iterable, context, &string_fast_call, &slow_path); - -- // Fast path for strings. -+ BIND(&string_fast_call); - TailCallBuiltin(Builtins::kStringToList, context, iterable); - } - Property changes on: head/www/chromium/files/patch-v8_src_builtins_builtins-iterator-gen.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-tools_gn_util_semaphore.cc =================================================================== --- head/www/chromium/files/patch-tools_gn_util_semaphore.cc (revision 493749) +++ head/www/chromium/files/patch-tools_gn_util_semaphore.cc (nonexistent) @@ -1,11 +0,0 @@ ---- tools/gn/util/semaphore.cc.orig 2018-12-12 23:06:54.000000000 +0100 -+++ tools/gn/util/semaphore.cc 2018-12-15 22:08:39.431096000 +0100 -@@ -36,7 +36,7 @@ - } - } - --#elif defined(OS_LINUX) || defined(OS_AIX) -+#elif defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD) - - Semaphore::Semaphore(int count) { - DCHECK_GE(count, 0); Property changes on: head/www/chromium/files/patch-tools_gn_util_semaphore.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-base_sys__info__freebsd.cc =================================================================== --- head/www/chromium/files/patch-base_sys__info__freebsd.cc (revision 493749) +++ head/www/chromium/files/patch-base_sys__info__freebsd.cc (nonexistent) @@ -1,71 +0,0 @@ ---- base/sys_info_freebsd.cc.orig 2017-12-15 02:04:05.000000000 +0100 -+++ base/sys_info_freebsd.cc 2017-12-23 21:51:22.626194000 +0100 -@@ -13,26 +13,58 @@ - namespace base { - - int64_t SysInfo::AmountOfPhysicalMemoryImpl() { -- int pages, page_size; -+ int pages, page_size, r = 0; - size_t size = sizeof(pages); -- sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, NULL, 0); -- sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); -- if (pages == -1 || page_size == -1) { -+ if(r == 0) -+ r = sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, NULL, 0); -+ if(r == 0) -+ r =sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); -+ if(r == -1) { - NOTREACHED(); - return 0; - } - return static_cast(pages) * page_size; - } - --// static --uint64_t SysInfo::MaxSharedMemorySize() { -- size_t limit; -- size_t size = sizeof(limit); -- if (sysctlbyname("kern.ipc.shmmax", &limit, &size, NULL, 0) < 0) { -+int64_t SysInfo::AmountOfAvailablePhysicalMemoryImpl() { -+ int page_size, r = 0; -+ unsigned pgfree, pginact, pgcache; -+ size_t size = sizeof(page_size); -+ size_t szpg = sizeof(pgfree); -+ if(r == 0) -+ r = sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); -+ if(r == 0) -+ r = sysctlbyname("vm.stats.vm.v_free_count", &pgfree, &szpg, NULL, 0); -+ if(r == 0) -+ r = sysctlbyname("vm.stats.vm.v_inactive_count", &pginact, &szpg, NULL, 0); -+ if(r == 0) -+ r = sysctlbyname("vm.stats.vm.v_cache_count", &pgcache, &szpg, NULL, 0); -+ if(r == -1) { - NOTREACHED(); - return 0; - } -- return static_cast(limit); -+ return static_cast((pgfree + pginact + pgcache) * page_size); -+} -+ -+// static -+std::string SysInfo::CPUModelName() { -+ int mib[] = { CTL_HW, HW_MODEL }; -+ char name[256]; -+ size_t size = arraysize(name); -+ if (sysctl(mib, arraysize(mib), &name, &size, NULL, 0) == 0) -+ return name; -+ return std::string(); -+} -+ -+int SysInfo::NumberOfProcessors() { -+ int mib[] = { CTL_HW, HW_NCPU }; -+ int ncpu; -+ size_t size = sizeof(ncpu); -+ if (sysctl(mib, arraysize(mib), &ncpu, &size, NULL, 0) == -1) { -+ NOTREACHED(); -+ return 1; -+ } -+ return ncpu; - } - - } // namespace base Property changes on: head/www/chromium/files/patch-base_sys__info__freebsd.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-content_ppapi_plugin_ppapi_plugin_main.cc =================================================================== --- head/www/chromium/files/patch-content_ppapi_plugin_ppapi_plugin_main.cc (revision 493749) +++ head/www/chromium/files/patch-content_ppapi_plugin_ppapi_plugin_main.cc (nonexistent) @@ -1,11 +0,0 @@ ---- content/ppapi_plugin/ppapi_plugin_main.cc.orig 2018-02-24 16:25:14.000000000 +0100 -+++ content/ppapi_plugin/ppapi_plugin_main.cc 2018-03-04 01:29:08.347119000 +0100 -@@ -125,6 +125,8 @@ - service_manager::SandboxTypeFromCommandLine(command_line), - service_manager::SandboxLinux::PreSandboxHook(), - service_manager::SandboxLinux::Options()); -+#elif defined(OS_BSD) -+ NOTIMPLEMENTED(); - #endif - - ChildProcess ppapi_process; Property changes on: head/www/chromium/files/patch-content_ppapi_plugin_ppapi_plugin_main.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-tools_gn_tools_gn_args.cc =================================================================== --- head/www/chromium/files/patch-tools_gn_tools_gn_args.cc (revision 493749) +++ head/www/chromium/files/patch-tools_gn_tools_gn_args.cc (nonexistent) @@ -1,11 +0,0 @@ ---- tools/gn/tools/gn/args.cc.orig 2018-12-15 19:22:28.337753000 +0100 -+++ tools/gn/tools/gn/args.cc 2018-12-15 19:22:44.479580000 +0100 -@@ -294,6 +294,8 @@ - os = "mac"; - #elif defined(OS_LINUX) - os = "linux"; -+#elif defined(OS_BSD) -+ os = "bsd"; - #elif defined(OS_AIX) - os = "aix"; - #else Property changes on: head/www/chromium/files/patch-tools_gn_tools_gn_args.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-tools_gn_util_exe__path.cc =================================================================== --- head/www/chromium/files/patch-tools_gn_util_exe__path.cc (revision 493749) +++ head/www/chromium/files/patch-tools_gn_util_exe__path.cc (nonexistent) @@ -1,33 +0,0 @@ ---- tools/gn/util/exe_path.cc.orig 2018-12-12 23:06:54.000000000 +0100 -+++ tools/gn/util/exe_path.cc 2018-12-15 23:13:30.454635000 +0100 -@@ -13,6 +13,9 @@ - #include - #elif defined(OS_WIN) - #include -+#elif defined(OS_FREEBSD) -+#include -+#include - #endif - - #if defined(OS_MACOSX) -@@ -44,6 +47,20 @@ - return base::FilePath(); - } - return base::FilePath(system_buffer); -+} -+ -+#elif defined(OS_FREEBSD) -+ -+base::FilePath GetExePath() { -+ int name[] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 }; -+ char system_buffer[PATH_MAX + 1]; -+ size_t length = sizeof(system_buffer); -+ int error = sysctl(name, 4, system_buffer, &length, NULL, 0); -+ if (error < 0 || length <= 1) { -+ NOTREACHED() << "Unable to resolve path."; -+ return base::FilePath(); -+ } -+ return base::FilePath(base::FilePath::StringType(system_buffer, length - 1)); - } - - #else Property changes on: head/www/chromium/files/patch-tools_gn_util_exe__path.cc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/chromium/files/patch-base_BUILD.gn =================================================================== --- head/www/chromium/files/patch-base_BUILD.gn (revision 493749) +++ head/www/chromium/files/patch-base_BUILD.gn (revision 493750) @@ -1,67 +1,67 @@ ---- base/BUILD.gn.orig 2018-12-03 21:16:32.000000000 +0100 -+++ base/BUILD.gn 2018-12-05 13:50:51.133919000 +0100 -@@ -1182,7 +1182,7 @@ +--- base/BUILD.gn.orig 2019-02-06 23:06:36.000000000 +0100 ++++ base/BUILD.gn 2019-02-08 20:14:26.420625000 +0100 +@@ -1176,7 +1176,7 @@ # Needed for if using newer C++ library than sysroot, except if # building inside the cros_sdk environment - use host_toolchain as a # more robust check for this. - if (!use_sysroot && (is_android || (is_linux && !is_chromecast)) && + if (!use_sysroot && (is_android || (is_linux && !is_chromecast) && !is_clang) && host_toolchain != "//build/toolchain/cros:host") { libs += [ "atomic" ] } -@@ -1208,7 +1208,7 @@ +@@ -1202,7 +1202,7 @@ "allocator/allocator_shim_override_glibc_weak_symbols.h", ] deps += [ "//base/allocator:tcmalloc" ] - } else if (is_linux && use_allocator == "none") { + } else if ((is_linux && !is_bsd) && use_allocator == "none") { sources += [ "allocator/allocator_shim_default_dispatch_to_glibc.cc" ] } else if (is_android && use_allocator == "none") { sources += [ -@@ -1740,6 +1740,33 @@ +@@ -1739,6 +1739,33 @@ } } + if (is_bsd) { + sources -= [ + "files/file_path_watcher_linux.cc", + "files/file_util_linux.cc", + "process/memory_linux.cc", -+ "process/process_linux.cc", + "process/process_handle_linux.cc", + "process/process_iterator_linux.cc", + "process/process_metrics_linux.cc", -+ "sys_info_linux.cc" ++ "system/sys_info_linux.cc" + ] + sources += [ + "files/file_path_watcher_kqueue.cc", + "files/file_path_watcher_kqueue.h", + "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", -+ "sys_info_freebsd.cc", ++ "system/sys_info_freebsd.cc", + ] + libs = [ + "execinfo", # logging.cc -+ "kvm" # process_metrics_freebsd ++ "kvm", # process_metrics_freebsd ++ "util" # process_metrics_freebsd + ] + } + # iOS if (is_ios) { set_sources_assignment_filter([]) -@@ -2753,6 +2780,12 @@ +@@ -2761,6 +2788,12 @@ ] 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" ] Index: head/www/chromium/files/patch-base_allocator_partition_allocator_page_allocator.cc =================================================================== --- head/www/chromium/files/patch-base_allocator_partition_allocator_page_allocator.cc (nonexistent) +++ head/www/chromium/files/patch-base_allocator_partition_allocator_page_allocator.cc (revision 493750) @@ -0,0 +1,11 @@ +--- base/allocator/partition_allocator/page_allocator.cc.orig 2019-02-06 21:56:56.953755000 +0100 ++++ base/allocator/partition_allocator/page_allocator.cc 2019-02-06 21:57:23.721544000 +0100 +@@ -114,7 +114,7 @@ + uintptr_t align_base_mask = ~align_offset_mask; + DCHECK(!(reinterpret_cast(address) & align_offset_mask)); + +-#if defined(OS_LINUX) && defined(ARCH_CPU_64_BITS) ++#if (defined(OS_BSD) || defined(OS_LINUX)) && defined(ARCH_CPU_64_BITS) + // On 64 bit Linux, we may need to adjust the address space limit for + // guarded allocations. + if (length >= kMinimumGuardedMemorySize) { Property changes on: head/www/chromium/files/patch-base_allocator_partition_allocator_page_allocator.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-base_allocator_partition_allocator_page_allocator_internals_posix.h =================================================================== --- head/www/chromium/files/patch-base_allocator_partition_allocator_page_allocator_internals_posix.h (nonexistent) +++ head/www/chromium/files/patch-base_allocator_partition_allocator_page_allocator_internals_posix.h (revision 493750) @@ -0,0 +1,38 @@ +--- base/allocator/partition_allocator/page_allocator_internals_posix.h.orig 2019-02-06 21:59:00.906521000 +0100 ++++ base/allocator/partition_allocator/page_allocator_internals_posix.h 2019-02-06 22:00:07.553831000 +0100 +@@ -14,7 +14,7 @@ + #if defined(OS_MACOSX) + #include + #endif +-#if defined(OS_LINUX) ++#if defined(OS_BSD) || defined(OS_LINUX) + #include + + #include +@@ -48,7 +48,7 @@ + } + } + +-#if defined(OS_LINUX) && defined(ARCH_CPU_64_BITS) ++#if (defined(OS_BSD) || defined(OS_LINUX)) && defined(ARCH_CPU_64_BITS) + + // Multiple guarded memory regions may exceed the process address space limit. + // This function will raise or lower the limit by |amount|. +@@ -68,7 +68,7 @@ + // schemes that reduce that to 4 GiB. + constexpr size_t kMinimumGuardedMemorySize = 1ULL << 32; // 4 GiB + +-#endif // defined(OS_LINUX) && defined(ARCH_CPU_64_BITS) ++#endif // (defined(OS_BSD) || defined(OS_LINUX)) && defined(ARCH_CPU_64_BITS) + + void* SystemAllocPagesInternal(void* hint, + size_t length, +@@ -134,7 +134,7 @@ + void FreePagesInternal(void* address, size_t length) { + CHECK(!munmap(address, length)); + +-#if defined(OS_LINUX) && defined(ARCH_CPU_64_BITS) ++#if (defined(OS_BSD) || defined(OS_LINUX)) && defined(ARCH_CPU_64_BITS) + // Restore the address space limit. + if (length >= kMinimumGuardedMemorySize) { + CHECK(AdjustAddressSpaceLimit(-base::checked_cast(length))); Property changes on: head/www/chromium/files/patch-base_allocator_partition_allocator_page_allocator_internals_posix.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-base_process_launch__posix.cc =================================================================== --- head/www/chromium/files/patch-base_process_launch__posix.cc (revision 493749) +++ head/www/chromium/files/patch-base_process_launch__posix.cc (revision 493750) @@ -1,10 +1,10 @@ ---- base/process/launch_posix.cc.orig 2017-04-19 19:06:28 UTC -+++ base/process/launch_posix.cc -@@ -64,6 +64,7 @@ - #include "base/feature_list.h" - #else - extern char** environ; -+#pragma weak environ +--- base/process/launch_posix.cc.orig 2019-01-30 02:17:39.000000000 +0100 ++++ base/process/launch_posix.cc 2019-01-31 20:45:00.397199000 +0100 +@@ -63,6 +63,7 @@ + #error "macOS should use launch_mac.cc" #endif + ++#pragma weak environ + extern char** environ; namespace base { Index: head/www/chromium/files/patch-base_process_process__linux.cc =================================================================== --- head/www/chromium/files/patch-base_process_process__linux.cc (nonexistent) +++ head/www/chromium/files/patch-base_process_process__linux.cc (revision 493750) @@ -0,0 +1,18 @@ +--- base/process/process_linux.cc.orig 2019-02-01 23:15:53.491332000 +0100 ++++ base/process/process_linux.cc 2019-02-01 23:16:56.937810000 +0100 +@@ -88,6 +88,7 @@ + return Time(boot_time + start_offset); + } + ++#if !defined(OS_BSD) + // static + bool Process::CanBackgroundProcesses() { + #if defined(OS_CHROMEOS) +@@ -139,6 +140,7 @@ + DPCHECK(result == 0); + return result == 0; + } ++#endif // !defined(OS_BSD) + + #if defined(OS_CHROMEOS) + bool IsProcessBackgroundedCGroup(const StringPiece& cgroup_contents) { Property changes on: head/www/chromium/files/patch-base_process_process__linux.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-base_process_process__metrics__freebsd.cc =================================================================== --- head/www/chromium/files/patch-base_process_process__metrics__freebsd.cc (revision 493749) +++ head/www/chromium/files/patch-base_process_process__metrics__freebsd.cc (revision 493750) @@ -1,85 +1,124 @@ ---- base/process/process_metrics_freebsd.cc.orig 2018-08-01 00:08:25.000000000 +0200 -+++ base/process/process_metrics_freebsd.cc 2018-08-04 21:48:06.554728000 +0200 -@@ -14,11 +14,14 @@ +--- base/process/process_metrics_freebsd.cc.orig 2019-02-06 23:06:36.000000000 +0100 ++++ base/process/process_metrics_freebsd.cc 2019-02-08 19:11:07.753223000 +0100 +@@ -5,6 +5,7 @@ + #include "base/process/process_metrics.h" + + #include ++#include + #include + #include + #include +@@ -14,11 +15,15 @@ #include "base/process/process_metrics_iocounters.h" #include "base/stl_util.h" +#include /* getpagesize() */ +#include /* O_RDONLY */ +#include ++#include + namespace base { ProcessMetrics::ProcessMetrics(ProcessHandle process) - : process_(process), - last_cpu_(0) {} + : process_(process) {} // static std::unique_ptr ProcessMetrics::CreateProcessMetrics( -@@ -67,6 +70,65 @@ +@@ -67,6 +72,95 @@ pagesize = getpagesize(); return mem_total - (mem_free*pagesize) - (mem_inactive*pagesize); +} + +int GetNumberOfThreads(ProcessHandle process) { + // Taken from FreeBSD top (usr.bin/top/machine.c) + + kvm_t* kd = kvm_open(NULL, "/dev/null", NULL, O_RDONLY, "kvm_open"); + if (kd == NULL) + return 0; + + struct kinfo_proc* pbase; + int nproc; + pbase = kvm_getprocs(kd, KERN_PROC_PID, process, &nproc); + if (pbase == NULL) + return 0; + + if (kvm_close(kd) == -1) + return 0; + + return nproc; +} + +bool GetSystemMemoryInfo(SystemMemoryInfoKB *meminfo) { + unsigned int mem_total, mem_free, swap_total, swap_used; + size_t length; + int pagesizeKB; + + pagesizeKB = getpagesize() / 1024; + + length = sizeof(mem_total); + if (sysctlbyname("vm.stats.vm.v_page_count", &mem_total, + &length, NULL, 0) != 0 || length != sizeof(mem_total)) + return false; + + length = sizeof(mem_free); + if (sysctlbyname("vm.stats.vm.v_free_count", &mem_free, &length, NULL, 0) + != 0 || length != sizeof(mem_free)) + return false; + + length = sizeof(swap_total); + if (sysctlbyname("vm.swap_size", &swap_total, &length, NULL, 0) + != 0 || length != sizeof(swap_total)) + return false; + + length = sizeof(swap_used); + if (sysctlbyname("vm.swap_anon_use", &swap_used, &length, NULL, 0) + != 0 || length != sizeof(swap_used)) + return false; + + meminfo->total = mem_total * pagesizeKB; + meminfo->free = mem_free * pagesizeKB; + meminfo->swap_total = swap_total * pagesizeKB; + meminfo->swap_free = (swap_total - swap_used) * pagesizeKB; + + return true; ++} ++ ++int ProcessMetrics::GetOpenFdCount() const { ++ struct kinfo_file * kif; ++ int cnt; ++ ++ if ((kif = kinfo_getfile(process_, &cnt)) == NULL) ++ return -1; ++ ++ free(kif); ++ ++ return cnt; ++} ++ ++int ProcessMetrics::GetOpenFdSoftLimit() const { ++ struct kinfo_proc *info; ++ size_t length; ++ int total_count = 0; ++ int mib[] = { CTL_KERN, KERN_MAXFILESPERPROC }; ++ ++ length = sizeof(total_count); ++ ++ if (sysctl(mib, arraysize(mib), &total_count, &length, NULL, 0) < 0) { ++ total_count = -1; ++ goto out; ++ } ++ ++out: ++ free(info); ++ return total_count; +} + +uint64_t ProcessMetrics::GetVmSwapBytes() const { + NOTIMPLEMENTED(); + return 0; } } // namespace base Index: head/www/chromium/files/patch-base_system_sys__info__freebsd.cc =================================================================== --- head/www/chromium/files/patch-base_system_sys__info__freebsd.cc (nonexistent) +++ head/www/chromium/files/patch-base_system_sys__info__freebsd.cc (revision 493750) @@ -0,0 +1,71 @@ +--- base/system/sys_info_freebsd.cc.orig 2017-12-15 02:04:05.000000000 +0100 ++++ base/system/sys_info_freebsd.cc 2017-12-23 21:51:22.626194000 +0100 +@@ -13,26 +13,58 @@ + namespace base { + + int64_t SysInfo::AmountOfPhysicalMemoryImpl() { +- int pages, page_size; ++ int pages, page_size, r = 0; + size_t size = sizeof(pages); +- sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, NULL, 0); +- sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); +- if (pages == -1 || page_size == -1) { ++ if(r == 0) ++ r = sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, NULL, 0); ++ if(r == 0) ++ r =sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); ++ if(r == -1) { + NOTREACHED(); + return 0; + } + return static_cast(pages) * page_size; + } + +-// static +-uint64_t SysInfo::MaxSharedMemorySize() { +- size_t limit; +- size_t size = sizeof(limit); +- if (sysctlbyname("kern.ipc.shmmax", &limit, &size, NULL, 0) < 0) { ++int64_t SysInfo::AmountOfAvailablePhysicalMemoryImpl() { ++ int page_size, r = 0; ++ unsigned pgfree, pginact, pgcache; ++ size_t size = sizeof(page_size); ++ size_t szpg = sizeof(pgfree); ++ if(r == 0) ++ r = sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0); ++ if(r == 0) ++ r = sysctlbyname("vm.stats.vm.v_free_count", &pgfree, &szpg, NULL, 0); ++ if(r == 0) ++ r = sysctlbyname("vm.stats.vm.v_inactive_count", &pginact, &szpg, NULL, 0); ++ if(r == 0) ++ r = sysctlbyname("vm.stats.vm.v_cache_count", &pgcache, &szpg, NULL, 0); ++ if(r == -1) { + NOTREACHED(); + return 0; + } +- return static_cast(limit); ++ return static_cast((pgfree + pginact + pgcache) * page_size); ++} ++ ++// static ++std::string SysInfo::CPUModelName() { ++ int mib[] = { CTL_HW, HW_MODEL }; ++ char name[256]; ++ size_t size = arraysize(name); ++ if (sysctl(mib, arraysize(mib), &name, &size, NULL, 0) == 0) ++ return name; ++ return std::string(); ++} ++ ++int SysInfo::NumberOfProcessors() { ++ int mib[] = { CTL_HW, HW_NCPU }; ++ int ncpu; ++ size_t size = sizeof(ncpu); ++ if (sysctl(mib, arraysize(mib), &ncpu, &size, NULL, 0) == -1) { ++ NOTREACHED(); ++ return 1; ++ } ++ return ncpu; + } + + } // namespace base Property changes on: head/www/chromium/files/patch-base_system_sys__info__freebsd.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-base_system_sys__info__posix.cc =================================================================== --- head/www/chromium/files/patch-base_system_sys__info__posix.cc (nonexistent) +++ head/www/chromium/files/patch-base_system_sys__info__posix.cc (revision 493750) @@ -0,0 +1,38 @@ +--- base/system/sys_info_posix.cc.orig 2019-01-31 21:22:45.968524000 +0100 ++++ base/system/sys_info_posix.cc 2019-01-31 21:25:09.041659000 +0100 +@@ -38,7 +38,7 @@ + + namespace { + +-#if !defined(OS_OPENBSD) && !defined(OS_FUCHSIA) ++#if !defined(OS_BSD) && !defined(OS_FUCHSIA) + 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. +@@ -64,7 +64,7 @@ + + base::LazyInstance>:: + Leaky g_lazy_number_of_processors = LAZY_INSTANCE_INITIALIZER; +-#endif // !defined(OS_OPENBSD) && !defined(OS_FUCHSIA) ++#endif // !defined(OS_BSD) && !defined(OS_FUCHSIA) + + #if !defined(OS_FUCHSIA) + int64_t AmountOfVirtualMemory() { +@@ -132,7 +132,7 @@ + + namespace base { + +-#if !defined(OS_OPENBSD) && !defined(OS_FUCHSIA) ++#if !defined(OS_BSD) && !defined(OS_FUCHSIA) + int SysInfo::NumberOfProcessors() { + return g_lazy_number_of_processors.Get().value(); + } +@@ -225,6 +225,8 @@ + arch = "x86"; + } else if (arch == "amd64") { + arch = "x86_64"; ++ } else if (arch == "arm64") { ++ arch = "aarch64"; + } else if (std::string(info.sysname) == "AIX") { + arch = "ppc64"; + } Property changes on: head/www/chromium/files/patch-base_system_sys__info__posix.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-base_threading_platform__thread__linux.cc =================================================================== --- head/www/chromium/files/patch-base_threading_platform__thread__linux.cc (revision 493749) +++ head/www/chromium/files/patch-base_threading_platform__thread__linux.cc (revision 493750) @@ -1,21 +1,30 @@ ---- base/threading/platform_thread_linux.cc.orig 2017-07-25 21:04:48.000000000 +0200 -+++ base/threading/platform_thread_linux.cc 2017-08-01 22:36:09.953380000 +0200 -@@ -19,7 +19,9 @@ +--- base/threading/platform_thread_linux.cc.orig 2019-01-30 02:17:39.000000000 +0100 ++++ base/threading/platform_thread_linux.cc 2019-02-01 16:31:27.360883000 +0100 +@@ -18,7 +18,9 @@ #if !defined(OS_NACL) && !defined(OS_AIX) #include +#if !defined(OS_BSD) #include +#endif #include #include #include -@@ -130,7 +132,7 @@ - ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name); - tracked_objects::ThreadData::InitializeThreadContext(name); +@@ -99,7 +101,7 @@ + + Optional CanIncreaseCurrentThreadPriorityForPlatform( + ThreadPriority priority) { +-#if !defined(OS_NACL) ++#if !defined(OS_NACL) && !defined(OS_BSD) + // A non-zero soft-limit on RLIMIT_RTPRIO is required to be allowed to invoke + // pthread_setschedparam in SetCurrentThreadPriorityForPlatform(). + struct rlimit rlim; +@@ -141,7 +143,7 @@ + void PlatformThread::SetName(const std::string& name) { + ThreadIdNameManager::GetInstance()->SetName(name); -#if !defined(OS_NACL) && !defined(OS_AIX) +#if !defined(OS_NACL) && !defined(OS_AIX) && !defined(OS_BSD) // 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 Index: head/www/chromium/files/patch-base_trace__event_malloc_dump_provider.cc =================================================================== --- head/www/chromium/files/patch-base_trace__event_malloc_dump_provider.cc (revision 493749) +++ head/www/chromium/files/patch-base_trace__event_malloc_dump_provider.cc (revision 493750) @@ -1,21 +1,21 @@ ---- base/trace_event/malloc_dump_provider.cc.orig 2017-08-02 18:33:27.773657000 +0200 -+++ base/trace_event/malloc_dump_provider.cc 2017-08-02 18:34:48.019053000 +0200 -@@ -21,6 +21,8 @@ +--- base/trace_event/malloc_dump_provider.cc.orig 2019-01-30 02:17:39.000000000 +0100 ++++ base/trace_event/malloc_dump_provider.cc 2019-01-31 22:27:52.377125000 +0100 +@@ -17,6 +17,8 @@ #if defined(OS_MACOSX) #include +#elif defined(OS_BSD) +#include "stdlib.h" #else #include #endif -@@ -243,6 +245,9 @@ - allocated_objects_count = main_heap_info.block_count; +@@ -132,6 +134,9 @@ + } #elif defined(OS_FUCHSIA) // TODO(fuchsia): Port, see https://crbug.com/706592. +#elif defined(OS_BSD) + total_virtual_size = 0; + allocated_objects_size = 0; #else struct mallinfo info = mallinfo(); DCHECK_GE(info.arena + info.hblkhd, info.uordblks); Index: head/www/chromium/files/patch-build_config_BUILD.gn =================================================================== --- head/www/chromium/files/patch-build_config_BUILD.gn (revision 493749) +++ head/www/chromium/files/patch-build_config_BUILD.gn (revision 493750) @@ -1,30 +1,30 @@ ---- build/config/BUILD.gn.orig 2018-08-01 00:08:26.000000000 +0200 -+++ build/config/BUILD.gn 2018-08-05 13:59:34.648903000 +0200 -@@ -167,7 +167,7 @@ +--- build/config/BUILD.gn.orig 2019-01-30 02:17:39.000000000 +0100 ++++ build/config/BUILD.gn 2019-01-31 21:42:37.569620000 +0100 +@@ -170,7 +170,7 @@ # builds, and we have to tell it to turn it off. defines += [ "_HAS_ITERATOR_DEBUGGING=0" ] } - } else if (is_linux && current_cpu == "x64" && enable_iterator_debugging) { + } else if ((is_linux || is_bsd) && current_cpu == "x64" && enable_iterator_debugging) { # 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? -@@ -269,9 +269,7 @@ +@@ -272,9 +272,7 @@ ] } else if (is_linux) { libs = [ - "dl", "pthread", - "rt", ] } } -@@ -320,7 +318,7 @@ +@@ -351,7 +349,7 @@ "//build/config/ios:ios_dynamic_flags", "//build/config/ios:ios_executable_flags", ] - } else if (is_linux || is_android || current_os == "aix") { + } else if (is_linux || is_bsd || is_android || current_os == "aix") { - configs += [ "//build/config/gcc:executable_ldconfig" ] - if (is_android) { - configs += [ "//build/config/android:executable_config" ] + configs += [ "//build/config/gcc:executable_config" ] + if (is_chromecast) { + configs += [ "//build/config/chromecast:executable_config" ] Index: head/www/chromium/files/patch-build_config_BUILDCONFIG.gn =================================================================== --- head/www/chromium/files/patch-build_config_BUILDCONFIG.gn (revision 493749) +++ head/www/chromium/files/patch-build_config_BUILDCONFIG.gn (revision 493750) @@ -1,119 +1,119 @@ ---- build/config/BUILDCONFIG.gn.orig 2018-12-12 22:56:02.000000000 +0100 -+++ build/config/BUILDCONFIG.gn 2018-12-15 22:33:58.610110000 +0100 +--- build/config/BUILDCONFIG.gn.orig 2019-02-06 23:06:36.000000000 +0100 ++++ build/config/BUILDCONFIG.gn 2019-02-08 19:05:14.524345000 +0100 @@ -131,10 +131,10 @@ is_official_build = false # Whether we're a traditional desktop unix. - is_desktop_linux = current_os == "linux" -+ is_desktop_linux = current_os == "linux" || current_os == "bsd" ++ is_desktop_linux = current_os == "linux" || current_os == "freebsd" # Set to true when compiling with the Clang compiler. - is_clang = current_os != "linux" || -+ is_clang = current_os != "linux" || current_os == "bsd" || ++ is_clang = current_os != "linux" || current_os == "freebsd" || (current_cpu != "s390x" && current_cpu != "s390" && current_cpu != "ppc64" && current_cpu != "ppc" && current_cpu != "mips" && current_cpu != "mips64") @@ -186,8 +186,8 @@ # TODO(dpranke): Add some sort of assert here that verifies that # no toolchain omitted host_toolchain from its toolchain_args(). - if (host_os == "linux") { - if (target_os != "linux") { -+ if (host_os == "linux" || host_os == "bsd") { -+ if (target_os != "linux" || target_os != "bsd") { ++ if (host_os == "linux" || host_os == "freebsd") { ++ if (target_os != "linux" || target_os != "freebsd") { # TODO(dpranke) - is_clang normally applies only to the target # build, and there is no way to indicate that you want to override # it for both the target build *and* the host build. Do we need to -@@ -227,7 +227,7 @@ +@@ -228,7 +228,7 @@ assert(host_os == "linux" || host_os == "mac", "Android builds are only supported on Linux and Mac hosts.") _default_toolchain = "//build/toolchain/android:android_clang_$target_cpu" -} else if (target_os == "chromeos" || target_os == "linux") { -+} else if (target_os == "chromeos" || target_os == "linux" || target_os == "bsd") { ++} else if (target_os == "chromeos" || target_os == "linux" || target_os == "freebsd") { # See comments in build/toolchain/cros/BUILD.gn about board compiles. if (is_clang) { _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" -@@ -301,6 +301,7 @@ +@@ -302,6 +302,7 @@ is_nacl = false is_posix = false is_win = true + is_bsd = false } else if (current_os == "mac") { is_aix = false is_android = false -@@ -312,6 +313,7 @@ +@@ -313,6 +314,7 @@ is_nacl = false is_posix = true is_win = false + is_bsd = false } else if (current_os == "android") { is_aix = false is_android = true -@@ -323,6 +325,7 @@ +@@ -324,6 +326,7 @@ is_nacl = false is_posix = true is_win = false + is_bsd = false } else if (current_os == "chromeos") { is_aix = false is_android = false -@@ -334,6 +337,7 @@ +@@ -335,6 +338,7 @@ is_nacl = false is_posix = true is_win = false + is_bsd = false } else if (current_os == "nacl") { # current_os == "nacl" will be passed by the nacl toolchain definition. # It is not set by default or on the command line. We treat is as a -@@ -348,6 +352,7 @@ +@@ -349,6 +353,7 @@ is_nacl = true is_posix = true is_win = false + is_bsd = false } else if (current_os == "fuchsia") { is_aix = false is_android = false -@@ -359,6 +364,7 @@ +@@ -360,6 +365,7 @@ is_nacl = false is_posix = false is_win = false + is_bsd = false } else if (current_os == "ios") { is_aix = false is_android = false -@@ -370,6 +376,7 @@ +@@ -371,6 +377,7 @@ is_nacl = false is_posix = true is_win = false + is_bsd = false } else if (current_os == "linux") { is_aix = false is_android = false -@@ -381,6 +388,7 @@ +@@ -382,6 +389,7 @@ is_nacl = false is_posix = true is_win = false + is_bsd = false } else if (current_os == "aix") { is_aix = true is_android = false -@@ -392,6 +400,19 @@ +@@ -393,6 +401,19 @@ is_nacl = false is_posix = true is_win = false + is_bsd = false -+} else if (current_os == "bsd") { ++} else if (current_os == "freebsd") { + is_aix = false + is_android = false + is_chromeos = false + is_fuchsia = false + is_ios = false + is_linux = true + is_mac = false + is_nacl = false + is_posix = true + is_win = false + is_bsd = true } # ============================================================================= Index: head/www/chromium/files/patch-build_config_compiler_BUILD.gn =================================================================== --- head/www/chromium/files/patch-build_config_compiler_BUILD.gn (revision 493749) +++ head/www/chromium/files/patch-build_config_compiler_BUILD.gn (revision 493750) @@ -1,95 +1,93 @@ ---- build/config/compiler/BUILD.gn.orig 2018-12-12 22:56:02.000000000 +0100 -+++ build/config/compiler/BUILD.gn 2018-12-16 01:04:15.942884000 +0100 +--- build/config/compiler/BUILD.gn.orig 2019-01-30 02:17:39.000000000 +0100 ++++ build/config/compiler/BUILD.gn 2019-01-31 21:56:18.122280000 +0100 @@ -53,7 +53,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) @@ -274,7 +274,7 @@ # Linker warnings. if (fatal_linker_warnings && !(is_chromeos && current_cpu == "arm") && !(is_android && use_order_profiling) && !is_mac && !is_ios && - current_os != "aix") { + current_os != "aix" && !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 -@@ -391,15 +391,6 @@ - "-Wl,-z,now", - "-Wl,-z,relro", - ] -- -- # Compiler instrumentation can introduce dependencies in DSOs to symbols in -- # the executable they are loaded into, so they are unresolved at link-time. -- if (!using_sanitizer && !is_safestack) { -- ldflags += [ -- "-Wl,-z,defs", -- "-Wl,--as-needed", -- ] -- } - } +@@ -393,7 +393,7 @@ - # Linux-specific compiler flags setup. -@@ -502,7 +493,7 @@ + # Compiler instrumentation can introduce dependencies in DSOs to symbols in + # the executable they are loaded into, so they are unresolved at link-time. +- if (!using_sanitizer) { ++ if (!using_sanitizer && !is_bsd) { + ldflags += [ + "-Wl,-z,defs", + "-Wl,--as-needed", +@@ -501,7 +501,7 @@ } } - if (is_clang && !is_nacl && !use_xcode_clang) { + if (is_clang && !is_nacl && !use_xcode_clang && !is_bsd) { cflags += [ # TODO(hans): Remove this once Clang generates better optimized debug info # by default. https://crbug.com/765793 -@@ -793,7 +784,7 @@ +@@ -808,7 +808,7 @@ cflags += [ "-mtune=$arm_tune" ] } } else if (current_cpu == "arm64") { - if (is_clang && !is_android && !is_nacl && !is_fuchsia) { + if (is_clang && !is_android && !is_nacl && !is_fuchsia && !is_bsd) { cflags += [ "--target=aarch64-linux-gnu" ] ldflags += [ "--target=aarch64-linux-gnu" ] } -@@ -1498,13 +1489,6 @@ - cflags += [ - # TODO(thakis): https://crbug.com/753973 - "-Wno-enum-compare-switch", -- +@@ -1488,11 +1488,13 @@ + if (current_toolchain == host_toolchain || !use_xcode_clang) { + # Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not + # recognize. +- cflags += [ - # Ignore warnings about MSVC optimization pragmas. - # TODO(thakis): Only for no_chromium_code? http://crbug.com/505314 - "-Wno-ignored-pragma-optimize", -- -- # TODO(hans): https://crbug.com/890307 -- "-Wno-defaulted-function-deleted", - ] - } - } -@@ -1691,7 +1675,7 @@ +- ] ++ if (!is_bsd) { ++ cflags += [ ++ # Ignore warnings about MSVC optimization pragmas. ++ # TODO(thakis): Only for no_chromium_code? http://crbug.com/505314 ++ "-Wno-ignored-pragma-optimize", ++ ] ++ } + if (is_fuchsia) { + cflags += [ + # TODO(hans): https://crbug.com/890307 +@@ -1684,7 +1686,7 @@ # Mac and iOS use the mac-specific "libtool" command, not ar, which doesn't # have a "thin archive" mode (it does accept -T, but it means truncating # archive names to 16 characters, which is not what we want). - if ((is_posix && !is_nacl && !is_mac && !is_ios) || is_fuchsia) { + if ((is_posix && !is_nacl && !is_mac && !is_ios && !is_bsd) || is_fuchsia) { arflags = [ "-T" ] } } -@@ -2264,7 +2248,7 @@ - # [1] crrev.com/a81d5ade0b043208e06ad71a38bcf9c348a1a52f - cflags += [ "-gdwarf-3" ] +@@ -2269,7 +2271,7 @@ + # flag, so we can use use -g1 for pnacl and nacl-clang compiles. + # gcc nacl is is_nacl && !is_clang, pnacl and nacl-clang are && is_clang. + if (!is_nacl || is_clang) { +- cflags += [ "-g2" ] ++ cflags += [ "-g0" ] } -- cflags += [ "-g2" ] -+ cflags += [ "-g0" ] } if (use_debug_fission && !is_nacl && !is_android) { - # NOTE: Some Chrome OS builds globally set |use_debug_fission| to true, -@@ -2284,7 +2268,7 @@ +@@ -2290,7 +2292,7 @@ # DWARF info may be corrupt; offsets in a range list entry are in different # sections" there. Maybe just a bug in nacl_switch_32.S. if (!is_mac && !is_ios && !is_nacl && current_cpu != "x86" && - (use_gold || use_lld)) { + (use_gold || use_lld) && !is_bsd) { if (is_clang) { # This flag enables the GNU-format pubnames and pubtypes sections, # which lld needs in order to generate a correct GDB index. Index: head/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc =================================================================== --- head/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc (revision 493750) @@ -1,74 +1,101 @@ ---- chrome/app/chrome_main_delegate.cc.orig 2018-12-12 22:56:02.000000000 +0100 -+++ chrome/app/chrome_main_delegate.cc 2019-01-04 00:08:47.109460000 +0100 -@@ -99,7 +99,7 @@ +--- chrome/app/chrome_main_delegate.cc.orig 2019-01-30 02:17:41.000000000 +0100 ++++ chrome/app/chrome_main_delegate.cc 2019-02-06 19:21:07.067687000 +0100 +@@ -101,7 +101,7 @@ #include "chrome/app/shutdown_signal_handlers_posix.h" #endif -#if BUILDFLAG(ENABLE_NACL) && defined(OS_LINUX) +#if BUILDFLAG(ENABLE_NACL) && defined(OS_LINUX) && !defined(OS_BSD) #include "components/nacl/common/nacl_paths.h" #include "components/nacl/zygote/nacl_fork_delegate_linux.h" #endif -@@ -133,7 +133,7 @@ +@@ -135,7 +135,7 @@ #include "v8/include/v8.h" #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "base/environment.h" #endif -@@ -233,7 +233,7 @@ +@@ -235,7 +235,7 @@ #endif // defined(OS_WIN) -#if defined(OS_LINUX) +#if defined(OS_LINUX) && !defined(OS_BSD) void AdjustLinuxOOMScore(const std::string& process_type) { // Browsers and zygotes should still be killable, but killed last. const int kZygoteScore = 0; -@@ -401,7 +401,7 @@ +@@ -339,7 +339,7 @@ + return false; + } + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + // Show the man page if --help or -h is on the command line. + void HandleHelpSwitches(const base::CommandLine& command_line) { + if (command_line.HasSwitch(switches::kHelp) || +@@ -349,7 +349,7 @@ + PLOG(FATAL) << "execlp failed"; + } + } +-#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#endif // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + + #if !defined(OS_MACOSX) && !defined(OS_ANDROID) + void SIGTERMProfilingShutdown(int signal) { +@@ -403,7 +403,7 @@ std::string process_type = command_line->GetSwitchValueASCII(switches::kProcessType); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // 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. -@@ -595,7 +595,7 @@ +@@ -585,7 +585,7 @@ + *exit_code = 0; + return true; // Got a --version switch; exit with a success error code. + } +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + // This will directly exit if the user asked for help. + HandleHelpSwitches(command_line); + #endif +@@ -609,7 +609,7 @@ #if defined(OS_CHROMEOS) chromeos::RegisterPathProvider(); #endif -#if BUILDFLAG(ENABLE_NACL) && defined(OS_LINUX) +#if BUILDFLAG(ENABLE_NACL) && defined(OS_LINUX) && !defined(OS_BSD) nacl::RegisterPathProvider(); #endif -@@ -912,7 +912,7 @@ +@@ -925,7 +925,7 @@ InitializePDF(); #endif -#if defined(OS_POSIX) && !defined(OS_MACOSX) +#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD) // Zygote needs to call InitCrashReporter() in RunZygote(). if (process_type != service_manager::switches::kZygoteProcess) { #if defined(OS_ANDROID) -@@ -928,7 +928,7 @@ +@@ -941,7 +941,7 @@ breakpad::InitCrashReporter(process_type); #endif // defined(OS_ANDROID) } -#endif // defined(OS_POSIX) && !defined(OS_MACOSX) +#endif // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD) // After all the platform Breakpads have been initialized, store the command // line for crash reporting. -@@ -938,7 +938,7 @@ +@@ -951,7 +951,7 @@ void ChromeMainDelegate::SandboxInitialized(const std::string& process_type) { // Note: If you are adding a new process type below, be sure to adjust the // AdjustLinuxOOMScore function too. -#if defined(OS_LINUX) +#if defined(OS_LINUX) && !defined(OS_BSD) AdjustLinuxOOMScore(process_type); #endif #if defined(OS_WIN) Index: head/www/chromium/files/patch-chrome_app_chromium__strings.grd =================================================================== --- head/www/chromium/files/patch-chrome_app_chromium__strings.grd (revision 493749) +++ head/www/chromium/files/patch-chrome_app_chromium__strings.grd (revision 493750) @@ -1,11 +1,20 @@ ---- chrome/app/chromium_strings.grd.orig 2017-09-05 21:05:12.000000000 +0200 -+++ chrome/app/chromium_strings.grd 2017-09-07 19:17:30.228682000 +0200 -@@ -913,7 +913,7 @@ +--- chrome/app/chromium_strings.grd.orig 2019-02-06 23:06:37.000000000 +0100 ++++ chrome/app/chromium_strings.grd 2019-02-12 16:28:22.555513000 +0100 +@@ -797,7 +797,7 @@ - + The profile appears to be in use by another Chromium process ($112345) on another computer ($2example.com). Chromium has locked the profile so that it doesn't get corrupted. If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chromium. + +@@ -1042,7 +1042,7 @@ + + + +- ++ + + Restart Chromium to enable $1Flash Index: head/www/chromium/files/patch-chrome_app_google__chrome__strings.grd =================================================================== --- head/www/chromium/files/patch-chrome_app_google__chrome__strings.grd (revision 493749) +++ head/www/chromium/files/patch-chrome_app_google__chrome__strings.grd (revision 493750) @@ -1,11 +1,20 @@ ---- chrome/app/google_chrome_strings.grd.orig 2017-09-05 21:05:12.000000000 +0200 -+++ chrome/app/google_chrome_strings.grd 2017-09-07 19:16:11.038110000 +0200 -@@ -917,7 +917,7 @@ +--- chrome/app/google_chrome_strings.grd.orig 2019-02-06 23:06:37.000000000 +0100 ++++ chrome/app/google_chrome_strings.grd 2019-02-12 16:29:36.841110000 +0100 +@@ -808,7 +808,7 @@ - + The profile appears to be in use by another Google Chrome process ($112345) on another computer ($2example.com). Chrome has locked the profile so that it doesn't get corrupted. If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chrome. + +@@ -1060,7 +1060,7 @@ + + + +- ++ + + Restart Chrome to enable $1Flash Index: head/www/chromium/files/patch-chrome_app_shutdown__signal__handlers__posix.cc =================================================================== --- head/www/chromium/files/patch-chrome_app_shutdown__signal__handlers__posix.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_app_shutdown__signal__handlers__posix.cc (revision 493750) @@ -1,15 +1,21 @@ ---- chrome/app/shutdown_signal_handlers_posix.cc.orig 2018-12-03 21:16:37.000000000 +0100 -+++ chrome/app/shutdown_signal_handlers_posix.cc 2018-12-05 14:20:17.094777000 +0100 -@@ -183,7 +183,11 @@ +--- chrome/app/shutdown_signal_handlers_posix.cc.orig 2018-12-12 22:56:02.000000000 +0100 ++++ chrome/app/shutdown_signal_handlers_posix.cc 2019-01-13 01:50:13.594124000 +0100 +@@ -183,12 +183,18 @@ g_pipe_pid = getpid(); g_shutdown_pipe_read_fd = pipefd[0]; g_shutdown_pipe_write_fd = pipefd[1]; --#if !defined(ADDRESS_SANITIZER) +#if defined(OS_BSD) + // PTHREAD_STACK_MIN causes chromium to crash under FreeBSD, + // we request the default pthread stack size by specifying 0 here. + const size_t kShutdownDetectorThreadStackSize = 0; -+#elif !defined(ADDRESS_SANITIZER) ++#else + #if !defined(ADDRESS_SANITIZER) const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 2; #else // ASan instrumentation bloats 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 + ShutdownDetector* detector = new ShutdownDetector( + g_shutdown_pipe_read_fd, shutdown_callback, task_runner); Index: head/www/chromium/files/patch-chrome_browser_about__flags.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_about__flags.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_about__flags.cc (revision 493750) @@ -1,111 +1,140 @@ ---- chrome/browser/about_flags.cc.orig 2018-12-12 22:56:02.000000000 +0100 -+++ chrome/browser/about_flags.cc 2018-12-28 16:40:37.628497000 +0100 -@@ -884,7 +884,7 @@ +--- chrome/browser/about_flags.cc.orig 2019-01-30 02:17:44.000000000 +0100 ++++ chrome/browser/about_flags.cc 2019-01-31 22:07:28.598255000 +0100 +@@ -832,7 +832,7 @@ {"(Black on GoogleYellow050)", kAutofillPreviewStyleBlackOnYellow050, base::size(kAutofillPreviewStyleBlackOnYellow050), nullptr}}; -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) const FeatureEntry::FeatureParam kAutofillPrimaryInfoStyleMedium[] = { {autofill::kAutofillForcedFontWeightParameterName, autofill::kAutofillForcedFontWeightParameterMedium}, -@@ -2609,12 +2609,12 @@ +@@ -859,7 +859,7 @@ + {"Dedicated Suggestion Line", kPedalSuggestionDedicated, + base::size(kPedalSuggestionDedicated), nullptr}, + }; +-#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) ++#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) + + const FeatureEntry::Choice kAutoplayPolicyChoices[] = { + {flags_ui::kGenericExperimentChoiceDefault, "", ""}, +@@ -2497,12 +2497,12 @@ {"force-text-direction", flag_descriptions::kForceTextDirectionName, flag_descriptions::kForceTextDirectionDescription, kOsAll, MULTI_VALUE_TYPE(kForceTextDirectionChoices)}, -#if defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) {"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)}, -@@ -2813,12 +2813,12 @@ +@@ -2696,12 +2696,12 @@ FEATURE_VALUE_TYPE( password_manager::features::kPasswordsKeyboardAccessory)}, #endif // OS_ANDROID -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) {"passwords-migrate-linux-to-login-db", flag_descriptions::kPasswordsMigrateLinuxToLoginDBName, flag_descriptions::kPasswordsMigrateLinuxToLoginDBDescription, kOsLinux, FEATURE_VALUE_TYPE(password_manager::features::kMigrateLinuxToLoginDB)}, -#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) +#endif // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - #if defined(OS_CHROMEOS) {"enable-experimental-accessibility-features", flag_descriptions::kExperimentalAccessibilityFeaturesName, -@@ -3225,7 +3225,7 @@ + flag_descriptions::kExperimentalAccessibilityFeaturesDescription, kOsCrOS, +@@ -3127,7 +3127,7 @@ flag_descriptions::kLeftToRightUrlsDescription, kOsDesktop, FEATURE_VALUE_TYPE(features::kLeftToRightUrls)}, -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) {"omnibox-new-answer-layout", flag_descriptions::kOmniboxNewAnswerLayoutName, flag_descriptions::kOmniboxNewAnswerLayoutDescription, kOsDesktop, -@@ -3257,7 +3257,7 @@ +@@ -3156,7 +3156,7 @@ flag_descriptions::kOmniboxDriveSuggestionsName, flag_descriptions::kOmniboxDriveSuggestionsDescriptions, kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kDocumentProvider)}, -#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) #if defined(OS_ANDROID) {"enable-custom-feedback-ui", -@@ -3566,13 +3566,13 @@ +@@ -3449,7 +3449,7 @@ flag_descriptions::kClickToOpenPDFDescription, kOsAll, FEATURE_VALUE_TYPE(features::kClickToOpenPDFPlaceholder)}, -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) {"direct-manipulation-stylus", flag_descriptions::kDirectManipulationStylusName, flag_descriptions::kDirectManipulationStylusDescription, - kOsWin | kOsMac | kOsLinux, - FEATURE_VALUE_TYPE(features::kDirectManipulationStylus)}, +@@ -3460,7 +3460,7 @@ + flag_descriptions::kShowManagedUiDescription, + kOsWin | kOsMac | kOsLinux | kOsCrOS, + FEATURE_VALUE_TYPE(features::kShowManagedUi)}, -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) #if defined(OS_ANDROID) {"third-party-doodles", flag_descriptions::kThirdPartyDoodlesName, -@@ -4021,7 +4021,7 @@ +@@ -3897,7 +3897,7 @@ flag_descriptions::kAutofillCacheQueryResponsesDescription, kOsAll, FEATURE_VALUE_TYPE(autofill::features::kAutofillCacheQueryResponses)}, -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) {"autofill-primary-info-style", flag_descriptions::kAutofillPrimaryInfoStyleExperimentName, flag_descriptions::kAutofillPrimaryInfoStyleExperimentDescription, -@@ -4030,7 +4030,7 @@ +@@ -3906,7 +3906,7 @@ autofill::kAutofillPrimaryInfoStyleExperiment, kAutofillPrimaryInfoStyleVariations, "AutofillPrimaryInfoStyleExperiment")}, -#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) {"autofill-enable-company-name", flag_descriptions::kAutofillEnableCompanyNameName, -@@ -4082,7 +4082,7 @@ - FEATURE_VALUE_TYPE(ash::features::kOverviewSwipeToClose)}, - #endif // OS_CHROMEOS +@@ -4001,7 +4001,7 @@ + flag_descriptions::kExperimentalProductivityFeaturesDescription, kOsAll, + FEATURE_VALUE_TYPE(features::kExperimentalProductivityFeatures)}, -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) {"ntp-backgrounds", flag_descriptions::kNtpBackgroundsName, flag_descriptions::kNtpBackgroundsDescription, kOsDesktop, FEATURE_VALUE_TYPE(features::kNtpBackgrounds)}, -@@ -4098,7 +4098,7 @@ +@@ -4017,7 +4017,7 @@ {"ntp-ui-md", flag_descriptions::kNtpUIMdName, flag_descriptions::kNtpUIMdDescription, kOsDesktop, FEATURE_VALUE_TYPE(features::kNtpUIMd)}, -#endif // OS_WIN || OS_MACOSX || OS_LINUX +#endif // OS_WIN || OS_MACOSX || OS_LINUX || defined(OS_BSD) #if defined(OS_ANDROID) {"enable-display-cutout-api", flag_descriptions::kDisplayCutoutAPIName, +@@ -4468,7 +4468,7 @@ + FEATURE_VALUE_TYPE(features::kForceEnableSystemAec)}, + #endif // defined(OS_MACOSX) || defined(OS_CHROMEOS) + +-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) + {"autofill-always-show-server-cards-in-sync-transport", + flag_descriptions::kAutofillAlwaysShowServerCardsInSyncTransportName, + flag_descriptions:: +@@ -4476,7 +4476,7 @@ + kOsMac | kOsWin | kOsLinux, + FEATURE_VALUE_TYPE( + autofill::features::kAutofillAlwaysShowServerCardsInSyncTransport)}, +-#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) ++#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) + }; + + class FlagsStateSingleton { Index: head/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc (revision 493750) @@ -1,11 +1,20 @@ ---- chrome/browser/after_startup_task_utils.cc.orig 2017-06-05 19:03:01 UTC -+++ chrome/browser/after_startup_task_utils.cc -@@ -99,7 +99,7 @@ void QueueTask(std::unique_ptr queue +--- chrome/browser/after_startup_task_utils.cc.orig 2019-01-30 02:17:44.000000000 +0100 ++++ chrome/browser/after_startup_task_utils.cc 2019-01-31 22:15:46.765158000 +0100 +@@ -110,7 +110,7 @@ void SetBrowserStartupIsComplete() { DCHECK_CURRENTLY_ON(BrowserThread::UI); -#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) - // CurrentProcessInfo::CreationTime() is not available on all platforms. + // Process::Current().CreationTime() is not available on all platforms. const base::Time process_creation_time = - base::CurrentProcessInfo::CreationTime(); + base::Process::Current().CreationTime(); +@@ -118,7 +118,7 @@ + UMA_HISTOGRAM_LONG_TIMES("Startup.AfterStartupTaskDelayedUntilTime", + base::Time::Now() - process_creation_time); + } +-#endif // defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) ++#endif // defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) + UMA_HISTOGRAM_COUNTS_10000("Startup.AfterStartupTaskCount", + g_after_startup_tasks.Get().size()); + g_startup_complete_flag.Get().Set(); Index: head/www/chromium/files/patch-chrome_browser_browser__process__impl.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_browser__process__impl.cc (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_browser__process__impl.cc (revision 493750) @@ -0,0 +1,17 @@ +--- chrome/browser/browser_process_impl.cc.orig 2019-02-12 16:31:58.701630000 +0100 ++++ chrome/browser/browser_process_impl.cc 2019-02-12 16:32:33.417312000 +0100 +@@ -1485,7 +1485,7 @@ + } + + // Mac is currently not supported. +-#if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) ++#if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) + + bool BrowserProcessImpl::IsRunningInBackground() const { + // Check if browser is in the background. +@@ -1555,4 +1555,4 @@ + } + } + +-#endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) ++#endif // (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) Property changes on: head/www/chromium/files/patch-chrome_browser_browser__process__impl.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_browser__process__impl.h =================================================================== --- head/www/chromium/files/patch-chrome_browser_browser__process__impl.h (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_browser__process__impl.h (revision 493750) @@ -0,0 +1,20 @@ +--- chrome/browser/browser_process_impl.h.orig 2019-02-12 16:33:04.676012000 +0100 ++++ chrome/browser/browser_process_impl.h 2019-02-12 16:33:35.429453000 +0100 +@@ -367,7 +367,7 @@ + std::unique_ptr + resource_dispatcher_host_delegate_; + +-#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + base::RepeatingTimer autoupdate_timer_; + + // Gets called by autoupdate timer to see if browser needs restart and can be +@@ -376,7 +376,7 @@ + bool IsRunningInBackground() const; + void OnPendingRestartResult(bool is_update_pending_restart); + void RestartBackgroundInstance(); +-#endif // defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++#endif // defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + + // component updater is normally not used under ChromeOS due + // to concerns over integrity of data shared between profiles, Property changes on: head/www/chromium/files/patch-chrome_browser_browser__process__impl.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc (revision 493750) @@ -1,42 +1,72 @@ ---- chrome/browser/chrome_browser_main.cc.orig 2018-11-19 19:55:03.000000000 +0100 -+++ chrome/browser/chrome_browser_main.cc 2018-12-04 14:28:26.209004000 +0100 -@@ -214,7 +214,7 @@ +--- chrome/browser/chrome_browser_main.cc.orig 2019-02-06 23:06:37.000000000 +0100 ++++ chrome/browser/chrome_browser_main.cc 2019-02-12 20:03:14.042579000 +0100 +@@ -216,7 +216,7 @@ #include "chromeos/settings/cros_settings_names.h" #endif // defined(OS_CHROMEOS) -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) #include "chrome/browser/first_run/upgrade_util_linux.h" #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) -@@ -255,7 +255,7 @@ +@@ -256,7 +256,7 @@ #endif // defined(OS_WIN) #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD)) #include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h" #endif -@@ -1279,10 +1279,10 @@ +@@ -1059,7 +1059,7 @@ + AddFirstRunNewTabs(browser_creator_.get(), master_prefs_->new_tabs); + } + +-#if defined(OS_MACOSX) || defined(OS_LINUX) ++#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) + // Create directory for user-level Native Messaging manifest files. This + // makes it less likely that the directory will be created by third-party + // software with incorrect owner or permission. See crbug.com/725513 . +@@ -1068,14 +1068,14 @@ + &user_native_messaging_dir)); + if (!base::PathExists(user_native_messaging_dir)) + base::CreateDirectory(user_native_messaging_dir); +-#endif // defined(OS_MACOSX) || defined(OS_LINUX) ++#endif // defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) } #endif // !defined(OS_ANDROID) && !defined(OS_CHROMEOS) -#if defined(OS_LINUX) || defined(OS_OPENBSD) +#if defined(OS_LINUX) // Set the product channel for crash reports. breakpad::SetChannelCrashKey(chrome::GetChannelName()); -#endif // defined(OS_LINUX) || defined(OS_OPENBSD) +#endif // defined(OS_LINUX) #if defined(OS_MACOSX) // Get the Keychain API to register for distributed notifications on the main -@@ -1306,7 +1306,7 @@ +@@ -1099,7 +1099,7 @@ } #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD)) metrics::DesktopSessionDurationTracker::Initialize(); #endif metrics::RendererUptimeTracker::Initialize(); +@@ -1279,6 +1279,7 @@ + base::TimeDelta::FromMinutes(1)); + + #if !defined(OS_ANDROID) ++#if !defined(OS_BSD) + if (base::FeatureList::IsEnabled(features::kWebUsb)) { + web_usb_detector_.reset(new WebUsbDetector()); + BrowserThread::PostAfterStartupTask( +@@ -1287,6 +1288,7 @@ + base::BindOnce(&WebUsbDetector::Initialize, + base::Unretained(web_usb_detector_.get()))); + } ++#endif + if (base::FeatureList::IsEnabled(features::kTabMetricsLogging)) { + // Initialize the TabActivityWatcher to begin logging tab activity events. + resource_coordinator::TabActivityWatcher::GetInstance(); Index: head/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc (revision 493750) @@ -1,74 +1,88 @@ ---- chrome/browser/chrome_content_browser_client.cc.orig 2018-12-03 21:16:38.000000000 +0100 -+++ chrome/browser/chrome_content_browser_client.cc 2018-12-05 14:32:20.666302000 +0100 -@@ -348,7 +348,7 @@ +--- chrome/browser/chrome_content_browser_client.cc.orig 2019-01-30 02:17:44.000000000 +0100 ++++ chrome/browser/chrome_content_browser_client.cc 2019-02-06 22:10:31.368688000 +0100 +@@ -367,7 +367,7 @@ #include "chromeos/services/secure_channel/secure_channel_service.h" #include "components/user_manager/user_manager.h" #include "services/service_manager/public/mojom/interface_provider_spec.mojom.h" -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) #include "chrome/browser/chrome_browser_main_linux.h" #elif defined(OS_ANDROID) #include "base/android/application_status_listener.h" -@@ -391,7 +391,7 @@ +@@ -412,11 +412,11 @@ #include "components/services/patch/public/interfaces/constants.mojom.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 -@@ -413,7 +413,7 @@ +-#if defined(OS_WIN) || defined(OS_MACOSX) || \ ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) || \ + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + #include "chrome/browser/browser_switcher/browser_switcher_navigation_throttle.h" + #endif +@@ -431,7 +431,7 @@ #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h" #endif -@@ -1099,7 +1099,7 @@ +@@ -1101,7 +1101,7 @@ #elif defined(OS_CHROMEOS) main_parts = new chromeos::ChromeBrowserMainPartsChromeos( parameters, chrome_feature_list_creator_); -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) main_parts = new ChromeBrowserMainPartsLinux(parameters, chrome_feature_list_creator_); #elif defined(OS_ANDROID) -@@ -1119,7 +1119,7 @@ +@@ -1121,7 +1121,7 @@ // Construct additional browser parts. Stages are called in the order in // which they are added. #if defined(TOOLKIT_VIEWS) -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(USE_OZONE) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) && !defined(USE_OZONE) main_parts->AddParts(new ChromeBrowserMainExtraPartsViewsLinux()); #else main_parts->AddParts(new ChromeBrowserMainExtraPartsViews()); -@@ -1897,7 +1897,7 @@ +@@ -1913,7 +1913,7 @@ command_line->AppendSwitchASCII(switches::kMetricsClientID, client_info->client_id); } -#elif defined(OS_POSIX) +#elif defined(OS_POSIX) && !defined(OS_BSD) if (breakpad::IsCrashReporterEnabled()) { std::string switch_value; std::unique_ptr client_info = -@@ -3411,7 +3411,7 @@ +@@ -3474,7 +3474,7 @@ } } -#if defined(OS_POSIX) && !defined(OS_MACOSX) +#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD) void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( const base::CommandLine& command_line, int child_process_id, -@@ -4249,7 +4249,7 @@ +@@ -4207,7 +4207,7 @@ + if (previews_lite_page_throttle) + throttles.push_back(std::move(previews_lite_page_throttle)); + +-#if defined(OS_WIN) || defined(OS_MACOSX) || \ ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) || \ + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + std::unique_ptr browser_switcher_throttle = + browser_switcher::BrowserSwitcherNavigationThrottle :: +@@ -4328,7 +4328,7 @@ #if defined(OS_ANDROID) frame_interfaces_parameterized_->AddInterface(base::Bind( &ForwardToJavaWebContentsRegistry)); -#elif defined(OS_LINUX) || defined(OS_WIN) +#elif defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) frame_interfaces_->AddInterface(base::Bind(&ShareServiceImpl::Create)); #endif Index: head/www/chromium/files/patch-chrome_browser_download_download__item__model.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_download_download__item__model.cc (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_download_download__item__model.cc (revision 493750) @@ -0,0 +1,20 @@ +--- chrome/browser/download/download_item_model.cc.orig 2019-02-06 22:12:34.810575000 +0100 ++++ chrome/browser/download/download_item_model.cc 2019-02-06 22:13:05.192798000 +0100 +@@ -555,7 +555,7 @@ + return download_->GetOpenWhenComplete() || + download_crx_util::IsExtensionDownload(*download_); + case DownloadCommands::ALWAYS_OPEN_TYPE: +-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + if (download_commands->CanOpenPdfInSystemViewer()) { + DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(profile()); + return prefs->ShouldOpenPdfInSystemReader(); +@@ -592,7 +592,7 @@ + bool is_checked = IsCommandChecked(download_commands, + DownloadCommands::ALWAYS_OPEN_TYPE); + DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(profile()); +-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + if (download_commands->CanOpenPdfInSystemViewer()) { + prefs->SetShouldOpenPdfInSystemReader(!is_checked); + SetShouldPreferOpeningInBrowser(is_checked); Property changes on: head/www/chromium/files/patch-chrome_browser_download_download__item__model.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_extensions_bookmark__app__helper.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_extensions_bookmark__app__helper.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_extensions_bookmark__app__helper.cc (revision 493750) @@ -1,11 +1,11 @@ ---- chrome/browser/extensions/bookmark_app_helper.cc.orig 2018-11-19 19:55:03.000000000 +0100 -+++ chrome/browser/extensions/bookmark_app_helper.cc 2018-12-04 14:45:16.963992000 +0100 -@@ -597,7 +597,7 @@ +--- chrome/browser/extensions/bookmark_app_helper.cc.orig 2019-01-30 02:17:45.000000000 +0100 ++++ chrome/browser/extensions/bookmark_app_helper.cc 2019-01-31 22:27:52.602150000 +0100 +@@ -497,7 +497,7 @@ if (create_shortcuts_) { #if !defined(OS_CHROMEOS) web_app::ShortcutLocations creation_locations; -#if defined(OS_LINUX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) creation_locations.on_desktop = true; #else creation_locations.on_desktop = false; Index: head/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc (revision 493750) @@ -1,20 +1,20 @@ ---- chrome/browser/extensions/browser_context_keyed_service_factories.cc.orig 2018-06-13 00:10:06.000000000 +0200 -+++ chrome/browser/extensions/browser_context_keyed_service_factories.cc 2018-07-15 13:15:07.666902000 +0200 -@@ -57,7 +57,7 @@ +--- chrome/browser/extensions/browser_context_keyed_service_factories.cc.orig 2019-01-30 02:17:45.000000000 +0100 ++++ chrome/browser/extensions/browser_context_keyed_service_factories.cc 2019-01-31 22:23:23.442216000 +0100 +@@ -55,7 +55,7 @@ + #include "chrome/browser/chromeos/extensions/input_method_api.h" #include "chrome/browser/chromeos/extensions/media_player_api.h" #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" - #include "chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h" -#elif defined(OS_LINUX) || defined(OS_WIN) +#elif defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" #endif -@@ -99,7 +99,7 @@ +@@ -97,7 +97,7 @@ #if defined(OS_CHROMEOS) extensions::InputImeAPI::GetFactoryInstance(); extensions::InputMethodAPI::GetFactoryInstance(); -#elif defined(OS_LINUX) || defined(OS_WIN) +#elif defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) extensions::InputImeAPI::GetFactoryInstance(); #endif extensions::LanguageSettingsPrivateDelegateFactory::GetInstance(); Index: head/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc (revision 493750) @@ -0,0 +1,20 @@ +--- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig 2019-02-06 22:23:27.096383000 +0100 ++++ chrome/browser/policy/configuration_policy_handler_list_factory.cc 2019-02-07 00:04:06.202061000 +0100 +@@ -104,7 +104,7 @@ + #include "chrome/browser/policy/browser_signin_policy_handler.h" + #endif + +-#if defined(OS_WIN) || defined(OS_MACOSX) || \ ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) || \ + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + #include "chrome/browser/browser_switcher/browser_switcher_prefs.h" + #endif +@@ -928,7 +928,7 @@ + prefs::kEnterpriseHardwarePlatformAPIEnabled, + base::Value::Type::BOOLEAN }, + +-#if defined(OS_WIN) || defined(OS_MACOSX) || \ ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) || \ + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + { key::kAlternativeBrowserPath, + browser_switcher::prefs::kAlternativeBrowserPath, Property changes on: head/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_policy_machine__level__user__cloud__policy__controller.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_policy_machine__level__user__cloud__policy__controller.cc (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_policy_machine__level__user__cloud__policy__controller.cc (revision 493750) @@ -0,0 +1,20 @@ +--- chrome/browser/policy/machine_level_user_cloud_policy_controller.cc.orig 2019-02-06 22:26:05.674129000 +0100 ++++ chrome/browser/policy/machine_level_user_cloud_policy_controller.cc 2019-02-06 22:26:54.109036000 +0100 +@@ -65,7 +65,7 @@ + #endif + } + +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + void CleanupUnusedPolicyDirectory() { + std::string enrollment_token = + BrowserDMTokenStorage::Get()->RetrieveEnrollmentToken(); +@@ -124,7 +124,7 @@ + void MachineLevelUserCloudPolicyController::Init( + PrefService* local_state, + scoped_refptr url_loader_factory) { +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + // This is a function that removes the directory we accidentally create due to + // crbug.com/880870. The directory is only removed when it's empty and + // enrollment token doesn't exist. This function is expected to be removed Property changes on: head/www/chromium/files/patch-chrome_browser_policy_machine__level__user__cloud__policy__controller.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc (revision 493750) @@ -0,0 +1,20 @@ +--- chrome/browser/prefs/browser_prefs.cc.orig 2019-02-06 22:29:40.393569000 +0100 ++++ chrome/browser/prefs/browser_prefs.cc 2019-02-06 22:30:41.131808000 +0100 +@@ -313,7 +313,7 @@ + #include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_prefs_manager.h" + #endif + +-#if defined(OS_WIN) || defined(OS_MACOSX) || \ ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) || \ + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + #include "chrome/browser/browser_switcher/browser_switcher_prefs.h" + #endif +@@ -764,7 +764,7 @@ + safe_browsing::PostCleanupSettingsResetter::RegisterProfilePrefs(registry); + #endif + +-#if defined(OS_WIN) || defined(OS_MACOSX) || \ ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) || \ + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + browser_switcher::prefs::RegisterProfilePrefs(registry); + #endif Property changes on: head/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_prefs_pref_service_incognito_whitelist.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_prefs_pref_service_incognito_whitelist.cc (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_prefs_pref_service_incognito_whitelist.cc (revision 493750) @@ -0,0 +1,11 @@ +--- chrome/browser/prefs/pref_service_incognito_whitelist.cc.orig 2019-01-13 01:45:22.403758000 +0100 ++++ chrome/browser/prefs/pref_service_incognito_whitelist.cc 2019-01-13 01:45:47.793792000 +0100 +@@ -161,7 +161,7 @@ + prefs::kShowFullscreenToolbar, + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) + // Toggleing custom frames affects all open windows in the profile, hence + // should be written to the regular profile when changed in incognito mode. + prefs::kUseCustomChromeFrame, Property changes on: head/www/chromium/files/patch-chrome_browser_prefs_pref_service_incognito_whitelist.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc (revision 493750) @@ -0,0 +1,11 @@ +--- chrome/browser/profiles/profile_attributes_entry.cc.orig 2019-02-06 22:32:27.013965000 +0100 ++++ chrome/browser/profiles/profile_attributes_entry.cc 2019-02-06 22:32:49.969336000 +0100 +@@ -57,7 +57,7 @@ + if (is_force_signin_enabled_) { + if (!IsAuthenticated()) + is_force_signin_profile_locked_ = true; +-#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_WIN) ++#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) + } else if (IsSigninRequired()) { + // Profiles that require signin in the absence of an enterprise policy are + // left-overs from legacy supervised users. Just unlock them, so users can Property changes on: head/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_safe__browsing_incident__reporting_incident__reporting__service.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_safe__browsing_incident__reporting_incident__reporting__service.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_safe__browsing_incident__reporting_incident__reporting__service.cc (revision 493750) @@ -1,11 +1,11 @@ ---- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig 2017-06-05 19:03:03 UTC -+++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc -@@ -720,7 +720,7 @@ void IncidentReportingService::OnEnvironmentDataCollec +--- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig 2019-01-30 02:17:47.000000000 +0100 ++++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc 2019-01-31 22:32:06.707636000 +0100 +@@ -715,7 +715,7 @@ environment_collection_pending_ = false; - // CurrentProcessInfo::CreationTime() is missing on some platforms. + // Process::Current().CreationTime() is missing on some platforms. -#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) base::TimeDelta uptime = - first_incident_time_ - base::CurrentProcessInfo::CreationTime(); + first_incident_time_ - base::Process::Current().CreationTime(); environment_data->mutable_process()->set_uptime_msec(uptime.InMilliseconds()); Index: head/www/chromium/files/patch-chrome_browser_signin_signin__util.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_signin_signin__util.cc (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_signin_signin__util.cc (revision 493750) @@ -0,0 +1,11 @@ +--- chrome/browser/signin/signin_util.cc.orig 2019-02-06 22:35:27.697597000 +0100 ++++ chrome/browser/signin/signin_util.cc 2019-02-06 22:35:53.931412000 +0100 +@@ -40,7 +40,7 @@ + + constexpr char kSignoutSettingKey[] = "signout_setting"; + +-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + #define CAN_DELETE_PROFILE + #endif + Property changes on: head/www/chromium/files/patch-chrome_browser_signin_signin__util.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_task__manager_sampling_task__group__sampler.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_task__manager_sampling_task__group__sampler.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_task__manager_sampling_task__group__sampler.cc (revision 493750) @@ -1,44 +1,72 @@ ---- chrome/browser/task_manager/sampling/task_group_sampler.cc.orig 2017-06-05 19:03:03 UTC -+++ chrome/browser/task_manager/sampling/task_group_sampler.cc -@@ -36,9 +36,9 @@ TaskGroupSampler::TaskGroupSampler( +--- chrome/browser/task_manager/sampling/task_group_sampler.cc.orig 2019-01-30 02:17:47.000000000 +0100 ++++ chrome/browser/task_manager/sampling/task_group_sampler.cc 2019-02-06 22:39:09.250640000 +0100 +@@ -42,9 +42,9 @@ const OnCpuRefreshCallback& on_cpu_refresh, - const OnMemoryRefreshCallback& on_memory_refresh, + const OnSwappedMemRefreshCallback& on_swapped_mem_refresh, const OnIdleWakeupsCallback& on_idle_wakeups, -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) const OnOpenFdCountCallback& on_open_fd_count, -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) const OnProcessPriorityCallback& on_process_priority) : process_(std::move(process)), process_metrics_(CreateProcessMetrics(process_.Handle())), -@@ -46,9 +46,9 @@ TaskGroupSampler::TaskGroupSampler( +@@ -52,9 +52,9 @@ on_cpu_refresh_callback_(on_cpu_refresh), - on_memory_refresh_callback_(on_memory_refresh), + on_swapped_mem_refresh_callback_(on_swapped_mem_refresh), on_idle_wakeups_callback_(on_idle_wakeups), -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) on_open_fd_count_callback_(on_open_fd_count), -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) on_process_priority_callback_(on_process_priority) { DCHECK(blocking_pool_runner.get()); -@@ -80,7 +80,7 @@ void TaskGroupSampler::Refresh(int64_t refresh_flags) - on_memory_refresh_callback_); +@@ -85,7 +85,7 @@ + on_swapped_mem_refresh_callback_); } -#if defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) if (TaskManagerObserver::IsResourceRefreshEnabled(REFRESH_TYPE_IDLE_WAKEUPS, refresh_flags)) { base::PostTaskAndReplyWithResult( -@@ -89,7 +89,7 @@ void TaskGroupSampler::Refresh(int64_t refresh_flags) +@@ -94,9 +94,9 @@ base::Bind(&TaskGroupSampler::RefreshIdleWakeupsPerSecond, this), on_idle_wakeups_callback_); } -#endif // defined(OS_MACOSX) || defined(OS_LINUX) +#endif // defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - #if defined(OS_LINUX) +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) if (TaskManagerObserver::IsResourceRefreshEnabled(REFRESH_TYPE_FD_COUNT, + refresh_flags)) { + base::PostTaskAndReplyWithResult( +@@ -105,7 +105,7 @@ + base::Bind(&TaskGroupSampler::RefreshOpenFdCount, this), + on_open_fd_count_callback_); + } +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + if (TaskManagerObserver::IsResourceRefreshEnabled(REFRESH_TYPE_PRIORITY, + refresh_flags)) { +@@ -144,13 +144,13 @@ + return process_metrics_->GetIdleWakeupsPerSecond(); + } + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + int TaskGroupSampler::RefreshOpenFdCount() { + DCHECK(worker_pool_sequenced_checker_.CalledOnValidSequence()); + + return process_metrics_->GetOpenFdCount(); + } +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + bool TaskGroupSampler::RefreshProcessPriority() { + DCHECK(worker_pool_sequenced_checker_.CalledOnValidSequence()); Index: head/www/chromium/files/patch-chrome_browser_ui_tab__helpers.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_ui_tab__helpers.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_ui_tab__helpers.cc (revision 493750) @@ -1,11 +1,25 @@ ---- chrome/browser/ui/tab_helpers.cc.orig 2017-06-05 19:03:03 UTC -+++ chrome/browser/ui/tab_helpers.cc -@@ -258,7 +258,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_con +--- chrome/browser/ui/tab_helpers.cc.orig 2019-01-30 02:17:48.000000000 +0100 ++++ chrome/browser/ui/tab_helpers.cc 2019-02-02 00:32:46.587950000 +0100 +@@ -117,7 +117,7 @@ + #include "components/zoom/zoom_controller.h" + #endif // defined(OS_ANDROID) + +-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) + #include "chrome/browser/ui/blocked_content/framebust_block_tab_helper.h" + #include "chrome/browser/ui/hats/hats_helper.h" #endif +@@ -311,11 +311,11 @@ + #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) metrics::DesktopSessionDurationObserver::CreateForWebContents(web_contents); #endif +-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) + if (base::FeatureList::IsEnabled( + features::kHappinessTrackingSurveysForDesktop)) { + HatsHelper::CreateForWebContents(web_contents); Index: head/www/chromium/files/patch-chrome_browser_ui_toolbar_app__menu__model.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_ui_toolbar_app__menu__model.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_browser_ui_toolbar_app__menu__model.cc (revision 493750) @@ -1,11 +1,11 @@ ---- chrome/browser/ui/toolbar/app_menu_model.cc.orig 2017-06-05 19:03:03 UTC -+++ chrome/browser/ui/toolbar/app_menu_model.cc -@@ -619,7 +619,7 @@ bool AppMenuModel::IsCommandIdVisible(int command_id) - case IDC_UPGRADE_DIALOG: - return browser_defaults::kShowUpgradeMenuItem && - UpgradeDetector::GetInstance()->notify_upgrade(); +--- chrome/browser/ui/toolbar/app_menu_model.cc.orig 2019-01-30 02:17:48.000000000 +0100 ++++ chrome/browser/ui/toolbar/app_menu_model.cc 2019-01-31 23:16:29.559467000 +0100 +@@ -664,7 +664,7 @@ + return app_menu_icon_controller_->GetTypeAndSeverity().type == + AppMenuIconController::IconType::UPGRADE_NOTIFICATION; + } -#if !defined(OS_LINUX) || defined(USE_AURA) +#if (!defined(OS_LINUX) && !defined(OS_BSD)) || defined(USE_AURA) case IDC_BOOKMARK_PAGE: return !chrome::ShouldRemoveBookmarkThisPageUI(browser_->profile()); case IDC_BOOKMARK_ALL_TABS: Index: head/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc (revision 493750) @@ -0,0 +1,29 @@ +--- chrome/browser/ui/views/frame/browser_view.cc.orig 2019-02-06 22:42:13.515085000 +0100 ++++ chrome/browser/ui/views/frame/browser_view.cc 2019-02-06 22:43:58.340147000 +0100 +@@ -1255,7 +1255,7 @@ + } + + void BrowserView::DestroyBrowser() { +-#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + if (quit_instruction_bubble_controller_) { + GetWidget()->GetNativeView()->RemovePreTargetHandler( + quit_instruction_bubble_controller_.get()); +@@ -2089,7 +2089,7 @@ + } + + void BrowserView::OnWidgetDestroying(views::Widget* widget) { +-#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + if (quit_instruction_bubble_controller_) { + GetWidget()->GetNativeView()->RemovePreTargetHandler( + quit_instruction_bubble_controller_.get()); +@@ -2435,7 +2435,7 @@ + GetWidget()->SetNativeWindowProperty(Profile::kProfileKey, + browser_->profile()); + +-#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + if (browser_->SupportsWindowFeature(Browser::FEATURE_TOOLBAR)) { + quit_instruction_bubble_controller_ = + QuitInstructionBubbleController::GetInstance(); Property changes on: head/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.h =================================================================== --- head/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.h (nonexistent) +++ head/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.h (revision 493750) @@ -0,0 +1,20 @@ +--- chrome/browser/ui/views/frame/browser_view.h.orig 2019-02-06 22:45:00.117437000 +0100 ++++ chrome/browser/ui/views/frame/browser_view.h 2019-02-06 22:46:12.076822000 +0100 +@@ -49,7 +49,7 @@ + #include "chrome/browser/ui/views/intent_picker_bubble_view.h" + #endif // defined(OS_CHROMEOS) + +-#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + #include "chrome/browser/ui/views/quit_instruction_bubble_controller.h" + #endif + +@@ -833,7 +833,7 @@ + }; + base::Optional interactive_resize_; + +-#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + scoped_refptr + quit_instruction_bubble_controller_; + #endif Property changes on: head/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-chrome_common_chrome__switches.cc =================================================================== --- head/www/chromium/files/patch-chrome_common_chrome__switches.cc (revision 493749) +++ head/www/chromium/files/patch-chrome_common_chrome__switches.cc (revision 493750) @@ -1,17 +1,17 @@ ---- chrome/common/chrome_switches.cc.orig 2018-02-24 16:25:10.000000000 +0100 -+++ chrome/common/chrome_switches.cc 2018-03-03 22:30:18.421438000 +0100 -@@ -998,12 +998,12 @@ - const char kEnableWaylandServer[] = "enable-wayland-server"; +--- chrome/common/chrome_switches.cc.orig 2019-01-30 02:17:48.000000000 +0100 ++++ chrome/common/chrome_switches.cc 2019-01-31 23:25:33.468702000 +0100 +@@ -940,12 +940,12 @@ + const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api"; #endif -#if defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) const char kDisableInputImeAPI[] = "disable-input-ime-api"; const char kEnableInputImeAPI[] = "enable-input-ime-api"; #endif -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) const char kEnableNewAppMenuIcon[] = "enable-new-app-menu-icon"; #endif Index: head/www/chromium/files/patch-chrome_common_features.gni =================================================================== --- head/www/chromium/files/patch-chrome_common_features.gni (revision 493749) +++ head/www/chromium/files/patch-chrome_common_features.gni (revision 493750) @@ -1,20 +1,14 @@ ---- chrome/common/features.gni.orig 2017-09-05 21:05:14.000000000 +0200 -+++ chrome/common/features.gni 2017-09-07 15:11:34.649303000 +0200 -@@ -46,7 +46,7 @@ - is_android || is_mac || (is_desktop_linux && use_dbus) +--- chrome/common/features.gni.orig 2019-01-30 02:17:49.000000000 +0100 ++++ chrome/common/features.gni 2019-01-31 23:22:21.293971000 +0100 +@@ -41,9 +41,9 @@ + (is_desktop_linux && use_dbus) || is_chromeos enable_one_click_signin = - is_win || is_mac || (is_linux && !is_chromeos && !is_chromecast) + is_win || is_mac || is_bsd || (is_linux && !is_chromeos && !is_chromecast) - # Indicates if Exo should use ozone gamepad. If this is false, exo will use - # /device/gamepad as backend. -@@ -60,7 +60,7 @@ - # Specify --mash to chrome to have chrome start the mash environment. - enable_package_mash_services = is_chromeos - -- enable_service_discovery = enable_mdns || is_mac -+ enable_service_discovery = enable_mdns || is_mac || is_bsd +- enable_service_discovery = (enable_mdns && !is_android && !is_ios) || is_mac ++ enable_service_discovery = (enable_mdns && !is_android && !is_ios) || is_mac || is_bsd # Enables use of the session service, which is enabled by default. # Android stores them separately on the Java side. Index: head/www/chromium/files/patch-chromecast_browser_tts_tts__controller__impl.cc =================================================================== --- head/www/chromium/files/patch-chromecast_browser_tts_tts__controller__impl.cc (nonexistent) +++ head/www/chromium/files/patch-chromecast_browser_tts_tts__controller__impl.cc (revision 493750) @@ -0,0 +1,14 @@ +--- chromecast/browser/tts/tts_controller_impl.cc.orig 2019-01-31 23:07:11.992155000 +0100 ++++ chromecast/browser/tts/tts_controller_impl.cc 2019-01-31 23:08:40.991798000 +0100 +@@ -390,7 +390,11 @@ + } + + TtsPlatformImpl* TtsControllerImpl::GetPlatformImpl() { ++#if defined(OS_BSD) ++ return NULL; ++#else + return platform_impl_.get(); ++#endif // defined(OS_BSD) + } + + std::string TtsControllerImpl::GetApplicationLocale() const { Property changes on: head/www/chromium/files/patch-chromecast_browser_tts_tts__controller__impl.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-components_crash_content_app_crashpad.cc =================================================================== --- head/www/chromium/files/patch-components_crash_content_app_crashpad.cc (revision 493749) +++ head/www/chromium/files/patch-components_crash_content_app_crashpad.cc (revision 493750) @@ -1,43 +1,43 @@ ---- components/crash/content/app/crashpad.cc.orig 2018-08-01 00:08:38.000000000 +0200 -+++ components/crash/content/app/crashpad.cc 2018-08-05 12:57:33.862455000 +0200 -@@ -101,6 +101,12 @@ - const std::string& user_data_dir, +--- components/crash/content/app/crashpad.cc.orig 2019-01-30 02:17:53.000000000 +0100 ++++ components/crash/content/app/crashpad.cc 2019-01-31 23:31:14.742328000 +0100 +@@ -102,6 +102,12 @@ const base::FilePath& exe_path, + const std::vector& initial_arguments, bool embedded_handler) { + +#if defined(OS_BSD) + NOTIMPLEMENTED(); + return; +#endif + static bool initialized = false; DCHECK(!initialized); initialized = true; -@@ -119,7 +125,7 @@ - // as processed by the backend. +@@ -121,7 +127,7 @@ DCHECK(browser_process || process_type == "Chrome Installer" || - process_type == "notification-helper"); + process_type == "notification-helper" || + process_type == "GCPW Installer" || process_type == "GCPW DLL"); -#elif defined(OS_LINUX) || defined(OS_ANDROID) +#elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) DCHECK(browser_process); #else #error Port. -@@ -184,7 +190,7 @@ +@@ -186,7 +192,7 @@ // other "main, first process" to initialize things. There is no "relauncher" // on Windows, so this is synonymous with initial_client. const bool should_initialize_database_and_set_upload_policy = initial_client; -#elif defined(OS_LINUX) || defined(OS_ANDROID) +#elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) const bool should_initialize_database_and_set_upload_policy = browser_process; #endif if (should_initialize_database_and_set_upload_policy) { -@@ -253,7 +259,9 @@ +@@ -265,7 +271,9 @@ } void DumpWithoutCrashing() { +#if !defined(OS_BSD) CRASHPAD_SIMULATE_CRASH(); +#endif } void GetReports(std::vector* reports) { Index: head/www/chromium/files/patch-components_download_quarantine_quarantine_linux.cc =================================================================== --- head/www/chromium/files/patch-components_download_quarantine_quarantine_linux.cc (revision 493749) +++ head/www/chromium/files/patch-components_download_quarantine_quarantine_linux.cc (revision 493750) @@ -1,33 +1,36 @@ ---- components/download/quarantine/quarantine_linux.cc.orig 2018-12-03 21:16:48.000000000 +0100 -+++ components/download/quarantine/quarantine_linux.cc 2018-12-13 18:59:24.718194000 +0100 +--- components/download/quarantine/quarantine_linux.cc.orig 2019-01-30 02:17:53.000000000 +0100 ++++ components/download/quarantine/quarantine_linux.cc 2019-01-31 23:40:46.073321000 +0100 @@ -2,11 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "build/build_config.h" + #include "components/download/quarantine/quarantine.h" #include #include +#if !defined(OS_BSD) #include +#endif #include "base/files/file_path.h" #include "base/logging.h" -@@ -24,12 +28,14 @@ - size_t value_size, +@@ -25,7 +29,7 @@ int flags) { + // On Chrome OS, there is no component that can validate these extended + // attributes so there is no need to set them. +-#if !defined(OS_CHROMEOS) ++#if !defined(OS_CHROMEOS) && !defined(OS_BSD) base::ScopedBlockingCall scoped_blocking_call(base::BlockingType::MAY_BLOCK); -+#if !defined(OS_BSD) int result = setxattr(path, name, value, value_size, flags); if (result) { - DPLOG(ERROR) << "Could not set extended attribute " << name << " on file " +@@ -33,7 +37,7 @@ << path; return false; } -+#endif // defined(OS_BSD) +-#endif // !defined(OS_CHROMEOS) ++#endif // !defined(OS_CHROMEOS) && !defined(OS_BSD) return true; } Index: head/www/chromium/files/patch-components_download_quarantine_test_support_linux.cc =================================================================== --- head/www/chromium/files/patch-components_download_quarantine_test_support_linux.cc (revision 493749) +++ head/www/chromium/files/patch-components_download_quarantine_test_support_linux.cc (revision 493750) @@ -1,20 +1,20 @@ ---- components/download/quarantine/test_support_linux.cc.orig 2018-12-13 19:01:53.437126000 +0100 -+++ components/download/quarantine/test_support_linux.cc 2018-12-13 19:02:49.728978000 +0100 -@@ -22,6 +22,7 @@ +--- components/download/quarantine/test_support_linux.cc.orig 2019-01-30 02:17:53.000000000 +0100 ++++ components/download/quarantine/test_support_linux.cc 2019-01-31 23:56:27.334442000 +0100 +@@ -21,6 +21,7 @@ + namespace { std::string GetExtendedFileAttribute(const char* path, const char* name) { - base::AssertBlockingAllowed(); +#if !defined(OS_BSD) + base::ScopedBlockingCall scoped_blocking_call(base::BlockingType::MAY_BLOCK); ssize_t len = getxattr(path, name, nullptr, 0); if (len <= 0) - return std::string(); @@ -31,6 +32,9 @@ if (len < static_cast(buffer.size())) return std::string(); return std::string(buffer.begin(), buffer.end()); +#else + return std::string(); +#endif // !defined(OS_BSD) } } // namespace Index: head/www/chromium/files/patch-components_plugins_renderer_plugin__placeholder.cc =================================================================== --- head/www/chromium/files/patch-components_plugins_renderer_plugin__placeholder.cc (revision 493749) +++ head/www/chromium/files/patch-components_plugins_renderer_plugin__placeholder.cc (revision 493750) @@ -1,14 +1,14 @@ ---- components/plugins/renderer/plugin_placeholder.cc.orig 2018-06-13 00:10:13.000000000 +0200 -+++ components/plugins/renderer/plugin_placeholder.cc 2018-07-19 00:02:51.619981000 +0200 -@@ -11,7 +11,11 @@ - #include "gin/object_template_builder.h" - #include "third_party/blink/public/web/web_element.h" +--- components/plugins/renderer/plugin_placeholder.cc.orig 2019-01-30 02:17:54.000000000 +0100 ++++ components/plugins/renderer/plugin_placeholder.cc 2019-02-01 00:04:53.895073000 +0100 +@@ -17,7 +17,11 @@ #include "third_party/blink/public/web/web_plugin_container.h" + #include "third_party/blink/public/web/web_script_source.h" + #include "third_party/blink/public/web/web_serialized_script_value.h" +#if defined(OS_BSD) +#include +#else #include "third_party/re2/src/re2/re2.h" -+#endif ++#endif // defined(OS_BSD) namespace plugins { Index: head/www/chromium/files/patch-components_policy_core_common_cloud_cloud__policy__util.cc =================================================================== --- head/www/chromium/files/patch-components_policy_core_common_cloud_cloud__policy__util.cc (nonexistent) +++ head/www/chromium/files/patch-components_policy_core_common_cloud_cloud__policy__util.cc (revision 493750) @@ -0,0 +1,73 @@ +--- components/policy/core/common/cloud/cloud_policy_util.cc.orig 2019-02-06 22:50:06.437715000 +0100 ++++ components/policy/core/common/cloud/cloud_policy_util.cc 2019-02-07 01:42:29.673954000 +0100 +@@ -16,7 +16,7 @@ + #include + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_MACOSX) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) || defined(OS_BSD) + #include + #include + #include +@@ -28,7 +28,7 @@ + #include + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + #include // For HOST_NAME_MAX + #endif + +@@ -51,7 +51,7 @@ + #include "base/system/sys_info.h" + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + #include "base/system/sys_info.h" + #endif + +@@ -60,11 +60,24 @@ + namespace em = enterprise_management; + + std::string GetMachineName() { +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + char hostname[HOST_NAME_MAX]; + if (gethostname(hostname, HOST_NAME_MAX) == 0) // Success. + return hostname; + return std::string(); ++#elif defined(OS_BSD) ++ long host_name_max = sysconf(_SC_HOST_NAME_MAX); ++ if (host_name_max != -1) { ++ char *hostname = new char[host_name_max + 1](); ++ std::string hostname_r; ++ ++ if (gethostname(hostname, host_name_max) == 0) ++ hostname_r = hostname; ++ ++ delete[] hostname; ++ return hostname_r; ++ } ++ return std::string(); + #elif defined(OS_MACOSX) + // Do not use NSHost currentHost, as it's very slow. http://crbug.com/138570 + SCDynamicStoreContext context = {0, NULL, NULL, NULL}; +@@ -110,7 +123,7 @@ + } + + std::string GetOSVersion() { +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_MACOSX) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) || defined(OS_BSD) + return base::SysInfo::OperatingSystemVersion(); + #elif defined(OS_WIN) + base::win::OSInfo::VersionNumber version_number = +@@ -133,7 +146,7 @@ + } + + std::string GetOSUsername() { +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_MACOSX) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) || defined(OS_BSD) + struct passwd* creds = getpwuid(getuid()); + if (!creds || !creds->pw_name) + return std::string(); Property changes on: head/www/chromium/files/patch-components_policy_core_common_cloud_cloud__policy__util.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-components_policy_resources_policy__templates.json =================================================================== --- head/www/chromium/files/patch-components_policy_resources_policy__templates.json (revision 493749) +++ head/www/chromium/files/patch-components_policy_resources_policy__templates.json (revision 493750) @@ -1,83 +1,83 @@ ---- components/policy/resources/policy_templates.json.orig 2018-02-24 16:25:13.000000000 +0100 -+++ components/policy/resources/policy_templates.json 2018-03-03 23:01:15.812578000 +0100 -@@ -593,7 +593,7 @@ +--- components/policy/resources/policy_templates.json.orig 2019-02-06 23:06:41.000000000 +0100 ++++ components/policy/resources/policy_templates.json 2019-02-08 20:46:39.627324000 +0100 +@@ -723,7 +723,7 @@ 'name': 'HomepageLocation', 'type': 'string', 'schema': { 'type': 'string' }, - 'supported_on': ['chrome.*:8-', 'chrome_os:11-'], -+ 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'chrome.bsd:9-'], ++ 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'chrome.freebsd:9-'], 'features': { 'can_be_recommended': True, 'dynamic_refresh': True, -@@ -621,7 +621,7 @@ +@@ -751,7 +751,7 @@ 'name': 'HomepageIsNewTabPage', 'type': 'main', 'schema': { 'type': 'boolean' }, - 'supported_on': ['chrome.*:8-', 'chrome_os:11-'], -+ 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'chrome.bsd:9-'], ++ 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'chrome.freebsd:9-'], 'features': { 'can_be_recommended': True, 'dynamic_refresh': True, -@@ -648,7 +648,7 @@ +@@ -778,7 +778,7 @@ 'name': 'NewTabPageLocation', 'type': 'string', 'schema': { 'type': 'string' }, - 'supported_on': ['chrome.*:58-', 'chrome_os:58-'], -+ 'supported_on': ['chrome.*:58-', 'chrome_os:58-', 'chrome.bsd:9-'], ++ 'supported_on': ['chrome.*:58-', 'chrome_os:58-', 'chrome.freebsd:9-'], 'features': { 'can_be_recommended': True, 'dynamic_refresh': True, -@@ -1339,7 +1339,7 @@ +@@ -1471,7 +1471,7 @@ 'name': 'RemoteAccessHostMatchUsername', 'type': 'main', 'schema': { 'type': 'boolean' }, - 'supported_on': ['chrome.linux:25-', 'chrome.mac:25-', 'chrome_os:42-'], -+ 'supported_on': ['chrome.linux:25-', 'chrome.mac:25-', 'chrome_os:42-', 'chrome.bsd:25-'], ++ 'supported_on': ['chrome.linux:25-', 'chrome.mac:25-', 'chrome_os:42-', 'chrome.freebsd:25-'], 'features': { 'dynamic_refresh': True, 'per_profile': False, -@@ -2567,7 +2567,7 @@ +@@ -2946,7 +2946,7 @@ 'name': 'GSSAPILibraryName', 'type': 'string', 'schema': { 'type': 'string' }, - 'supported_on': ['chrome.linux:9-'], -+ 'supported_on': ['chrome.linux:9-', 'chrome.bsd:9-'], ++ 'supported_on': ['chrome.linux:9-', 'chrome.freebsd:9-'], 'features': { 'dynamic_refresh': False, 'per_profile': False, -@@ -2619,7 +2619,7 @@ +@@ -2998,7 +2998,7 @@ 'name': 'NtlmV2Enabled', 'type': 'main', 'schema': { 'type': 'boolean' }, - 'supported_on': ['chrome.linux:63-','chrome.mac:63-','chrome_os:63-','android:63-','webview_android:63-'], -+ 'supported_on': ['chrome.linux:63-','chrome.mac:63-','chrome_os:63-','android:63-','webview_android:63-', 'chrome.bsd:63-'], ++ 'supported_on': ['chrome.linux:63-','chrome.mac:63-','chrome_os:63-','android:63-','webview_android:63-', 'chrome.freebsd:63-'], 'features': { 'dynamic_refresh': True, 'per_profile': False, -@@ -5229,7 +5229,7 @@ +@@ -5989,7 +5989,7 @@ 'name': 'RequireOnlineRevocationChecksForLocalAnchors', 'type': 'main', 'schema': { 'type': 'boolean' }, - 'supported_on': ['chrome_os:30-', 'chrome.linux:30-', 'chrome.win:30-'], -+ 'supported_on': ['chrome_os:30-', 'chrome.linux:30-', 'chrome.win:30-', 'chrome.bsd:30-'], ++ 'supported_on': ['chrome_os:30-', 'chrome.linux:30-', 'chrome.win:30-', 'chrome.freebsd:30-'], 'features': { 'dynamic_refresh': True, 'per_profile': False, -@@ -6157,7 +6157,7 @@ +@@ -7058,7 +7058,7 @@ 'name': 'BackgroundModeEnabled', 'type': 'main', 'schema': { 'type': 'boolean' }, - 'supported_on': ['chrome.win:19-', 'chrome.linux:19-'], -+ 'supported_on': ['chrome.win:19-', 'chrome.linux:19-', 'chrome.bsd:19-'], ++ 'supported_on': ['chrome.win:19-', 'chrome.linux:19-', 'chrome.freebsd:19-'], 'features': { 'can_be_recommended': True, 'dynamic_refresh': True, -@@ -6669,7 +6669,7 @@ +@@ -7573,7 +7573,7 @@ 'name': 'FullscreenAllowed', 'type': 'main', 'schema': { 'type': 'boolean' }, - 'supported_on': ['chrome.win:31-', 'chrome.linux:31-', 'chrome_os:31-'], -+ 'supported_on': ['chrome.win:31-', 'chrome.linux:31-', 'chrome_os:31-', 'chrome.bsd:31-'], ++ 'supported_on': ['chrome.win:31-', 'chrome.linux:31-', 'chrome_os:31-', 'chrome.freebsd:31-'], 'features': { 'dynamic_refresh': True, 'per_profile': True, Index: head/www/chromium/files/patch-components_policy_tools_generate__policy__source.py =================================================================== --- head/www/chromium/files/patch-components_policy_tools_generate__policy__source.py (revision 493749) +++ head/www/chromium/files/patch-components_policy_tools_generate__policy__source.py (revision 493750) @@ -1,20 +1,20 @@ ---- components/policy/tools/generate_policy_source.py.orig 2017-12-15 02:04:15.000000000 +0100 -+++ components/policy/tools/generate_policy_source.py 2017-12-24 12:04:08.751317000 +0100 -@@ -91,7 +91,7 @@ - raise RuntimeError('is_device_only is only allowed for Chrome OS: "%s"' - % p) - if platform not in ['chrome_frame', 'chrome_os', -- 'android', 'webview_android', -+ 'android', 'webview_android', 'chrome.bsd', - 'chrome.win', 'chrome.linux', 'chrome.mac', - 'chrome.fuchsia', 'chrome.*']: +--- components/policy/tools/generate_policy_source.py.orig 2019-02-06 23:06:41.000000000 +0100 ++++ components/policy/tools/generate_policy_source.py 2019-02-08 20:44:33.267121000 +0100 +@@ -85,7 +85,7 @@ + if platform not in [ + 'chrome_frame', 'chrome_os', 'android', 'webview_android', + 'chrome.win', 'chrome.linux', 'chrome.mac', 'chrome.fuchsia', +- 'chrome.*' ++ 'chrome.freebsd', 'chrome.*' + ]: raise RuntimeError('Platform "%s" is not supported' % platform) -@@ -111,7 +111,7 @@ + +@@ -104,7 +104,7 @@ if platform.startswith('chrome.'): platform_sub = platform[7:] if platform_sub == '*': - self.platforms.extend(['win', 'mac', 'linux', 'fuchsia']) -+ self.platforms.extend(['win', 'mac', 'linux', 'fuchsia', 'bsd']) ++ self.platforms.extend(['win', 'mac', 'linux', 'fuchsia', 'freebsd']) else: self.platforms.append(platform_sub) else: Index: head/www/chromium/files/patch-content_app_content_main_runner_impl.cc =================================================================== --- head/www/chromium/files/patch-content_app_content_main_runner_impl.cc (revision 493749) +++ head/www/chromium/files/patch-content_app_content_main_runner_impl.cc (revision 493750) @@ -1,29 +1,46 @@ ---- content/app/content_main_runner_impl.cc.orig 2018-12-03 21:16:54.000000000 +0100 -+++ content/app/content_main_runner_impl.cc 2018-12-13 20:19:01.539883000 +0100 -@@ -90,10 +90,10 @@ +--- content/app/content_main_runner_impl.cc.orig 2019-01-30 02:17:57.000000000 +0100 ++++ content/app/content_main_runner_impl.cc 2019-02-06 23:01:02.842834000 +0100 +@@ -91,17 +91,17 @@ #include "base/posix/global_descriptors.h" #include "content/public/common/content_descriptors.h" -#if !defined(OS_MACOSX) +#if !defined(OS_MACOSX) && !defined(OS_BSD) #include "services/service_manager/zygote/common/zygote_fork_delegate_linux.h" #endif -#if !defined(OS_MACOSX) && !defined(OS_ANDROID) +#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && !defined(OS_BSD) #include "sandbox/linux/services/libc_interceptor.h" #include "services/service_manager/zygote/zygote_main.h" #endif -@@ -627,11 +627,11 @@ + + #endif // OS_POSIX || OS_FUCHSIA + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include "base/native_library.h" + #include "base/rand_util.h" + #include "services/service_manager/zygote/common/common_sandbox_support_linux.h" +@@ -307,7 +307,7 @@ + } + #endif // BUILDFLAG(USE_ZYGOTE_HANDLE) + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + + #if BUILDFLAG(ENABLE_PLUGINS) + // Loads the (native) libraries but does not initialize them (i.e., does not +@@ -635,11 +635,11 @@ base::GlobalDescriptors::kBaseDescriptor); #endif // !OS_ANDROID -#if defined(OS_LINUX) || defined(OS_OPENBSD) +#if defined(OS_LINUX) g_fds->Set(service_manager::kCrashDumpSignal, service_manager::kCrashDumpSignal + base::GlobalDescriptors::kBaseDescriptor); -#endif // OS_LINUX || OS_OPENBSD +#endif // OS_LINUX #endif // !OS_WIN Index: head/www/chromium/files/patch-content_browser_scheduler_responsiveness_native__event__observer.cc =================================================================== --- head/www/chromium/files/patch-content_browser_scheduler_responsiveness_native__event__observer.cc (revision 493749) +++ head/www/chromium/files/patch-content_browser_scheduler_responsiveness_native__event__observer.cc (revision 493750) @@ -1,29 +1,29 @@ ---- content/browser/scheduler/responsiveness/native_event_observer.cc.orig 2018-12-12 22:56:07.000000000 +0100 -+++ content/browser/scheduler/responsiveness/native_event_observer.cc 2018-12-29 17:27:50.449973000 +0100 -@@ -17,7 +17,7 @@ +--- content/browser/scheduler/responsiveness/native_event_observer.cc.orig 2019-01-30 02:17:59.000000000 +0100 ++++ content/browser/scheduler/responsiveness/native_event_observer.cc 2019-02-01 00:19:02.237926000 +0100 +@@ -15,7 +15,7 @@ #include "ui/events/platform/platform_event_source.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "ui/aura/env.h" #include "ui/events/event.h" #endif -@@ -29,7 +29,7 @@ - namespace content { - namespace responsiveness { - --#if defined(OS_WIN) || (defined(OS_LINUX) && defined(USE_X11)) -+#if defined(OS_WIN) || ((defined(OS_LINUX) || defined(OS_BSD)) && defined(USE_X11)) - - namespace { - -@@ -64,7 +64,7 @@ +@@ -39,7 +39,7 @@ DeregisterObserver(); } -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) void NativeEventObserver::RegisterObserver() { aura::Env::GetInstance()->AddWindowEventDispatcherObserver(this); } +@@ -61,7 +61,7 @@ + did_run_event_callback_.Run(info.unique_id); + events_being_processed_.pop_back(); + } +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + #if defined(OS_WIN) + void NativeEventObserver::RegisterObserver() { Index: head/www/chromium/files/patch-content_browser_scheduler_responsiveness_native__event__observer.h =================================================================== --- head/www/chromium/files/patch-content_browser_scheduler_responsiveness_native__event__observer.h (revision 493749) +++ head/www/chromium/files/patch-content_browser_scheduler_responsiveness_native__event__observer.h (revision 493750) @@ -1,47 +1,47 @@ ---- content/browser/scheduler/responsiveness/native_event_observer.h.orig 2018-12-12 22:56:07.000000000 +0100 -+++ content/browser/scheduler/responsiveness/native_event_observer.h 2018-12-30 00:51:50.166518000 +0100 -@@ -15,7 +15,7 @@ +--- content/browser/scheduler/responsiveness/native_event_observer.h.orig 2019-01-30 02:17:59.000000000 +0100 ++++ content/browser/scheduler/responsiveness/native_event_observer.h 2019-02-01 00:24:39.349687000 +0100 +@@ -14,7 +14,7 @@ #include "content/public/browser/native_event_processor_observer_mac.h" #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "ui/aura/window_event_dispatcher_observer.h" #endif -@@ -40,7 +40,7 @@ +@@ -39,7 +39,7 @@ class CONTENT_EXPORT NativeEventObserver #if defined(OS_MACOSX) : public NativeEventProcessorObserver -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) : public aura::WindowEventDispatcherObserver #elif defined(OS_WIN) : public base::MessagePumpForUI::Observer -@@ -60,7 +60,7 @@ +@@ -56,7 +56,7 @@ NativeEventObserver(WillRunEventCallback will_run_event_callback, DidRunEventCallback did_run_event_callback); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) ~NativeEventObserver() override; #else virtual ~NativeEventObserver(); -@@ -73,7 +73,7 @@ +@@ -68,7 +68,7 @@ + // Exposed for tests. void WillRunNativeEvent(const void* opaque_identifier) override; - void DidRunNativeEvent(const void* opaque_identifier, - base::TimeTicks creation_time) override; + void DidRunNativeEvent(const void* opaque_identifier) override; -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) // aura::WindowEventDispatcherObserver overrides: void OnWindowEventDispatcherStartedProcessing( aura::WindowEventDispatcher* dispatcher, -@@ -90,7 +90,7 @@ +@@ -85,7 +85,7 @@ void RegisterObserver(); void DeregisterObserver(); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) struct EventInfo { const void* unique_id; - base::TimeTicks creation_time; + }; Index: head/www/chromium/files/patch-content_browser_service__manager_service__manager__context.cc =================================================================== --- head/www/chromium/files/patch-content_browser_service__manager_service__manager__context.cc (nonexistent) +++ head/www/chromium/files/patch-content_browser_service__manager_service__manager__context.cc (revision 493750) @@ -0,0 +1,29 @@ +--- content/browser/service_manager/service_manager_context.cc.orig 2019-02-06 19:17:17.245963000 +0100 ++++ content/browser/service_manager/service_manager_context.cc 2019-02-06 19:18:30.535127000 +0100 +@@ -100,7 +100,7 @@ + #include "ui/aura/env.h" + #endif + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include "components/services/font/font_service_app.h" + #include "components/services/font/public/interfaces/constants.mojom.h" + #endif +@@ -436,7 +436,7 @@ + BrowserMainLoop::GetAudioManager(), std::move(request))); + } + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + void CreateFontService(service_manager::mojom::ServiceRequest request) { + // The font service owns itself here, deleting on self-termination. + auto service = +@@ -700,7 +700,7 @@ + out_of_process_services[data_decoder::mojom::kServiceName] = + base::BindRepeating(&base::ASCIIToUTF16, "Data Decoder Service"); + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + packaged_services_connection_->AddServiceRequestHandler( + font_service::mojom::kServiceName, + base::BindRepeating([](service_manager::mojom::ServiceRequest request) { Property changes on: head/www/chromium/files/patch-content_browser_service__manager_service__manager__context.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-content_browser_webui_shared__resources__data__source.cc =================================================================== --- head/www/chromium/files/patch-content_browser_webui_shared__resources__data__source.cc (nonexistent) +++ head/www/chromium/files/patch-content_browser_webui_shared__resources__data__source.cc (revision 493750) @@ -0,0 +1,14 @@ +--- content/browser/webui/shared_resources_data_source.cc.orig 2019-02-06 23:05:16.881256000 +0100 ++++ content/browser/webui/shared_resources_data_source.cc 2019-02-06 23:05:49.834217000 +0100 +@@ -73,9 +73,9 @@ + return std::map { + {IDR_MOJO_MOJO_BINDINGS_JS, "js/mojo_bindings.js"}, + {IDR_MOJO_MOJO_BINDINGS_LITE_JS, "js/mojo_bindings_lite.js"}, +-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) + {IDR_MOJO_TIME_MOJOM_JS, "js/time.mojom.js"}, +-#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) ++#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) + }; + } + Property changes on: head/www/chromium/files/patch-content_browser_webui_shared__resources__data__source.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-content_gpu_BUILD.gn =================================================================== --- head/www/chromium/files/patch-content_gpu_BUILD.gn (revision 493749) +++ head/www/chromium/files/patch-content_gpu_BUILD.gn (revision 493750) @@ -1,11 +1,11 @@ ---- content/gpu/BUILD.gn.orig 2018-06-13 00:10:17.000000000 +0200 -+++ content/gpu/BUILD.gn 2018-07-19 12:07:20.670815000 +0200 -@@ -127,7 +127,7 @@ +--- content/gpu/BUILD.gn.orig 2019-01-04 22:49:40.191544000 +0100 ++++ content/gpu/BUILD.gn 2019-01-04 22:50:06.857572000 +0100 +@@ -131,7 +131,7 @@ # Use DRI on desktop Linux builds. if (current_cpu != "s390x" && current_cpu != "ppc64" && is_desktop_linux && - (!is_chromecast || is_cast_desktop_build)) { + (!is_chromecast || is_cast_desktop_build) && !is_bsd) { configs += [ "//build/config/linux/dri" ] } } Index: head/www/chromium/files/patch-content_ppapi__plugin_ppapi__blink__platform__impl.cc =================================================================== --- head/www/chromium/files/patch-content_ppapi__plugin_ppapi__blink__platform__impl.cc (revision 493749) +++ head/www/chromium/files/patch-content_ppapi__plugin_ppapi__blink__platform__impl.cc (revision 493750) @@ -1,29 +1,38 @@ ---- content/ppapi_plugin/ppapi_blink_platform_impl.cc.orig 2018-12-29 00:39:49.705019000 +0100 -+++ content/ppapi_plugin/ppapi_blink_platform_impl.cc 2018-12-29 00:41:23.442527000 +0100 -@@ -40,7 +40,7 @@ +--- content/ppapi_plugin/ppapi_blink_platform_impl.cc.orig 2019-01-30 02:17:59.000000000 +0100 ++++ content/ppapi_plugin/ppapi_blink_platform_impl.cc 2019-02-01 00:41:49.296005000 +0100 +@@ -36,7 +36,7 @@ - class PpapiBlinkPlatformImpl::SandboxSupport : public WebSandboxSupport { - public: + namespace content { + -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - explicit SandboxSupport(sk_sp font_loader) - : font_loader_(std::move(font_loader)) {} + + class PpapiBlinkPlatformImpl::SandboxSupport : public WebSandboxSupport { + public: +@@ -118,7 +118,7 @@ #endif -@@ -48,7 +48,7 @@ - #if defined(OS_MACOSX) - bool LoadFont(CTFontRef srcFont, CGFontRef* out, uint32_t* fontID) override; --#elif defined(OS_LINUX) -+#elif defined(OS_LINUX) || defined(OS_BSD) - SandboxSupport(); - void GetFallbackFontForCharacter( - WebUChar32 character, -@@ -140,7 +140,7 @@ - #endif // !defined(OS_ANDROID) && !defined(OS_WIN) - PpapiBlinkPlatformImpl::PpapiBlinkPlatformImpl() { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) font_loader_ = sk_make_sp(ChildThread::Get()->GetConnector()); SkFontConfigInterface::SetGlobal(font_loader_); +@@ -134,7 +134,7 @@ + } + + void PpapiBlinkPlatformImpl::Shutdown() { +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + // SandboxSupport contains a map of OutOfProcessFont objects, which hold + // WebStrings and WebVectors, which become invalidated when blink is shut + // down. Hence, we need to clear that map now, just before blink::shutdown() +@@ -144,7 +144,7 @@ + } + + blink::WebSandboxSupport* PpapiBlinkPlatformImpl::GetSandboxSupport() { +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + return sandbox_support_.get(); + #else + return nullptr; Index: head/www/chromium/files/patch-content_ppapi__plugin_ppapi__blink__platform__impl.h =================================================================== --- head/www/chromium/files/patch-content_ppapi__plugin_ppapi__blink__platform__impl.h (revision 493749) +++ head/www/chromium/files/patch-content_ppapi__plugin_ppapi__blink__platform__impl.h (revision 493750) @@ -1,20 +1,25 @@ ---- content/ppapi_plugin/ppapi_blink_platform_impl.h.orig 2018-12-29 00:40:09.590096000 +0100 -+++ content/ppapi_plugin/ppapi_blink_platform_impl.h 2018-12-29 00:41:23.439801000 +0100 +--- content/ppapi_plugin/ppapi_blink_platform_impl.h.orig 2019-01-30 02:17:59.000000000 +0100 ++++ content/ppapi_plugin/ppapi_blink_platform_impl.h 2019-02-01 00:52:30.911304000 +0100 @@ -13,7 +13,7 @@ #include "build/build_config.h" #include "content/child/blink_platform_impl.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "components/services/font/public/cpp/font_loader.h" #include "third_party/skia/include/core/SkRefCnt.h" #endif -@@ -47,7 +47,7 @@ - std::unique_ptr sandbox_support_; +@@ -42,11 +42,11 @@ + bool sync_dir) override; + + private: +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + std::unique_ptr sandbox_support_; #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) + class SandboxSupport; sk_sp font_loader_; #endif - Index: head/www/chromium/files/patch-content_renderer_media_audio_audio__device__factory.cc =================================================================== --- head/www/chromium/files/patch-content_renderer_media_audio_audio__device__factory.cc (nonexistent) +++ head/www/chromium/files/patch-content_renderer_media_audio_audio__device__factory.cc (revision 493750) @@ -0,0 +1,11 @@ +--- content/renderer/media/audio/audio_device_factory.cc.orig 2019-02-06 23:09:19.538251000 +0100 ++++ content/renderer/media/audio/audio_device_factory.cc 2019-02-06 23:09:35.343662000 +0100 +@@ -33,7 +33,7 @@ + + namespace { + +-#if defined(OS_WIN) || defined(OS_MACOSX) || \ ++#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) || \ + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + // Due to driver deadlock issues on Windows (http://crbug/422522) there is a + // chance device authorization response is never received from the browser side. Property changes on: head/www/chromium/files/patch-content_renderer_media_audio_audio__device__factory.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.cc =================================================================== --- head/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.cc (revision 493749) +++ head/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.cc (revision 493750) @@ -1,56 +1,74 @@ ---- content/renderer/renderer_blink_platform_impl.cc.orig 2018-12-03 21:16:57.000000000 +0100 -+++ content/renderer/renderer_blink_platform_impl.cc 2018-12-13 21:57:40.197655000 +0100 -@@ -119,7 +119,7 @@ +--- content/renderer/renderer_blink_platform_impl.cc.orig 2019-01-30 02:18:00.000000000 +0100 ++++ content/renderer/renderer_blink_platform_impl.cc 2019-02-07 00:24:24.998896000 +0100 +@@ -193,7 +193,7 @@ - #if defined(OS_POSIX) - #include "base/file_descriptor_posix.h" --#if !defined(OS_MACOSX) && !defined(OS_ANDROID) -+#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && !defined(OS_BSD) - #include - #include - -@@ -197,7 +197,7 @@ - //------------------------------------------------------------------------------ --#if !defined(OS_ANDROID) && !defined(OS_WIN) && !defined(OS_FUCHSIA) -+#if !defined(OS_ANDROID) && !defined(OS_WIN) && !defined(OS_FUCHSIA) && !defined(OS_BSD) +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) class RendererBlinkPlatformImpl::SandboxSupport : public blink::WebSandboxSupport { public: -@@ -268,7 +268,7 @@ +@@ -223,7 +223,7 @@ + std::map unicode_font_families_; + sk_sp font_loader_; + }; +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + //------------------------------------------------------------------------------ + +@@ -247,7 +247,7 @@ + ->Clone(); + thread_safe_sender_ = RenderThreadImpl::current()->thread_safe_sender(); + blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + font_loader_ = sk_make_sp(connector_.get()); + SkFontConfigInterface::SetGlobal(font_loader_); + #endif +@@ -256,7 +256,7 @@ connector_ = service_manager::Connector::Create(&request); } --#if !defined(OS_ANDROID) && !defined(OS_WIN) && !defined(OS_FUCHSIA) -+#if !defined(OS_ANDROID) && !defined(OS_WIN) && !defined(OS_FUCHSIA) && !defined(OS_BSD) +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) if (g_sandbox_enabled && sandboxEnabled()) { #if defined(OS_MACOSX) - sandbox_support_.reset(new RendererBlinkPlatformImpl::SandboxSupport()); -@@ -297,7 +297,7 @@ + sandbox_support_.reset(new WebSandboxSupportMac(connector_.get())); +@@ -285,7 +285,7 @@ } void RendererBlinkPlatformImpl::Shutdown() { --#if !defined(OS_ANDROID) && !defined(OS_WIN) && !defined(OS_FUCHSIA) -+#if !defined(OS_ANDROID) && !defined(OS_WIN) && !defined(OS_FUCHSIA) && !defined(OS_BSD) +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) // SandboxSupport contains a map of OutOfProcessFont objects, which hold // WebStrings and WebVectors, which become invalidated when blink is shut // down. Hence, we need to clear that map now, just before blink::shutdown() -@@ -391,7 +391,7 @@ +@@ -366,7 +366,7 @@ + + void RendererBlinkPlatformImpl::SetDisplayThreadPriority( + base::PlatformThreadId thread_id) { +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + if (RenderThreadImpl* render_thread = RenderThreadImpl::current()) { + render_thread->render_message_filter()->SetThreadPriority( + thread_id, base::ThreadPriority::DISPLAY); +@@ -379,7 +379,7 @@ } blink::WebSandboxSupport* RendererBlinkPlatformImpl::GetSandboxSupport() { --#if defined(OS_ANDROID) || defined(OS_WIN) || defined(OS_FUCHSIA) -+#if defined(OS_ANDROID) || defined(OS_WIN) || defined(OS_FUCHSIA) || defined(OS_BSD) - // These platforms do not require sandbox support. - return NULL; +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + return sandbox_support_.get(); #else -@@ -591,7 +591,7 @@ - return content::LoadFont(src_font, out, font_id); - } + // These platforms do not require sandbox support. +@@ -560,7 +560,7 @@ --#elif defined(OS_POSIX) && !defined(OS_ANDROID) -+#elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_BSD) + //------------------------------------------------------------------------------ + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) void RendererBlinkPlatformImpl::SandboxSupport::GetFallbackFontForCharacter( blink::WebUChar32 character, Index: head/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.h =================================================================== --- head/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.h (revision 493749) +++ head/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.h (revision 493750) @@ -1,11 +1,29 @@ ---- content/renderer/renderer_blink_platform_impl.h.orig 2017-12-15 02:04:18.000000000 +0100 -+++ content/renderer/renderer_blink_platform_impl.h 2017-12-24 15:04:12.309104000 +0100 -@@ -286,7 +286,7 @@ - class FileUtilities; - std::unique_ptr file_utilities_; +--- content/renderer/renderer_blink_platform_impl.h.orig 2019-01-30 02:18:00.000000000 +0100 ++++ content/renderer/renderer_blink_platform_impl.h 2019-02-06 23:14:36.979983000 +0100 +@@ -29,7 +29,7 @@ + #include "third_party/blink/public/platform/modules/cache_storage/cache_storage.mojom.h" + #include "third_party/blink/public/platform/modules/webdatabase/web_database.mojom.h" --#if !defined(OS_ANDROID) && !defined(OS_WIN) && !defined(OS_FUCHSIA) -+#if !defined(OS_ANDROID) && !defined(OS_WIN) && !defined(OS_FUCHSIA) && !defined(OS_BSD) +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include "components/services/font/public/cpp/font_loader.h" // nogncheck + #include "third_party/skia/include/core/SkRefCnt.h" // nogncheck + #endif +@@ -264,7 +264,7 @@ + std::unique_ptr connector_; + scoped_refptr io_runner_; + +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + std::unique_ptr sandbox_support_; + #endif + +@@ -299,7 +299,7 @@ + blink::mojom::CodeCacheHostPtrInfo code_cache_host_info_; + scoped_refptr code_cache_host_; + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) class SandboxSupport; - std::unique_ptr sandbox_support_; + sk_sp font_loader_; #endif Index: head/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.cc =================================================================== --- head/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.cc (nonexistent) +++ head/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.cc (revision 493750) @@ -0,0 +1,52 @@ +--- content/utility/utility_blink_platform_with_sandbox_support_impl.cc.orig 2019-02-06 23:15:41.158565000 +0100 ++++ content/utility/utility_blink_platform_with_sandbox_support_impl.cc 2019-02-06 23:16:32.076308000 +0100 +@@ -9,7 +9,7 @@ + #if defined(OS_MACOSX) + #include "base/mac/foundation_util.h" + #include "content/child/child_process_sandbox_support_impl_mac.h" +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_BSD) + #include "base/synchronization/lock.h" + #include "content/child/child_process_sandbox_support_impl_linux.h" + #include "content/child/child_thread_impl.h" +@@ -26,7 +26,7 @@ + + namespace content { + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + + class UtilityBlinkPlatformWithSandboxSupportImpl::SandboxSupport + : public blink::WebSandboxSupport { +@@ -59,12 +59,12 @@ + sk_sp font_loader_; + }; + +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + UtilityBlinkPlatformWithSandboxSupportImpl:: + UtilityBlinkPlatformWithSandboxSupportImpl( + service_manager::Connector* connector) { +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + font_loader_ = sk_make_sp(connector); + SkFontConfigInterface::SetGlobal(font_loader_); + sandbox_support_ = std::make_unique(font_loader_); +@@ -78,14 +78,14 @@ + + blink::WebSandboxSupport* + UtilityBlinkPlatformWithSandboxSupportImpl::GetSandboxSupport() { +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + return sandbox_support_.get(); + #else + return nullptr; + #endif + } + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + + void UtilityBlinkPlatformWithSandboxSupportImpl::SandboxSupport:: + GetFallbackFontForCharacter(blink::WebUChar32 character, Property changes on: head/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.h =================================================================== --- head/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.h (nonexistent) +++ head/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.h (revision 493750) @@ -0,0 +1,24 @@ +--- content/utility/utility_blink_platform_with_sandbox_support_impl.h.orig 2019-02-06 23:17:20.242437000 +0100 ++++ content/utility/utility_blink_platform_with_sandbox_support_impl.h 2019-02-06 23:17:37.808893000 +0100 +@@ -11,7 +11,7 @@ + #include "build/build_config.h" + #include "third_party/blink/public/platform/platform.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include "components/services/font/public/cpp/font_loader.h" // nogncheck + #include "third_party/skia/include/core/SkRefCnt.h" // nogncheck + #endif +@@ -39,10 +39,10 @@ + blink::WebSandboxSupport* GetSandboxSupport() override; + + private: +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) + std::unique_ptr sandbox_support_; + #endif +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + class SandboxSupport; + sk_sp font_loader_; + #endif Property changes on: head/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-extensions_common_api__permission_features.json =================================================================== --- head/www/chromium/files/patch-extensions_common_api__permission_features.json (revision 493749) +++ head/www/chromium/files/patch-extensions_common_api__permission_features.json (revision 493750) @@ -1,29 +1,29 @@ ---- extensions/common/api/_permission_features.json.orig 2018-01-21 13:35:05.074386000 +0100 -+++ extensions/common/api/_permission_features.json 2018-01-21 13:36:11.759479000 +0100 -@@ -128,7 +128,7 @@ - "bluetoothPrivate": { - "channel": "stable", - "extension_types": ["platform_app"], -- "platforms": ["chromeos", "win", "mac", "linux"], -+ "platforms": ["chromeos", "win", "mac", "linux", "bsd"], - "whitelist": [ - "1C93BD3CF875F4A73C0B2A163BB8FBDA8B8B3D80", // http://crbug.com/387169 - "A3BC37E2148AC4E99BE4B16AF9D42DD1E592BBBE", // http://crbug.com/387169 -@@ -422,7 +422,7 @@ +--- extensions/common/api/_permission_features.json.orig 2019-01-30 02:18:01.000000000 +0100 ++++ extensions/common/api/_permission_features.json 2019-02-06 23:58:00.090523000 +0100 +@@ -135,7 +135,7 @@ + { + "channel": "stable", + "extension_types": ["platform_app"], +- "platforms": ["chromeos", "win", "mac", "linux"], ++ "platforms": ["chromeos", "win", "mac", "linux", "bsd"], + "whitelist": [ + "1C93BD3CF875F4A73C0B2A163BB8FBDA8B8B3D80", // http://crbug.com/387169 + "A3BC37E2148AC4E99BE4B16AF9D42DD1E592BBBE", // http://crbug.com/387169 +@@ -475,7 +475,7 @@ }, { "channel": "stable", "extension_types": ["extension", "legacy_packaged_app", "platform_app"], - "platforms": ["chromeos", "mac", "win", "linux"], + "platforms": ["chromeos", "mac", "win", "linux", "bsd"], "whitelist": [ "0DE0F05680A4A056BCEC864ED8DDA84296F82B40", // http://crbug.com/434651 "1C93BD3CF875F4A73C0B2A163BB8FBDA8B8B3D80", // http://crbug.com/293683 -@@ -452,7 +452,7 @@ +@@ -506,7 +506,7 @@ "networkingPrivate": { "channel": "stable", "extension_types": ["extension", "legacy_packaged_app", "platform_app"], - "platforms": ["chromeos", "mac", "win", "linux"], + "platforms": ["chromeos", "mac", "win", "linux", "bsd"], "whitelist": [ // DO NOT ADD ANY MORE ENTRIES HERE. // networkingPrivate is being migrated to networking.onc. Index: head/www/chromium/files/patch-extensions_common_image__util.cc =================================================================== --- head/www/chromium/files/patch-extensions_common_image__util.cc (revision 493749) +++ head/www/chromium/files/patch-extensions_common_image__util.cc (revision 493750) @@ -1,14 +1,14 @@ ---- extensions/common/image_util.cc.orig 2018-12-03 21:16:58.000000000 +0100 -+++ extensions/common/image_util.cc 2018-12-13 23:08:46.488425000 +0100 -@@ -13,7 +13,11 @@ - #include "base/strings/string_number_conversions.h" - #include "base/strings/string_util.h" +--- extensions/common/image_util.cc.orig 2019-01-30 02:18:01.000000000 +0100 ++++ extensions/common/image_util.cc 2019-02-01 09:15:02.563494000 +0100 +@@ -18,7 +18,11 @@ #include "base/strings/stringprintf.h" + #include "base/time/time.h" + #include "base/timer/elapsed_timer.h" +#if defined(OS_BSD) +#include +#else #include "third_party/re2/src/re2/re2.h" -+#endif ++#endif // defined(OS_BSD) #include "third_party/skia/include/core/SkBitmap.h" + #include "third_party/skia/include/core/SkCanvas.h" #include "third_party/skia/include/core/SkColor.h" - #include "third_party/skia/include/utils/SkParse.h" Index: head/www/chromium/files/patch-gpu_command_buffer_common_gpu_memory_buffer_support.cc =================================================================== --- head/www/chromium/files/patch-gpu_command_buffer_common_gpu_memory_buffer_support.cc (nonexistent) +++ head/www/chromium/files/patch-gpu_command_buffer_common_gpu_memory_buffer_support.cc (revision 493750) @@ -0,0 +1,11 @@ +--- gpu/command_buffer/common/gpu_memory_buffer_support.cc.orig 2019-01-30 02:18:02.000000000 +0100 ++++ gpu/command_buffer/common/gpu_memory_buffer_support.cc 2019-02-01 09:18:35.535261000 +0100 +@@ -89,7 +89,7 @@ + uint32_t GetPlatformSpecificTextureTarget() { + #if defined(OS_MACOSX) + return GL_TEXTURE_RECTANGLE_ARB; +-#elif defined(OS_ANDROID) || defined(OS_LINUX) ++#elif defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) + return GL_TEXTURE_EXTERNAL_OES; + #elif defined(OS_WIN) + return GL_TEXTURE_2D; Property changes on: head/www/chromium/files/patch-gpu_command_buffer_common_gpu_memory_buffer_support.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-gpu_config_gpu__control__list.cc =================================================================== --- head/www/chromium/files/patch-gpu_config_gpu__control__list.cc (revision 493749) +++ head/www/chromium/files/patch-gpu_config_gpu__control__list.cc (revision 493750) @@ -1,32 +1,32 @@ ---- gpu/config/gpu_control_list.cc.orig 2017-12-15 02:04:19.000000000 +0100 -+++ gpu/config/gpu_control_list.cc 2017-12-24 16:25:45.151636000 +0100 +--- gpu/config/gpu_control_list.cc.orig 2019-01-30 02:18:02.000000000 +0100 ++++ gpu/config/gpu_control_list.cc 2019-02-01 09:25:50.964382000 +0100 @@ -16,7 +16,11 @@ #include "base/values.h" #include "build/build_config.h" - #include "gpu/config/gpu_info.h" + #include "gpu/config/gpu_util.h" +#if defined(OS_BSD) +#include +#else #include "third_party/re2/src/re2/re2.h" -+#endif ++#endif // defined(OS_BSD) namespace gpu { namespace { -@@ -211,7 +215,7 @@ +@@ -213,7 +217,7 @@ GpuControlList::GLType GpuControlList::More::GetDefaultGLType() { #if defined(OS_CHROMEOS) return kGLTypeGL; -#elif defined(OS_LINUX) || defined(OS_OPENBSD) +#elif defined(OS_LINUX) || defined(OS_BSD) return kGLTypeGL; #elif defined(OS_MACOSX) return kGLTypeGL; -@@ -644,7 +648,7 @@ +@@ -683,7 +687,7 @@ return kOsAndroid; #elif defined(OS_FUCHSIA) return kOsFuchsia; -#elif defined(OS_LINUX) || defined(OS_OPENBSD) +#elif defined(OS_LINUX) || defined(OS_BSD) return kOsLinux; #elif defined(OS_MACOSX) return kOsMacosx; Index: head/www/chromium/files/patch-gpu_ipc_common_gpu_memory_buffer_support.cc =================================================================== --- head/www/chromium/files/patch-gpu_ipc_common_gpu_memory_buffer_support.cc (revision 493749) +++ head/www/chromium/files/patch-gpu_ipc_common_gpu_memory_buffer_support.cc (revision 493750) @@ -1,54 +1,47 @@ ---- gpu/ipc/common/gpu_memory_buffer_support.cc.orig 2018-06-13 00:10:19.000000000 +0200 -+++ gpu/ipc/common/gpu_memory_buffer_support.cc 2018-07-19 13:54:11.502121000 +0200 +--- gpu/ipc/common/gpu_memory_buffer_support.cc.orig 2019-01-30 02:18:02.000000000 +0100 ++++ gpu/ipc/common/gpu_memory_buffer_support.cc 2019-02-01 09:37:09.520829000 +0100 @@ -12,7 +12,7 @@ #include "gpu/ipc/common/gpu_memory_buffer_impl_io_surface.h" #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "gpu/ipc/common/gpu_memory_buffer_impl_native_pixmap.h" #include "ui/gfx/client_native_pixmap_factory.h" #include "ui/gfx/linux/client_native_pixmap_factory_dmabuf.h" -@@ -36,13 +36,13 @@ +@@ -37,7 +37,7 @@ GpuMemoryBufferSupport::GpuMemoryBufferSupport() { #if defined(USE_OZONE) client_native_pixmap_factory_ = ui::CreateClientNativePixmapFactoryOzone(); -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) client_native_pixmap_factory_.reset( gfx::CreateClientNativePixmapFactoryDmabuf()); #endif - } - --#if defined(OS_LINUX) || defined(USE_OZONE) -+#if defined(OS_LINUX) || defined(USE_OZONE) || defined(OS_BSD) - GpuMemoryBufferSupport::GpuMemoryBufferSupport( - std::unique_ptr - client_native_pixmap_factory) -@@ -57,7 +57,7 @@ +@@ -51,7 +51,7 @@ return gfx::IO_SURFACE_BUFFER; #elif defined(OS_ANDROID) return gfx::ANDROID_HARDWARE_BUFFER; -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) return gfx::NATIVE_PIXMAP; #elif defined(OS_WIN) return gfx::DXGI_SHARED_HANDLE; -@@ -112,7 +112,7 @@ - return false; +@@ -109,7 +109,7 @@ #elif defined(USE_OZONE) - return client_native_pixmap_factory_->IsConfigurationSupported(format, usage); + return ui::OzonePlatform::EnsureInstance()->IsNativePixmapConfigSupported( + format, usage); -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) return false; // TODO(julian.isorce): Add linux support. #elif defined(OS_WIN) switch (usage) { -@@ -168,7 +168,7 @@ +@@ -166,7 +166,7 @@ return GpuMemoryBufferImplIOSurface::CreateFromHandle( - handle, size, format, usage, callback); + std::move(handle), size, format, usage, callback); #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) case gfx::NATIVE_PIXMAP: return GpuMemoryBufferImplNativePixmap::CreateFromHandle( - client_native_pixmap_factory(), handle, size, format, usage, + client_native_pixmap_factory(), std::move(handle), size, format, Index: head/www/chromium/files/patch-gpu_ipc_common_gpu_memory_buffer_support.h =================================================================== --- head/www/chromium/files/patch-gpu_ipc_common_gpu_memory_buffer_support.h (revision 493749) +++ head/www/chromium/files/patch-gpu_ipc_common_gpu_memory_buffer_support.h (revision 493750) @@ -1,38 +1,29 @@ ---- gpu/ipc/common/gpu_memory_buffer_support.h.orig 2018-07-19 13:55:08.335420000 +0200 -+++ gpu/ipc/common/gpu_memory_buffer_support.h 2018-07-19 13:56:28.243213000 +0200 -@@ -17,7 +17,7 @@ +--- gpu/ipc/common/gpu_memory_buffer_support.h.orig 2019-01-30 02:18:02.000000000 +0100 ++++ gpu/ipc/common/gpu_memory_buffer_support.h 2019-02-01 09:40:47.746184000 +0100 +@@ -16,7 +16,7 @@ #include "ui/gfx/geometry/size.h" #include "ui/gfx/gpu_memory_buffer.h" -#if defined(OS_LINUX) || defined(USE_OZONE) +#if defined(OS_LINUX) || defined(OS_BSD) || defined(USE_OZONE) namespace gfx { class ClientNativePixmapFactory; } -@@ -29,7 +29,7 @@ - class GPU_EXPORT GpuMemoryBufferSupport { - public: - GpuMemoryBufferSupport(); --#if defined(OS_LINUX) || defined(USE_OZONE) -+#if defined(OS_LINUX) || defined(OS_BSD) || defined(USE_OZONE) - GpuMemoryBufferSupport(std::unique_ptr - client_native_pixmap_factory); - #endif -@@ -43,7 +43,7 @@ +@@ -38,7 +38,7 @@ bool IsNativeGpuMemoryBufferConfigurationSupported(gfx::BufferFormat format, gfx::BufferUsage usage); -#if defined(OS_LINUX) || defined(USE_OZONE) +#if defined(OS_LINUX) || defined(OS_BSD) || defined(USE_OZONE) gfx::ClientNativePixmapFactory* client_native_pixmap_factory() { return client_native_pixmap_factory_.get(); } -@@ -66,7 +66,7 @@ +@@ -61,7 +61,7 @@ const GpuMemoryBufferImpl::DestructionCallback& callback); private: -#if defined(OS_LINUX) || defined(USE_OZONE) +#if defined(OS_LINUX) || defined(OS_BSD) || defined(USE_OZONE) std::unique_ptr client_native_pixmap_factory_; #endif Index: head/www/chromium/files/patch-gpu_ipc_service_gpu_watchdog_thread.cc =================================================================== --- head/www/chromium/files/patch-gpu_ipc_service_gpu_watchdog_thread.cc (nonexistent) +++ head/www/chromium/files/patch-gpu_ipc_service_gpu_watchdog_thread.cc (revision 493750) @@ -0,0 +1,73 @@ +--- gpu/ipc/service/gpu_watchdog_thread.cc.orig 2019-01-12 22:38:32.375483000 +0100 ++++ gpu/ipc/service/gpu_watchdog_thread.cc 2019-01-12 22:42:03.901161000 +0100 +@@ -46,8 +46,10 @@ + #endif + + #if defined(USE_X11) ++#if !defined(OS_BSD) + const base::FilePath::CharType kTtyFilePath[] = + FILE_PATH_LITERAL("/sys/class/tty/tty0/active"); ++#endif + const unsigned char text[20] = "check"; + #endif + +@@ -70,8 +72,10 @@ + display_(nullptr), + window_(0), + atom_(x11::None), ++#if !defined(OS_BSD) + host_tty_(-1), + #endif ++#endif + weak_factory_(this) { + base::subtle::NoBarrier_Store(&awaiting_acknowledge_, false); + +@@ -86,7 +90,9 @@ + #endif + + #if defined(USE_X11) ++#if !defined(OS_BSD) + tty_file_ = base::OpenFile(base::FilePath(kTtyFilePath), "r"); ++#endif + SetupXServer(); + #endif + watched_message_loop_->AddTaskObserver(&task_observer_); +@@ -231,8 +237,10 @@ + power_monitor->RemoveObserver(this); + + #if defined(USE_X11) ++#if !defined(OS_BSD) + if (tty_file_) + fclose(tty_file_); ++#endif + if (display_) { + DCHECK(window_); + XDestroyWindow(display_, window_); +@@ -453,7 +461,7 @@ + return; + #endif + +-#if defined(USE_X11) ++#if defined(USE_X11) && !defined(OS_BSD) + // Don't crash if we're not on the TTY of our host X11 server. + int active_tty = GetActiveTTY(); + if (host_tty_ != -1 && active_tty != -1 && host_tty_ != active_tty) { +@@ -516,7 +524,9 @@ + CopyFromParent, InputOutput, CopyFromParent, 0, nullptr); + atom_ = XInternAtom(display_, "CHECK", x11::False); + } ++#if !defined(OS_BSD) + host_tty_ = GetActiveTTY(); ++#endif + } + + void GpuWatchdogThread::SetupXChangeProp() { +@@ -617,7 +627,7 @@ + } + #endif + +-#if defined(USE_X11) ++#if defined(USE_X11) && !defined(OS_BSD) + int GpuWatchdogThread::GetActiveTTY() const { + char tty_string[8] = {0}; + if (tty_file_ && !fseek(tty_file_, 0, SEEK_SET) && Property changes on: head/www/chromium/files/patch-gpu_ipc_service_gpu_watchdog_thread.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-gpu_ipc_service_gpu_watchdog_thread.h =================================================================== --- head/www/chromium/files/patch-gpu_ipc_service_gpu_watchdog_thread.h (nonexistent) +++ head/www/chromium/files/patch-gpu_ipc_service_gpu_watchdog_thread.h (revision 493750) @@ -0,0 +1,13 @@ +--- gpu/ipc/service/gpu_watchdog_thread.h.orig 2019-01-12 22:38:38.703173000 +0100 ++++ gpu/ipc/service/gpu_watchdog_thread.h 2019-01-12 22:39:05.661205000 +0100 +@@ -190,8 +190,10 @@ + XDisplay* display_; + gfx::AcceleratedWidget window_; + XAtom atom_; ++#if !defined(OS_BSD) + FILE* tty_file_; + int host_tty_; ++#endif + #endif + + base::RepeatingClosure alternative_terminate_for_testing_; Property changes on: head/www/chromium/files/patch-gpu_ipc_service_gpu_watchdog_thread.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-headless_lib_browser_headless__content__browser__client.h =================================================================== --- head/www/chromium/files/patch-headless_lib_browser_headless__content__browser__client.h (revision 493749) +++ head/www/chromium/files/patch-headless_lib_browser_headless__content__browser__client.h (revision 493750) @@ -1,11 +1,11 @@ ---- headless/lib/browser/headless_content_browser_client.h.orig 2018-12-03 21:16:59.000000000 +0100 -+++ headless/lib/browser/headless_content_browser_client.h 2018-12-13 23:21:30.880956000 +0100 -@@ -32,7 +32,7 @@ - content::BrowserContext* context, - content::StoragePartition* partition, +--- headless/lib/browser/headless_content_browser_client.h.orig 2019-01-30 02:18:02.000000000 +0100 ++++ headless/lib/browser/headless_content_browser_client.h 2019-02-01 09:56:18.585343000 +0100 +@@ -34,7 +34,7 @@ ::storage::OptionalQuotaSettingsCallback callback) override; + content::GeneratedCodeCacheSettings GetGeneratedCodeCacheSettings( + content::BrowserContext* context) override; -#if defined(OS_POSIX) && !defined(OS_MACOSX) +#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD) void GetAdditionalMappedFilesForChildProcess( const base::CommandLine& command_line, int child_process_id, Index: head/www/chromium/files/patch-headless_lib_browser_headless__request__context__manager.cc =================================================================== --- head/www/chromium/files/patch-headless_lib_browser_headless__request__context__manager.cc (revision 493749) +++ head/www/chromium/files/patch-headless_lib_browser_headless__request__context__manager.cc (revision 493750) @@ -1,20 +1,20 @@ ---- headless/lib/browser/headless_request_context_manager.cc.orig 2019-01-09 12:40:33.617895000 +0100 -+++ headless/lib/browser/headless_request_context_manager.cc 2019-01-09 12:41:13.269426000 +0100 +--- headless/lib/browser/headless_request_context_manager.cc.orig 2019-01-30 02:18:02.000000000 +0100 ++++ headless/lib/browser/headless_request_context_manager.cc 2019-02-01 10:01:59.179234000 +0100 @@ -35,7 +35,7 @@ namespace { -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) static char kProductName[] = "HeadlessChrome"; #endif -@@ -252,7 +252,7 @@ - command_line->GetSwitchValueASCII(switches::kAuthServerWhitelist); - network_service->ConfigureHttpAuthPrefs(std::move(auth_params)); - +@@ -367,7 +367,7 @@ + return; + if (user_data_path_.empty()) + return; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) - if (manager->user_data_path_.empty()) { - ::network::mojom::CryptConfigPtr config = - ::network::mojom::CryptConfig::New(); ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + ::network::mojom::CryptConfigPtr config = + ::network::mojom::CryptConfig::New(); + config->store = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( Index: head/www/chromium/files/patch-media_audio_audio__manager.cc =================================================================== --- head/www/chromium/files/patch-media_audio_audio__manager.cc (revision 493749) +++ head/www/chromium/files/patch-media_audio_audio__manager.cc (revision 493750) @@ -1,29 +1,29 @@ ---- media/audio/audio_manager.cc.orig 2017-12-15 02:04:21.000000000 +0100 -+++ media/audio/audio_manager.cc 2017-12-24 17:10:24.736979000 +0100 -@@ -94,7 +94,7 @@ +--- media/audio/audio_manager.cc.orig 2019-01-30 02:18:05.000000000 +0100 ++++ media/audio/audio_manager.cc 2019-02-01 10:05:43.833445000 +0100 +@@ -48,7 +48,7 @@ } #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) void set_app_name(const std::string& app_name) { app_name_ = app_name; } const std::string& app_name() const { return app_name_; } #endif -@@ -229,7 +229,7 @@ +@@ -59,7 +59,7 @@ std::unique_ptr com_initializer_for_testing_; #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) std::string app_name_; #endif -@@ -313,7 +313,7 @@ - GetHelper()->StartHangTimer(std::move(task_runner)); +@@ -128,7 +128,7 @@ + return Create(std::move(audio_thread), GetHelper()->fake_log_factory()); } -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // static void AudioManager::SetGlobalAppName(const std::string& app_name) { GetHelper()->set_app_name(app_name); Index: head/www/chromium/files/patch-media_capture_video_shared_memory_handler_provider.cc =================================================================== --- head/www/chromium/files/patch-media_capture_video_shared_memory_handler_provider.cc (nonexistent) +++ head/www/chromium/files/patch-media_capture_video_shared_memory_handler_provider.cc (revision 493750) @@ -0,0 +1,11 @@ +--- media/capture/video/shared_memory_handle_provider.cc.orig 2019-01-12 22:31:08.999805000 +0100 ++++ media/capture/video/shared_memory_handle_provider.cc 2019-01-12 22:31:53.741578000 +0100 +@@ -63,7 +63,7 @@ + return true; + } + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + bool SharedMemoryHandleProvider::InitAsReadOnlyFromRawFileDescriptor( + mojo::ScopedHandle fd_handle, + uint32_t memory_size_in_bytes) { Property changes on: head/www/chromium/files/patch-media_capture_video_shared_memory_handler_provider.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-media_capture_video_shared_memory_handler_provider.h =================================================================== --- head/www/chromium/files/patch-media_capture_video_shared_memory_handler_provider.h (nonexistent) +++ head/www/chromium/files/patch-media_capture_video_shared_memory_handler_provider.h (revision 493750) @@ -0,0 +1,11 @@ +--- media/capture/video/shared_memory_handle_provider.h.orig 2019-01-12 22:31:28.927630000 +0100 ++++ media/capture/video/shared_memory_handle_provider.h 2019-01-12 22:32:13.374251000 +0100 +@@ -38,7 +38,7 @@ + + // This requires platforms where base::SharedMemoryHandle is backed by a + // file descriptor. +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + bool InitAsReadOnlyFromRawFileDescriptor(mojo::ScopedHandle fd_handle, + uint32_t memory_size_in_bytes); + #endif // defined(OS_LINUX) Property changes on: head/www/chromium/files/patch-media_capture_video_shared_memory_handler_provider.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-mojo_public_js_mojo__bindings__resources.grd =================================================================== --- head/www/chromium/files/patch-mojo_public_js_mojo__bindings__resources.grd (nonexistent) +++ head/www/chromium/files/patch-mojo_public_js_mojo__bindings__resources.grd (revision 493750) @@ -0,0 +1,11 @@ +--- mojo/public/js/mojo_bindings_resources.grd.orig 2019-02-06 23:25:43.571727000 +0100 ++++ mojo/public/js/mojo_bindings_resources.grd 2019-02-06 23:25:53.104828000 +0100 +@@ -23,7 +23,7 @@ + use_base_dir="false" + type="BINDATA" + compress="gzip" /> +- ++ + (&mreq.imr_interface.s_addr), + sizeof(mreq.imr_interface.s_addr)); +#else reinterpret_cast(&mreq), sizeof(mreq)); +#endif if (rv) return MapSystemError(errno); break; -@@ -975,7 +983,7 @@ +@@ -1008,7 +1016,7 @@ if (addr_family_ != AF_INET) return ERR_ADDRESS_INVALID; -#if defined(OS_MACOSX) +#if defined(OS_MACOSX) || defined(OS_BSD) ip_mreq mreq = {}; int error = GetIPv4AddressFromIndex(socket_, multicast_interface_, &mreq.imr_interface.s_addr); -@@ -1023,9 +1031,18 @@ +@@ -1056,9 +1064,18 @@ case IPAddress::kIPv4AddressSize: { if (addr_family_ != AF_INET) return ERR_ADDRESS_INVALID; +#if defined(OS_BSD) + ip_mreq mreq = {}; + int error = GetIPv4AddressFromIndex(socket_, multicast_interface_, + &mreq.imr_interface.s_addr); + + if (error != OK) + return error; +#else ip_mreqn mreq = {}; mreq.imr_ifindex = multicast_interface_; mreq.imr_address.s_addr = INADDR_ANY; +#endif memcpy(&mreq.imr_multiaddr, group_address.bytes().data(), IPAddress::kIPv4AddressSize); int rv = setsockopt(socket_, IPPROTO_IP, IP_DROP_MEMBERSHIP, Index: head/www/chromium/files/patch-services_device_hid_hid__connection__freebsd.cc =================================================================== --- head/www/chromium/files/patch-services_device_hid_hid__connection__freebsd.cc (revision 493749) +++ head/www/chromium/files/patch-services_device_hid_hid__connection__freebsd.cc (revision 493750) @@ -1,194 +1,194 @@ ---- services/device/hid/hid_connection_freebsd.cc.orig 2018-12-27 21:14:54.188404000 +0100 -+++ services/device/hid/hid_connection_freebsd.cc 2018-12-29 17:34:19.982594000 +0100 +--- services/device/hid/hid_connection_freebsd.cc.orig 2019-02-01 16:07:39.214979000 +0100 ++++ services/device/hid/hid_connection_freebsd.cc 2019-02-02 01:21:12.648154000 +0100 @@ -0,0 +1,191 @@ +// Copyright (c) 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "services/device/hid/hid_connection_freebsd.h" + +#include +#include + +#include "base/bind.h" +#include "base/files/file_descriptor_watcher_posix.h" +#include "base/location.h" +#include "base/numerics/safe_math.h" +#include "base/posix/eintr_wrapper.h" +#include "base/single_thread_task_runner.h" +#include "base/strings/stringprintf.h" +#include "base/task/post_task.h" +#include "base/threading/thread_restrictions.h" +#include "base/threading/thread_task_runner_handle.h" +#include "components/device_event_log/device_event_log.h" +#include "services/device/hid/hid_service.h" + +namespace device { + +class HidConnectionFreeBSD::BlockingTaskHelper { + public: + BlockingTaskHelper(base::ScopedFD fd, + scoped_refptr device_info, + base::WeakPtr connection) + : fd_(std::move(fd)), + connection_(connection), + origin_task_runner_(base::ThreadTaskRunnerHandle::Get()) { + DETACH_FROM_SEQUENCE(sequence_checker_); + // Report buffers must always have room for the report ID. + report_buffer_size_ = device_info->max_input_report_size() + 1; + has_report_id_ = device_info->has_report_id(); + } + + ~BlockingTaskHelper() { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); } + + // Starts the FileDescriptorWatcher that reads input events from the device. + // Must be called on a thread that has a base::MessageLoopForIO. + void Start() { + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -+ base::AssertBlockingAllowed(); ++ base::internal::AssertBlockingAllowed(); + } + + void Write(scoped_refptr buffer, + WriteCallback callback) { + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); + auto data = buffer->front(); + size_t size = buffer->size(); + // if report id is 0, it shouldn't be included + if (data[0] == 0) { + data++; + size--; + } + + ssize_t result = HANDLE_EINTR(write(fd_.get(), data, size)); + if (result < 0) { + HID_PLOG(EVENT) << "Write failed"; + origin_task_runner_->PostTask(FROM_HERE, base::BindOnce(std::move(callback), false)); + } else { + if (static_cast(result) != size) + HID_LOG(EVENT) << "Incomplete HID write: " << result << " != " << size; + origin_task_runner_->PostTask(FROM_HERE, base::BindOnce(std::move(callback), true)); + } + } + + void GetFeatureReport(uint8_t report_id, + scoped_refptr buffer, + ReadCallback callback) { + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); + struct usb_gen_descriptor ugd; + ugd.ugd_report_type = UHID_FEATURE_REPORT; + ugd.ugd_data = buffer->front(); + ugd.ugd_maxlen = buffer->size(); + int result = HANDLE_EINTR( + ioctl(fd_.get(), USB_GET_REPORT, &ugd)); + if (result < 0) { + HID_PLOG(EVENT) << "Failed to get feature report"; + origin_task_runner_->PostTask(FROM_HERE, + base::BindOnce(std::move(callback), false, nullptr, 0)); + } else if (result == 0) { + HID_LOG(EVENT) << "Get feature result too short."; + origin_task_runner_->PostTask(FROM_HERE, + base::BindOnce(std::move(callback), false, nullptr, 0)); + } else { + origin_task_runner_->PostTask(FROM_HERE, + base::BindOnce(std::move(callback), true, buffer, result)); + } + } + + void SendFeatureReport(scoped_refptr buffer, + WriteCallback callback) { + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); + struct usb_gen_descriptor ugd; + ugd.ugd_report_type = UHID_FEATURE_REPORT; + ugd.ugd_data = buffer->front(); + ugd.ugd_maxlen = buffer->size(); + // FreeBSD does not require report id if it's not used + if (buffer->front()[0] == 0) { + ugd.ugd_data = buffer->front() + 1; + ugd.ugd_maxlen = buffer->size() - 1; + } else { + ugd.ugd_data = buffer->front(); + ugd.ugd_maxlen = buffer->size(); + } + int result = HANDLE_EINTR( + ioctl(fd_.get(), USB_SET_REPORT, &ugd)); + if (result < 0) { + HID_PLOG(EVENT) << "Failed to send feature report"; + origin_task_runner_->PostTask(FROM_HERE, + base::BindOnce(std::move(callback), false)); + } else { + origin_task_runner_->PostTask(FROM_HERE, + base::BindOnce(std::move(callback), true)); + } + } + + private: + SEQUENCE_CHECKER(sequence_checker_); + base::ScopedFD fd_; + size_t report_buffer_size_; + bool has_report_id_; + base::WeakPtr connection_; + const scoped_refptr origin_task_runner_; + + DISALLOW_COPY_AND_ASSIGN(BlockingTaskHelper); +}; + +HidConnectionFreeBSD::HidConnectionFreeBSD( + scoped_refptr device_info, + base::ScopedFD fd, + scoped_refptr blocking_task_runner) + : HidConnection(device_info), + blocking_task_runner_(std::move(blocking_task_runner)), + weak_factory_(this) { + helper_ = std::make_unique(std::move(fd), device_info, + weak_factory_.GetWeakPtr()); + blocking_task_runner_->PostTask( + FROM_HERE, base::BindOnce(&BlockingTaskHelper::Start, + base::Unretained(helper_.get()))); +} + +HidConnectionFreeBSD::~HidConnectionFreeBSD() {} + +void HidConnectionFreeBSD::PlatformClose() { + // By closing the device on the blocking task runner 1) the requirement that + // base::ScopedFD is destroyed on a thread where I/O is allowed is satisfied + // and 2) any tasks posted to this task runner that refer to this file will + // complete before it is closed. + blocking_task_runner_->DeleteSoon(FROM_HERE, helper_.release()); +} + +void HidConnectionFreeBSD::PlatformWrite(scoped_refptr buffer, + WriteCallback callback) { + + blocking_task_runner_->PostTask( + FROM_HERE, + base::BindOnce(&BlockingTaskHelper::Write, base::Unretained(helper_.get()), + buffer, std::move(callback))); +} + +void HidConnectionFreeBSD::PlatformGetFeatureReport(uint8_t report_id, + ReadCallback callback) { + // The first byte of the destination buffer is the report ID being requested + // and is overwritten by the feature report. + DCHECK_GT(device_info()->max_feature_report_size(), 0u); + scoped_refptr buffer( + new base::RefCountedBytes(device_info()->max_feature_report_size() + 1)); + if (report_id != 0) + buffer->data()[0] = report_id; + + blocking_task_runner_->PostTask( + FROM_HERE, + base::BindOnce(&BlockingTaskHelper::GetFeatureReport, + base::Unretained(helper_.get()), report_id, + buffer, std::move(callback))); +} + +void HidConnectionFreeBSD::PlatformSendFeatureReport( + scoped_refptr buffer, + WriteCallback callback) { + blocking_task_runner_->PostTask( + FROM_HERE, + base::BindOnce(&BlockingTaskHelper::SendFeatureReport, + base::Unretained(helper_.get()), buffer, std::move(callback))); +} + +} // namespace device Index: head/www/chromium/files/patch-services_device_hid_hid__service__freebsd.cc =================================================================== --- head/www/chromium/files/patch-services_device_hid_hid__service__freebsd.cc (revision 493749) +++ head/www/chromium/files/patch-services_device_hid_hid__service__freebsd.cc (revision 493750) @@ -1,374 +1,374 @@ ---- services/device/hid/hid_service_freebsd.cc.orig 2018-12-27 21:14:54.193271000 +0100 -+++ services/device/hid/hid_service_freebsd.cc 2018-12-28 15:20:01.597855000 +0100 +--- services/device/hid/hid_service_freebsd.cc.orig 2019-02-01 16:07:39.219688000 +0100 ++++ services/device/hid/hid_service_freebsd.cc 2019-02-02 00:41:58.747111000 +0100 @@ -0,0 +1,371 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "services/device/hid/hid_service_freebsd.h" + +#include +#include +#include +#include + +#include +#include +#include + +#include "base/bind.h" +#include "base/files/file_descriptor_watcher_posix.h" +#include "base/files/file_enumerator.h" +#include "base/location.h" +#include "base/logging.h" +#include "base/posix/eintr_wrapper.h" +#include "base/single_thread_task_runner.h" +#include "base/stl_util.h" +#include "base/strings/pattern.h" +#include "base/strings/stringprintf.h" +#include "base/strings/sys_string_conversions.h" +#include "base/strings/string_util.h" +#include "base/strings/string_split.h" +#include "base/task/post_task.h" +#include "base/threading/thread_restrictions.h" +#include "base/threading/thread_task_runner_handle.h" +#include "components/device_event_log/device_event_log.h" +#include "services/device/hid/hid_connection_freebsd.h" + +const int kMaxPermissionChecks = 5; + +namespace device { + +struct HidServiceFreeBSD::ConnectParams { + ConnectParams(scoped_refptr device_info, + const ConnectCallback& callback) + : device_info(std::move(device_info)), + callback(callback), + task_runner(base::ThreadTaskRunnerHandle::Get()), + blocking_task_runner( + base::CreateSequencedTaskRunnerWithTraits(kBlockingTaskTraits)) {} + ~ConnectParams() {} + + scoped_refptr device_info; + ConnectCallback callback; + scoped_refptr task_runner; + scoped_refptr blocking_task_runner; + base::ScopedFD fd; +}; + +class HidServiceFreeBSD::BlockingTaskHelper { + public: + BlockingTaskHelper(base::WeakPtr service) + : service_(std::move(service)), + task_runner_(base::ThreadTaskRunnerHandle::Get()) { + DETACH_FROM_SEQUENCE(sequence_checker_); + + timer_.reset(new base::RepeatingTimer()); + devd_buffer_ = new net::IOBufferWithSize(1024); + } + + ~BlockingTaskHelper() { + } + + void Start() { -+ base::AssertBlockingAllowed(); ++ base::internal::AssertBlockingAllowed(); + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); + + const base::FilePath kDevRoot("/dev"); + const std::string kUHIDPattern("/dev/uhid*"); + + base::FileEnumerator enumerator(kDevRoot, false, base::FileEnumerator::FILES); + do { + const base::FilePath next_device_path(enumerator.Next()); + const std::string next_device = next_device_path.value(); + if (next_device.empty()) + break; + + if (base::MatchPattern(next_device, kUHIDPattern)) + OnDeviceAdded(next_device.substr(5)); + } while (true); + + SetupDevdMonitor(); + + task_runner_->PostTask( + FROM_HERE, + base::Bind(&HidServiceFreeBSD::FirstEnumerationComplete, service_)); + } + + bool HaveReadWritePermissions(std::string device_id) { + std::string device_node = "/dev/" + device_id; -+ base::AssertBlockingAllowed(); ++ base::internal::AssertBlockingAllowed(); + + base::FilePath device_path(device_node); + base::File device_file; + int flags = + base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE; + device_file.Initialize(device_path, flags); + if (!device_file.IsValid()) + return false; + + return true; + } + + void OnDeviceAdded(std::string device_id) { + std::string device_node = "/dev/" + device_id; + uint16_t vendor_id = 0xffff; + uint16_t product_id = 0xffff; + std::string product_name = ""; + std::string serial_number = ""; + + std::vector report_descriptor; + -+ base::AssertBlockingAllowed(); ++ base::internal::AssertBlockingAllowed(); + + base::FilePath device_path(device_node); + base::File device_file; + int flags = + base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE; + device_file.Initialize(device_path, flags); + if (!device_file.IsValid()) { + HID_LOG(ERROR) << "Failed to open '" << device_node + << "': " + << base::File::ErrorToString(device_file.error_details()); + return; + } + + base::ScopedFD fd; + fd.reset(device_file.TakePlatformFile()); + + struct usb_gen_descriptor ugd; + ugd.ugd_data = NULL; + ugd.ugd_maxlen = 0xffff; + int result = HANDLE_EINTR( + ioctl(fd.get(), USB_GET_REPORT_DESC, &ugd)); + + if (result < 0) { + HID_LOG(ERROR) << "Failed to get report descriptor size"; + return; + } + + report_descriptor.resize(ugd.ugd_actlen); + + ugd.ugd_data = report_descriptor.data(); + ugd.ugd_maxlen = ugd.ugd_actlen; + result = HANDLE_EINTR( + ioctl(fd.get(), USB_GET_REPORT_DESC, &ugd)); + + if (result < 0) { + HID_LOG(ERROR) << "Failed to get report descriptor"; + return; + } + + scoped_refptr device_info(new HidDeviceInfo( + device_id, vendor_id, product_id, product_name, serial_number, + device::mojom::HidBusType::kHIDBusTypeUSB, + report_descriptor, device_node)); + + task_runner_->PostTask(FROM_HERE, base::Bind(&HidServiceFreeBSD::AddDevice, + service_, device_info)); + } + + void OnDeviceRemoved(std::string device_id) { + task_runner_->PostTask( + FROM_HERE, base::Bind(&HidServiceFreeBSD::RemoveDevice, service_, + device_id)); + } + + private: + + void CheckPendingPermissionChange() { -+ base::AssertBlockingAllowed(); ++ base::internal::AssertBlockingAllowed(); + std::map::iterator it; + for (it = permissions_checks_attempts_.begin(); it != permissions_checks_attempts_.end();) { + std::string device_name = it->first; + bool keep = true; + if (HaveReadWritePermissions(device_name)) { + OnDeviceAdded(device_name); + keep = false; + } + else if (it->second-- <= 0) { + HID_LOG(ERROR) << "Still don't have write permissions to '" << device_name + << "' after " << kMaxPermissionChecks << " attempts"; + keep = false; + } + + if (keep) + ++it; + else + permissions_checks_attempts_.erase(it++); + } + + if (permissions_checks_attempts_.empty()) + timer_->Stop(); + } + + void SetupDevdMonitor() { -+ base::AssertBlockingAllowed(); ++ base::internal::AssertBlockingAllowed(); + + int devd_fd = socket(AF_UNIX, SOCK_SEQPACKET, 0); + if (devd_fd < 0) + return; + + struct sockaddr_un sa; + + sa.sun_family = AF_UNIX; + strlcpy(sa.sun_path, "/var/run/devd.seqpacket.pipe", sizeof(sa.sun_path)); + if (connect(devd_fd, (struct sockaddr *) &sa, sizeof(sa)) < 0) { + close(devd_fd); + return; + } + + devd_fd_.reset(devd_fd); + file_watcher_ = base::FileDescriptorWatcher::WatchReadable( + devd_fd_.get(), base::Bind(&BlockingTaskHelper::OnDevdMessageCanBeRead, + base::Unretained(this))); + } + + void OnDevdMessageCanBeRead() { + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); + ssize_t bytes_read = HANDLE_EINTR(recv(devd_fd_.get(), devd_buffer_->data(), + devd_buffer_->size() - 1, MSG_WAITALL)); + if (bytes_read < 0) { + if (errno != EAGAIN) { + HID_LOG(ERROR) << "Read failed"; + file_watcher_.reset(); + } + return; + } + + devd_buffer_->data()[bytes_read] = 0; + char *data = devd_buffer_->data(); + // It may take some time for devd to change permissions + // on /dev/uhidX node. So do not fail immediately if + // open fail. Retry each second for kMaxPermissionChecks + // times before giving up entirely + if (base::StartsWith(data, "+uhid", base::CompareCase::SENSITIVE)) { + std::vector parts = base::SplitString( + data, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); + if (!parts.empty()) { + std::string device_name = parts[0].substr(1); // skip '+' + if (HaveReadWritePermissions(device_name)) + OnDeviceAdded(parts[0].substr(1)); + else { + // Do not re-add to checks + if (permissions_checks_attempts_.find(device_name) == permissions_checks_attempts_.end()) { + permissions_checks_attempts_.insert(std::pair(device_name, kMaxPermissionChecks)); + timer_->Start(FROM_HERE, base::TimeDelta::FromSeconds(1), + this, &BlockingTaskHelper::CheckPendingPermissionChange); + } + } + } + } + + if (base::StartsWith(data, "-uhid", base::CompareCase::SENSITIVE)) { + std::vector parts = base::SplitString( + data, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); + if (!parts.empty()) { + std::string device_name = parts[0].substr(1); // skip '-' + auto it = permissions_checks_attempts_.find(device_name); + if (it != permissions_checks_attempts_.end()) { + permissions_checks_attempts_.erase(it); + if (permissions_checks_attempts_.empty()) + timer_->Stop(); + } + OnDeviceRemoved(parts[0].substr(1)); + } + } + } + + SEQUENCE_CHECKER(sequence_checker_); + + // This weak pointer is only valid when checked on this task runner. + base::WeakPtr service_; + scoped_refptr task_runner_; + std::unique_ptr file_watcher_; + std::unique_ptr timer_; + base::ScopedFD devd_fd_; + scoped_refptr devd_buffer_; + std::map permissions_checks_attempts_; + + DISALLOW_COPY_AND_ASSIGN(BlockingTaskHelper); +}; + +HidServiceFreeBSD::HidServiceFreeBSD() + : task_runner_(base::ThreadTaskRunnerHandle::Get()), + blocking_task_runner_( + base::CreateSequencedTaskRunnerWithTraits(kBlockingTaskTraits)), + weak_factory_(this) { + helper_ = std::make_unique(weak_factory_.GetWeakPtr()); + blocking_task_runner_->PostTask( + FROM_HERE, + base::Bind(&BlockingTaskHelper::Start, base::Unretained(helper_.get()))); +} + +HidServiceFreeBSD::~HidServiceFreeBSD() { + blocking_task_runner_->DeleteSoon(FROM_HERE, helper_.release()); +} + +base::WeakPtr HidServiceFreeBSD::GetWeakPtr() { + return weak_factory_.GetWeakPtr(); +} + +// static +void HidServiceFreeBSD::OpenOnBlockingThread( + std::unique_ptr params) { -+ base::AssertBlockingAllowed(); ++ base::internal::AssertBlockingAllowed(); + scoped_refptr task_runner = params->task_runner; + + base::FilePath device_path(params->device_info->device_node()); + base::File device_file; + int flags = + base::File::FLAG_OPEN | base::File::FLAG_READ | base::File::FLAG_WRITE; + device_file.Initialize(device_path, flags); + if (!device_file.IsValid()) { + HID_LOG(EVENT) << "Failed to open '" << params->device_info->device_node() + << "': " + << base::File::ErrorToString(device_file.error_details()); + task_runner->PostTask(FROM_HERE, base::Bind(params->callback, nullptr)); + return; + } + params->fd.reset(device_file.TakePlatformFile()); + FinishOpen(std::move(params)); +} + +void HidServiceFreeBSD::Connect(const std::string& device_guid, + const ConnectCallback& callback) { + DCHECK(thread_checker_.CalledOnValidThread()); + + const auto& map_entry = devices().find(device_guid); + if (map_entry == devices().end()) { + base::ThreadTaskRunnerHandle::Get()->PostTask( + FROM_HERE, base::Bind(callback, nullptr)); + return; + } + + scoped_refptr device_info = map_entry->second; + + auto params = std::make_unique(device_info, callback); + + scoped_refptr blocking_task_runner = + params->blocking_task_runner; + blocking_task_runner->PostTask( + FROM_HERE, base::Bind(&HidServiceFreeBSD::OpenOnBlockingThread, + base::Passed(¶ms))); +} + +// static +void HidServiceFreeBSD::FinishOpen(std::unique_ptr params) { -+ base::AssertBlockingAllowed(); ++ base::internal::AssertBlockingAllowed(); + scoped_refptr task_runner = params->task_runner; + + task_runner->PostTask( + FROM_HERE, + base::Bind(&HidServiceFreeBSD::CreateConnection, base::Passed(¶ms))); +} + +// static +void HidServiceFreeBSD::CreateConnection(std::unique_ptr params) { + DCHECK(params->fd.is_valid()); + params->callback.Run(base::MakeRefCounted( + std::move(params->device_info), std::move(params->fd), + std::move(params->blocking_task_runner))); +} + +} // namespace device Index: head/www/chromium/files/patch-services_network_network__service.h =================================================================== --- head/www/chromium/files/patch-services_network_network__service.h (revision 493749) +++ head/www/chromium/files/patch-services_network_network__service.h (revision 493750) @@ -1,11 +1,11 @@ ---- services/network/network_service.h.orig 2018-12-28 15:42:09.726485000 +0100 -+++ services/network/network_service.h 2018-12-28 15:43:21.875987000 +0100 -@@ -148,7 +148,7 @@ - mojom::NetworkService::GetTotalNetworkUsagesCallback callback) override; - void UpdateSignedTreeHead(const net::ct::SignedTreeHead& sth) override; +--- services/network/network_service.h.orig 2019-01-30 02:18:10.000000000 +0100 ++++ services/network/network_service.h 2019-02-01 10:39:31.949929000 +0100 +@@ -174,7 +174,7 @@ + #endif // !BUILDFLAG(IS_CT_SUPPORTED) void UpdateCRLSet(base::span crl_set) override; + void OnCertDBChanged() override; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) void SetCryptConfig(mojom::CryptConfigPtr crypt_config) override; #endif #if defined(OS_MACOSX) && !defined(OS_IOS) Index: head/www/chromium/files/patch-services_service__manager_zygote_host_zygote_host_impl_linux.h =================================================================== --- head/www/chromium/files/patch-services_service__manager_zygote_host_zygote_host_impl_linux.h (revision 493749) +++ head/www/chromium/files/patch-services_service__manager_zygote_host_zygote_host_impl_linux.h (revision 493750) @@ -1,13 +1,13 @@ ---- services/service_manager/zygote/host/zygote_host_impl_linux.h.orig 2018-08-04 19:08:46.425404000 +0200 -+++ services/service_manager/zygote/host/zygote_host_impl_linux.h 2018-08-04 19:09:48.783775000 +0200 +--- services/service_manager/zygote/host/zygote_host_impl_linux.h.orig 2019-01-30 02:18:10.000000000 +0100 ++++ services/service_manager/zygote/host/zygote_host_impl_linux.h 2019-02-01 10:48:51.105096000 +0100 @@ -44,8 +44,10 @@ base::ScopedFD* control_fd, base::FileHandleMappingVector additional_remapped_fds); +#if !defined(OS_BSD) void AdjustRendererOOMScore(base::ProcessHandle process_handle, int score) override; +#endif + bool HasZygote() { return !zygote_pids_.empty(); } private: - friend struct base::DefaultSingletonTraits; Index: head/www/chromium/files/patch-third__party_angle_src_libANGLE_Display.cpp =================================================================== --- head/www/chromium/files/patch-third__party_angle_src_libANGLE_Display.cpp (revision 493749) +++ head/www/chromium/files/patch-third__party_angle_src_libANGLE_Display.cpp (revision 493750) @@ -1,20 +1,20 @@ ---- third_party/angle/src/libANGLE/Display.cpp.orig 2017-08-02 15:04:04.122103000 +0200 -+++ third_party/angle/src/libANGLE/Display.cpp 2017-08-02 15:04:56.343338000 +0200 -@@ -61,7 +61,7 @@ +--- third_party/angle/src/libANGLE/Display.cpp.orig 2019-01-30 02:20:31.000000000 +0100 ++++ third_party/angle/src/libANGLE/Display.cpp 2019-02-01 11:09:24.980814000 +0100 +@@ -63,7 +63,7 @@ #if defined(ANGLE_ENABLE_VULKAN) - #if defined(ANGLE_PLATFORM_WINDOWS) - #include "libANGLE/renderer/vulkan/win32/DisplayVkWin32.h" --#elif defined(ANGLE_PLATFORM_LINUX) -+#elif defined(ANGLE_PLATFORM_POSIX) - #include "libANGLE/renderer/vulkan/xcb/DisplayVkXcb.h" - #else - #error Unsupported Vulkan platform. -@@ -207,7 +207,7 @@ + # if defined(ANGLE_PLATFORM_WINDOWS) + # include "libANGLE/renderer/vulkan/win32/DisplayVkWin32.h" +-# elif defined(ANGLE_PLATFORM_LINUX) ++# elif defined(ANGLE_PLATFORM_POSIX) + # include "libANGLE/renderer/vulkan/xcb/DisplayVkXcb.h" + # elif defined(ANGLE_PLATFORM_ANDROID) + # include "libANGLE/renderer/vulkan/android/DisplayVkAndroid.h" +@@ -215,7 +215,7 @@ #if defined(ANGLE_ENABLE_VULKAN) - #if defined(ANGLE_PLATFORM_WINDOWS) + # if defined(ANGLE_PLATFORM_WINDOWS) impl = new rx::DisplayVkWin32(state); --#elif defined(ANGLE_PLATFORM_LINUX) -+#elif defined(ANGLE_PLATFORM_POSIX) +-# elif defined(ANGLE_PLATFORM_LINUX) ++# elif defined(ANGLE_PLATFORM_POSIX) impl = new rx::DisplayVkXcb(state); - #else - #error Unsupported Vulkan platform. + # elif defined(ANGLE_PLATFORM_ANDROID) + impl = new rx::DisplayVkAndroid(state); Index: head/www/chromium/files/patch-third__party_blink_renderer_core_paint_paint__layer.cc =================================================================== --- head/www/chromium/files/patch-third__party_blink_renderer_core_paint_paint__layer.cc (nonexistent) +++ head/www/chromium/files/patch-third__party_blink_renderer_core_paint_paint__layer.cc (revision 493750) @@ -0,0 +1,11 @@ +--- third_party/blink/renderer/core/paint/paint_layer.cc.orig 2019-02-06 23:36:21.401100000 +0100 ++++ third_party/blink/renderer/core/paint/paint_layer.cc 2019-02-06 23:38:08.649536000 +0100 +@@ -104,7 +104,7 @@ + static CompositingQueryMode g_compositing_query_mode = + kCompositingQueriesAreOnlyAllowedInCertainDocumentLifecyclePhases; + +-#ifdef OS_LINUX ++#if defined(OS_LINUX) || defined(OS_BSD) + struct SameSizeAsPaintLayer : DisplayItemClient { + // The bit fields may fit into the machine word of DisplayItemClient which + // has only 8-bit data. Property changes on: head/www/chromium/files/patch-third__party_blink_renderer_core_paint_paint__layer.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__unique__name__lookup.cc =================================================================== --- head/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__unique__name__lookup.cc (nonexistent) +++ head/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__unique__name__lookup.cc (revision 493750) @@ -0,0 +1,20 @@ +--- third_party/blink/renderer/platform/fonts/font_unique_name_lookup.cc.orig 2019-02-04 23:35:56.748592000 +0100 ++++ third_party/blink/renderer/platform/fonts/font_unique_name_lookup.cc 2019-02-04 23:36:16.158548000 +0100 +@@ -8,7 +8,7 @@ + + #if defined(OS_ANDROID) + #include "third_party/blink/renderer/platform/fonts/android/font_unique_name_lookup_android.h" +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_BSD) + #include "third_party/blink/renderer/platform/fonts/linux/font_unique_name_lookup_linux.h" + #endif + +@@ -21,7 +21,7 @@ + FontUniqueNameLookup::GetPlatformUniqueNameLookup() { + #if defined(OS_ANDROID) + return std::make_unique(); +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_BSD) + return std::make_unique(); + #else + NOTREACHED(); Property changes on: head/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__unique__name__lookup.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_pdfium_fxjs_fx__date__helpers.cpp =================================================================== --- head/www/chromium/files/patch-third__party_pdfium_fxjs_fx__date__helpers.cpp (nonexistent) +++ head/www/chromium/files/patch-third__party_pdfium_fxjs_fx__date__helpers.cpp (revision 493750) @@ -0,0 +1,22 @@ +--- third_party/pdfium/fxjs/fx_date_helpers.cpp.orig 2019-02-01 12:43:47.112647000 +0100 ++++ third_party/pdfium/fxjs/fx_date_helpers.cpp 2019-02-01 12:49:38.012493000 +0100 +@@ -34,6 +34,11 @@ + return 0; + time_t t = 0; + FXSYS_time(&t); ++#ifdef __FreeBSD__ ++ struct tm lt; ++ localtime_r(&t, <); ++ return (double)(-(lt.tm_gmtoff * 1000)); ++#else + FXSYS_localtime(&t); + #if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ + // In gcc 'timezone' is a global variable declared in time.h. In VC++, that +@@ -42,6 +47,7 @@ + _get_timezone(&timezone); + #endif // _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ + return (double)(-(timezone * 1000)); ++#endif // __FreeBSD__ + } + + int GetDaylightSavingTA(double d) { Property changes on: head/www/chromium/files/patch-third__party_pdfium_fxjs_fx__date__helpers.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_perfetto_src_tracing_core_tracing__service__impl.cc =================================================================== --- head/www/chromium/files/patch-third__party_perfetto_src_tracing_core_tracing__service__impl.cc (revision 493749) +++ head/www/chromium/files/patch-third__party_perfetto_src_tracing_core_tracing__service__impl.cc (revision 493750) @@ -1,12 +1,22 @@ ---- third_party/perfetto/src/tracing/core/tracing_service_impl.cc.orig 2018-12-15 19:14:38.117664000 +0100 -+++ third_party/perfetto/src/tracing/core/tracing_service_impl.cc 2018-12-15 19:15:20.324077000 +0100 -@@ -1231,7 +1231,8 @@ +--- third_party/perfetto/src/tracing/core/tracing_service_impl.cc.orig 2018-12-12 23:03:02.000000000 +0100 ++++ third_party/perfetto/src/tracing/core/tracing_service_impl.cc 2019-01-12 23:04:39.364791000 +0100 +@@ -1180,7 +1180,8 @@ + + void TracingServiceImpl::UpdateMemoryGuardrail() { + #if !PERFETTO_BUILDFLAG(PERFETTO_CHROMIUM_BUILD) && \ +- !PERFETTO_BUILDFLAG(PERFETTO_OS_MACOSX) ++ !PERFETTO_BUILDFLAG(PERFETTO_OS_MACOSX) && \ ++ !PERFETTO_BUILDFLAG(PERFETTO_OS_FREEBSD) + uint64_t total_buffer_bytes = 0; + + // Sum up all the shared memory buffers. +@@ -1231,7 +1232,8 @@ protos::ClockSnapshot* clock_snapshot = packet.mutable_clock_snapshot(); #if !PERFETTO_BUILDFLAG(PERFETTO_OS_MACOSX) && \ - !PERFETTO_BUILDFLAG(PERFETTO_OS_WIN) + !PERFETTO_BUILDFLAG(PERFETTO_OS_WIN) && \ + !PERFETTO_BUILDFLAG(PERFETTO_OS_FREEBSD) struct { clockid_t id; protos::ClockSnapshot::Clock::Type type; Index: head/www/chromium/files/patch-third__party_skia_src_ports_SkFontHost_Freetype.cpp =================================================================== --- head/www/chromium/files/patch-third__party_skia_src_ports_SkFontHost_Freetype.cpp (revision 493749) +++ head/www/chromium/files/patch-third__party_skia_src_ports_SkFontHost_Freetype.cpp (revision 493750) @@ -1,77 +1,77 @@ ---- third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig 2018-07-20 01:19:49.019547000 +0200 -+++ third_party/skia/src/ports/SkFontHost_FreeType.cpp 2018-07-20 01:24:40.435966000 +0200 -@@ -99,8 +99,6 @@ - FreeTypeLibrary() +--- third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig 2019-01-30 02:20:41.000000000 +0100 ++++ third_party/skia/src/ports/SkFontHost_FreeType.cpp 2019-02-01 13:08:18.165178000 +0100 +@@ -121,8 +121,6 @@ : fGetVarDesignCoordinates(nullptr) + , fGetVarAxisFlags(nullptr) , fLibrary(nullptr) - , fIsLCDSupported(false) - , fLCDExtra(0) { if (FT_New_Library(&gFTMemory, &fLibrary)) { return; -@@ -147,12 +145,7 @@ +@@ -182,12 +180,7 @@ } #endif - // Setup LCD filtering. This reduces color fringes for LCD smoothed glyphs. - // The default has changed over time, so this doesn't mean the same thing to all users. - if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) { - fIsLCDSupported = true; - fLCDExtra = 2; //Using a filter adds one full pixel to each side. - } + FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT); } ~FreeTypeLibrary() { if (fLibrary) { -@@ -161,8 +154,6 @@ +@@ -196,8 +189,6 @@ } FT_Library library() { return fLibrary; } - bool isLCDSupported() { return fIsLCDSupported; } - int lcdExtra() { return fLCDExtra; } // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 2.7.1. // Prior to this there was no way to get the coordinates out of the FT_Face. -@@ -173,8 +164,6 @@ +@@ -214,8 +205,6 @@ private: FT_Library fLibrary; - bool fIsLCDSupported; - int fLCDExtra; // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0. // The following platforms provide FreeType of at least 2.4.0. -@@ -660,17 +649,6 @@ +@@ -713,17 +702,6 @@ rec->fTextSize = SkIntToScalar(1 << 14); } - if (isLCD(*rec)) { - // TODO: re-work so that FreeType is set-up and selected by the SkFontMgr. - SkAutoMutexAcquire ama(gFTMutex); - ref_ft_library(); - if (!gFTLibrary->isLCDSupported()) { - // If the runtime Freetype library doesn't support LCD, disable it here. - rec->fMaskFormat = SkMask::kA8_Format; - } - unref_ft_library(); - } - - SkPaint::Hinting h = rec->getHinting(); - if (SkPaint::kFull_Hinting == h && !isLCD(*rec)) { + SkFontHinting h = rec->getHinting(); + if (kFull_SkFontHinting == h && !isLCD(*rec)) { // collapse full->normal hinting if we're not doing LCD -@@ -1063,11 +1041,11 @@ +@@ -1137,11 +1115,11 @@ void SkScalerContext_FreeType::updateGlyphIfLCD(SkGlyph* glyph) { - if (isLCD(fRec)) { + if (glyph->fMaskFormat == SkMask::kLCD16_Format) { if (fLCDIsVert) { - glyph->fHeight += gFTLibrary->lcdExtra(); - glyph->fTop -= gFTLibrary->lcdExtra() >> 1; + glyph->fHeight += 2; + glyph->fTop -= 1; } else { - glyph->fWidth += gFTLibrary->lcdExtra(); - glyph->fLeft -= gFTLibrary->lcdExtra() >> 1; + glyph->fWidth += 2; + glyph->fLeft -= 1; } } } Index: head/www/chromium/files/patch-third__party_swiftshader_BUILD.gn =================================================================== --- head/www/chromium/files/patch-third__party_swiftshader_BUILD.gn (revision 493749) +++ head/www/chromium/files/patch-third__party_swiftshader_BUILD.gn (revision 493750) @@ -1,10 +1,19 @@ ---- third_party/swiftshader/BUILD.gn.orig 2017-06-26 22:05:22.958335000 +0200 -+++ third_party/swiftshader/BUILD.gn 2017-06-26 22:05:34.834212000 +0200 -@@ -85,7 +85,6 @@ +--- third_party/swiftshader/BUILD.gn.orig 2019-01-30 02:20:34.000000000 +0100 ++++ third_party/swiftshader/BUILD.gn 2019-02-01 13:30:51.566784000 +0100 +@@ -118,16 +118,12 @@ - if (is_linux) { - ldflags = [ -- "-Wl,--hash-style=both", - "-Wl,--gc-sections", - ] - } + if (target_cpu == "mipsel") { + ldflags += [ +- "-Wl,--hash-style=sysv", + "-mips32r2", + ] + } else if (target_cpu == "mips64el") { + ldflags += [ +- "-Wl,--hash-style=sysv", + "-mips64r2", + ] +- } else { +- ldflags += [ "-Wl,--hash-style=both" ] + } + + # A bug in the gold linker prevents using ICF on 32-bit (crbug.com/729532) Index: head/www/chromium/files/patch-third__party_swiftshader_src_Main_SwiftConfig.cpp =================================================================== --- head/www/chromium/files/patch-third__party_swiftshader_src_Main_SwiftConfig.cpp (revision 493749) +++ head/www/chromium/files/patch-third__party_swiftshader_src_Main_SwiftConfig.cpp (revision 493750) @@ -1,14 +1,14 @@ --- third_party/swiftshader/src/Main/SwiftConfig.cpp.orig 2018-07-19 21:23:23.845651000 +0200 +++ third_party/swiftshader/src/Main/SwiftConfig.cpp 2018-07-19 21:24:08.531304000 +0200 @@ -762,7 +762,11 @@ struct stat status; int lastModified = ini.getInteger("LastModified", "Time", 0); +#if !defined(__FreeBSD__) bool noConfig = stat("SwiftShader.ini", &status) != 0; +#else -+ bool noConfig = false; ++ bool noConfig = false; +#endif newConfig = !noConfig && abs((int)status.st_mtime - lastModified) > 1; if(disableServerOverride) Index: head/www/chromium/files/patch-third__party_swiftshader_src_OpenGL_libEGL_Display.cpp =================================================================== --- head/www/chromium/files/patch-third__party_swiftshader_src_OpenGL_libEGL_Display.cpp (nonexistent) +++ head/www/chromium/files/patch-third__party_swiftshader_src_OpenGL_libEGL_Display.cpp (revision 493750) @@ -0,0 +1,20 @@ +--- third_party/swiftshader/src/OpenGL/libEGL/Display.cpp.orig 2019-01-12 22:59:44.902034000 +0100 ++++ third_party/swiftshader/src/OpenGL/libEGL/Display.cpp 2019-01-12 23:00:33.372667000 +0100 +@@ -684,7 +684,7 @@ + return status != 0; + } + return false; +- #elif defined(__linux__) ++ #elif defined(__linux__) || defined(__FreeBSD__) + return false; // Non X11 linux is headless only + #elif defined(__APPLE__) + return sw::OSX::IsValidWindow(window); +@@ -860,7 +860,7 @@ + { + return sw::FORMAT_X8R8G8B8; + } +- #elif defined(__linux__) // Non X11 linux is headless only ++ #elif defined(__linux__) || defined(__FreeBSD__) // Non X11 linux is headless only + return sw::FORMAT_A8B8G8R8; + #elif defined(__APPLE__) + return sw::FORMAT_A8B8G8R8; Property changes on: head/www/chromium/files/patch-third__party_swiftshader_src_OpenGL_libEGL_Display.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_swiftshader_src_OpenGL_libEGL_Surface.cpp =================================================================== --- head/www/chromium/files/patch-third__party_swiftshader_src_OpenGL_libEGL_Surface.cpp (nonexistent) +++ head/www/chromium/files/patch-third__party_swiftshader_src_OpenGL_libEGL_Surface.cpp (revision 493750) @@ -0,0 +1,11 @@ +--- third_party/swiftshader/src/OpenGL/libEGL/Surface.cpp.orig 2019-01-12 22:56:53.902120000 +0100 ++++ third_party/swiftshader/src/OpenGL/libEGL/Surface.cpp 2019-01-12 22:57:13.884671000 +0100 +@@ -352,7 +352,7 @@ + + int windowWidth = windowAttributes.width; + int windowHeight = windowAttributes.height; +- #elif defined(__linux__) ++ #elif defined(__linux__) || defined(__FreeBSD__) + // Non X11 linux is headless only + int windowWidth = 100; + int windowHeight = 100; Property changes on: head/www/chromium/files/patch-third__party_swiftshader_src_OpenGL_libEGL_Surface.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_webrtc_modules_rtp__rtcp_source_forward__error__correction.cc =================================================================== --- head/www/chromium/files/patch-third__party_webrtc_modules_rtp__rtcp_source_forward__error__correction.cc (revision 493749) +++ head/www/chromium/files/patch-third__party_webrtc_modules_rtp__rtcp_source_forward__error__correction.cc (revision 493750) @@ -1,10 +1,10 @@ ---- third_party/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc.orig 2017-04-19 19:07:53 UTC -+++ third_party/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc -@@ -13,6 +13,7 @@ - #include +--- third_party/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc.orig 2019-01-30 02:20:37.000000000 +0100 ++++ third_party/webrtc/modules/rtp_rtcp/source/forward_error_correction.cc 2019-02-01 13:38:23.452214000 +0100 +@@ -12,6 +12,7 @@ + #include #include +#include - #include #include + #include "modules/include/module_common_types_public.h" Index: head/www/chromium/files/patch-third__party_webrtc_rtc_base_ipaddress.cc =================================================================== --- head/www/chromium/files/patch-third__party_webrtc_rtc_base_ipaddress.cc (nonexistent) +++ head/www/chromium/files/patch-third__party_webrtc_rtc_base_ipaddress.cc (revision 493750) @@ -0,0 +1,12 @@ +--- third_party/webrtc/rtc_base/ipaddress.cc.orig 2019-02-01 23:33:19.402949000 +0100 ++++ third_party/webrtc/rtc_base/ipaddress.cc 2019-02-01 23:42:10.940296000 +0100 +@@ -11,6 +11,9 @@ + #if defined(WEBRTC_POSIX) + #include + #include ++#if defined(WEBRTC_BSD) ++#include ++#endif + #ifdef OPENBSD + #include + #endif Property changes on: head/www/chromium/files/patch-third__party_webrtc_rtc_base_ipaddress.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third__party_webrtc_rtc_base_ipaddress.h =================================================================== --- head/www/chromium/files/patch-third__party_webrtc_rtc_base_ipaddress.h (revision 493749) +++ head/www/chromium/files/patch-third__party_webrtc_rtc_base_ipaddress.h (revision 493750) @@ -1,13 +1,13 @@ ---- third_party/webrtc/rtc_base/ipaddress.h.orig 2017-09-07 00:55:47.412632000 +0200 -+++ third_party/webrtc/rtc_base/ipaddress.h 2017-09-07 00:59:49.903165000 +0200 +--- third_party/webrtc/rtc_base/ipaddress.h.orig 2019-01-30 02:20:38.000000000 +0100 ++++ third_party/webrtc/rtc_base/ipaddress.h 2019-02-01 23:40:04.663435000 +0100 @@ -17,6 +17,10 @@ - #include - #include + #include + #include #endif +#if defined(WEBRTC_BSD) +#include +#include +#endif #if defined(WEBRTC_WIN) #include #include Index: head/www/chromium/files/patch-third__party_webrtc_rtc_base_stringutils.h =================================================================== --- head/www/chromium/files/patch-third__party_webrtc_rtc_base_stringutils.h (revision 493749) +++ head/www/chromium/files/patch-third__party_webrtc_rtc_base_stringutils.h (revision 493750) @@ -1,17 +1,17 @@ ---- third_party/webrtc/rtc_base/stringutils.h.orig 2017-09-07 00:56:34.723687000 +0200 -+++ third_party/webrtc/rtc_base/stringutils.h 2017-09-07 01:34:35.259034000 +0200 -@@ -23,11 +23,11 @@ +--- third_party/webrtc/rtc_base/stringutils.h.orig 2019-01-30 02:20:38.000000000 +0100 ++++ third_party/webrtc/rtc_base/stringutils.h 2019-02-01 16:59:24.656841000 +0100 +@@ -25,11 +25,11 @@ #endif // WEBRTC_WIN #if defined(WEBRTC_POSIX) -#ifdef BSD +#if defined(WEBRTC_BSD) || defined(BSD) #include -#else // BSD +#else // WEBRTC_BSD #include -#endif // !BSD +#endif // !WEBRTC_BSD + #include #endif // WEBRTC_POSIX - #include Index: head/www/chromium/files/patch-third__party_webrtc_webrtc.gni =================================================================== --- head/www/chromium/files/patch-third__party_webrtc_webrtc.gni (revision 493749) +++ head/www/chromium/files/patch-third__party_webrtc_webrtc.gni (revision 493750) @@ -1,11 +1,11 @@ ---- third_party/webrtc/webrtc.gni.orig 2018-03-20 23:06:54.000000000 +0100 -+++ third_party/webrtc/webrtc.gni 2018-03-24 18:56:59.262948000 +0100 -@@ -206,7 +206,7 @@ - rtc_opus_dir = "//third_party/opus" +--- third_party/webrtc/webrtc.gni.orig 2019-01-30 02:20:39.000000000 +0100 ++++ third_party/webrtc/webrtc.gni 2019-02-01 14:19:52.625516000 +0100 +@@ -234,7 +234,7 @@ # Desktop capturer is supported only on Windows, OSX and Linux. --rtc_desktop_capture_supported = is_win || is_mac || (is_linux && rtc_use_x11) -+rtc_desktop_capture_supported = is_win || is_mac || ((is_linux && rtc_use_x11) && !is_bsd) + rtc_desktop_capture_supported = +- is_win || is_mac || (is_linux && (rtc_use_x11 || rtc_use_pipewire)) ++ is_win || is_mac || (is_linux && (rtc_use_x11 || rtc_use_pipewire) && !is_bsd) ############################################################################### # Templates Index: head/www/chromium/files/patch-third__party_zlib_arm__features.c =================================================================== --- head/www/chromium/files/patch-third__party_zlib_arm__features.c (revision 493749) +++ head/www/chromium/files/patch-third__party_zlib_arm__features.c (revision 493750) @@ -1,29 +1,28 @@ ---- third_party/zlib/arm_features.c.orig 2018-09-11 22:58:25 UTC -+++ third_party/zlib/arm_features.c -@@ -16,12 +16,13 @@ +--- third_party/zlib/arm_features.c.orig 2019-01-30 02:18:52.000000000 +0100 ++++ third_party/zlib/arm_features.c 2019-02-01 14:35:44.086582000 +0100 +@@ -21,9 +21,10 @@ #include #include #else -#error ### No ARM CPU features detection in your platform/OS +/* #error ### No ARM CPU features detection in your platform/OS */ #endif - int ZLIB_INTERNAL arm_cpu_enable_crc32 = 0; - int ZLIB_INTERNAL arm_cpu_enable_pmull = 0; - +#ifdef ARMV8_OS_LINUX static pthread_once_t cpu_check_inited_once = PTHREAD_ONCE_INIT; static void init_arm_features(void) -@@ -53,8 +54,11 @@ static void init_arm_features(void) +@@ -55,10 +56,13 @@ if (capabilities & flag_pmull) arm_cpu_enable_pmull = 1; } +#endif void ZLIB_INTERNAL arm_check_features(void) { +#ifdef ARMV8_OS_LINUX pthread_once(&cpu_check_inited_once, init_arm_features); +#endif } + #else + #include Index: head/www/chromium/files/patch-third_party_blink_renderer_platform_fonts_font_cache.cc =================================================================== --- head/www/chromium/files/patch-third_party_blink_renderer_platform_fonts_font_cache.cc (revision 493749) +++ head/www/chromium/files/patch-third_party_blink_renderer_platform_fonts_font_cache.cc (revision 493750) @@ -1,20 +1,20 @@ ---- third_party/blink/renderer/platform/fonts/font_cache.cc.orig 2018-12-12 22:56:23.000000000 +0100 -+++ third_party/blink/renderer/platform/fonts/font_cache.cc 2018-12-29 13:18:26.479678000 +0100 +--- third_party/blink/renderer/platform/fonts/font_cache.cc.orig 2019-01-30 02:18:16.000000000 +0100 ++++ third_party/blink/renderer/platform/fonts/font_cache.cc 2019-02-01 14:43:30.711803000 +0100 @@ -65,7 +65,7 @@ SkFontMgr* FontCache::static_font_manager_ = nullptr; -#if defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) float FontCache::device_scale_factor_ = 1.0; #endif @@ -88,7 +88,7 @@ FontPlatformData* FontCache::SystemFontPlatformData( const FontDescription& font_description) { const AtomicString& family = FontCache::SystemFontFamily(); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - if (family.IsEmpty() || family == FontFamilyNames::system_ui) + if (family.IsEmpty() || family == font_family_names::kSystemUi) return nullptr; #else Index: head/www/chromium/files/patch-third_party_blink_renderer_platform_fonts_font_cache.h =================================================================== --- head/www/chromium/files/patch-third_party_blink_renderer_platform_fonts_font_cache.h (revision 493749) +++ head/www/chromium/files/patch-third_party_blink_renderer_platform_fonts_font_cache.h (revision 493750) @@ -1,38 +1,53 @@ ---- third_party/blink/renderer/platform/fonts/font_cache.h.orig 2018-12-12 22:56:23.000000000 +0100 -+++ third_party/blink/renderer/platform/fonts/font_cache.h 2018-12-29 13:18:26.483036000 +0100 +--- third_party/blink/renderer/platform/fonts/font_cache.h.orig 2019-01-30 02:18:16.000000000 +0100 ++++ third_party/blink/renderer/platform/fonts/font_cache.h 2019-02-02 11:22:47.863990000 +0100 @@ -157,7 +157,7 @@ sk_sp FontManager() { return font_manager_; } static void SetFontManager(sk_sp); -#if defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) // These are needed for calling QueryRenderStyleForStrike, since // gfx::GetFontRenderParams makes distinctions based on DSF. static float DeviceScaleFactor() { return device_scale_factor_; } @@ -218,7 +218,7 @@ const FontDescription&); #endif // defined(OS_ANDROID) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) struct PlatformFallbackFont { String name; CString filename; -@@ -291,7 +291,7 @@ +@@ -230,7 +230,7 @@ + static void GetFontForCharacter(UChar32, + const char* preferred_locale, + PlatformFallbackFont*); +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + scoped_refptr FontDataFromFontPlatformData( + const FontPlatformData*, +@@ -291,12 +291,12 @@ const FontFaceCreationParams&, CString& name); -#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_FUCHSIA) +#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD) static AtomicString GetFamilyNameForCharacter(SkFontMgr*, UChar32, const FontDescription&, + FontFallbackPriority); +-#endif // defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_FUCHSIA) ++#endif // defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD) + + scoped_refptr FallbackOnStandardFontStyle(const FontDescription&, + UChar32); @@ -327,7 +327,7 @@ bool is_test_font_mgr_ = false; #endif // defined(OS_WIN) -#if defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) static float device_scale_factor_; #endif Index: head/www/chromium/files/patch-third_party_blink_renderer_platform_fonts_skia_font_cache_skia.cc =================================================================== --- head/www/chromium/files/patch-third_party_blink_renderer_platform_fonts_skia_font_cache_skia.cc (revision 493749) +++ head/www/chromium/files/patch-third_party_blink_renderer_platform_fonts_skia_font_cache_skia.cc (revision 493750) @@ -1,20 +1,38 @@ ---- third_party/blink/renderer/platform/fonts/skia/font_cache_skia.cc.orig 2018-07-19 19:29:54.256436000 +0200 -+++ third_party/blink/renderer/platform/fonts/skia/font_cache_skia.cc 2018-07-19 19:30:19.879244000 +0200 -@@ -60,7 +60,7 @@ +--- third_party/blink/renderer/platform/fonts/skia/font_cache_skia.cc.orig 2019-01-30 02:18:16.000000000 +0100 ++++ third_party/blink/renderer/platform/fonts/skia/font_cache_skia.cc 2019-02-02 11:10:08.595129000 +0100 +@@ -57,7 +57,7 @@ + + namespace blink { + +-#if defined(OS_ANDROID) || defined(OS_LINUX) ++#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) + namespace { + + static sk_sp CreateTypefaceFromUniqueName( +@@ -80,7 +80,7 @@ return AtomicString::FromUTF8(str.c_str(), str.size()); } -#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_FUCHSIA) +#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD) // Android special locale for retrieving the color emoji font // based on the proposed changes in UTR #51 for introducing // an Emoji script code: -@@ -249,7 +249,7 @@ +@@ -269,7 +269,7 @@ } #endif -#if defined(OS_LINUX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) // On linux if the fontManager has been overridden then we should be calling // the embedder provided font Manager rather than calling // SkTypeface::CreateFromName which may redirect the call to the default font +@@ -296,7 +296,7 @@ + CString name; + + sk_sp typeface; +-#if defined(OS_ANDROID) || defined(OS_LINUX) ++#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) + if (alternate_name == AlternateFontName::kLocalUniqueFace && + RuntimeEnabledFeatures::FontSrcLocalMatchingEnabled()) { + typeface = CreateTypefaceFromUniqueName(creation_params, name); Index: head/www/chromium/files/patch-third_party_crashpad_crashpad_client_BUILD.gn =================================================================== --- head/www/chromium/files/patch-third_party_crashpad_crashpad_client_BUILD.gn (nonexistent) +++ head/www/chromium/files/patch-third_party_crashpad_crashpad_client_BUILD.gn (revision 493750) @@ -0,0 +1,15 @@ +--- third_party/crashpad/crashpad/client/BUILD.gn.orig 2019-01-12 23:20:12.535371000 +0100 ++++ third_party/crashpad/crashpad/client/BUILD.gn 2019-01-12 23:21:47.786624000 +0100 +@@ -71,6 +71,12 @@ + sources += [ "crashpad_client_fuchsia.cc" ] + } + ++ if (crashpad_is_posix) { ++ sources += [ ++ "crashpad_client_posix.cc", ++ ] ++ } ++ + if (crashpad_is_linux || crashpad_is_android || crashpad_is_fuchsia) { + sources += [ "crash_report_database_generic.cc" ] + } Property changes on: head/www/chromium/files/patch-third_party_crashpad_crashpad_client_BUILD.gn ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-third_party_crashpad_crashpad_client_crashpad_client_posix.cc =================================================================== --- head/www/chromium/files/patch-third_party_crashpad_crashpad_client_crashpad_client_posix.cc (nonexistent) +++ head/www/chromium/files/patch-third_party_crashpad_crashpad_client_crashpad_client_posix.cc (revision 493750) @@ -0,0 +1,41 @@ +--- third_party/crashpad/crashpad/client/crashpad_client_posix.cc.orig 2019-01-12 23:16:55.468608000 +0100 ++++ third_party/crashpad/crashpad/client/crashpad_client_posix.cc 2019-01-12 23:18:00.395212000 +0100 +@@ -0,0 +1,38 @@ ++// Copyright 2017 The Crashpad Authors. All rights reserved. ++// ++// Licensed under the Apache License, Version 2.0 (the "License"); ++// you may not use this file except in compliance with the License. ++// You may obtain a copy of the License at ++// ++// http://www.apache.org/licenses/LICENSE-2.0 ++// ++// Unless required by applicable law or agreed to in writing, software ++// distributed under the License is distributed on an "AS IS" BASIS, ++// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++// See the License for the specific language governing permissions and ++// limitations under the License. ++ ++#include "client/crashpad_client.h" ++ ++#include "base/logging.h" ++ ++namespace crashpad { ++ ++CrashpadClient::CrashpadClient() {} ++ ++CrashpadClient::~CrashpadClient() {} ++ ++bool CrashpadClient::StartHandler( ++ const base::FilePath& handler, ++ const base::FilePath& database, ++ const base::FilePath& metrics_dir, ++ const std::string& url, ++ const std::map& annotations, ++ const std::vector& arguments, ++ bool restartable, ++ bool asynchronous_start) { ++ NOTREACHED(); // TODO(scottmg): https://crashpad.chromium.org/bug/196 ++ return false; ++} ++ ++} // namespace crashpad Property changes on: head/www/chromium/files/patch-third_party_crashpad_crashpad_client_crashpad_client_posix.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-tools_gn_base_files_file__posix.cc =================================================================== --- head/www/chromium/files/patch-tools_gn_base_files_file__posix.cc (revision 493749) +++ head/www/chromium/files/patch-tools_gn_base_files_file__posix.cc (revision 493750) @@ -1,11 +1,11 @@ ---- tools/gn/base/files/file_posix.cc.orig 2018-12-12 23:06:54.000000000 +0100 -+++ tools/gn/base/files/file_posix.cc 2018-12-15 21:58:11.127692000 +0100 -@@ -86,7 +86,7 @@ - is_symbolic_link = S_ISLNK(stat_info.st_mode); - size = stat_info.st_size; +--- tools/gn/base/files/file_posix.cc.orig 2019-02-06 23:16:22.000000000 +0100 ++++ tools/gn/base/files/file_posix.cc 2019-02-08 18:18:17.423059000 +0100 +@@ -414,7 +414,7 @@ + bool File::Flush() { + DCHECK(IsValid()); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - time_t last_modified_sec = stat_info.st_mtim.tv_sec; - int64_t last_modified_nsec = stat_info.st_mtim.tv_nsec; - time_t last_accessed_sec = stat_info.st_atim.tv_sec; + return !HANDLE_EINTR(fdatasync(file_.get())); + #else + return !HANDLE_EINTR(fsync(file_.get())); Index: head/www/chromium/files/patch-tools_gn_build_gen.py =================================================================== --- head/www/chromium/files/patch-tools_gn_build_gen.py (revision 493749) +++ head/www/chromium/files/patch-tools_gn_build_gen.py (revision 493750) @@ -1,50 +1,33 @@ ---- tools/gn/build/gen.py.orig 2018-12-12 23:06:54.000000000 +0100 -+++ tools/gn/build/gen.py 2018-12-15 23:20:32.529540000 +0100 -@@ -39,10 +39,12 @@ - self._platform = 'aix' - elif self._platform.startswith('fuchsia'): - self._platform = 'fuchsia' -+ elif self._platform.lower().startswith('freebsd'): -+ self._platform = 'bsd' +--- tools/gn/build/gen.py.orig 2019-02-06 23:16:22.000000000 +0100 ++++ tools/gn/build/gen.py 2019-02-08 18:27:37.227094000 +0100 +@@ -44,7 +44,7 @@ @staticmethod def known_platforms(): - return ['linux', 'darwin', 'msvc', 'aix', 'fuchsia'] -+ return ['linux', 'darwin', 'msvc', 'aix', 'fuchsia', 'bsd'] ++ return ['linux', 'darwin', 'msvc', 'aix', 'fuchsia', 'freebsd'] def platform(self): return self._platform -@@ -65,8 +67,11 @@ +@@ -67,6 +67,9 @@ def is_aix(self): return self._platform == 'aix' -+ def is_bsd(self): -+ return self._platform == 'bsd' ++ def is_freebsd(self): ++ return self._platform == 'freebsd' + def is_posix(self): -- return self._platform in ['linux', 'darwin', 'aix'] -+ return self._platform in ['linux', 'darwin', 'aix', 'bsd'] + return self._platform in ['linux', 'freebsd', 'darwin', 'aix'] - - def main(argv): -@@ -168,6 +173,7 @@ - 'darwin': 'build_mac.ninja.template', - 'linux': 'build_linux.ninja.template', - 'aix': 'build_aix.ninja.template', -+ 'bsd': 'build_linux.ninja.template' - }[platform.platform()]) - - with open(template_filename) as f: -@@ -327,7 +333,11 @@ +@@ -332,6 +335,11 @@ elif platform.is_aix(): cflags_cc.append('-maix64') - ldflags.extend(['-maix64', '-pthread']) -- -+ elif platform.is_bsd(): + ldflags.append('-maix64') ++ elif platform.is_freebsd(): + cflags.extend(['-Wno-deprecated-register', '-Wno-parentheses-equality']) + ldflags.extend(['-pthread']) -+ libs.extend(['-lexecinfo', '-lkvm']) ++ libs.extend(['-lexecinfo', '-lkvm', '-lutil']) + include_dirs += ['/usr/local/include'] - if options.use_lto: - cflags.extend(['-flto', '-fwhole-program-vtables']) - ldflags.extend(['-flto', '-fwhole-program-vtables']) + + if platform.is_posix(): + ldflags.append('-pthread') Index: head/www/chromium/files/patch-tools_variations_fieldtrial__to__struct.py =================================================================== --- head/www/chromium/files/patch-tools_variations_fieldtrial__to__struct.py (revision 493749) +++ head/www/chromium/files/patch-tools_variations_fieldtrial__to__struct.py (revision 493750) @@ -1,10 +1,10 @@ ---- tools/variations/fieldtrial_to_struct.py.orig 2018-12-03 21:18:05.000000000 +0100 -+++ tools/variations/fieldtrial_to_struct.py 2018-12-15 20:10:55.090226000 +0100 +--- tools/variations/fieldtrial_to_struct.py.orig 2019-02-06 23:07:02.000000000 +0100 ++++ tools/variations/fieldtrial_to_struct.py 2019-02-08 19:20:20.308979000 +0100 @@ -24,6 +24,7 @@ _platforms = [ 'android', 'android_webview', -+ 'bsd', ++ 'freebsd', 'chromeos', 'fuchsia', 'ios', Index: head/www/chromium/files/patch-ui_gfx_font__render__params.h =================================================================== --- head/www/chromium/files/patch-ui_gfx_font__render__params.h (revision 493749) +++ head/www/chromium/files/patch-ui_gfx_font__render__params.h (revision 493750) @@ -1,18 +1,18 @@ ---- ui/gfx/font_render_params.h.orig 2018-12-03 21:18:06.000000000 +0100 -+++ ui/gfx/font_render_params.h 2018-12-15 20:21:38.472663000 +0100 +--- ui/gfx/font_render_params.h.orig 2019-01-30 02:18:54.000000000 +0100 ++++ ui/gfx/font_render_params.h 2019-02-01 15:04:34.285442000 +0100 @@ -111,13 +111,13 @@ const FontRenderParamsQuery& query, std::string* family_out); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are // changing Fontconfig's configuration. GFX_EXPORT void ClearFontRenderParamsCacheForTest(); #endif --#if defined(OS_LINUX) || defined(OS_ANDROID) -+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) +-#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_FUCHSIA) ++#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_FUCHSIA) || defined(OS_BSD) // Gets the device scale factor to query the FontRenderParams. GFX_EXPORT float GetFontRenderParamsDeviceScaleFactor(); Index: head/www/chromium/files/patch-ui_gfx_mojo_buffer_types_struct_traits.cc =================================================================== --- head/www/chromium/files/patch-ui_gfx_mojo_buffer_types_struct_traits.cc (revision 493749) +++ head/www/chromium/files/patch-ui_gfx_mojo_buffer_types_struct_traits.cc (revision 493750) @@ -1,42 +1,38 @@ ---- ui/gfx/mojo/buffer_types_struct_traits.cc.orig 2017-12-15 02:04:51.000000000 +0100 -+++ ui/gfx/mojo/buffer_types_struct_traits.cc 2017-12-24 20:18:51.935594000 +0100 -@@ -12,10 +12,10 @@ - StructTraits:: - fds(const gfx::NativePixmapHandle& pixmap_handle) { - std::vector handles; +--- ui/gfx/mojo/buffer_types_struct_traits.cc.orig 2019-01-30 02:18:54.000000000 +0100 ++++ ui/gfx/mojo/buffer_types_struct_traits.cc 2019-02-01 15:10:31.292361000 +0100 +@@ -28,7 +28,7 @@ + return data.ReadUsage(&out->usage) && data.ReadFormat(&out->format); + } + -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - for (const base::FileDescriptor& fd : pixmap_handle.fds) - handles.emplace_back(mojo::WrapPlatformFile(fd.fd)); + std::vector + StructTraits:: + fds(const gfx::NativePixmapHandle& pixmap_handle) { +@@ -55,7 +55,7 @@ + } + return data.ReadPlanes(&out->planes); + } -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) - return handles; - } -@@ -23,7 +23,7 @@ - gfx::mojom::NativePixmapHandleDataView, - gfx::NativePixmapHandle>::Read(gfx::mojom::NativePixmapHandleDataView data, - gfx::NativePixmapHandle* out) { + gfx::mojom::GpuMemoryBufferPlatformHandlePtr StructTraits< + gfx::mojom::GpuMemoryBufferHandleDataView, +@@ -68,7 +68,7 @@ + return gfx::mojom::GpuMemoryBufferPlatformHandle::NewSharedMemoryHandle( + std::move(handle.region)); + case gfx::NATIVE_PIXMAP: -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - mojo::ArrayDataView handles_data_view; - data.GetFdsDataView(&handles_data_view); - for (size_t i = 0; i < handles_data_view.size(); ++i) { -@@ -55,7 +55,7 @@ - StructTraits:: - native_pixmap_handle(const gfx::GpuMemoryBufferHandle& handle) { --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_BSD) - return handle.native_pixmap_handle; + return gfx::mojom::GpuMemoryBufferPlatformHandle::NewNativePixmapHandle( + handle.native_pixmap_handle); #else - static gfx::NativePixmapHandle pixmap_handle; -@@ -94,7 +94,7 @@ - out->offset = data.offset(); - out->stride = data.stride(); - } +@@ -144,7 +144,7 @@ + out->type = gfx::SHARED_MEMORY_BUFFER; + out->region = std::move(platform_handle->get_shared_memory_handle()); + return true; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - if (out->type == gfx::NATIVE_PIXMAP && - !data.ReadNativePixmapHandle(&out->native_pixmap_handle)) - return false; + case gfx::mojom::GpuMemoryBufferPlatformHandleDataView::Tag:: + NATIVE_PIXMAP_HANDLE: + out->type = gfx::NATIVE_PIXMAP; Index: head/www/chromium/files/patch-ui_gfx_mojo_buffer_types_struct_traits.h =================================================================== --- head/www/chromium/files/patch-ui_gfx_mojo_buffer_types_struct_traits.h (revision 493749) +++ head/www/chromium/files/patch-ui_gfx_mojo_buffer_types_struct_traits.h (revision 493750) @@ -1,11 +1,20 @@ ---- ui/gfx/mojo/buffer_types_struct_traits.h.orig 2017-08-02 17:14:09.584825000 +0200 -+++ ui/gfx/mojo/buffer_types_struct_traits.h 2017-08-02 17:14:27.990894000 +0200 -@@ -240,7 +240,7 @@ - void* context); +--- ui/gfx/mojo/buffer_types_struct_traits.h.orig 2019-01-30 02:18:54.000000000 +0100 ++++ ui/gfx/mojo/buffer_types_struct_traits.h 2019-02-01 15:19:04.908647000 +0100 +@@ -189,7 +189,7 @@ + } + }; - static bool IsNull(const gfx::NativePixmapHandle& handle) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - return false; - #else - // NativePixmapHandle are not used on non-linux platforms. + template <> + struct StructTraits { +@@ -229,7 +229,7 @@ + static bool Read(gfx::mojom::NativePixmapHandleDataView data, + gfx::NativePixmapHandle* out); + }; +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + template <> + struct StructTraits + #include "src/trap-handler/handler-inside-posix.h" + #endif +@@ -5885,7 +5885,7 @@ + return true; + } + +-#if V8_OS_LINUX || V8_OS_MACOSX ++#if V8_OS_LINUX || V8_OS_MACOSX || V8_OS_OPENBSD || V8_OS_FREEBSD + bool TryHandleWebAssemblyTrapPosix(int sig_code, siginfo_t* info, + void* context) { + #if V8_TARGET_ARCH_X64 && !V8_OS_ANDROID Property changes on: head/www/chromium/files/patch-v8_src_api.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-v8_src_trap-handler_handler-inside-posix.cc =================================================================== --- head/www/chromium/files/patch-v8_src_trap-handler_handler-inside-posix.cc (nonexistent) +++ head/www/chromium/files/patch-v8_src_trap-handler_handler-inside-posix.cc (revision 493750) @@ -0,0 +1,20 @@ +--- v8/src/trap-handler/handler-inside-posix.cc.orig 2019-02-02 10:20:15.963337000 +0100 ++++ v8/src/trap-handler/handler-inside-posix.cc 2019-02-02 10:41:12.897011000 +0100 +@@ -27,7 +27,7 @@ + + #include + +-#ifdef V8_OS_LINUX ++#if defined(V8_OS_LINUX) || defined(V8_OS_FREEBSD) + #include + #elif V8_OS_MACOSX + #include +@@ -109,6 +109,8 @@ + auto* context_rip = &uc->uc_mcontext.gregs[REG_RIP]; + #elif V8_OS_MACOSX + auto* context_rip = &uc->uc_mcontext->__ss.__rip; ++#elif V8_OS_FREEBSD ++ auto* context_rip = &uc->uc_mcontext.mc_rip; + #else + #error Unsupported platform + #endif Property changes on: head/www/chromium/files/patch-v8_src_trap-handler_handler-inside-posix.cc ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-v8_src_trap-handler_handler-inside-posix.h =================================================================== --- head/www/chromium/files/patch-v8_src_trap-handler_handler-inside-posix.h (nonexistent) +++ head/www/chromium/files/patch-v8_src_trap-handler_handler-inside-posix.h (revision 493750) @@ -0,0 +1,11 @@ +--- v8/src/trap-handler/handler-inside-posix.h.orig 2019-02-02 10:19:11.070129000 +0100 ++++ v8/src/trap-handler/handler-inside-posix.h 2019-02-02 10:19:28.516985000 +0100 +@@ -12,7 +12,7 @@ + namespace internal { + namespace trap_handler { + +-#if V8_OS_LINUX ++#if defined(V8_OS_LINUX) || defined(V8_OS_FREEBSD) + constexpr int kOobSignal = SIGSEGV; + #elif V8_OS_MACOSX + constexpr int kOobSignal = SIGBUS; Property changes on: head/www/chromium/files/patch-v8_src_trap-handler_handler-inside-posix.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/files/patch-v8_src_trap-handler_trap-handler.h =================================================================== --- head/www/chromium/files/patch-v8_src_trap-handler_trap-handler.h (nonexistent) +++ head/www/chromium/files/patch-v8_src_trap-handler_trap-handler.h (revision 493750) @@ -0,0 +1,11 @@ +--- v8/src/trap-handler/trap-handler.h.orig 2019-02-02 10:48:04.472258000 +0100 ++++ v8/src/trap-handler/trap-handler.h 2019-02-02 10:49:11.178676000 +0100 +@@ -23,6 +23,8 @@ + #define V8_TRAP_HANDLER_SUPPORTED true + #elif V8_TARGET_ARCH_X64 && V8_OS_MACOSX + #define V8_TRAP_HANDLER_SUPPORTED true ++#elif V8_TARGET_ARCH_X64 && V8_OS_FREEBSD ++#define V8_TRAP_HANDLER_SUPPORTED true + #else + #define V8_TRAP_HANDLER_SUPPORTED false + #endif Property changes on: head/www/chromium/files/patch-v8_src_trap-handler_trap-handler.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/chromium/pkg-plist =================================================================== --- head/www/chromium/pkg-plist (revision 493749) +++ head/www/chromium/pkg-plist (revision 493750) @@ -1,334 +1,335 @@ bin/chrome %%DATADIR%%/chrome %%DATADIR%%/chrome-wrapper %%DATADIR%%/chrome_100_percent.pak %%DATADIR%%/chrome_200_percent.pak %%DATADIR%%/headless_lib.pak %%DATADIR%%/icudtl.dat %%DATADIR%%/libEGL.so %%DATADIR%%/libGLESv2.so %%DATADIR%%/locales/am.pak %%DATADIR%%/locales/am.pak.info %%DATADIR%%/locales/ar.pak %%DATADIR%%/locales/ar.pak.info %%DATADIR%%/locales/bg.pak %%DATADIR%%/locales/bg.pak.info %%DATADIR%%/locales/bn.pak %%DATADIR%%/locales/bn.pak.info %%DATADIR%%/locales/ca.pak %%DATADIR%%/locales/ca.pak.info %%DATADIR%%/locales/cs.pak %%DATADIR%%/locales/cs.pak.info %%DATADIR%%/locales/da.pak %%DATADIR%%/locales/da.pak.info %%DATADIR%%/locales/de.pak %%DATADIR%%/locales/de.pak.info %%DATADIR%%/locales/el.pak %%DATADIR%%/locales/el.pak.info %%DATADIR%%/locales/en-GB.pak %%DATADIR%%/locales/en-GB.pak.info %%DATADIR%%/locales/en-US.pak %%DATADIR%%/locales/en-US.pak.info %%DATADIR%%/locales/es-419.pak %%DATADIR%%/locales/es-419.pak.info %%DATADIR%%/locales/es.pak %%DATADIR%%/locales/es.pak.info %%DATADIR%%/locales/et.pak %%DATADIR%%/locales/et.pak.info %%DATADIR%%/locales/fa.pak %%DATADIR%%/locales/fa.pak.info %%DATADIR%%/locales/fi.pak %%DATADIR%%/locales/fi.pak.info %%DATADIR%%/locales/fil.pak %%DATADIR%%/locales/fil.pak.info %%DATADIR%%/locales/fr.pak %%DATADIR%%/locales/fr.pak.info %%DATADIR%%/locales/gu.pak %%DATADIR%%/locales/gu.pak.info %%DATADIR%%/locales/he.pak %%DATADIR%%/locales/he.pak.info %%DATADIR%%/locales/hi.pak %%DATADIR%%/locales/hi.pak.info %%DATADIR%%/locales/hr.pak %%DATADIR%%/locales/hr.pak.info %%DATADIR%%/locales/hu.pak %%DATADIR%%/locales/hu.pak.info %%DATADIR%%/locales/id.pak %%DATADIR%%/locales/id.pak.info %%DATADIR%%/locales/it.pak %%DATADIR%%/locales/it.pak.info %%DATADIR%%/locales/ja.pak %%DATADIR%%/locales/ja.pak.info %%DATADIR%%/locales/kn.pak %%DATADIR%%/locales/kn.pak.info %%DATADIR%%/locales/ko.pak %%DATADIR%%/locales/ko.pak.info %%DATADIR%%/locales/lt.pak %%DATADIR%%/locales/lt.pak.info %%DATADIR%%/locales/lv.pak %%DATADIR%%/locales/lv.pak.info %%DATADIR%%/locales/ml.pak %%DATADIR%%/locales/ml.pak.info %%DATADIR%%/locales/mr.pak %%DATADIR%%/locales/mr.pak.info %%DATADIR%%/locales/ms.pak %%DATADIR%%/locales/ms.pak.info %%DATADIR%%/locales/nb.pak %%DATADIR%%/locales/nb.pak.info %%DATADIR%%/locales/nl.pak %%DATADIR%%/locales/nl.pak.info %%DATADIR%%/locales/pl.pak %%DATADIR%%/locales/pl.pak.info %%DATADIR%%/locales/pt-BR.pak %%DATADIR%%/locales/pt-BR.pak.info %%DATADIR%%/locales/pt-PT.pak %%DATADIR%%/locales/pt-PT.pak.info %%DATADIR%%/locales/ro.pak %%DATADIR%%/locales/ro.pak.info %%DATADIR%%/locales/ru.pak %%DATADIR%%/locales/ru.pak.info %%DATADIR%%/locales/sk.pak %%DATADIR%%/locales/sk.pak.info %%DATADIR%%/locales/sl.pak %%DATADIR%%/locales/sl.pak.info %%DATADIR%%/locales/sr.pak %%DATADIR%%/locales/sr.pak.info %%DATADIR%%/locales/sv.pak %%DATADIR%%/locales/sv.pak.info %%DATADIR%%/locales/sw.pak %%DATADIR%%/locales/sw.pak.info %%DATADIR%%/locales/ta.pak %%DATADIR%%/locales/ta.pak.info %%DATADIR%%/locales/te.pak %%DATADIR%%/locales/te.pak.info %%DATADIR%%/locales/th.pak %%DATADIR%%/locales/th.pak.info %%DATADIR%%/locales/tr.pak %%DATADIR%%/locales/tr.pak.info %%DATADIR%%/locales/uk.pak %%DATADIR%%/locales/uk.pak.info %%DATADIR%%/locales/vi.pak %%DATADIR%%/locales/vi.pak.info %%DATADIR%%/locales/zh-CN.pak %%DATADIR%%/locales/zh-CN.pak.info %%DATADIR%%/locales/zh-TW.pak %%DATADIR%%/locales/zh-TW.pak.info %%DATADIR%%/mksnapshot %%DATADIR%%/natives_blob.bin %%DATADIR%%/product_logo_48.png %%DATADIR%%/protoc %%DATADIR%%/resources.pak %%DATADIR%%/resources/inspector/.htaccess %%DATADIR%%/resources/inspector/Images/accelerometer-back.png %%DATADIR%%/resources/inspector/Images/accelerometer-bottom.png %%DATADIR%%/resources/inspector/Images/accelerometer-front.png %%DATADIR%%/resources/inspector/Images/accelerometer-left.png %%DATADIR%%/resources/inspector/Images/accelerometer-right.png %%DATADIR%%/resources/inspector/Images/accelerometer-top.png %%DATADIR%%/resources/inspector/Images/audits_logo.svg %%DATADIR%%/resources/inspector/Images/breakpoint.png %%DATADIR%%/resources/inspector/Images/breakpointConditional.png %%DATADIR%%/resources/inspector/Images/breakpointConditional_2x.png %%DATADIR%%/resources/inspector/Images/breakpoint_2x.png %%DATADIR%%/resources/inspector/Images/checker.png %%DATADIR%%/resources/inspector/Images/chromeDisabledSelect.png %%DATADIR%%/resources/inspector/Images/chromeDisabledSelect_2x.png %%DATADIR%%/resources/inspector/Images/chromeLeft.png %%DATADIR%%/resources/inspector/Images/chromeMiddle.png %%DATADIR%%/resources/inspector/Images/chromeRight.png %%DATADIR%%/resources/inspector/Images/chromeSelect.png %%DATADIR%%/resources/inspector/Images/chromeSelect_2x.png %%DATADIR%%/resources/inspector/Images/deleteIcon.png %%DATADIR%%/resources/inspector/Images/errorWave.png %%DATADIR%%/resources/inspector/Images/errorWave_2x.png %%DATADIR%%/resources/inspector/Images/ic_info_black_18dp.svg %%DATADIR%%/resources/inspector/Images/ic_warning_black_18dp.svg %%DATADIR%%/resources/inspector/Images/largeIcons.png %%DATADIR%%/resources/inspector/Images/largeIcons_2x.png %%DATADIR%%/resources/inspector/Images/mediumIcons.png %%DATADIR%%/resources/inspector/Images/mediumIcons_2x.png %%DATADIR%%/resources/inspector/Images/navigationControls.png %%DATADIR%%/resources/inspector/Images/navigationControls_2x.png %%DATADIR%%/resources/inspector/Images/nodeIcon.png %%DATADIR%%/resources/inspector/Images/popoverArrows.png %%DATADIR%%/resources/inspector/Images/profileGroupIcon.png %%DATADIR%%/resources/inspector/Images/profileIcon.png %%DATADIR%%/resources/inspector/Images/profileSmallIcon.png %%DATADIR%%/resources/inspector/Images/radioDot.png %%DATADIR%%/resources/inspector/Images/resizeDiagonal.png %%DATADIR%%/resources/inspector/Images/resizeDiagonal_2x.png %%DATADIR%%/resources/inspector/Images/resizeHorizontal.png %%DATADIR%%/resources/inspector/Images/resizeHorizontal_2x.png %%DATADIR%%/resources/inspector/Images/resizeVertical.png %%DATADIR%%/resources/inspector/Images/resizeVertical_2x.png %%DATADIR%%/resources/inspector/Images/resourceCSSIcon.png %%DATADIR%%/resources/inspector/Images/resourceDocumentIcon.png %%DATADIR%%/resources/inspector/Images/resourceDocumentIconSmall.png %%DATADIR%%/resources/inspector/Images/resourceJSIcon.png %%DATADIR%%/resources/inspector/Images/resourcePlainIcon.png %%DATADIR%%/resources/inspector/Images/resourcePlainIconSmall.png %%DATADIR%%/resources/inspector/Images/resourcesTimeGraphIcon.png %%DATADIR%%/resources/inspector/Images/searchNext.png %%DATADIR%%/resources/inspector/Images/searchPrev.png %%DATADIR%%/resources/inspector/Images/securityIcons.png %%DATADIR%%/resources/inspector/Images/securityIcons_2x.png %%DATADIR%%/resources/inspector/Images/smallIcons.png %%DATADIR%%/resources/inspector/Images/smallIcons_2x.png %%DATADIR%%/resources/inspector/Images/speech.png %%DATADIR%%/resources/inspector/Images/toolbarResizerVertical.png %%DATADIR%%/resources/inspector/Images/touchCursor.png %%DATADIR%%/resources/inspector/Images/touchCursor_2x.png %%DATADIR%%/resources/inspector/Images/treeoutlineTriangles.png %%DATADIR%%/resources/inspector/Images/treeoutlineTriangles_2x.png %%DATADIR%%/resources/inspector/Images/whatsnew.png %%DATADIR%%/resources/inspector/InspectorBackendCommands.js %%DATADIR%%/resources/inspector/SupportedCSSProperties.js %%DATADIR%%/resources/inspector/Tests.js %%DATADIR%%/resources/inspector/accessibility/ARIAProperties.js %%DATADIR%%/resources/inspector/accessibility/accessibility_module.js %%DATADIR%%/resources/inspector/accessibility_test_runner/accessibility_test_runner_module.js %%DATADIR%%/resources/inspector/animation/animation_module.js %%DATADIR%%/resources/inspector/application_test_runner/application_test_runner_module.js %%DATADIR%%/resources/inspector/audits2/audits2_module.js %%DATADIR%%/resources/inspector/audits2_test_runner/audits2_test_runner_module.js %%DATADIR%%/resources/inspector/audits2_worker.js %%DATADIR%%/resources/inspector/audits2_worker/audits2_worker_module.js %%DATADIR%%/resources/inspector/bindings_test_runner/bindings_test_runner_module.js -%%DATADIR%%/resources/inspector/browser_console/browser_console_module.js %%DATADIR%%/resources/inspector/browser_debugger/browser_debugger_module.js %%DATADIR%%/resources/inspector/changes/changes_module.js %%DATADIR%%/resources/inspector/cm/cm_module.js %%DATADIR%%/resources/inspector/cm_modes/cm_modes_module.js %%DATADIR%%/resources/inspector/color_picker/color_picker_module.js %%DATADIR%%/resources/inspector/console/console_module.js %%DATADIR%%/resources/inspector/console_test_runner/console_test_runner_module.js %%DATADIR%%/resources/inspector/cookie_table/cookie_table_module.js %%DATADIR%%/resources/inspector/coverage/coverage_module.js %%DATADIR%%/resources/inspector/coverage_test_runner/coverage_test_runner_module.js %%DATADIR%%/resources/inspector/cpu_profiler_test_runner/cpu_profiler_test_runner_module.js %%DATADIR%%/resources/inspector/data_grid/data_grid_module.js %%DATADIR%%/resources/inspector/data_grid_test_runner/data_grid_test_runner_module.js %%DATADIR%%/resources/inspector/device_mode_test_runner/device_mode_test_runner_module.js %%DATADIR%%/resources/inspector/devices/devices_module.js %%DATADIR%%/resources/inspector/devtools_app.html %%DATADIR%%/resources/inspector/devtools_app.js %%DATADIR%%/resources/inspector/devtools_compatibility.js %%DATADIR%%/resources/inspector/devtools_extension_api.js %%DATADIR%%/resources/inspector/diff/diff_module.js %%DATADIR%%/resources/inspector/elements/elements_module.js %%DATADIR%%/resources/inspector/elements_test_runner/elements_test_runner_module.js %%DATADIR%%/resources/inspector/emulated_devices/Nexus5X-landscape.svg %%DATADIR%%/resources/inspector/emulated_devices/Nexus5X-portrait.svg %%DATADIR%%/resources/inspector/emulated_devices/Nexus6P-landscape.svg %%DATADIR%%/resources/inspector/emulated_devices/Nexus6P-portrait.svg %%DATADIR%%/resources/inspector/emulated_devices/emulated_devices_module.js %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-horizontal-default-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-horizontal-default-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-horizontal-keyboard-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-horizontal-keyboard-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-horizontal-navigation-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-horizontal-navigation-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-vertical-default-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-vertical-default-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-vertical-keyboard-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-vertical-keyboard-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-vertical-navigation-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5-vertical-navigation-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-horizontal-default-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-horizontal-default-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-horizontal-keyboard-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-horizontal-keyboard-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-horizontal-navigation-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-horizontal-navigation-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-vertical-default-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-vertical-default-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-vertical-keyboard-2x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-vertical-navigation-1x.png %%DATADIR%%/resources/inspector/emulated_devices/google-nexus-5x-vertical-navigation-2x.png %%DATADIR%%/resources/inspector/emulated_devices/iPad-landscape.svg %%DATADIR%%/resources/inspector/emulated_devices/iPad-portrait.svg %%DATADIR%%/resources/inspector/emulated_devices/iPhone5-landscape.svg %%DATADIR%%/resources/inspector/emulated_devices/iPhone5-portrait.svg %%DATADIR%%/resources/inspector/emulated_devices/iPhone6-landscape.svg %%DATADIR%%/resources/inspector/emulated_devices/iPhone6-portrait.svg %%DATADIR%%/resources/inspector/emulated_devices/iPhone6Plus-landscape.svg %%DATADIR%%/resources/inspector/emulated_devices/iPhone6Plus-portrait.svg %%DATADIR%%/resources/inspector/event_listeners/event_listeners_module.js %%DATADIR%%/resources/inspector/extensions_test_runner/extensions_test_runner_module.js -%%DATADIR%%/resources/inspector/formatter_worker.js %%DATADIR%%/resources/inspector/formatter/formatter_module.js +%%DATADIR%%/resources/inspector/formatter_worker.js %%DATADIR%%/resources/inspector/har_importer/har_importer_module.js %%DATADIR%%/resources/inspector/heap_profiler_test_runner/heap_profiler_test_runner_module.js %%DATADIR%%/resources/inspector/heap_snapshot_model/heap_snapshot_model_module.js %%DATADIR%%/resources/inspector/heap_snapshot_worker.js %%DATADIR%%/resources/inspector/heap_snapshot_worker/heap_snapshot_worker_module.js %%DATADIR%%/resources/inspector/help/help_module.js %%DATADIR%%/resources/inspector/inline_editor/inline_editor_module.js %%DATADIR%%/resources/inspector/inspector.html %%DATADIR%%/resources/inspector/inspector.js %%DATADIR%%/resources/inspector/integration_test_runner.html %%DATADIR%%/resources/inspector/integration_test_runner.js %%DATADIR%%/resources/inspector/javascript_metadata/javascript_metadata_module.js %%DATADIR%%/resources/inspector/js_app.html %%DATADIR%%/resources/inspector/js_app.js %%DATADIR%%/resources/inspector/js_profiler/js_profiler_module.js %%DATADIR%%/resources/inspector/layer_viewer/layer_viewer_module.js %%DATADIR%%/resources/inspector/layers/layers_module.js %%DATADIR%%/resources/inspector/layers_test_runner/layers_test_runner_module.js %%DATADIR%%/resources/inspector/ndb_app.html %%DATADIR%%/resources/inspector/ndb_app.js %%DATADIR%%/resources/inspector/network/network_module.js %%DATADIR%%/resources/inspector/network_test_runner/network_test_runner_module.js %%DATADIR%%/resources/inspector/node_app.html %%DATADIR%%/resources/inspector/node_app.js %%DATADIR%%/resources/inspector/node_debugger/node_debugger_module.js %%DATADIR%%/resources/inspector/object_ui/object_ui_module.js %%DATADIR%%/resources/inspector/perf_ui/perf_ui_module.js %%DATADIR%%/resources/inspector/performance_monitor/performance_monitor_module.js %%DATADIR%%/resources/inspector/performance_test_runner/performance_test_runner_module.js %%DATADIR%%/resources/inspector/product_registry_impl/product_registry_impl_module.js %%DATADIR%%/resources/inspector/profiler/profiler_module.js %%DATADIR%%/resources/inspector/protocol_monitor/protocol_monitor_module.js %%DATADIR%%/resources/inspector/quick_open/quick_open_module.js %%DATADIR%%/resources/inspector/resources/resources_module.js %%DATADIR%%/resources/inspector/sdk_test_runner/sdk_test_runner_module.js %%DATADIR%%/resources/inspector/search/search_module.js %%DATADIR%%/resources/inspector/security/security_module.js %%DATADIR%%/resources/inspector/security_test_runner/security_test_runner_module.js %%DATADIR%%/resources/inspector/settings/settings_module.js %%DATADIR%%/resources/inspector/shell.js %%DATADIR%%/resources/inspector/snippets/snippets_module.js %%DATADIR%%/resources/inspector/source_frame/source_frame_module.js %%DATADIR%%/resources/inspector/sources/sources_module.js %%DATADIR%%/resources/inspector/sources_test_runner/sources_test_runner_module.js %%DATADIR%%/resources/inspector/terminal/terminal_module.js %%DATADIR%%/resources/inspector/text_editor/text_editor_module.js %%DATADIR%%/resources/inspector/timeline/timeline_module.js %%DATADIR%%/resources/inspector/timeline_model/timeline_model_module.js %%DATADIR%%/resources/inspector/toolbox.html %%DATADIR%%/resources/inspector/toolbox.js %%DATADIR%%/resources/inspector/worker_app.html %%DATADIR%%/resources/inspector/worker_app.js %%DATADIR%%/resources/inspector/workspace_diff/workspace_diff_module.js %%DATADIR%%/snapshot_blob.bin %%NOT_AARCH64%%%%DATADIR%%/swiftshader/libEGL.so %%NOT_AARCH64%%%%DATADIR%%/swiftshader/libGLESv2.so %%DATADIR%%/v8_context_snapshot.bin %%DATADIR%%/views_mus_resources.pak %%DEBUG%%%%DATADIR%%/character_data_generator %%DEBUG%%%%DATADIR%%/libVkICD_mock_icd.so %%DEBUG%%%%DATADIR%%/libVkLayer_core_validation.so %%DEBUG%%%%DATADIR%%/libVkLayer_object_tracker.so %%DEBUG%%%%DATADIR%%/libVkLayer_parameter_validation.so %%DEBUG%%%%DATADIR%%/libVkLayer_threading.so %%DEBUG%%%%DATADIR%%/libVkLayer_unique_objects.so +%%DEBUG%%%%DATADIR%%/libmalloc_wrapper.so +%%DEBUG%%%%DATADIR%%/libtest_shared_library.so %%DRIVER%%bin/chromedriver man/man1/chrome.1.gz share/applications/chromium-browser.desktop share/icons/hicolor/128x128/apps/chrome.png share/icons/hicolor/22x22/apps/chrome.png share/icons/hicolor/24x24/apps/chrome.png share/icons/hicolor/256x256/apps/chrome.png share/icons/hicolor/48x48/apps/chrome.png share/icons/hicolor/64x64/apps/chrome.png