Index: branches/2020Q1/www/chromium/Makefile =================================================================== --- branches/2020Q1/www/chromium/Makefile (revision 523259) +++ branches/2020Q1/www/chromium/Makefile (revision 523260) @@ -1,349 +1,347 @@ # Created by: Florent Thoumie # $FreeBSD$ PORTNAME= chromium -PORTVERSION= 78.0.3904.108 -CATEGORIES?= www +PORTVERSION= 79.0.3945.117 +CATEGORIES?= www java 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-basic>0:x11-fonts/noto-basic 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 xorg .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_ARGS+=symbol_level=1 \ GN_BOOTSTRAP_FLAGS+=--debug \ WANTSPACE="lots of free disk space (~ 13GB)" DEBUG_VARS_OFF= BUILDTYPE=Release \ GN_ARGS+=blink_symbol_level=0 \ GN_ARGS+=is_debug=false \ GN_ARGS+=is_official_build=true \ GN_ARGS+=symbol_level=0 \ WANTSPACE="a fair amount of free disk space (~ 6.5GB)" 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 !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 and i386 .if ${ARCH} == amd64 || ${ARCH} == i386 @${MKDIR} ${WRKDIR}/bin ${LN} -sf ${LOCALBASE}/openjdk8/bin/java ${WRKDIR}/bin/java .endif .endif do-test-TEST-on: .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 ${CP} ${WRKSRC}/chrome/app/theme/chromium/product_logo_22_mono.png ${WRKSRC}/chrome/app/theme/chromium/product_logo_22.png .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, EGL, Vk .for f in libEGL.so libGLESv2.so libVkICD_mock_icd.so ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/${f} ${STAGEDIR}${DATADIR} .endfor .if ${BUILDTYPE} == Debug -.for f in libVkLayer_core_validation.so libVkLayer_object_lifetimes.so libVkLayer_stateless_validation.so \ - libVkLayer_thread_safety.so libVkLayer_unique_objects.so - ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/${f} ${STAGEDIR}${DATADIR} -.endfor + ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/libVkLayer_khronos_validation.so ${STAGEDIR}${DATADIR} .endif # SwiftShader .if ${ARCH} != aarch64 @${MKDIR} ${STAGEDIR}${DATADIR}/swiftshader + ${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/libvk_swiftshader.so ${STAGEDIR}${DATADIR} .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: branches/2020Q1/www/chromium/distinfo =================================================================== --- branches/2020Q1/www/chromium/distinfo (revision 523259) +++ branches/2020Q1/www/chromium/distinfo (revision 523260) @@ -1,7 +1,7 @@ -TIMESTAMP = 1574329181 -SHA256 (chromium-78.0.3904.108.tar.xz) = f9c53839f306d2973de27723360024f7904101d426b9e7e9cdb56e8bcc775b0e -SIZE (chromium-78.0.3904.108.tar.xz) = 742906260 -SHA256 (chromium-78.0.3904.108-testdata.tar.xz) = a46480e2a3b3a1b22e1234e5247d41c69c27e3d498ad9a330abefd6d0066351e -SIZE (chromium-78.0.3904.108-testdata.tar.xz) = 252295600 +TIMESTAMP = 1578472567 +SHA256 (chromium-79.0.3945.117.tar.xz) = 4d960e8bd790cc1c8e7f0632790424957c4996a8a91b9d899eb572acec854ef1 +SIZE (chromium-79.0.3945.117.tar.xz) = 778215364 +SHA256 (chromium-79.0.3945.117-testdata.tar.xz) = f53530e59bfd76bf46e123eb281699e340281990a0e10405d48c2e6cefb7d84e +SIZE (chromium-79.0.3945.117-testdata.tar.xz) = 252398316 SHA256 (test_fonts.tar.xz) = cf9cbe3b7f1c4c42d426bddc65ec178d333ad7e205a36fe0a606a3c0c545ece1 SIZE (test_fonts.tar.xz) = 200040 Index: branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_src_Yarn_Thread.cpp =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_src_Yarn_Thread.cpp (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_src_Yarn_Thread.cpp (nonexistent) @@ -1,22 +0,0 @@ ---- third_party/swiftshader/src/Yarn/Thread.cpp.orig 2019-10-30 22:22:11 UTC -+++ third_party/swiftshader/src/Yarn/Thread.cpp -@@ -27,6 +27,10 @@ - # include - # include - # include -+#elif defined(__FreeBSD__) -+# include -+# include -+# include - #else - # include - # include -@@ -88,6 +92,8 @@ void Thread::setName(const char* fmt, ...) - - #if defined(__APPLE__) - pthread_setname_np(name); -+#elif defined(__FreeBSD__) -+ pthread_set_name_np(pthread_self(), name); - #elif !defined(__Fuchsia__) - pthread_setname_np(pthread_self(), name); - #endif Property changes on: branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_src_Yarn_Thread.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: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_ui__features.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_ui__features.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_ui__features.cc (nonexistent) @@ -1,11 +0,0 @@ ---- chrome/browser/ui/ui_features.cc.orig 2019-10-21 19:06:24 UTC -+++ chrome/browser/ui/ui_features.cc -@@ -74,7 +74,7 @@ const base::Feature kWebFooterExperiment{"WebFooterExp - const base::Feature kWebUITabStrip{"WebUITabStrip", - base::FEATURE_DISABLED_BY_DEFAULT}; - --#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - constexpr base::Feature kEnableDbusAndX11StatusIcons{ - "EnableDbusAndX11StatusIcons", base::FEATURE_ENABLED_BY_DEFAULT}; - #endif Property changes on: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_ui__features.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: branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__status__updater.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__status__updater.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__status__updater.cc (nonexistent) @@ -1,20 +0,0 @@ ---- chrome/browser/download/download_status_updater.cc.orig 2019-03-11 22:00:53 UTC -+++ chrome/browser/download/download_status_updater.cc -@@ -13,7 +13,7 @@ - #include "base/memory/ptr_util.h" - #include "build/build_config.h" - --#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) - #include "ui/views/linux_ui/linux_ui.h" - #endif - -@@ -136,7 +136,7 @@ void DownloadStatusUpdater::OnDownloadUpdated(content: - #if defined(OS_ANDROID) || (defined(USE_AURA) && !defined(OS_WIN)) - void DownloadStatusUpdater::UpdateAppIconDownloadProgress( - download::DownloadItem* download) { --#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) - const views::LinuxUI* linux_ui = views::LinuxUI::instance(); - if (linux_ui) { - float progress = 0; Property changes on: branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__status__updater.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: branches/2020Q1/www/chromium/files/patch-chrome_browser_sharing_click__to__call_feature.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_sharing_click__to__call_feature.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_sharing_click__to__call_feature.cc (nonexistent) @@ -1,17 +0,0 @@ ---- chrome/browser/sharing/click_to_call/feature.cc.orig 2019-10-21 19:06:23 UTC -+++ chrome/browser/sharing/click_to_call/feature.cc -@@ -9,12 +9,12 @@ const base::Feature kClickToCallReceiver{"ClickToCallR - base::FEATURE_ENABLED_BY_DEFAULT}; - #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) || \ - defined(OS_CHROMEOS) - const base::Feature kClickToCallContextMenuForSelectedText{ - "ClickToCallContextMenuForSelectedText", base::FEATURE_DISABLED_BY_DEFAULT}; - - const base::Feature kClickToCallUI{"ClickToCallUI", - base::FEATURE_DISABLED_BY_DEFAULT}; --#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || -+#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || - // defined(OS_CHROMEOS) Property changes on: branches/2020Q1/www/chromium/files/patch-chrome_browser_sharing_click__to__call_feature.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: branches/2020Q1/www/chromium/files/patch-media_capture_video_mock__gpu__memory__buffer__manager.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_capture_video_mock__gpu__memory__buffer__manager.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_capture_video_mock__gpu__memory__buffer__manager.cc (nonexistent) @@ -1,11 +0,0 @@ ---- media/capture/video/mock_gpu_memory_buffer_manager.cc.orig 2019-06-04 18:55:25 UTC -+++ media/capture/video/mock_gpu_memory_buffer_manager.cc -@@ -115,7 +115,7 @@ class FakeGpuMemoryBuffer : public gfx::GpuMemoryBuffe - gfx::GpuMemoryBufferHandle handle; - handle.type = gfx::NATIVE_PIXMAP; - handle.id = handle_.id; --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_BSD) - handle.native_pixmap_handle = - gfx::CloneHandleForIPC(handle_.native_pixmap_handle); - #endif Property changes on: branches/2020Q1/www/chromium/files/patch-media_capture_video_mock__gpu__memory__buffer__manager.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: branches/2020Q1/www/chromium/files/patch-chrome_browser_sharing_click__to__call_feature.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_sharing_click__to__call_feature.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_sharing_click__to__call_feature.h (nonexistent) @@ -1,20 +0,0 @@ ---- chrome/browser/sharing/click_to_call/feature.h.orig 2019-10-21 19:06:23 UTC -+++ chrome/browser/sharing/click_to_call/feature.h -@@ -13,7 +13,7 @@ - extern const base::Feature kClickToCallReceiver; - #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) || \ - defined(OS_CHROMEOS) - // Feature to allow click to call gets processed on desktop. - extern const base::Feature kClickToCallUI; -@@ -21,7 +21,7 @@ extern const base::Feature kClickToCallUI; - // Feature to show click to call in context menu when selected text is a phone - // number. - extern const base::Feature kClickToCallContextMenuForSelectedText; --#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || -+#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || - // defined(OS_CHROMEOS) - - #endif // CHROME_BROWSER_SHARING_CLICK_TO_CALL_FEATURE_H_ Property changes on: branches/2020Q1/www/chromium/files/patch-chrome_browser_sharing_click__to__call_feature.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: branches/2020Q1/www/chromium/files/patch-media_audio_pulse_pulse.sigs =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_audio_pulse_pulse.sigs (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_audio_pulse_pulse.sigs (nonexistent) @@ -1,143 +0,0 @@ -gen/media/audio/pulse/pulse_stubs.cc:155:27: error: conflicting types for 'pa_context_get_state' -extern pa_context_state_t pa_context_get_state(pa_context* c) __attribute__((weak)); - ^ -../../../../../../../../../../usr/local/include/pulse/context.h:199:20: note: previous declaration is here -pa_context_state_t pa_context_get_state(const pa_context *c); - ^ -gen/media/audio/pulse/pulse_stubs.cc:156:21: error: conflicting types for 'pa_context_get_state' -pa_context_state_t pa_context_get_state(pa_context* c) { - ^ -../../../../../../../../../../usr/local/include/pulse/context.h:199:20: note: previous declaration is here -pa_context_state_t pa_context_get_state(const pa_context *c); - ^ -gen/media/audio/pulse/pulse_stubs.cc:171:29: error: conflicting types for 'pa_operation_get_state' -extern pa_operation_state_t pa_operation_get_state(pa_operation* o) __attribute__((weak)); - ^ -../../../../../../../../../../usr/local/include/pulse/operation.h:52:22: note: previous declaration is here -pa_operation_state_t pa_operation_get_state(const pa_operation *o); - ^ -gen/media/audio/pulse/pulse_stubs.cc:172:23: error: conflicting types for 'pa_operation_get_state' -pa_operation_state_t pa_operation_get_state(pa_operation* o) { - ^ -../../../../../../../../../../usr/local/include/pulse/operation.h:52:22: note: previous declaration is here -pa_operation_state_t pa_operation_get_state(const pa_operation *o); - ^ -gen/media/audio/pulse/pulse_stubs.cc:211:17: error: conflicting types for 'pa_stream_get_device_index' -extern uint32_t pa_stream_get_device_index(pa_stream* s) __attribute__((weak)); - ^ -../../../../../../../../../../usr/local/include/pulse/stream.h:366:10: note: previous declaration is here -uint32_t pa_stream_get_device_index(const pa_stream *s); - ^ -gen/media/audio/pulse/pulse_stubs.cc:212:11: error: conflicting types for 'pa_stream_get_device_index' -uint32_t pa_stream_get_device_index(pa_stream* s) { - ^ -../../../../../../../../../../usr/local/include/pulse/stream.h:366:10: note: previous declaration is here -uint32_t pa_stream_get_device_index(const pa_stream *s); - ^ -gen/media/audio/pulse/pulse_stubs.cc:219:26: error: conflicting types for 'pa_stream_get_state' -extern pa_stream_state_t pa_stream_get_state(pa_stream* p) __attribute__((weak)); - ^ -../../../../../../../../../../usr/local/include/pulse/stream.h:345:19: note: previous declaration is here -pa_stream_state_t pa_stream_get_state(const pa_stream *p); - ^ -gen/media/audio/pulse/pulse_stubs.cc:220:20: error: conflicting types for 'pa_stream_get_state' -pa_stream_state_t pa_stream_get_state(pa_stream* p) { - ^ -../../../../../../../../../../usr/local/include/pulse/stream.h:345:19: note: previous declaration is here -pa_stream_state_t pa_stream_get_state(const pa_stream *p); - ^ -gen/media/audio/pulse/pulse_stubs.cc:235:12: error: conflicting types for 'pa_proplist_contains' -extern int pa_proplist_contains(pa_proplist* p, const char* key) __attribute__((weak)); - ^ -../../../../../../../../../../usr/local/include/pulse/proplist.h:390:5: note: previous declaration is here -int pa_proplist_contains(const pa_proplist *p, const char *key); - ^ -gen/media/audio/pulse/pulse_stubs.cc:236:6: error: conflicting types for 'pa_proplist_contains' -int pa_proplist_contains(pa_proplist* p, const char* key) { - ^ -../../../../../../../../../../usr/local/include/pulse/proplist.h:390:5: note: previous declaration is here -int pa_proplist_contains(const pa_proplist *p, const char *key); - ^ -gen/media/audio/pulse/pulse_stubs.cc:243:20: error: conflicting types for 'pa_proplist_gets' -extern const char* pa_proplist_gets(pa_proplist* p, const char* key) __attribute__((weak)); - ^ -../../../../../../../../../../usr/local/include/pulse/proplist.h:314:13: note: previous declaration is here -const char *pa_proplist_gets(const pa_proplist *p, const char *key); - ^ -gen/media/audio/pulse/pulse_stubs.cc:244:14: error: conflicting types for 'pa_proplist_gets' -const char* pa_proplist_gets(pa_proplist* p, const char* key) { - ^ -../../../../../../../../../../usr/local/include/pulse/proplist.h:314:13: note: previous declaration is here -const char *pa_proplist_gets(const pa_proplist *p, const char *key); - ^ -gen/media/audio/pulse/pulse_stubs.cc:251:15: error: conflicting types for 'pa_stream_readable_size' -extern size_t pa_stream_readable_size(pa_stream *p) __attribute__((weak)); - ^ -../../../../../../../../../../usr/local/include/pulse/stream.h:574:8: note: previous declaration is here -size_t pa_stream_readable_size(const pa_stream *p); - ^ -gen/media/audio/pulse/pulse_stubs.cc:252:9: error: conflicting types for 'pa_stream_readable_size' -size_t pa_stream_readable_size(pa_stream *p) { - ^ -../../../../../../../../../../usr/local/include/pulse/stream.h:574:8: note: previous declaration is here -size_t pa_stream_readable_size(const pa_stream *p); - ^ -gen/media/audio/pulse/pulse_stubs.cc:279:12: error: conflicting types for 'pa_context_errno' -extern int pa_context_errno(pa_context *c) __attribute__((weak)); - ^ -../../../../../../../../../../usr/local/include/pulse/context.h:193:5: note: previous declaration is here -int pa_context_errno(const pa_context *c); - ^ -gen/media/audio/pulse/pulse_stubs.cc:280:6: error: conflicting types for 'pa_context_errno' -int pa_context_errno(pa_context *c) { - ^ -../../../../../../../../../../usr/local/include/pulse/context.h:193:5: note: previous declaration is here -int pa_context_errno(const pa_context *c); - ^ - ---- media/audio/pulse/pulse.sigs.orig 2019-03-19 08:52:48 UTC -+++ media/audio/pulse/pulse.sigs -@@ -24,11 +24,11 @@ pa_operation* pa_context_get_source_info_by_index(pa_c - pa_operation* pa_context_get_source_info_by_name(pa_context* c, const char* name, pa_source_info_cb_t cb, void *userdata); - pa_operation* pa_context_get_source_info_list(pa_context* c, pa_source_info_cb_t cb, void* userdata); - pa_operation* pa_context_get_sink_info_list(pa_context* c, pa_sink_info_cb_t cb, void* userdata); --pa_context_state_t pa_context_get_state(pa_context* c); -+pa_context_state_t pa_context_get_state(const pa_context *c); - pa_context* pa_context_new(pa_mainloop_api* mainloop, const char* name); - pa_operation* pa_context_set_source_volume_by_index(pa_context* c, uint32_t idx, const pa_cvolume* volume, pa_context_success_cb_t cb, void* userdata); - void pa_context_set_state_callback(pa_context* c, pa_context_notify_cb_t cb, void* userdata); --pa_operation_state_t pa_operation_get_state(pa_operation* o); -+pa_operation_state_t pa_operation_get_state(const pa_operation* o); - void pa_context_unref(pa_context* c); - void pa_operation_unref(pa_operation* o); - int pa_stream_begin_write(pa_stream* p, void** data, size_t* nbytes); -@@ -38,23 +38,23 @@ pa_operation* pa_stream_cork(pa_stream* s, int b, pa_s - int pa_stream_disconnect(pa_stream* s); - int pa_stream_drop(pa_stream *p); - pa_operation* pa_stream_flush(pa_stream* s, pa_stream_success_cb_t cb, void* userdata); --uint32_t pa_stream_get_device_index(pa_stream* s); -+uint32_t pa_stream_get_device_index(const pa_stream* s); - int pa_stream_get_latency(pa_stream* s, pa_usec_t* r_usec, int* negative); --pa_stream_state_t pa_stream_get_state(pa_stream* p); -+pa_stream_state_t pa_stream_get_state(const pa_stream* p); - pa_stream* pa_stream_new(pa_context* c, const char* name, const pa_sample_spec* ss, const pa_channel_map * map); - pa_stream* pa_stream_new_with_proplist(pa_context* c, const char* name, const pa_sample_spec* ss, const pa_channel_map* map, pa_proplist* p); - pa_proplist* pa_proplist_new(void); --int pa_proplist_contains(pa_proplist* p, const char* key); -+int pa_proplist_contains(const pa_proplist* p, const char* key); - void pa_proplist_free(pa_proplist* p); --const char* pa_proplist_gets(pa_proplist* p, const char* key); -+const char* pa_proplist_gets(const pa_proplist* p, const char* key); - int pa_proplist_sets(pa_proplist* p, const char* key, const char* value); --size_t pa_stream_readable_size(pa_stream *p); -+size_t pa_stream_readable_size(const pa_stream *p); - int pa_stream_peek(pa_stream* p, const void** data, size_t* nbytes); - void pa_stream_set_read_callback(pa_stream* p, pa_stream_request_cb_t cb, void* userdata); - void pa_stream_set_state_callback(pa_stream* s, pa_stream_notify_cb_t cb, void* userdata); - int pa_stream_write(pa_stream* p, const void* data, size_t nbytes, pa_free_cb_t free_cb, int64_t offset, pa_seek_mode_t seek); - void pa_stream_set_write_callback(pa_stream *p, pa_stream_request_cb_t cb, void *userdata); - void pa_stream_unref(pa_stream* s); --int pa_context_errno(pa_context *c); -+int pa_context_errno(const pa_context *c); - const char* pa_strerror(int error); - pa_cvolume* pa_cvolume_set(pa_cvolume* a, unsigned channels, pa_volume_t v); Property changes on: branches/2020Q1/www/chromium/files/patch-media_audio_pulse_pulse.sigs ___________________________________________________________________ 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: branches/2020Q1/www/chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.h (nonexistent) @@ -1,11 +0,0 @@ ---- ui/views/widget/desktop_aura/desktop_window_tree_host_platform.h.orig 2019-10-21 19:07:29 UTC -+++ ui/views/widget/desktop_aura/desktop_window_tree_host_platform.h -@@ -146,7 +146,7 @@ class VIEWS_EXPORT DesktopWindowTreeHostPlatform - - base::string16 window_title_; - --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_BSD) - // A handler for events intended for non client area. - std::unique_ptr non_client_window_event_filter_; - #endif Property changes on: branches/2020Q1/www/chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.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: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_ui__features.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_ui__features.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_ui__features.h (nonexistent) @@ -1,11 +0,0 @@ ---- chrome/browser/ui/ui_features.h.orig 2019-10-21 19:06:24 UTC -+++ chrome/browser/ui/ui_features.h -@@ -46,7 +46,7 @@ extern const base::Feature kWebFooterExperiment; - - extern const base::Feature kWebUITabStrip; - --#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - extern const base::Feature kEnableDbusAndX11StatusIcons; - #endif - Property changes on: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_ui__features.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: branches/2020Q1/www/chromium/files/patch-third__party_pdfium_third__party_base_allocator_partition__allocator_page__allocator__internals__posix.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_pdfium_third__party_base_allocator_partition__allocator_page__allocator__internals__posix.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_pdfium_third__party_base_allocator_partition__allocator_page__allocator__internals__posix.h (nonexistent) @@ -1,38 +0,0 @@ ---- third_party/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h.orig 2019-06-04 18:58:01 UTC -+++ third_party/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h -@@ -13,7 +13,7 @@ - #if defined(OS_MACOSX) - #include - #endif --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_BSD) - #include - - #include -@@ -48,7 +48,7 @@ int GetAccessFlags(PageAccessibilityConfiguration acce - } - } - --#if defined(OS_LINUX) && defined(ARCH_CPU_64_BITS) -+#if (defined(OS_LINUX) || defined(OS_BSD)) && 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 @@ bool AdjustAddressSpaceLimit(int64_t amount) { - // 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_LINUX) || defined(OS_BSD)) && defined(ARCH_CPU_64_BITS) - - void* SystemAllocPagesInternal(void* hint, - size_t length, -@@ -134,7 +134,7 @@ void SetSystemPagesAccessInternal( - void FreePagesInternal(void* address, size_t length) { - CHECK(!munmap(address, length)); - --#if defined(OS_LINUX) && defined(ARCH_CPU_64_BITS) -+#if (defined(OS_LINUX) || defined(OS_BSD)) && defined(ARCH_CPU_64_BITS) - // Restore the address space limit. - if (length >= kMinimumGuardedMemorySize) { - CHECK(AdjustAddressSpaceLimit(-base::checked_cast(length))); Property changes on: branches/2020Q1/www/chromium/files/patch-third__party_pdfium_third__party_base_allocator_partition__allocator_page__allocator__internals__posix.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: branches/2020Q1/www/chromium/files/patch-weblayer_shell_app_shell__main.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-weblayer_shell_app_shell__main.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-weblayer_shell_app_shell__main.cc (nonexistent) @@ -1,20 +0,0 @@ ---- weblayer/shell/app/shell_main.cc.orig 2019-10-30 16:41:17 UTC -+++ weblayer/shell/app/shell_main.cc -@@ -18,7 +18,7 @@ - - #if defined(OS_WIN) - #include "base/base_paths_win.h" --#elif defined(OS_LINUX) -+#elif defined(OS_LINUX) || defined(OS_BSD) - #include "base/nix/xdg_util.h" - #endif - -@@ -65,7 +65,7 @@ class MainDelegateImpl : public weblayer::MainDelegate - #if defined(OS_WIN) - CHECK(base::PathService::Get(base::DIR_LOCAL_APP_DATA, &path)); - path = path.AppendASCII("web_shell"); --#elif defined(OS_LINUX) -+#elif defined(OS_LINUX) || defined(OS_BSD) - std::unique_ptr env(base::Environment::Create()); - base::FilePath config_dir(base::nix::GetXDGDirectory( - env.get(), base::nix::kXdgConfigHomeEnvVar, base::nix::kDotConfigDir)); Property changes on: branches/2020Q1/www/chromium/files/patch-weblayer_shell_app_shell__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: branches/2020Q1/www/chromium/files/patch-services_service__manager_sandbox_sandbox__type.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_service__manager_sandbox_sandbox__type.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-services_service__manager_sandbox_sandbox__type.cc (nonexistent) @@ -1,11 +0,0 @@ ---- services/service_manager/sandbox/sandbox_type.cc.orig 2019-03-17 14:36:49 UTC -+++ services/service_manager/sandbox/sandbox_type.cc -@@ -25,7 +25,7 @@ bool IsUnsandboxedSandboxType(SandboxType sandbox_type - service_manager::features::kXRSandbox); - #endif - case SANDBOX_TYPE_AUDIO: --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - return !base::FeatureList::IsEnabled( - service_manager::features::kAudioServiceSandbox); - #else Property changes on: branches/2020Q1/www/chromium/files/patch-services_service__manager_sandbox_sandbox__type.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: branches/2020Q1/www/chromium/files/patch-3p-pdfium_3p_base_allocator_partition__allocator_page__allocator__internals__posix.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-3p-pdfium_3p_base_allocator_partition__allocator_page__allocator__internals__posix.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-3p-pdfium_3p_base_allocator_partition__allocator_page__allocator__internals__posix.h (revision 523260) @@ -0,0 +1,38 @@ +--- third_party/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h.orig 2020-01-07 21:54:50 UTC ++++ third_party/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h +@@ -13,7 +13,7 @@ + #if defined(OS_MACOSX) + #include + #endif +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include + + #include +@@ -48,7 +48,7 @@ int GetAccessFlags(PageAccessibilityConfiguration acce + } + } + +-#if defined(OS_LINUX) && defined(ARCH_CPU_64_BITS) ++#if (defined(OS_LINUX) || defined(OS_BSD)) && 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 @@ bool AdjustAddressSpaceLimit(int64_t amount) { + // 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_LINUX) || defined(OS_BSD)) && defined(ARCH_CPU_64_BITS) + + void* SystemAllocPagesInternal(void* hint, + size_t length, +@@ -134,7 +134,7 @@ void SetSystemPagesAccessInternal( + void FreePagesInternal(void* address, size_t length) { + CHECK(!munmap(address, length)); + +-#if defined(OS_LINUX) && defined(ARCH_CPU_64_BITS) ++#if (defined(OS_LINUX) || defined(OS_BSD)) && defined(ARCH_CPU_64_BITS) + // Restore the address space limit. + if (length >= kMinimumGuardedMemorySize) { + CHECK(AdjustAddressSpaceLimit(-base::checked_cast(length))); Property changes on: branches/2020Q1/www/chromium/files/patch-3p-pdfium_3p_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: branches/2020Q1/www/chromium/files/patch-BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-BUILD.gn (revision 523260) @@ -1,95 +1,95 @@ ---- BUILD.gn.orig 2019-10-21 19:06:17 UTC +--- BUILD.gn.orig 2019-12-16 21:51:21 UTC +++ BUILD.gn -@@ -404,7 +404,7 @@ group("gn_all") { +@@ -411,7 +411,7 @@ group("gn_all") { ] } - if (is_linux || is_android) { + if ((is_linux && !is_bsd) || is_android) { deps += [ "//third_party/breakpad:breakpad_unittests", "//third_party/breakpad:core-2-minidump", -@@ -445,8 +445,6 @@ group("gn_all") { +@@ -452,8 +452,6 @@ group("gn_all") { "//net:disk_cache_memory_test", "//net:quic_client", "//net:quic_server", - "//sandbox/linux:chrome_sandbox", - "//sandbox/linux:sandbox_linux_unittests", "//testing:empty_main", ] -@@ -501,10 +499,6 @@ group("gn_all") { +@@ -508,10 +506,6 @@ group("gn_all") { "//chrome/test:load_library_perf_tests", "//chrome/test:sync_performance_tests", "//chrome/test/chromedriver:chromedriver", - "//courgette:courgette", - "//courgette:courgette_fuzz", - "//courgette:courgette_minimal_tool", - "//courgette:courgette_unittests", "//media/cast:generate_barcode_video", "//media/cast:generate_timecode_audio", "//net:crash_cache", -@@ -560,10 +554,6 @@ group("gn_all") { +@@ -567,10 +561,6 @@ group("gn_all") { "//mojo:mojo_perftests", "//services/service_manager/public/cpp", "//testing/gmock:gmock_main", - "//third_party/breakpad:dump_syms($host_toolchain)", - "//third_party/breakpad:microdump_stackwalk($host_toolchain)", - "//third_party/breakpad:minidump_dump($host_toolchain)", - "//third_party/breakpad:minidump_stackwalk($host_toolchain)", ] if (!is_android) { -@@ -637,7 +627,7 @@ group("gn_all") { +@@ -644,7 +634,7 @@ group("gn_all") { host_os == "win") { deps += [ "//chrome/test/mini_installer:mini_installer_tests" ] } - } else if (!is_android && !is_ios && !is_fuchsia) { + } else if (!is_android && !is_ios && !is_fuchsia && !is_bsd) { deps += [ "//third_party/breakpad:symupload($host_toolchain)" ] } -@@ -776,7 +766,6 @@ group("gn_all") { +@@ -782,7 +772,6 @@ group("gn_all") { "//chrome/browser/vr:vr_common_perftests", "//chrome/browser/vr:vr_common_unittests", "//chrome/browser/vr:vr_pixeltests", - "//tools/perf/contrib/vr_benchmarks:vr_perf_tests", ] if (is_desktop_linux && use_ozone) { deps += [ "//chrome/browser/vr/testapp:vr_testapp" ] -@@ -896,7 +885,6 @@ if (is_chromeos) { +@@ -905,7 +894,6 @@ if (is_chromeos) { "//ppapi/examples/video_decode", "//sandbox/linux:chrome_sandbox", "//sandbox/linux:sandbox_linux_unittests", - "//third_party/breakpad:minidump_stackwalk($host_toolchain)", # Blocked on https://github.com/catapult-project/catapult/issues/2297 #"//third_party/catapult/telemetry:bitmaptools", -@@ -1065,7 +1053,7 @@ if (!is_ios) { +@@ -1076,7 +1064,7 @@ if (!is_ios) { ] } - if (!is_win && !is_android) { + if (!is_win && !is_android && !is_bsd) { data_deps += [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ] } -@@ -1074,7 +1062,7 @@ if (!is_ios) { +@@ -1085,7 +1073,7 @@ if (!is_ios) { data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] } - if (is_linux) { + if (is_linux && !is_bsd) { data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] } -@@ -1216,9 +1204,6 @@ group("chromium_builder_perf") { +@@ -1227,9 +1215,6 @@ group("chromium_builder_perf") { if (is_win) { data_deps += [ "//chrome/installer/mini_installer:mini_installer" ] - } else { - data_deps += - [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ] } if (is_win || is_android) { data_deps += [ Index: branches/2020Q1/www/chromium/files/patch-base_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_BUILD.gn (revision 523260) @@ -1,67 +1,67 @@ ---- base/BUILD.gn.orig 2019-10-21 19:06:18 UTC +--- base/BUILD.gn.orig 2019-12-16 21:51:21 UTC +++ base/BUILD.gn -@@ -1266,7 +1266,7 @@ jumbo_component("base") { +@@ -1274,7 +1274,7 @@ jumbo_component("base") { # Needed for if using newer C++ library than sysroot, except if # building inside the cros_sdk environment - use host_toolchain as a # more robust check for this. - 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" ] } -@@ -1292,7 +1292,7 @@ jumbo_component("base") { +@@ -1300,7 +1300,7 @@ jumbo_component("base") { "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 += [ -@@ -1893,6 +1893,33 @@ jumbo_component("base") { +@@ -1903,6 +1903,33 @@ jumbo_component("base") { } } + if (is_bsd) { + sources -= [ + "files/file_path_watcher_linux.cc", + "files/file_util_linux.cc", + "process/memory_linux.cc", + "process/process_handle_linux.cc", + "process/process_iterator_linux.cc", + "process/process_metrics_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", + "system/sys_info_freebsd.cc", + ] + libs = [ + "execinfo", # logging.cc + "kvm", # process_metrics_freebsd + "util" # process_metrics_freebsd + ] + } + # iOS if (is_ios) { set_sources_assignment_filter([]) -@@ -3041,6 +3068,12 @@ test("base_unittests") { +@@ -3071,6 +3098,12 @@ test("base_unittests") { ] set_sources_assignment_filter(sources_assignment_filter) } + + if (is_bsd) { + sources -= [ + "debug/proc_maps_linux_unittest.cc", + ] + } if (is_win) { deps += [ "//base:scoped_handle_test_dll" ] Index: branches/2020Q1/www/chromium/files/patch-base_files_file__util.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_files_file__util.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_files_file__util.h (revision 523260) @@ -1,11 +1,11 @@ ---- base/files/file_util.h.orig 2019-10-21 19:06:18 UTC +--- base/files/file_util.h.orig 2019-12-16 21:51:21 UTC +++ base/files/file_util.h -@@ -497,7 +497,7 @@ BASE_EXPORT bool VerifyPathControlledByAdmin(const bas +@@ -512,7 +512,7 @@ BASE_EXPORT bool VerifyPathControlledByAdmin(const bas // the directory |path|, in the number of FilePath::CharType, or -1 on failure. BASE_EXPORT int GetMaximumPathComponentLength(const base::FilePath& path); -#if defined(OS_LINUX) || defined(OS_AIX) +#if defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD) // Broad categories of file systems as returned by statfs() on Linux. enum FileSystemType { FILE_SYSTEM_UNKNOWN, // statfs failed. Index: branches/2020Q1/www/chromium/files/patch-base_files_file__util__posix.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_files_file__util__posix.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_files_file__util__posix.cc (revision 523260) @@ -1,11 +1,11 @@ ---- base/files/file_util_posix.cc.orig 2019-10-21 19:06:18 UTC +--- base/files/file_util_posix.cc.orig 2019-12-16 21:51:21 UTC +++ base/files/file_util_posix.cc -@@ -426,7 +426,7 @@ bool CreatePipe(ScopedFD* read_fd, ScopedFD* write_fd, +@@ -435,7 +435,7 @@ bool CreatePipe(ScopedFD* read_fd, ScopedFD* write_fd, } bool CreateLocalNonBlockingPipe(int fds[2]) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) return pipe2(fds, O_CLOEXEC | O_NONBLOCK) == 0; #else int raw_fds[2]; Index: branches/2020Q1/www/chromium/files/patch-base_i18n_icu__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_i18n_icu__util.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_i18n_icu__util.cc (revision 523260) @@ -1,20 +1,20 @@ ---- base/i18n/icu_util.cc.orig 2019-07-24 18:58:02 UTC +--- base/i18n/icu_util.cc.orig 2019-12-16 21:51:21 UTC +++ base/i18n/icu_util.cc @@ -20,7 +20,7 @@ #include "build/build_config.h" #include "third_party/icu/source/common/unicode/putil.h" #include "third_party/icu/source/common/unicode/udata.h" -#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_ANDROID) +#if (defined(OS_LINUX) || defined(OS_BSD) && !defined(OS_CHROMEOS)) || defined(OS_ANDROID) #include "third_party/icu/source/i18n/unicode/timezone.h" #endif -@@ -285,7 +285,7 @@ bool InitializeICU() { +@@ -365,7 +365,7 @@ bool InitializeICU() { // TODO(jungshik): Some callers do not care about tz at all. If necessary, // add a boolean argument to this function to init'd the default tz only // when requested. -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) if (result) std::unique_ptr zone(icu::TimeZone::createDefault()); #endif Index: branches/2020Q1/www/chromium/files/patch-base_linux__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_linux__util.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_linux__util.cc (revision 523260) @@ -1,18 +1,20 @@ ---- base/linux_util.cc.orig 2019-03-11 22:00:51 UTC +--- base/linux_util.cc.orig 2019-12-16 21:50:40 UTC +++ base/linux_util.cc -@@ -90,12 +90,14 @@ char g_linux_distro[kDistroSize] = +@@ -144,6 +144,8 @@ char g_linux_distro[kDistroSize] = "CrOS"; #elif defined(OS_ANDROID) "Android"; +#elif defined(OS_BSD) + "BSD"; #else // if defined(OS_LINUX) "Unknown"; #endif +@@ -164,7 +166,7 @@ BASE_EXPORT std::string GetKeyValueFromOSReleaseFileFo + } std::string GetLinuxDistro() { -#if defined(OS_CHROMEOS) || defined(OS_ANDROID) +#if defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD) return g_linux_distro; #elif defined(OS_LINUX) LinuxDistroHelper* distro_state_singleton = LinuxDistroHelper::GetInstance(); Index: branches/2020Q1/www/chromium/files/patch-base_logging__unittest.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_logging__unittest.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_logging__unittest.cc (revision 523260) @@ -1,11 +1,11 @@ ---- base/logging_unittest.cc.orig 2019-10-21 19:06:18 UTC +--- base/logging_unittest.cc.orig 2019-12-16 21:51:21 UTC +++ base/logging_unittest.cc -@@ -590,7 +590,7 @@ void CheckCrashTestSighandler(int, siginfo_t* info, vo +@@ -591,7 +591,7 @@ void CheckCrashTestSighandler(int, siginfo_t* info, vo // need the arch-specific boilerplate below, which is inspired by breakpad. // At the same time, on OSX, ucontext.h is deprecated but si_addr works fine. uintptr_t crash_addr = 0; -#if defined(OS_MACOSX) +#if defined(OS_MACOSX) || defined(OS_BSD) crash_addr = reinterpret_cast(info->si_addr); #else // OS_POSIX && !OS_MACOSX ucontext_t* context = reinterpret_cast(context_ptr); Index: branches/2020Q1/www/chromium/files/patch-base_process_kill.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_process_kill.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_process_kill.h (revision 523260) @@ -1,16 +1,16 @@ ---- base/process/kill.h.orig 2019-06-04 18:55:15 UTC +--- base/process/kill.h.orig 2019-12-16 21:50:40 UTC +++ base/process/kill.h -@@ -111,11 +111,11 @@ BASE_EXPORT TerminationStatus GetTerminationStatus(Pro +@@ -118,11 +118,11 @@ BASE_EXPORT TerminationStatus GetTerminationStatus(Pro BASE_EXPORT TerminationStatus GetKnownDeadTerminationStatus( ProcessHandle handle, int* exit_code); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Spawns a thread to wait asynchronously for the child |process| to exit // and then reaps it. BASE_EXPORT void EnsureProcessGetsReaped(Process process); -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) #endif // defined(OS_POSIX) // Registers |process| to be asynchronously monitored for termination, forcibly Index: branches/2020Q1/www/chromium/files/patch-base_system_sys__info.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_system_sys__info.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_system_sys__info.h (revision 523260) @@ -1,11 +1,20 @@ ---- base/system/sys_info.h.orig 2019-06-04 18:55:15 UTC +--- base/system/sys_info.h.orig 2019-12-16 21:50:40 UTC +++ base/system/sys_info.h -@@ -192,7 +192,7 @@ class BASE_EXPORT SysInfo { +@@ -188,6 +188,8 @@ class BASE_EXPORT SysInfo { + // See also SysUtils.java, method isLowEndDevice. + static bool IsLowEndDevice(); + ++ static uint64_t MaxSharedMemorySize(); ++ + private: + FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory); + FRIEND_TEST_ALL_PREFIXES(debug::SystemMetricsTest, ParseMeminfo); +@@ -197,7 +199,7 @@ class BASE_EXPORT SysInfo { static bool IsLowEndDeviceImpl(); static HardwareInfo GetHardwareInfoSync(); -#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_AIX) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_AIX) || defined(OS_BSD) static int64_t AmountOfAvailablePhysicalMemory( const SystemMemoryInfoKB& meminfo); #endif Index: branches/2020Q1/www/chromium/files/patch-base_system_sys__info__freebsd.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_system_sys__info__freebsd.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_system_sys__info__freebsd.cc (revision 523260) @@ -1,59 +1,67 @@ ---- base/system/sys_info_freebsd.cc.orig 2019-09-09 21:55:05 UTC +--- base/system/sys_info_freebsd.cc.orig 2019-12-16 21:50:40 UTC +++ base/system/sys_info_freebsd.cc -@@ -13,26 +13,46 @@ +@@ -13,26 +13,59 @@ 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); ++ NOTREACHED(); ++ return 0; ++ } + return static_cast((pgfree + pginact + pgcache) * page_size); - } - -+// static ++} ++ + // static +std::string SysInfo::CPUModelName() { + int mib[] = { CTL_HW, HW_MODEL }; + char name[256]; + size_t size = base::size(name); + if (sysctl(mib, base::size(mib), &name, &size, NULL, 0) == 0) + return name; + return std::string(); +} ++ ++// static + uint64_t SysInfo::MaxSharedMemorySize() { + size_t limit; + size_t size = sizeof(limit); ++ + if (sysctlbyname("kern.ipc.shmmax", &limit, &size, NULL, 0) < 0) { + NOTREACHED(); + return 0; + } ++ + return static_cast(limit); + } +- } // namespace base Index: branches/2020Q1/www/chromium/files/patch-base_test_generate__fontconfig__caches.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_test_generate__fontconfig__caches.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_test_generate__fontconfig__caches.cc (revision 523260) @@ -1,25 +1,17 @@ ---- base/test/generate_fontconfig_caches.cc.orig 2019-04-30 22:22:28 UTC +--- base/test/generate_fontconfig_caches.cc.orig 2019-12-16 21:51:21 UTC +++ base/test/generate_fontconfig_caches.cc -@@ -52,14 +52,21 @@ int main() { - - // Delete directory before generating fontconfig caches. This will notify - // future fontconfig_caches changes. -- CHECK(base::DeleteFile(fontconfig_caches, /*recursive=*/true)); - -+ CHECK(base::DeleteFile(fontconfig_caches, /*recursive=*/true)); - base::SetUpFontconfig(); - FcInit(); +@@ -59,7 +59,14 @@ int main() { FcFini(); // Check existence of intended fontconfig cache file. +#if defined(OS_BSD) + // Our version of fontconfig is too old to respect .uuid files in font directories, + // so we check for the CACHEDIR.TAG file instead CHECK(base::PathExists( + fontconfig_caches.Append("CACHEDIR.TAG"))); +#else + CHECK(base::PathExists( fontconfig_caches.Append(base::StrCat({uuid, "-le64.cache-7"})))); +#endif return 0; } Index: branches/2020Q1/www/chromium/files/patch-base_threading_thread__task__runner__handle.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_threading_thread__task__runner__handle.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_threading_thread__task__runner__handle.cc (revision 523260) @@ -1,26 +1,26 @@ ---- base/threading/thread_task_runner_handle.cc.orig 2019-04-30 22:22:28 UTC +--- base/threading/thread_task_runner_handle.cc.orig 2019-12-16 21:50:40 UTC +++ base/threading/thread_task_runner_handle.cc @@ -8,6 +8,7 @@ #include #include "base/bind.h" +#include "base/callback_helpers.h" #include "base/lazy_instance.h" #include "base/logging.h" #include "base/run_loop.h" -@@ -37,6 +38,7 @@ bool ThreadTaskRunnerHandle::IsSet() { +@@ -38,6 +39,7 @@ bool ThreadTaskRunnerHandle::IsSet() { return !!thread_task_runner_tls.Pointer()->Get(); } +#if defined(OS_BSD) // static ScopedClosureRunner ThreadTaskRunnerHandle::OverrideForTesting( scoped_refptr overriding_task_runner) { -@@ -81,6 +83,7 @@ ScopedClosureRunner ThreadTaskRunnerHandle::OverrideFo +@@ -82,6 +84,7 @@ ScopedClosureRunner ThreadTaskRunnerHandle::OverrideFo base::Unretained(ttrh->task_runner_.get()), std::move(no_running_during_override))); } +#endif ThreadTaskRunnerHandle::ThreadTaskRunnerHandle( scoped_refptr task_runner) Index: branches/2020Q1/www/chromium/files/patch-base_trace__event_malloc__dump__provider.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-base_trace__event_malloc__dump__provider.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-base_trace__event_malloc__dump__provider.cc (revision 523260) @@ -1,21 +1,21 @@ ---- base/trace_event/malloc_dump_provider.cc.orig 2019-04-30 22:22:28 UTC +--- base/trace_event/malloc_dump_provider.cc.orig 2019-12-16 21:50:40 UTC +++ base/trace_event/malloc_dump_provider.cc @@ -17,6 +17,8 @@ #if defined(OS_MACOSX) #include +#elif defined(OS_BSD) +#include #else #include #endif @@ -132,6 +134,9 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDump } #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); + #if !defined(ADDRESS_SANITIZER) && !defined(THREAD_SANITIZER) Index: branches/2020Q1/www/chromium/files/patch-build_config_compiler_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-build_config_compiler_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-build_config_compiler_BUILD.gn (revision 523260) @@ -1,92 +1,92 @@ ---- build/config/compiler/BUILD.gn.orig 2019-10-21 19:06:18 UTC +--- build/config/compiler/BUILD.gn.orig 2019-12-16 21:51:21 UTC +++ build/config/compiler/BUILD.gn @@ -57,7 +57,7 @@ declare_args() { # 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) -@@ -288,7 +288,7 @@ config("compiler") { +@@ -303,7 +303,7 @@ config("compiler") { # Linker warnings. if (fatal_linker_warnings && !(is_chromeos && current_cpu == "arm") && - !is_mac && !is_ios && current_os != "aix") { + !is_mac && !is_ios && current_os != "aix" && !is_bsd) { # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 ldflags += [ "-Wl,--fatal-warnings" ] } -@@ -383,7 +383,7 @@ config("compiler") { +@@ -398,7 +398,7 @@ config("compiler") { # 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", -@@ -483,7 +483,7 @@ config("compiler") { +@@ -498,7 +498,7 @@ config("compiler") { } } - if (is_clang && !is_nacl && !use_xcode_clang) { + if (is_clang && !is_nacl && !use_xcode_clang && !is_bsd) { cflags += [ "-fcrash-diagnostics-dir=" + rebase_path("//tools/clang/crashreports", root_build_dir) ] -@@ -753,7 +753,7 @@ config("compiler_cpu_abi") { +@@ -768,7 +768,7 @@ config("compiler_cpu_abi") { 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" ] } -@@ -1104,7 +1104,7 @@ config("compiler_deterministic") { +@@ -1119,7 +1119,7 @@ config("compiler_deterministic") { "-Xclang", ".", ] - if (!is_win) { + if (!is_win && !is_bsd) { # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167) asmflags = [ "-Wa,-fdebug-compilation-dir,." ] } -@@ -1493,7 +1493,7 @@ config("default_warnings") { +@@ -1508,7 +1508,7 @@ config("default_warnings") { cflags += [ "-Wno-nonportable-include-path" ] } - if (current_toolchain == host_toolchain || !use_xcode_clang) { + if ((current_toolchain == host_toolchain || !use_xcode_clang) && !is_bsd) { # Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not # recognize. cflags += [ -@@ -1722,7 +1722,7 @@ config("thin_archive") { +@@ -1738,7 +1738,7 @@ config("thin_archive") { # 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" ] } else if (is_win && use_lld) { arflags = [ "/llvmlibthin" ] -@@ -2292,7 +2292,7 @@ config("symbols") { +@@ -2328,7 +2328,7 @@ config("symbols") { # 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" ] } if (use_debug_fission && !is_nacl && !is_android) { -@@ -2313,7 +2313,7 @@ config("symbols") { +@@ -2349,7 +2349,7 @@ config("symbols") { # 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: branches/2020Q1/www/chromium/files/patch-build_config_compiler_compiler.gni =================================================================== --- branches/2020Q1/www/chromium/files/patch-build_config_compiler_compiler.gni (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-build_config_compiler_compiler.gni (revision 523260) @@ -1,11 +1,11 @@ ---- build/config/compiler/compiler.gni.orig 2019-10-21 19:06:18 UTC +--- build/config/compiler/compiler.gni.orig 2019-12-16 21:51:21 UTC +++ build/config/compiler/compiler.gni -@@ -188,7 +188,7 @@ declare_args() { +@@ -192,7 +192,7 @@ declare_args() { declare_args() { # Whether to use the gold linker from binutils instead of lld or bfd. use_gold = - !use_lld && !(is_chromecast && is_linux && + !is_bsd && !use_lld && !(is_chromecast && is_linux && (current_cpu == "arm" || current_cpu == "mipsel")) && ((is_linux && (current_cpu == "x64" || current_cpu == "x86" || current_cpu == "arm" || current_cpu == "arm64" || Index: branches/2020Q1/www/chromium/files/patch-cc_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-cc_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-cc_BUILD.gn (revision 523260) @@ -1,21 +1,21 @@ ---- cc/BUILD.gn.orig 2019-10-21 19:06:18 UTC +--- cc/BUILD.gn.orig 2019-12-16 21:51:21 UTC +++ cc/BUILD.gn -@@ -572,7 +572,7 @@ cc_test_static_library("test_support") { +@@ -576,7 +576,7 @@ cc_test_static_library("test_support") { if (enable_vulkan) { deps += [ "//gpu/vulkan/init" ] } - if (!is_android) { + if (!is_android && !is_bsd) { data_deps = [ "//third_party/mesa_headers", ] -@@ -776,9 +776,6 @@ cc_test("cc_unittests") { +@@ -780,9 +780,6 @@ cc_test("cc_unittests") { "//ui/gfx/geometry", "//ui/gl", "//ui/gl:test_support", - ] - data_deps = [ - "//third_party/mesa_headers", ] if (enable_vulkan) { Index: branches/2020Q1/www/chromium/files/patch-cc_layers_scrollbar__layer__impl__base.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-cc_layers_scrollbar__layer__impl__base.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-cc_layers_scrollbar__layer__impl__base.cc (revision 523260) @@ -1,13 +1,13 @@ ---- cc/layers/scrollbar_layer_impl_base.cc.orig 2019-03-11 22:00:52 UTC +--- cc/layers/scrollbar_layer_impl_base.cc.orig 2019-12-16 21:50:40 UTC +++ cc/layers/scrollbar_layer_impl_base.cc -@@ -218,8 +218,8 @@ gfx::Rect ScrollbarLayerImplBase::ComputeThumbQuadRect +@@ -220,8 +220,8 @@ gfx::Rect ScrollbarLayerImplBase::ComputeThumbQuadRect int thumb_offset = TrackStart(); if (maximum > 0) { float ratio = clamped_current_pos / maximum; - float max_offset = track_length - thumb_length; - thumb_offset += static_cast(ratio * max_offset); + float _max_offset = track_length - thumb_length; + thumb_offset += static_cast(ratio * _max_offset); } float thumb_thickness_adjustment = Index: branches/2020Q1/www/chromium/files/patch-cc_trees_property__tree.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-cc_trees_property__tree.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-cc_trees_property__tree.cc (revision 523260) @@ -1,20 +1,20 @@ ---- cc/trees/property_tree.cc.orig 2019-10-21 19:06:18 UTC +--- cc/trees/property_tree.cc.orig 2019-12-16 21:51:22 UTC +++ cc/trees/property_tree.cc -@@ -1278,13 +1278,13 @@ gfx::ScrollOffset ScrollTree::MaxScrollOffset(int scro +@@ -1229,13 +1229,13 @@ gfx::ScrollOffset ScrollTree::MaxScrollOffset(int scro gfx::Size clip_layer_bounds = container_bounds(scroll_node->id); - gfx::ScrollOffset max_offset( + gfx::ScrollOffset _max_offset( scaled_scroll_bounds.width() - clip_layer_bounds.width(), scaled_scroll_bounds.height() - clip_layer_bounds.height()); - max_offset.Scale(1 / scale_factor); - max_offset.SetToMax(gfx::ScrollOffset()); - return max_offset; + _max_offset.Scale(1 / scale_factor); + _max_offset.SetToMax(gfx::ScrollOffset()); + return _max_offset; } gfx::SizeF ScrollTree::scroll_bounds(int scroll_node_id) const { Index: branches/2020Q1/www/chromium/files/patch-chrome_app_chrome__content__browser__overlay__manifest.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_app_chrome__content__browser__overlay__manifest.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_app_chrome__content__browser__overlay__manifest.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/app/chrome_content_browser_overlay_manifest.cc.orig 2019-10-21 19:06:19 UTC +--- chrome/app/chrome_content_browser_overlay_manifest.cc.orig 2019-12-16 21:51:22 UTC +++ chrome/app/chrome_content_browser_overlay_manifest.cc -@@ -69,7 +69,7 @@ - #include "chrome/services/app_service/public/cpp/manifest.h" +@@ -70,7 +70,7 @@ + #include "chrome/browser/ui/webui/app_management/app_management.mojom.h" #endif -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ defined(OS_CHROMEOS) - #include "chrome/browser/performance_manager/webui_graph_dump.mojom.h" // nogncheck #include "chrome/browser/ui/webui/discards/discards.mojom.h" -@@ -205,7 +205,7 @@ const service_manager::Manifest& GetChromeContentBrows + #endif +@@ -189,7 +189,7 @@ const service_manager::Manifest& GetChromeContentBrows #else app_management::mojom::PageHandlerFactory, #endif -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ defined(OS_CHROMEOS) - mojom::DiscardsDetailsProvider, - performance_manager::mojom::WebUIGraphDump, + discards::mojom::DetailsProvider, discards::mojom::GraphDump, + #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc (revision 523260) @@ -1,144 +1,144 @@ ---- chrome/app/chrome_main_delegate.cc.orig 2019-10-21 19:06:19 UTC +--- chrome/app/chrome_main_delegate.cc.orig 2019-12-16 21:51:22 UTC +++ chrome/app/chrome_main_delegate.cc -@@ -99,7 +99,7 @@ +@@ -100,7 +100,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 -@@ -137,7 +137,7 @@ +@@ -139,7 +139,7 @@ #include "v8/include/v8.h" #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "base/environment.h" #endif -@@ -240,7 +240,7 @@ bool UseHooks() { +@@ -243,7 +243,7 @@ bool UseHooks() { #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; -@@ -299,13 +299,13 @@ void AdjustLinuxOOMScore(const std::string& process_ty +@@ -302,13 +302,13 @@ void AdjustLinuxOOMScore(const std::string& process_ty if (score > -1) base::AdjustOOMScore(base::GetCurrentProcId(), score); } -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) && !defined(OS_BSD) // Returns true if this subprocess type needs the ResourceBundle initialized // and resources loaded. bool SubprocessNeedsResourceBundle(const std::string& process_type) { return -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // The zygote process opens the resources for the renderers. process_type == service_manager::switches::kZygoteProcess || #endif -@@ -344,7 +344,7 @@ bool HandleVersionSwitches(const base::CommandLine& co +@@ -347,7 +347,7 @@ bool HandleVersionSwitches(const base::CommandLine& co 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) || -@@ -354,7 +354,7 @@ void HandleHelpSwitches(const base::CommandLine& comma +@@ -357,7 +357,7 @@ void HandleHelpSwitches(const base::CommandLine& comma 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) { -@@ -408,7 +408,7 @@ void InitializeUserDataDir(base::CommandLine* command_ +@@ -411,7 +411,7 @@ void InitializeUserDataDir(base::CommandLine* command_ 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. -@@ -420,7 +420,7 @@ void InitializeUserDataDir(base::CommandLine* command_ +@@ -423,7 +423,7 @@ void InitializeUserDataDir(base::CommandLine* command_ user_data_dir = base::FilePath::FromUTF8Unsafe(user_data_dir_string); } } -#endif // OS_LINUX +#endif // OS_LINUX || OS_BSD #if defined(OS_MACOSX) policy::path_parser::CheckUserDataDirPolicy(&user_data_dir); #endif // OS_MAC -@@ -477,7 +477,7 @@ void InitLogging(const std::string& process_type) { +@@ -480,7 +480,7 @@ void InitLogging(const std::string& process_type) { void RecordMainStartupMetrics(base::TimeTicks exe_entry_point_ticks) { if (!exe_entry_point_ticks.is_null()) startup_metric_utils::RecordExeMainEntryPointTicks(exe_entry_point_ticks); -#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) // Record the startup process creation time on supported platforms. startup_metric_utils::RecordStartupProcessCreationTime( base::Process::Current().CreationTime()); -@@ -654,7 +654,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi +@@ -665,7 +665,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi *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 -@@ -678,7 +678,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi +@@ -689,7 +689,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi #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 -@@ -872,7 +872,7 @@ void ChromeMainDelegate::PreSandboxStartup() { +@@ -883,7 +883,7 @@ void ChromeMainDelegate::PreSandboxStartup() { #if defined(OS_WIN) child_process_logging::Init(); #endif -#if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX)) +#if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD)) // Create an instance of the CPU class to parse /proc/cpuinfo and cache // cpu_brand info. base::CPU cpu_info; -@@ -996,7 +996,7 @@ void ChromeMainDelegate::PreSandboxStartup() { +@@ -1007,7 +1007,7 @@ void ChromeMainDelegate::PreSandboxStartup() { 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) -@@ -1011,7 +1011,7 @@ void ChromeMainDelegate::PreSandboxStartup() { - breakpad::InitCrashReporter(process_type); +@@ -1028,7 +1028,7 @@ void ChromeMainDelegate::PreSandboxStartup() { + } #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. -@@ -1021,7 +1021,7 @@ void ChromeMainDelegate::PreSandboxStartup() { +@@ -1038,7 +1038,7 @@ void ChromeMainDelegate::PreSandboxStartup() { 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: branches/2020Q1/www/chromium/files/patch-chrome_app_chromium__strings.grd =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_app_chromium__strings.grd (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_app_chromium__strings.grd (revision 523260) @@ -1,29 +1,29 @@ ---- chrome/app/chromium_strings.grd.orig 2019-10-21 19:06:20 UTC +--- chrome/app/chromium_strings.grd.orig 2019-12-16 21:51:22 UTC +++ chrome/app/chromium_strings.grd -@@ -694,7 +694,7 @@ Signing in anyway will merge Chromium information like +@@ -602,7 +602,7 @@ Chromium is unable to recover your settings. - + Your system administrator has configured Chromium to open an alternative browser to access $1example.com. -@@ -825,7 +825,7 @@ Signing in anyway will merge Chromium information like +@@ -713,7 +713,7 @@ Chromium is unable to recover your settings. - + 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. -@@ -1069,7 +1069,7 @@ Signing in anyway will merge Chromium information like +@@ -946,7 +946,7 @@ Chromium is unable to recover your settings. - + Restart Chromium to enable $1Flash Index: branches/2020Q1/www/chromium/files/patch-chrome_app_generated__resources.grd =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_app_generated__resources.grd (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_app_generated__resources.grd (revision 523260) @@ -1,29 +1,29 @@ ---- chrome/app/generated_resources.grd.orig 2019-10-21 19:06:20 UTC +--- chrome/app/generated_resources.grd.orig 2019-12-16 21:51:22 UTC +++ chrome/app/generated_resources.grd -@@ -4885,7 +4885,7 @@ Keep your key file in a safe place. You will need it t +@@ -4922,7 +4922,7 @@ Keep your key file in a safe place. You will need it t - + Legacy Browser Support -@@ -6514,7 +6514,7 @@ the Bookmarks menu."> +@@ -6571,7 +6571,7 @@ the Bookmarks menu."> Google Pay - + Use system title bar and borders -@@ -7395,7 +7395,7 @@ Please help our engineers fix this problem. Tell us wh +@@ -7521,7 +7521,7 @@ Please help our engineers fix this problem. Tell us wh Set as default - + Minimize Index: branches/2020Q1/www/chromium/files/patch-chrome_app_google__chrome__strings.grd =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_app_google__chrome__strings.grd (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_app_google__chrome__strings.grd (revision 523260) @@ -1,29 +1,29 @@ ---- chrome/app/google_chrome_strings.grd.orig 2019-10-21 19:06:20 UTC +--- chrome/app/google_chrome_strings.grd.orig 2019-12-16 21:51:22 UTC +++ chrome/app/google_chrome_strings.grd -@@ -706,7 +706,7 @@ Signing in anyway will merge Chrome information like b +@@ -614,7 +614,7 @@ Google Chrome is unable to recover your settings. - + Your system administrator has configured Google Chrome to open an alternative browser to access $1example.com. -@@ -837,7 +837,7 @@ Signing in anyway will merge Chrome information like b +@@ -725,7 +725,7 @@ Google Chrome is unable to recover your settings. - + 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. -@@ -1088,7 +1088,7 @@ Signing in anyway will merge Chrome information like b +@@ -965,7 +965,7 @@ Google Chrome is unable to recover your settings. - + Restart Chrome to enable $1Flash Index: branches/2020Q1/www/chromium/files/patch-chrome_app_settings__strings.grdp =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_app_settings__strings.grdp (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_app_settings__strings.grdp (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/app/settings_strings.grdp.orig 2019-10-21 19:06:20 UTC +--- chrome/app/settings_strings.grdp.orig 2019-12-16 21:51:23 UTC +++ chrome/app/settings_strings.grdp -@@ -757,7 +757,7 @@ +@@ -760,7 +760,7 @@ Themes - + GTK+ -@@ -771,7 +771,7 @@ +@@ -774,7 +774,7 @@ Use Classic - + Reset to default Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_about__flags.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_about__flags.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_about__flags.cc (revision 523260) @@ -1,285 +1,252 @@ ---- chrome/browser/about_flags.cc.orig 2019-10-21 19:06:20 UTC +--- chrome/browser/about_flags.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/about_flags.cc -@@ -162,7 +162,7 @@ +@@ -164,7 +164,7 @@ #include "ui/gl/gl_switches.h" #include "ui/native_theme/native_theme_features.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "base/allocator/buildflags.h" #endif -@@ -716,7 +716,7 @@ const FeatureEntry::FeatureVariation +@@ -715,7 +715,7 @@ const FeatureEntry::FeatureVariation nullptr}}; #endif // 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) const FeatureEntry::FeatureParam kAutofillSaveCreditCardUsesImprovedMessagingStoreCard[] = { {autofill::features:: -@@ -763,7 +763,7 @@ const FeatureEntry::FeatureVariation +@@ -762,7 +762,7 @@ const FeatureEntry::FeatureVariation kAutofillSaveCreditCardUsesImprovedMessagingConfirmAndSaveCard), nullptr}, }; -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) const FeatureEntry::Choice kMemlogModeChoices[] = { {flags_ui::kGenericExperimentChoiceDisabled, "", ""}, -@@ -816,7 +816,7 @@ const FeatureEntry::Choice kMemlogSamplingRateChoices[ +@@ -815,7 +815,7 @@ const FeatureEntry::Choice kMemlogSamplingRateChoices[ heap_profiling::kMemlogSamplingRate5MB}, }; -#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 kOmniboxDocumentProviderServerScoring[] = { {"DocumentUseServerScore", "true"}, {"DocumentUseClientScore", "false"}, -@@ -854,7 +854,7 @@ const FeatureEntry::FeatureVariation kOmniboxDocumentP +@@ -853,7 +853,7 @@ const FeatureEntry::FeatureVariation kOmniboxDocumentP base::size(kOmniboxDocumentProviderClientScoring), nullptr}, {"server and client scores", kOmniboxDocumentProviderServerAndClientScoring, base::size(kOmniboxDocumentProviderServerAndClientScoring), 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::FeatureParam kOmniboxOnFocusSuggestionsParamNTPOmnibox[] = { - {"ZeroSuggestVariant:7:*", ZeroSuggestProvider::kRemoteNoUrlVariant}}; -@@ -932,7 +932,7 @@ const FeatureEntry::FeatureVariation kOmniboxMaxURLMat + #ifdef OS_ANDROID + const FeatureEntry::FeatureParam kOmniboxNTPZPSLocal[] = { +@@ -967,7 +967,7 @@ const FeatureEntry::FeatureVariation kOmniboxMaxURLMat {"6 matches", kOmniboxMaxURLMatches6, base::size(kOmniboxMaxURLMatches6), nullptr}}; -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || \ +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) || \ defined(OS_CHROMEOS) const FeatureEntry::FeatureParam kTranslateBubbleUIButton[] = { {language::kTranslateUIBubbleKey, language::kTranslateUIBubbleButtonValue}}; -@@ -948,7 +948,7 @@ const FeatureEntry::FeatureVariation kTranslateBubbleU +@@ -983,7 +983,7 @@ const FeatureEntry::FeatureVariation kTranslateBubbleU {"Tab", kTranslateBubbleUITab, base::size(kTranslateBubbleUITab), nullptr}, {"Button_GM2", kTranslateBubbleUIButtonGM2, base::size(kTranslateBubbleUIButton), nullptr}}; -#endif // OS_LINUX || OS_MACOSX || OS_WIN || OS_CHROMEOS +#endif // OS_LINUX || OS_MACOSX || OS_WIN || OS_BSD || OS_CHROMEOS const FeatureEntry::FeatureParam kMarkHttpAsDangerous[] = { {security_state::features::kMarkHttpAsFeatureParameterName, -@@ -1849,13 +1849,13 @@ const FeatureEntry kFeatureEntries[] = { +@@ -1913,13 +1913,13 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kCloudPrintXpsDescription, kOsWin, SINGLE_VALUE_TYPE(switches::kEnableCloudPrintXps)}, #endif // OS_WIN -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) {"enable-webgl2-compute-context", flag_descriptions::kWebGL2ComputeContextName, flag_descriptions::kWebGL2ComputeContextDescription, kOsWin | kOsLinux | kOsCrOS, SINGLE_VALUE_TYPE(switches::kEnableWebGL2ComputeContext)}, -#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) +#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) {"enable-webgl-draft-extensions", flag_descriptions::kWebglDraftExtensionsName, flag_descriptions::kWebglDraftExtensionsDescription, kOsAll, -@@ -1904,14 +1904,14 @@ const FeatureEntry kFeatureEntries[] = { +@@ -1971,14 +1971,14 @@ const FeatureEntry kFeatureEntries[] = { "OverrideTranslateTriggerInIndia")}, #endif // OS_ANDROID -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || \ +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) || \ defined(OS_CHROMEOS) {"translate-ui-bubble-options", flag_descriptions::kTranslateBubbleUIName, flag_descriptions::kTranslateBubbleUIDescription, kOsDesktop, FEATURE_WITH_PARAMS_VALUE_TYPE(language::kUseButtonTranslateBubbleUi, kTranslateBubbleUIVariations, "UseButtonTranslateBubbleUI")}, -#endif // OS_LINUX || OS_MACOSX || OS_WIN || OS_CHROMEOS +#endif // OS_LINUX || OS_MACOSX || OS_WIN || OS_CHROMEOS || OS_BSD #if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) && !defined(OS_CHROMEOS) {"enable-native-notifications", -@@ -1983,7 +1983,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -2044,7 +2044,7 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kCrostiniBackupDescription, kOsCrOS, FEATURE_VALUE_TYPE(chromeos::features::kCrostiniBackup)}, #endif // OS_CHROMEOS -#if defined(OS_CHROMEOS) || defined(OS_LINUX) +#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD) {"terminal-system-app", flag_descriptions::kTerminalSystemAppName, flag_descriptions::kTerminalSystemAppDescription, kOsCrOS | kOsLinux, FEATURE_VALUE_TYPE(features::kTerminalSystemApp)}, -@@ -1992,7 +1992,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -2053,7 +2053,7 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kDynamicTcmallocDescription, kOsCrOS | kOsLinux, FEATURE_VALUE_TYPE(performance_manager::features::kDynamicTcmallocTuning)}, #endif // BUILDFLAG(USE_TCMALLOC) -#endif // OS_CHROMEOS || OS_LINUX +#endif // OS_CHROMEOS || OS_LINUX || defined(OS_BSD) #if defined(OS_ANDROID) {"enable-credit-card-assist", flag_descriptions::kCreditCardAssistName, flag_descriptions::kCreditCardAssistDescription, kOsAndroid, -@@ -2075,7 +2075,7 @@ const FeatureEntry kFeatureEntries[] = { - FEATURE_VALUE_TYPE( - previews::features::kHTTPSServerPreviewsUsingURLLoader)}, +@@ -2131,7 +2131,7 @@ const FeatureEntry kFeatureEntries[] = { + flag_descriptions::kEnableLitePageServerPreviewsDescription, kOsAndroid, + FEATURE_VALUE_TYPE(previews::features::kLitePageServerPreviews)}, #endif // OS_ANDROID -#if defined(OS_CHROMEOS) || defined(OS_LINUX) +#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD) {"enable-save-data", flag_descriptions::kEnableSaveDataName, flag_descriptions::kEnableSaveDataDescription, kOsCrOS, SINGLE_VALUE_TYPE( -@@ -2427,12 +2427,12 @@ const FeatureEntry kFeatureEntries[] = { - "AndroidNightMode")}, - #endif // BUILDFLAG(ENABLE_ANDROID_NIGHT_MODE) - #endif // OS_ANDROID --#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - {"enable-dbus-and-x11-status-icons", - flag_descriptions::kEnableDbusAndX11StatusIconsName, - flag_descriptions::kEnableDbusAndX11StatusIconsDescription, kOsLinux, - FEATURE_VALUE_TYPE(features::kEnableDbusAndX11StatusIcons)}, --#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#endif // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - {"enable-experimental-accessibility-features", - flag_descriptions::kExperimentalAccessibilityFeaturesName, - flag_descriptions::kExperimentalAccessibilityFeaturesDescription, kOsCrOS, -@@ -2752,7 +2752,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -2810,7 +2810,7 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kOmniboxLocalEntitySuggestionsDescription, kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kOmniboxLocalEntitySuggestions)}, -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) {"omnibox-experimental-keyword-mode", flag_descriptions::kOmniboxExperimentalKeywordModeName, flag_descriptions::kOmniboxExperimentalKeywordModeDescription, kOsDesktop, -@@ -2806,7 +2806,7 @@ const FeatureEntry kFeatureEntries[] = { - FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kDocumentProvider, - kOmniboxDocumentProviderVariations, - "OmniboxBundledExperimentV1")}, +@@ -2850,7 +2850,7 @@ const FeatureEntry kFeatureEntries[] = { + flag_descriptions::kOmniboxAutocompleteTitlesName, + flag_descriptions::kOmniboxAutocompleteTitlesDescription, kOsDesktop, + FEATURE_VALUE_TYPE(omnibox::kAutocompleteTitles)}, -#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) {"enable-speculative-service-worker-start-on-query-input", flag_descriptions::kSpeculativeServiceWorkerStartOnQueryInputName, -@@ -3026,13 +3026,13 @@ const FeatureEntry kFeatureEntries[] = { +@@ -3084,13 +3084,13 @@ const FeatureEntry kFeatureEntries[] = { 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)}, -#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) {"chrome-colors", flag_descriptions::kChromeColorsName, -@@ -3729,7 +3729,7 @@ const FeatureEntry kFeatureEntries[] = { - FEATURE_VALUE_TYPE(kClickToCallReceiver)}, - #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) || \ - defined(OS_CHROMEOS) - {"click-to-call-context-menu-selected-text", - flag_descriptions::kClickToCallContextMenuForSelectedTextName, -@@ -3739,7 +3739,7 @@ const FeatureEntry kFeatureEntries[] = { - {"click-to-call-ui", flag_descriptions::kClickToCallUIName, - flag_descriptions::kClickToCallUIDescription, kOsDesktop, - FEATURE_VALUE_TYPE(kClickToCallUI)}, --#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || -+#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || - // defined(OS_CHROMEOS) - - {"shared-clipboard-receiver", -@@ -3859,13 +3859,13 @@ const FeatureEntry kFeatureEntries[] = { +@@ -3889,13 +3889,13 @@ const FeatureEntry kFeatureEntries[] = { FEATURE_VALUE_TYPE(printing::features::kEnableCustomMacPaperSizes)}, #endif -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ defined(OS_CHROMEOS) {"enable-reopen-tab-in-product-help", flag_descriptions::kReopenTabInProductHelpName, flag_descriptions::kReopenTabInProductHelpDescription, kOsDesktop, FEATURE_VALUE_TYPE(feature_engagement::kIPHReopenTabFeature)}, -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || // defined(OS_CHROMEOS) {"enable-audio-focus-enforcement", -@@ -4245,7 +4245,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -4269,7 +4269,7 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kAudioWorkletRealtimeThreadDescription, kOsAll, FEATURE_VALUE_TYPE(blink::features::kAudioWorkletRealtimeThread)}, -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) {"enable-autofill-save-credit-card-uses-improved-messaging", flag_descriptions::kEnableAutofillSaveCreditCardUsesImprovedMessagingName, flag_descriptions:: -@@ -4255,7 +4255,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -4279,7 +4279,7 @@ const FeatureEntry kFeatureEntries[] = { autofill::features::kAutofillSaveCreditCardUsesImprovedMessaging, kAutofillSaveCreditCardUsesImprovedMessagingVariations, "AutofillSaveCreditCardUsesImprovedMessaging")}, -#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_CHROMEOS) {"release-notes", flag_descriptions::kReleaseNotesName, -@@ -4337,12 +4337,12 @@ const FeatureEntry kFeatureEntries[] = { +@@ -4367,12 +4367,12 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kEnableSyncUSSNigoriDescription, kOsAll, FEATURE_VALUE_TYPE(switches::kSyncUSSNigori)}, -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) {"global-media-controls", flag_descriptions::kGlobalMediaControlsName, flag_descriptions::kGlobalMediaControlsDescription, kOsWin | kOsMac | kOsLinux, FEATURE_VALUE_TYPE(media::kGlobalMediaControls)}, -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) #if BUILDFLAG(ENABLE_SPELLCHECK) && defined(OS_WIN) {"win-use-native-spellchecker", -@@ -4355,12 +4355,12 @@ const FeatureEntry kFeatureEntries[] = { +@@ -4385,12 +4385,12 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kSafetyTipDescription, kOsAll, - FEATURE_VALUE_TYPE(features::kSafetyTipUI)}, + FEATURE_VALUE_TYPE(security_state::features::kSafetyTipUI)}, -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) {"animated-avatar-button", flag_descriptions::kAnimatedAvatarButtonName, flag_descriptions::kAnimatedAvatarButtonDescription, kOsWin | kOsMac | kOsLinux, FEATURE_VALUE_TYPE(features::kAnimatedAvatarButton)}, -#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_CHROMEOS) {"crostini-webui-installer", flag_descriptions::kCrostiniWebUIInstallerName, -@@ -4484,12 +4484,12 @@ const FeatureEntry kFeatureEntries[] = { - flag_descriptions::kBundledHTTPExchangesDescription, kOsAll, - FEATURE_VALUE_TYPE(features::kBundledHTTPExchanges)}, +@@ -4526,12 +4526,12 @@ const FeatureEntry kFeatureEntries[] = { + chrome::android::kDarkenWebsitesCheckboxInThemesSetting)}, + #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) {"profile-menu-revamp", flag_descriptions::kProfileMenuRevampName, flag_descriptions::kProfileMenuRevampDescription, kOsWin | kOsMac | kOsLinux, FEATURE_VALUE_TYPE(features::kProfileMenuRevamp)}, -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) {"password-leak-detection", flag_descriptions::kPasswordLeakDetectionName, flag_descriptions::kPasswordLeakDetectionDescription, kOsAll, -@@ -4543,11 +4543,11 @@ const FeatureEntry kFeatureEntries[] = { - FEATURE_VALUE_TYPE(content_settings::kImprovedCookieControls)}, +@@ -4605,11 +4605,11 @@ const FeatureEntry kFeatureEntries[] = { + content_settings::kImprovedCookieControlsForThirdPartyCookieBlocking)}, #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) {"sync-clipboard-service", flag_descriptions::kSyncClipboardServiceName, flag_descriptions::kSyncClipboardServiceDescription, kOsDesktop, FEATURE_VALUE_TYPE(features::kSyncClipboardServiceFeature)}, -#endif // OS_WIN || OS_MACOSX || OS_LINUX +#endif // OS_WIN || OS_MACOSX || OS_LINUX || defined(OS_BSD) - #if defined(OS_ANDROID) - {"enable-clipboard-provider-text-suggestions", + #if !defined(OS_ANDROID) + {"accessibility-internals-page-improvements", Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_after__startup__task__utils.cc (revision 523260) @@ -1,38 +1,38 @@ ---- chrome/browser/after_startup_task_utils.cc.orig 2019-07-24 18:58:07 UTC +--- chrome/browser/after_startup_task_utils.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/after_startup_task_utils.cc -@@ -32,7 +32,7 @@ +@@ -33,7 +33,7 @@ #include "chrome/browser/ui/tabs/tab_strip_model.h" #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) #include "ui/views/linux_ui/linux_ui.h" #endif -@@ -118,7 +118,7 @@ void QueueTask(std::unique_ptr queue +@@ -119,7 +119,7 @@ void QueueTask(std::unique_ptr queue 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) // Process::Current().CreationTime() is not available on all platforms. const base::Time process_creation_time = base::Process::Current().CreationTime(); -@@ -126,7 +126,7 @@ void SetBrowserStartupIsComplete() { +@@ -127,7 +127,7 @@ void SetBrowserStartupIsComplete() { 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(); -@@ -135,7 +135,7 @@ void SetBrowserStartupIsComplete() { +@@ -136,7 +136,7 @@ void SetBrowserStartupIsComplete() { g_after_startup_tasks.Get().clear(); g_after_startup_tasks.Get().shrink_to_fit(); -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) // Make sure we complete the startup notification sequence, or launchers will // get confused by not receiving the expected message from the main process. views::LinuxUI* linux_ui = views::LinuxUI::instance(); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_background_background__mode__manager.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_background_background__mode__manager.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_background_background__mode__manager.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/background/background_mode_manager.cc.orig 2019-10-21 19:06:20 UTC +--- chrome/browser/background/background_mode_manager.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/background/background_mode_manager.cc -@@ -769,7 +769,7 @@ gfx::ImageSkia GetStatusTrayIcon() { +@@ -770,7 +770,7 @@ gfx::ImageSkia GetStatusTrayIcon() { return gfx::ImageSkia(); return family->CreateExact(size).AsImageSkia(); -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) return *ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed( IDR_PRODUCT_LOGO_128); #elif defined(OS_MACOSX) Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_browser__resources.grd =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_browser__resources.grd (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_browser__resources.grd (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/browser_resources.grd.orig 2019-10-21 19:06:20 UTC +--- chrome/browser/browser_resources.grd.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/browser_resources.grd -@@ -106,7 +106,7 @@ +@@ -108,7 +108,7 @@ + - - + - - - -@@ -561,7 +561,7 @@ + + + +@@ -550,7 +550,7 @@ - + - + Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc (revision 523260) @@ -1,75 +1,66 @@ ---- chrome/browser/chrome_browser_main.cc.orig 2019-10-21 19:06:20 UTC +--- chrome/browser/chrome_browser_main.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/chrome_browser_main.cc -@@ -222,9 +222,9 @@ +@@ -220,9 +220,9 @@ #include "components/arc/metrics/stability_metrics_manager.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) +#endif // (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) #if defined(OS_LINUX) #include "components/crash/content/app/breakpad_linux.h" -@@ -261,7 +261,7 @@ +@@ -260,7 +260,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" #include "chrome/browser/profiles/profile_activity_metrics_recorder.h" #endif -@@ -1075,7 +1075,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { +@@ -1071,7 +1071,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { 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 . -@@ -1084,14 +1084,14 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { +@@ -1080,7 +1080,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { &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 -@@ -1121,7 +1121,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { +@@ -1119,7 +1119,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { } #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(); ProfileActivityMetricsRecorder::Initialize(); #endif -@@ -1280,6 +1280,7 @@ void ChromeBrowserMainParts::PostBrowserStart() { +@@ -1274,6 +1274,7 @@ void ChromeBrowserMainParts::PostBrowserStart() { base::TimeDelta::FromMinutes(1)); #if !defined(OS_ANDROID) +#if !defined(OS_BSD) if (base::FeatureList::IsEnabled(features::kWebUsb)) { web_usb_detector_.reset(new WebUsbDetector()); base::PostTask( -@@ -1288,6 +1289,7 @@ void ChromeBrowserMainParts::PostBrowserStart() { +@@ -1282,6 +1283,7 @@ void ChromeBrowserMainParts::PostBrowserStart() { 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: branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__browser__main__linux.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__browser__main__linux.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__browser__main__linux.cc (revision 523260) @@ -1,27 +1,29 @@ ---- chrome/browser/chrome_browser_main_linux.cc.orig 2019-10-21 19:06:20 UTC +--- chrome/browser/chrome_browser_main_linux.cc.orig 2019-12-16 21:50:42 UTC +++ chrome/browser/chrome_browser_main_linux.cc -@@ -91,12 +91,14 @@ void ChromeBrowserMainPartsLinux::PreProfileInit() { +@@ -81,14 +81,16 @@ void ChromeBrowserMainPartsLinux::PreProfileInit() { void ChromeBrowserMainPartsLinux::PostProfileInit() { ChromeBrowserMainPartsPosix::PostProfileInit(); +#if !defined(OS_BSD) - g_browser_process->metrics_service()->RecordBreakpadRegistration( - breakpad::IsCrashReporterEnabled()); + bool enabled = (crash_reporter::IsCrashpadEnabled() && + crash_reporter::GetUploadsEnabled()) || + breakpad::IsCrashReporterEnabled(); + g_browser_process->metrics_service()->RecordBreakpadRegistration(enabled); +#endif } void ChromeBrowserMainPartsLinux::PostMainMessageLoopStart() { -#if !defined(OS_CHROMEOS) +#if !defined(OS_CHROMEOS) && !defined(OS_BSD) bluez::BluezDBusManager::Initialize(nullptr /* system_bus */); #endif -@@ -104,7 +106,7 @@ void ChromeBrowserMainPartsLinux::PostMainMessageLoopS +@@ -96,7 +98,7 @@ void ChromeBrowserMainPartsLinux::PostMainMessageLoopS } void ChromeBrowserMainPartsLinux::PostDestroyThreads() { -#if !defined(OS_CHROMEOS) +#if !defined(OS_CHROMEOS) && !defined(OS_BSD) bluez::BluezDBusManager::Shutdown(); bluez::BluezDBusThreadManager::Shutdown(); #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc (revision 523260) @@ -1,83 +1,101 @@ ---- chrome/browser/chrome_content_browser_client.cc.orig 2019-10-21 19:06:20 UTC +--- chrome/browser/chrome_content_browser_client.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/chrome_content_browser_client.cc -@@ -403,7 +403,7 @@ +@@ -388,7 +388,7 @@ #include "components/user_manager/user.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" -@@ -459,7 +459,7 @@ +@@ -442,7 +442,7 @@ #endif // !defined(OS_ANDROID) #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/browser_switcher/browser_switcher_navigation_throttle.h" + #include "services/service_manager/sandbox/features.h" #endif - -@@ -485,7 +485,7 @@ +@@ -475,7 +475,7 @@ #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) #if defined(USE_X11) #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux_x11.h" #else -@@ -1199,7 +1199,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( +@@ -1193,7 +1193,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( #elif defined(OS_CHROMEOS) main_parts = std::make_unique( parameters, startup_data_); -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) main_parts = std::make_unique(parameters, startup_data_); #elif defined(OS_ANDROID) -@@ -1225,7 +1225,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( +@@ -1219,7 +1219,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( // 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) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) #if defined(USE_X11) main_parts->AddParts(new ChromeBrowserMainExtraPartsViewsLinuxX11()); #else -@@ -2028,7 +2028,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin +@@ -1955,7 +1955,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin command_line->AppendSwitchASCII(switches::kMetricsClientID, client_info->client_id); } -#elif defined(OS_POSIX) +#elif defined(OS_POSIX) && !defined(OS_BSD) #if defined(OS_ANDROID) bool enable_crash_reporter = true; #else -@@ -2266,7 +2266,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin +@@ -2212,7 +2212,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin StackSamplingConfiguration::Get()->AppendCommandLineSwitchForChildProcess( process_type, command_line); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Processes may only query perf_event_open with the BPF sandbox disabled. if (browser_command_line.HasSwitch(switches::kEnableThreadInstructionCount) && command_line->HasSwitch(service_manager::switches::kNoSandbox)) { -@@ -3574,7 +3574,7 @@ void ChromeContentBrowserClient::GetAdditionalFileSyst +@@ -3526,7 +3526,7 @@ void ChromeContentBrowserClient::GetAdditionalFileSyst } } -#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, -@@ -4244,7 +4244,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati +@@ -3666,7 +3666,7 @@ void ChromeContentBrowserClient::BindCredentialManager + } + + #if defined(OS_WIN) || defined(OS_MACOSX) || \ +- (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++ (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + bool ShouldEnableAudioSandbox(const policy::PolicyMap& policies) { + const base::Value* audio_sandbox_enabled_policy_value = + policies.GetValue(policy::key::kAudioSandboxEnabled); +@@ -3684,7 +3684,7 @@ bool ShouldEnableAudioSandbox(const policy::PolicyMap& + + void ChromeContentBrowserClient::WillStartServiceManager() { + #if defined(OS_WIN) || defined(OS_MACOSX) || \ +- (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++ (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + if (startup_data_) { + auto* chrome_feature_list_creator = + startup_data_->chrome_feature_list_creator(); +@@ -3977,7 +3977,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati } #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - std::unique_ptr browser_switcher_throttle = - browser_switcher::BrowserSwitcherNavigationThrottle :: - MaybeCreateThrottleFor(handle); + MaybeAddThrottle(&throttles, + browser_switcher::BrowserSwitcherNavigationThrottle:: + MaybeCreateThrottleFor(handle)); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h (revision 523260) @@ -1,17 +1,17 @@ ---- chrome/browser/chrome_content_browser_client.h.orig 2019-10-21 19:06:20 UTC +--- chrome/browser/chrome_content_browser_client.h.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/chrome_content_browser_client.h -@@ -360,12 +360,12 @@ class ChromeContentBrowserClient : public content::Con +@@ -367,12 +367,12 @@ class ChromeContentBrowserClient : public content::Con void OverridePageVisibilityState( content::RenderFrameHost* render_frame_host, content::PageVisibilityState* visibility_state) 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, content::PosixFileDescriptorInfo* mappings) override; -#endif // defined(OS_POSIX) && !defined(OS_MACOSX) +#endif // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD) #if defined(OS_WIN) bool PreSpawnRenderer(sandbox::TargetPolicy* policy, RendererSpawnFlags flags) override; Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_crash__upload__list_crash__upload__list.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_crash__upload__list_crash__upload__list.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_crash__upload__list_crash__upload__list.cc (revision 523260) @@ -0,0 +1,11 @@ +--- chrome/browser/crash_upload_list/crash_upload_list.cc.orig 2019-12-31 13:55:02 UTC ++++ chrome/browser/crash_upload_list/crash_upload_list.cc +@@ -38,7 +38,7 @@ scoped_refptr CreateCrashUploadList() { + // ChromeOS uses crash_sender as its uploader even when Crashpad is enabled, + // which isn't compatible with CrashUploadListCrashpad. crash_sender continues + // to log uploads in CrashUploadList::kReporterLogFilename. +-#if !defined(OS_CHROMEOS) ++#if !defined(OS_CHROMEOS) && !defined(OS_BSD) + if (crash_reporter::IsCrashpadEnabled()) { + return new CrashUploadListCrashpad(); + } Property changes on: branches/2020Q1/www/chromium/files/patch-chrome_browser_crash__upload__list_crash__upload__list.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: branches/2020Q1/www/chromium/files/patch-chrome_browser_crash__upload__list_crash__upload__list__crashpad.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_crash__upload__list_crash__upload__list__crashpad.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_crash__upload__list_crash__upload__list__crashpad.cc (revision 523260) @@ -0,0 +1,31 @@ +--- chrome/browser/crash_upload_list/crash_upload_list_crashpad.cc.orig 2019-12-31 13:56:21 UTC ++++ chrome/browser/crash_upload_list/crash_upload_list_crashpad.cc +@@ -42,6 +42,9 @@ CrashUploadListCrashpad::CrashUploadListCrashpad() = d + CrashUploadListCrashpad::~CrashUploadListCrashpad() = default; + + std::vector CrashUploadListCrashpad::LoadUploadList() { ++#if defined(OS_BSD) ++ return std::vector(); ++#else + std::vector reports; + crash_reporter::GetReports(&reports); + +@@ -53,13 +56,18 @@ std::vector CrashUploadListCra + ReportUploadStateToUploadInfoState(report.state))); + } + return uploads; ++#endif + } + + void CrashUploadListCrashpad::ClearUploadList(const base::Time& begin, + const base::Time& end) { ++#if !defined(OS_BSD) + crash_reporter::ClearReportsBetween(begin, end); ++#endif + } + + void CrashUploadListCrashpad::RequestSingleUpload(const std::string& local_id) { ++#if !defined(OS_BSD) + crash_reporter::RequestSingleCrashUpload(local_id); ++#endif + } Property changes on: branches/2020Q1/www/chromium/files/patch-chrome_browser_crash__upload__list_crash__upload__list__crashpad.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: branches/2020Q1/www/chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_download_chrome__download__manager__delegate.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/download/chrome_download_manager_delegate.cc.orig 2019-10-21 19:06:21 UTC +--- chrome/browser/download/chrome_download_manager_delegate.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/download/chrome_download_manager_delegate.cc -@@ -1257,7 +1257,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe +@@ -1234,7 +1234,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe target_info->is_filetype_handled_safely) DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (item->GetOriginalMimeType() == "application/x-x509-user-cert") DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true); #endif -@@ -1287,7 +1287,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe +@@ -1258,7 +1258,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe bool ChromeDownloadManagerDelegate::IsOpenInBrowserPreferreredForFile( const base::FilePath& path) { -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) if (path.MatchesExtension(FILE_PATH_LITERAL(".pdf"))) { return !download_prefs_->ShouldOpenPdfInSystemReader(); } Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__commands.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__commands.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__commands.cc (revision 523260) @@ -1,35 +1,35 @@ ---- chrome/browser/download/download_commands.cc.orig 2019-07-24 18:58:09 UTC +--- chrome/browser/download/download_commands.cc.orig 2019-12-16 21:50:42 UTC +++ chrome/browser/download/download_commands.cc -@@ -30,7 +30,7 @@ +@@ -26,7 +26,7 @@ #include "net/base/url_util.h" #include "ui/base/clipboard/scoped_clipboard_writer.h" -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_finder.h" #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" -@@ -157,7 +157,7 @@ void DownloadCommands::ExecuteCommand(Command command) +@@ -153,7 +153,7 @@ void DownloadCommands::ExecuteCommand(Command command) model_->ExecuteCommand(this, command); } -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) Browser* DownloadCommands::GetBrowser() const { chrome::ScopedTabbedBrowserDisplayer browser_displayer(model_->profile()); -@@ -180,12 +180,12 @@ bool DownloadCommands::CanOpenPdfInSystemViewer() cons +@@ -176,12 +176,12 @@ bool DownloadCommands::CanOpenPdfInSystemViewer() cons return IsDownloadPdf() && (IsAdobeReaderDefaultPDFViewer() ? is_adobe_pdf_reader_up_to_date : true); -#elif defined(OS_MACOSX) || defined(OS_LINUX) +#elif defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) return IsDownloadPdf(); #endif } -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) void DownloadCommands::CopyFileAsImageToClipboard() { if (model_->GetState() != download::DownloadItem::COMPLETE || Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__item__model.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__item__model.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__item__model.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/download/download_item_model.cc.orig 2019-10-21 19:06:21 UTC +--- chrome/browser/download/download_item_model.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/download/download_item_model.cc -@@ -565,7 +565,7 @@ bool DownloadItemModel::IsCommandChecked( +@@ -575,7 +575,7 @@ bool DownloadItemModel::IsCommandChecked( 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(); -@@ -602,7 +602,7 @@ void DownloadItemModel::ExecuteCommand(DownloadCommand +@@ -612,7 +612,7 @@ void DownloadItemModel::ExecuteCommand(DownloadCommand 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); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__prefs.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__prefs.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__prefs.cc (revision 523260) @@ -1,65 +1,65 @@ ---- chrome/browser/download/download_prefs.cc.orig 2019-06-04 18:55:17 UTC +--- chrome/browser/download/download_prefs.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/download/download_prefs.cc -@@ -62,7 +62,7 @@ namespace { +@@ -63,7 +63,7 @@ namespace { // Consider downloads 'dangerous' if they go to the home directory on Linux and // to the desktop on any platform. bool DownloadPathIsDangerous(const base::FilePath& download_path) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) base::FilePath home_dir = base::GetHomeDir(); if (download_path == home_dir) { return true; -@@ -155,7 +155,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profi +@@ -159,7 +159,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profi GetDefaultDownloadDirectoryForProfile())); #endif // defined(OS_CHROMEOS) -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) should_open_pdf_in_system_reader_ = prefs->GetBoolean(prefs::kOpenPdfDownloadInSystemReader); #endif -@@ -257,7 +257,7 @@ void DownloadPrefs::RegisterProfilePrefs( +@@ -261,7 +261,7 @@ void DownloadPrefs::RegisterProfilePrefs( default_download_path); registry->RegisterFilePathPref(prefs::kSaveFileDefaultDirectory, default_download_path); -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) registry->RegisterBooleanPref(prefs::kOpenPdfDownloadInSystemReader, false); #endif #if defined(OS_ANDROID) -@@ -354,7 +354,7 @@ bool DownloadPrefs::IsDownloadPathManaged() const { +@@ -358,7 +358,7 @@ bool DownloadPrefs::IsDownloadPathManaged() const { } bool DownloadPrefs::IsAutoOpenUsed() const { -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) if (ShouldOpenPdfInSystemReader()) return true; #endif -@@ -368,7 +368,7 @@ bool DownloadPrefs::IsAutoOpenEnabledBasedOnExtension( +@@ -372,7 +372,7 @@ bool DownloadPrefs::IsAutoOpenEnabledBasedOnExtension( return false; DCHECK(extension[0] == base::FilePath::kExtensionSeparator); extension.erase(0, 1); -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) if (base::FilePath::CompareEqualIgnoreCase(extension, FILE_PATH_LITERAL("pdf")) && ShouldOpenPdfInSystemReader()) -@@ -405,7 +405,7 @@ void DownloadPrefs::DisableAutoOpenBasedOnExtension( +@@ -409,7 +409,7 @@ void DownloadPrefs::DisableAutoOpenBasedOnExtension( SaveAutoOpenState(); } -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) void DownloadPrefs::SetShouldOpenPdfInSystemReader(bool should_open) { if (should_open_pdf_in_system_reader_ == should_open) return; -@@ -426,7 +426,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons +@@ -430,7 +430,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons #endif void DownloadPrefs::ResetAutoOpen() { -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) SetShouldOpenPdfInSystemReader(false); #endif auto_open_.clear(); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/download/download_shelf_context_menu.cc.orig 2019-03-11 22:00:53 UTC +--- chrome/browser/download/download_shelf_context_menu.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/download/download_shelf_context_menu.cc -@@ -127,7 +127,7 @@ base::string16 DownloadShelfContextMenu::GetLabelForCo +@@ -135,7 +135,7 @@ base::string16 DownloadShelfContextMenu::GetLabelForCo : IDS_DOWNLOAD_MENU_PLATFORM_OPEN_ALWAYS; break; } -#elif defined(OS_MACOSX) || defined(OS_LINUX) +#elif defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) if (can_open_pdf_in_system_viewer) { id = IDS_DOWNLOAD_MENU_PLATFORM_OPEN_ALWAYS; break; Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn (revision 523260) @@ -1,15 +1,15 @@ ---- chrome/browser/extensions/BUILD.gn.orig 2019-10-21 19:06:21 UTC +--- chrome/browser/extensions/BUILD.gn.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/extensions/BUILD.gn -@@ -1128,6 +1128,12 @@ jumbo_static_library("extensions") { +@@ -1135,6 +1135,12 @@ jumbo_static_library("extensions") { deps += [ "//chrome/common:service_process_mojom" ] } + if (is_bsd) { + sources -= [ + "api/image_writer_private/removable_storage_provider_linux.cc", + ] + } + if (enable_service_discovery) { sources += [ "api/mdns/mdns_api.cc", Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_activity__log_activity__log.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_activity__log_activity__log.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_activity__log_activity__log.cc (revision 523260) @@ -1,14 +1,14 @@ ---- chrome/browser/extensions/activity_log/activity_log.cc.orig 2019-10-21 19:06:21 UTC +--- chrome/browser/extensions/activity_log/activity_log.cc.orig 2019-12-16 21:50:42 UTC +++ chrome/browser/extensions/activity_log/activity_log.cc -@@ -54,7 +54,11 @@ +@@ -47,7 +47,11 @@ #include "extensions/browser/extensions_browser_client.h" #include "extensions/common/extension.h" #include "extensions/common/extension_messages.h" +#if defined(OS_BSD) +#include +#else #include "third_party/re2/src/re2/re2.h" +#endif #include "url/gurl.h" namespace constants = activity_log_constants; Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig 2019-10-21 19:06:21 UTC +--- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/extensions/api/settings_private/prefs_util.cc -@@ -155,7 +155,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist +@@ -159,7 +159,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist (*s_whitelist)[bookmarks::prefs::kShowBookmarkBar] = settings_api::PrefType::PREF_TYPE_BOOLEAN; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) (*s_whitelist)[::prefs::kUseCustomChromeFrame] = settings_api::PrefType::PREF_TYPE_BOOLEAN; #endif -@@ -165,7 +165,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist +@@ -169,7 +169,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist // Appearance settings. (*s_whitelist)[::prefs::kCurrentThemeID] = settings_api::PrefType::PREF_TYPE_STRING; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) (*s_whitelist)[::prefs::kUsesSystemTheme] = settings_api::PrefType::PREF_TYPE_BOOLEAN; #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_external__provider__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_external__provider__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_extensions_external__provider__impl.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/extensions/external_provider_impl.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/extensions/external_provider_impl.cc.orig 2019-12-16 21:50:42 UTC +++ chrome/browser/extensions/external_provider_impl.cc -@@ -765,7 +765,7 @@ void ExternalProviderImpl::CreateExternalProviders( - chromeos::DemoSession::Get()->SetExtensionsExternalLoader(loader); - provider_list->push_back(std::move(demo_apps_provider)); +@@ -762,7 +762,7 @@ void ExternalProviderImpl::CreateExternalProviders( } --#elif defined(OS_LINUX) -+#elif defined(OS_LINUX) || defined(OS_BSD) - provider_list->push_back(std::make_unique( - service, - base::MakeRefCounted( -@@ -793,7 +793,7 @@ void ExternalProviderImpl::CreateExternalProviders( - bundled_extension_creation_flags)); - - // Define a per-user source of external extensions. --#if defined(OS_MACOSX) || (defined(OS_LINUX) && BUILDFLAG(CHROMIUM_BRANDING)) -+#if defined(OS_MACOSX) || ((defined(OS_LINUX) || defined(OS_BSD)) && BUILDFLAG(CHROMIUM_BRANDING)) + #endif + if (!profile->GetPrefs()->GetBoolean(pref_names::kBlockExternalExtensions)) { +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) provider_list->push_back(std::make_unique( service, base::MakeRefCounted( +@@ -789,7 +789,7 @@ void ExternalProviderImpl::CreateExternalProviders( + bundled_extension_creation_flags)); + + // Define a per-user source of external extensions. +-#if defined(OS_MACOSX) || (defined(OS_LINUX) && BUILDFLAG(CHROMIUM_BRANDING)) ++#if defined(OS_MACOSX) || ((defined(OS_LINUX) || defined(OS_BSD)) && BUILDFLAG(CHROMIUM_BRANDING)) + provider_list->push_back(std::make_unique( + service, + base::MakeRefCounted( Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_flag__descriptions.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_flag__descriptions.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_flag__descriptions.cc (revision 523260) @@ -1,79 +1,54 @@ ---- chrome/browser/flag_descriptions.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/flag_descriptions.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/flag_descriptions.cc -@@ -3632,7 +3632,7 @@ const char kZeroStateFilesDescription[] = +@@ -3744,7 +3744,7 @@ const char kZeroStateFilesDescription[] = #endif // defined(OS_CHROMEOS) -#if defined(OS_CHROMEOS) || defined(OS_LINUX) +#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD) const char kTerminalSystemAppName[] = "Terminal System App"; const char kTerminalSystemAppDescription[] = "Enables the Terminal System App at chrome://terminal which is used for " -@@ -3645,7 +3645,7 @@ const char kDynamicTcmallocDescription[] = +@@ -3757,7 +3757,7 @@ const char kDynamicTcmallocDescription[] = "utilization."; #endif // BUILDFLAG(USE_TCMALLOC) -#endif // #if defined(OS_CHROMEOS) || defined(OS_LINUX) +#endif // #if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD) // All views-based platforms -------------------------------------------------- -@@ -3670,15 +3670,15 @@ const char kReopenTabInProductHelpDescription[] = +@@ -3782,13 +3782,13 @@ const char kReopenTabInProductHelpDescription[] = // Random platform combinations ----------------------------------------------- -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) const char kWebGL2ComputeContextName[] = "WebGL 2.0 Compute"; const char kWebGL2ComputeContextDescription[] = "Enable the use of WebGL 2.0 Compute API."; -#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) +#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ - defined(OS_CHROMEOS) + #if BUILDFLAG(ENABLE_CLICK_TO_CALL) - const char kClickToCallContextMenuForSelectedTextName[] = -@@ -3693,10 +3693,10 @@ const char kClickToCallUIDescription[] = - "Enables click to call feature signals to be handled on desktop by showing " - "a list of user's available devices with telephony functionality."; +@@ -3806,7 +3806,7 @@ const char kClickToCallUIDescription[] = --#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || -+#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || - // defined(OS_CHROMEOS) + #endif // BUILDFLAG(ENABLE_CLICK_TO_CALL) -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) const char kDirectManipulationStylusName[] = "Direct Manipulation Stylus"; const char kDirectManipulationStylusDescription[] = -@@ -3715,7 +3715,7 @@ const char kSyncClipboardServiceName[] = "Sync Clipboa +@@ -3825,7 +3825,7 @@ const char kSyncClipboardServiceName[] = "Sync Clipboa const char kSyncClipboardServiceDescription[] = "Enables clipboard syncing via Chrome Sync."; -#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_MACOSX) || defined(OS_CHROMEOS) -@@ -3825,7 +3825,7 @@ extern const char kWebrtcPipeWireCapturerDescription[] - - #endif // #if defined(WEBRTC_USE_PIPEWIRE) - --#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - - const char kEnableDbusAndX11StatusIconsName[] = - "Enable DBus and X11 status icons"; -@@ -3834,7 +3834,7 @@ const char kEnableDbusAndX11StatusIconsDescription[] = - "(X11) implementations of status icons. Otherwise, uses libappindicator's " - "and GTK's implementations."; - --#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#endif // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - - const char kAvoidFlashBetweenNavigationName[] = - "Enable flash avoidance between same-origin navigations"; Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_flag__descriptions.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_flag__descriptions.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_flag__descriptions.h (revision 523260) @@ -1,87 +1,65 @@ ---- chrome/browser/flag_descriptions.h.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/flag_descriptions.h.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/flag_descriptions.h @@ -20,9 +20,9 @@ #include "ui/android/buildflags.h" #endif // defined(OS_ANDROID) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "base/allocator/buildflags.h" -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) // This file declares strings used in chrome://flags. These messages are not // translated, because instead of end-users they target Chromium developers and -@@ -2178,7 +2178,7 @@ extern const char kZeroStateFilesDescription[]; +@@ -2233,7 +2233,7 @@ extern const char kZeroStateFilesDescription[]; #endif // #if defined(OS_CHROMEOS) -#if defined(OS_CHROMEOS) || defined(OS_LINUX) +#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD) extern const char kTerminalSystemAppName[]; extern const char kTerminalSystemAppDescription[]; -@@ -2187,7 +2187,7 @@ extern const char kDynamicTcmallocName[]; +@@ -2242,7 +2242,7 @@ extern const char kDynamicTcmallocName[]; extern const char kDynamicTcmallocDescription[]; #endif // BUILDFLAG(USE_TCMALLOC) -#endif // #if defined(OS_CHROMEOS) || defined(OS_LINUX) +#endif // #if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD) // All views-based platforms -------------------------------------------------- -@@ -2206,14 +2206,14 @@ extern const char kReopenTabInProductHelpDescription[] +@@ -2261,12 +2261,12 @@ extern const char kReopenTabInProductHelpDescription[] // Random platform combinations ----------------------------------------------- -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) extern const char kWebGL2ComputeContextName[]; extern const char kWebGL2ComputeContextDescription[]; -#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) +#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ - defined(OS_CHROMEOS) + #if BUILDFLAG(ENABLE_CLICK_TO_CALL) - extern const char kClickToCallContextMenuForSelectedTextName[]; -@@ -2222,10 +2222,10 @@ extern const char kClickToCallContextMenuForSelectedTe - extern const char kClickToCallUIName[]; - extern const char kClickToCallUIDescription[]; +@@ -2278,7 +2278,7 @@ extern const char kClickToCallUIDescription[]; --#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || -+#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || - // defined(OS_CHROMEOS) + #endif // BUILDFLAG(ENABLE_CLICK_TO_CALL) -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) extern const char kDirectManipulationStylusName[]; extern const char kDirectManipulationStylusDescription[]; -@@ -2239,7 +2239,7 @@ extern const char kProfileMenuRevampDescription[]; +@@ -2292,7 +2292,7 @@ extern const char kProfileMenuRevampDescription[]; extern const char kSyncClipboardServiceName[]; extern const char kSyncClipboardServiceDescription[]; -#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_MACOSX) || defined(OS_CHROMEOS) -@@ -2330,12 +2330,12 @@ extern const char kWebrtcPipeWireCapturerDescription[] - - #endif // #if defined(WEBRTC_USE_PIPEWIRE) - --#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - - extern const char kEnableDbusAndX11StatusIconsName[]; - extern const char kEnableDbusAndX11StatusIconsDescription[]; - --#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#endif // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - - // ============================================================================ - // Don't just add flags to the end, put them in the right section in Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_media_webrtc_webrtc__event__log__uploader.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_media_webrtc_webrtc__event__log__uploader.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_media_webrtc_webrtc__event__log__uploader.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/media/webrtc/webrtc_event_log_uploader.cc.orig 2019-03-11 22:00:53 UTC +--- chrome/browser/media/webrtc/webrtc_event_log_uploader.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/media/webrtc/webrtc_event_log_uploader.cc -@@ -36,7 +36,7 @@ constexpr size_t kExpectedMimeOverheadBytes = 1000; / +@@ -37,7 +37,7 @@ constexpr size_t kExpectedMimeOverheadBytes = 1000; / const char kProduct[] = "Chrome"; #elif defined(OS_MACOSX) const char kProduct[] = "Chrome_Mac"; -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) const char kProduct[] = "Chrome_Linux"; #elif defined(OS_ANDROID) const char kProduct[] = "Chrome_Android"; Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc (revision 523260) @@ -1,25 +1,25 @@ ---- chrome/browser/metrics/chrome_metrics_service_client.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/metrics/chrome_metrics_service_client.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/metrics/chrome_metrics_service_client.cc -@@ -721,11 +721,11 @@ void ChromeMetricsServiceClient::RegisterMetricsServic +@@ -704,11 +704,11 @@ void ChromeMetricsServiceClient::RegisterMetricsServic #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) metrics_service_->RegisterMetricsProvider( std::make_unique()); #endif // defined(OS_WIN) || defined(OS_MACOSX) || \ - // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) #if BUILDFLAG(ENABLE_PLUGINS) plugin_metrics_provider_ = new PluginMetricsProvider(local_state); -@@ -974,7 +974,7 @@ bool ChromeMetricsServiceClient::RegisterForProfileEve +@@ -947,7 +947,7 @@ bool ChromeMetricsServiceClient::RegisterForProfileEve } #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) // This creates the DesktopProfileSessionDurationsServices if it didn't exist // already. metrics::DesktopProfileSessionDurationsServiceFactory::GetForBrowserContext( Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_metrics_process__memory__metrics__emitter.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_metrics_process__memory__metrics__emitter.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_metrics_process__memory__metrics__emitter.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/metrics/process_memory_metrics_emitter.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/metrics/process_memory_metrics_emitter.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/metrics/process_memory_metrics_emitter.cc -@@ -378,7 +378,7 @@ void EmitProcessUmaAndUkm(const GlobalMemoryDump::Proc +@@ -375,7 +375,7 @@ void EmitProcessUmaAndUkm(const GlobalMemoryDump::Proc builder->SetPrivateMemoryFootprint(pmd.os_dump().private_footprint_kb / 1024); builder->SetSharedMemoryFootprint(pmd.os_dump().shared_footprint_kb / 1024); -#if defined(OS_LINUX) || defined(OS_ANDROID) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) builder->SetPrivateSwapFootprint(pmd.os_dump().private_footprint_swap_kb / 1024); #endif -@@ -401,7 +401,7 @@ void EmitProcessUmaAndUkm(const GlobalMemoryDump::Proc +@@ -398,7 +398,7 @@ void EmitProcessUmaAndUkm(const GlobalMemoryDump::Proc MEMORY_METRICS_HISTOGRAM_MB(std::string(kMemoryHistogramPrefix) + process_name + ".SharedMemoryFootprint", pmd.os_dump().shared_footprint_kb / 1024); -#if defined(OS_LINUX) || defined(OS_ANDROID) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) MEMORY_METRICS_HISTOGRAM_MB(std::string(kMemoryHistogramPrefix) + process_name + ".PrivateSwapFootprint", pmd.os_dump().private_footprint_swap_kb / 1024); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_native__file__system_chrome__native__file__system__permission__context.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_native__file__system_chrome__native__file__system__permission__context.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_native__file__system_chrome__native__file__system__permission__context.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/native_file_system/chrome_native_file_system_permission_context.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/native_file_system/chrome_native_file_system_permission_context.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/native_file_system/chrome_native_file_system_permission_context.cc -@@ -225,7 +225,7 @@ const struct { +@@ -231,7 +231,7 @@ const struct { {base::DIR_APP_DATA, nullptr, true}, {base::DIR_HOME, FILE_PATH_LITERAL("Library"), true}, #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // On Linux also block access to devices via /dev, as well as security // sensitive data in /sys and /proc. {kNoBasePathKey, FILE_PATH_LITERAL("/dev"), true}, Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_net_system__network__context__manager.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_net_system__network__context__manager.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_net_system__network__context__manager.cc (revision 523260) @@ -1,64 +1,64 @@ ---- chrome/browser/net/system_network_context_manager.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/net/system_network_context_manager.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/net/system_network_context_manager.cc -@@ -78,11 +78,11 @@ +@@ -81,11 +81,11 @@ #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" #endif // defined(OS_CHROMEOS) -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) #include "chrome/common/chrome_paths_internal.h" #include "chrome/grit/chromium_strings.h" #include "ui/base/l10n/l10n_util.h" -#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) +#endif // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) #if BUILDFLAG(ENABLE_EXTENSIONS) #include "extensions/common/constants.h" -@@ -206,10 +206,10 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAut +@@ -209,10 +209,10 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAut auth_dynamic_params->enable_negotiate_port = local_state->GetBoolean(prefs::kEnableAuthNegotiatePort); -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) auth_dynamic_params->delegate_by_kdc_policy = local_state->GetBoolean(prefs::kAuthNegotiateDelegateByKdcPolicy); -#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) #if defined(OS_POSIX) auth_dynamic_params->ntlm_v2_enabled = -@@ -457,10 +457,10 @@ SystemNetworkContextManager::SystemNetworkContextManag +@@ -476,10 +476,10 @@ SystemNetworkContextManager::SystemNetworkContextManag pref_change_registrar_.Add(prefs::kEnableAuthNegotiatePort, auth_pref_callback); -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) pref_change_registrar_.Add(prefs::kAuthNegotiateDelegateByKdcPolicy, auth_pref_callback); -#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) #if defined(OS_POSIX) pref_change_registrar_.Add(prefs::kNtlmV2Enabled, auth_pref_callback); -@@ -509,10 +509,10 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe +@@ -531,10 +531,10 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe registry->RegisterStringPref(prefs::kAuthServerWhitelist, std::string()); registry->RegisterStringPref(prefs::kAuthNegotiateDelegateWhitelist, std::string()); -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) registry->RegisterBooleanPref(prefs::kAuthNegotiateDelegateByKdcPolicy, false); -#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) #if defined(OS_POSIX) registry->RegisterBooleanPref( -@@ -620,7 +620,7 @@ void SystemNetworkContextManager::OnNetworkServiceCrea +@@ -645,7 +645,7 @@ void SystemNetworkContextManager::OnNetworkServiceCrea insecure_stub_resolver_enabled, secure_dns_mode, std::move(dns_over_https_servers)); -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) const base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess(); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc (revision 523260) @@ -1,14 +1,14 @@ ---- chrome/browser/password_manager/chrome_password_manager_client.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/password_manager/chrome_password_manager_client.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/password_manager/chrome_password_manager_client.cc -@@ -84,7 +84,11 @@ +@@ -85,7 +85,11 @@ #include "net/base/url_util.h" #include "net/cert/cert_status_flags.h" #include "services/metrics/public/cpp/ukm_recorder.h" +#if defined(OS_BSD) +#include +#else #include "third_party/re2/src/re2/re2.h" +#endif #include "url/url_constants.h" #if BUILDFLAG(FULL_SAFE_BROWSING) Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc (revision 523260) @@ -1,43 +1,43 @@ ---- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/policy/configuration_policy_handler_list_factory.cc @@ -113,7 +113,7 @@ #endif #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/browser_switcher/browser_switcher_prefs.h" #endif -@@ -333,11 +333,11 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -352,11 +352,11 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = prefs::kSafeBrowsingSendFilesForMalwareCheck, base::Value::Type::INTEGER }, -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) { key::kAuthNegotiateDelegateByKdcPolicy, prefs::kAuthNegotiateDelegateByKdcPolicy, base::Value::Type::BOOLEAN }, -#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) #if defined(OS_POSIX) { key::kNtlmV2Enabled, prefs::kNtlmV2Enabled, -@@ -1064,7 +1064,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -1141,7 +1141,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = base::Value::Type::BOOLEAN }, #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) { key::kAlternativeBrowserPath, browser_switcher::prefs::kAlternativeBrowserPath, base::Value::Type::STRING }, -@@ -1125,7 +1125,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -1205,7 +1205,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = browser_switcher::prefs::kChromeParameters, base::Value::Type::LIST }, #endif -#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX) +#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) { key::kBrowserGuestModeEnforced, prefs::kBrowserGuestModeEnforced, base::Value::Type::BOOLEAN }, Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/prefs/browser_prefs.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/prefs/browser_prefs.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/prefs/browser_prefs.cc @@ -346,7 +346,7 @@ #endif #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/browser_switcher/browser_switcher_prefs.h" #endif -@@ -951,7 +951,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync +@@ -978,7 +978,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) browser_switcher::BrowserSwitcherPrefs::RegisterProfilePrefs(registry); #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_prefs_pref__service__incognito__whitelist.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_prefs_pref__service__incognito__whitelist.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_prefs_pref__service__incognito__whitelist.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/prefs/pref_service_incognito_whitelist.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/prefs/pref_service_incognito_whitelist.cc.orig 2019-12-16 21:50:42 UTC +++ chrome/browser/prefs/pref_service_incognito_whitelist.cc -@@ -186,7 +186,7 @@ const char* const kPersistentPrefNames[] = { +@@ -187,7 +187,7 @@ const char* const kPersistentPrefNames[] = { 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, Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc (revision 523260) @@ -1,29 +1,29 @@ ---- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc -@@ -181,7 +181,7 @@ +@@ -186,7 +186,7 @@ #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h" #endif -#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/sync/sync_clipboard_service_factory.h" #endif -@@ -336,7 +336,7 @@ void ChromeBrowserMainExtraPartsProfiles:: +@@ -352,7 +352,7 @@ void ChromeBrowserMainExtraPartsProfiles:: MediaGalleriesPreferencesFactory::GetInstance(); #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) metrics::DesktopProfileSessionDurationsServiceFactory::GetInstance(); #endif ModelTypeStoreServiceFactory::GetInstance(); -@@ -398,7 +398,7 @@ void ChromeBrowserMainExtraPartsProfiles:: - SpellcheckServiceFactory::GetInstance(); +@@ -415,7 +415,7 @@ void ChromeBrowserMainExtraPartsProfiles:: + StorageNotificationServiceFactory::GetInstance(); #endif suggestions::SuggestionsServiceFactory::GetInstance(); -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) SyncClipboardServiceFactory::GetInstance(); #endif TabRestoreServiceFactory::GetInstance(); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/profiles/profile_attributes_entry.cc.orig 2019-07-24 18:58:10 UTC +--- chrome/browser/profiles/profile_attributes_entry.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/profiles/profile_attributes_entry.cc -@@ -83,7 +83,7 @@ void ProfileAttributesEntry::Initialize(ProfileInfoCac +@@ -102,7 +102,7 @@ void ProfileAttributesEntry::Initialize(ProfileInfoCac 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 Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc (revision 523260) @@ -1,29 +1,29 @@ ---- chrome/browser/renderer_context_menu/render_view_context_menu.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/renderer_context_menu/render_view_context_menu.cc.orig 2019-12-16 21:51:23 UTC +++ chrome/browser/renderer_context_menu/render_view_context_menu.cc -@@ -1699,7 +1699,7 @@ void RenderViewContextMenu::AppendEditableItems() { +@@ -1710,7 +1710,7 @@ void RenderViewContextMenu::AppendEditableItems() { // 'Undo' and 'Redo' for text input with no suggestions and no text selected. // We make an exception for OS X as context clicking will select the closest // word. In this case both items are always shown. -#if defined(OS_MACOSX) +#if defined(OS_MACOSX) || defined(OS_BSD) menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_UNDO, IDS_CONTENT_CONTEXT_UNDO); menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_REDO, -@@ -1741,7 +1741,7 @@ void RenderViewContextMenu::AppendLanguageSettings() { +@@ -1752,7 +1752,7 @@ void RenderViewContextMenu::AppendLanguageSettings() { if (!use_spelling) return; -#if defined(OS_MACOSX) +#if defined(OS_MACOSX) || defined(OS_BSD) menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS, IDS_CONTENT_CONTEXT_LANGUAGE_SETTINGS); #else -@@ -2045,7 +2045,7 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) +@@ -2057,7 +2057,7 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) case IDC_CHECK_SPELLING_WHILE_TYPING: return prefs->GetBoolean(spellcheck::prefs::kSpellCheckEnable); -#if !defined(OS_MACOSX) && defined(OS_POSIX) +#if !defined(OS_MACOSX) && !defined(OS_BSD) && defined(OS_POSIX) // TODO(suzhe): this should not be enabled for password fields. case IDC_INPUT_METHODS_MENU: return true; Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_renderer__preferences__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_renderer__preferences__util.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_renderer__preferences__util.cc (revision 523260) @@ -1,29 +1,29 @@ ---- chrome/browser/renderer_preferences_util.cc.orig 2019-07-24 18:58:10 UTC +--- chrome/browser/renderer_preferences_util.cc.orig 2019-12-16 21:50:42 UTC +++ chrome/browser/renderer_preferences_util.cc @@ -30,7 +30,7 @@ #include "ui/base/cocoa/defaults_utils.h" #endif -#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if defined(USE_AURA) && (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) #include "chrome/browser/themes/theme_service.h" #include "chrome/browser/themes/theme_service_factory.h" #include "ui/views/linux_ui/linux_ui.h" -@@ -130,7 +130,7 @@ void UpdateFromSystemSettings(blink::mojom::RendererPr +@@ -145,7 +145,7 @@ void UpdateFromSystemSettings(blink::mojom::RendererPr prefs->caret_blink_interval = interval; #endif -#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if defined(USE_AURA) && (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) views::LinuxUI* linux_ui = views::LinuxUI::instance(); if (linux_ui) { if (ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme()) { -@@ -149,7 +149,7 @@ void UpdateFromSystemSettings(blink::mojom::RendererPr +@@ -164,7 +164,7 @@ void UpdateFromSystemSettings(blink::mojom::RendererPr } #endif -#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_WIN) || defined(OS_BSD) content::UpdateFontRendererPreferencesFromSystemSettings(prefs); #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_safe__browsing_incident__reporting_incident__reporting__service.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_safe__browsing_incident__reporting_incident__reporting__service.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_safe__browsing_incident__reporting_incident__reporting__service.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig 2019-10-21 19:06:23 UTC +--- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc -@@ -713,7 +713,7 @@ void IncidentReportingService::OnEnvironmentDataCollec +@@ -681,7 +681,7 @@ void IncidentReportingService::OnEnvironmentDataCollec environment_collection_pending_ = false; // 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::Process::Current().CreationTime(); environment_data->mutable_process()->set_uptime_msec(uptime.InMilliseconds()); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_search_search__suggest_search__suggest__service.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_search_search__suggest_search__suggest__service.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_search_search__suggest_search__suggest__service.cc (revision 523260) @@ -1,14 +1,14 @@ ---- chrome/browser/search/search_suggest/search_suggest_service.cc.orig 2019-09-09 21:55:10 UTC +--- chrome/browser/search/search_suggest/search_suggest_service.cc.orig 2019-12-16 21:50:43 UTC +++ chrome/browser/search/search_suggest/search_suggest_service.cc -@@ -17,7 +17,11 @@ +@@ -20,7 +20,11 @@ #include "components/prefs/scoped_user_pref_update.h" #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" #include "components/signin/public/identity_manager/identity_manager.h" +#if defined(OS_BSD) +#include +#else #include "third_party/re2/src/re2/re2.h" +#endif namespace { Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_signin_signin__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_signin_signin__util.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_signin_signin__util.cc (revision 523260) @@ -1,20 +1,11 @@ ---- chrome/browser/signin/signin_util.cc.orig 2019-09-09 21:55:10 UTC +--- chrome/browser/signin/signin_util.cc.orig 2019-12-16 21:50:43 UTC +++ chrome/browser/signin/signin_util.cc @@ -34,7 +34,7 @@ #include "google_apis/gaia/gaia_auth_util.h" #include "ui/base/l10n/l10n_util.h" -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) #include "chrome/browser/ui/browser_finder.h" #include "chrome/browser/ui/browser_list.h" #include "chrome/browser/ui/browser_list_observer.h" -@@ -46,7 +46,7 @@ namespace { - - 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 - Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_themes_theme__service__factory.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_themes_theme__service__factory.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_themes_theme__service__factory.cc (revision 523260) @@ -1,29 +1,29 @@ ---- chrome/browser/themes/theme_service_factory.cc.orig 2019-10-30 15:53:20 UTC +--- chrome/browser/themes/theme_service_factory.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/themes/theme_service_factory.cc -@@ -18,7 +18,7 @@ +@@ -20,7 +20,7 @@ #if defined(OS_WIN) #include "chrome/browser/themes/theme_service_win.h" -#elif defined(OS_LINUX) && !defined(OS_CHROMEOS) +#elif (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) #include "chrome/browser/themes/theme_service_aura_linux.h" #include "ui/views/linux_ui/linux_ui.h" #endif -@@ -60,7 +60,7 @@ KeyedService* ThemeServiceFactory::BuildServiceInstanc +@@ -64,7 +64,7 @@ KeyedService* ThemeServiceFactory::BuildServiceInstanc ThemeService* provider = NULL; #if defined(OS_WIN) provider = new ThemeServiceWin; -#elif defined(OS_LINUX) && !defined(OS_CHROMEOS) +#elif (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) provider = new ThemeServiceAuraLinux; #else provider = new ThemeService; -@@ -72,7 +72,7 @@ KeyedService* ThemeServiceFactory::BuildServiceInstanc +@@ -76,7 +76,7 @@ KeyedService* ThemeServiceFactory::BuildServiceInstanc void ThemeServiceFactory::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) bool default_uses_system_theme = false; const views::LinuxUI* linux_ui = views::LinuxUI::instance(); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_browser__command__controller.cc (revision 523260) @@ -1,38 +1,38 @@ ---- chrome/browser/ui/browser_command_controller.cc.orig 2019-10-21 19:06:24 UTC +--- chrome/browser/ui/browser_command_controller.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/browser_command_controller.cc @@ -81,7 +81,7 @@ #include "chrome/browser/ui/browser_commands_chromeos.h" #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) #include "ui/base/ime/linux/text_edit_key_bindings_delegate_auralinux.h" #endif @@ -251,7 +251,7 @@ bool BrowserCommandController::IsReservedCommandOrKey( #endif } -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) // If this key was registered by the user as a content editing hotkey, then // it is not reserved. ui::TextEditKeyBindingsDelegateAuraLinux* delegate = -@@ -467,7 +467,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo +@@ -472,7 +472,7 @@ bool BrowserCommandController::ExecuteCommandWithDispo break; #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) case IDC_MINIMIZE_WINDOW: browser_->window()->Minimize(); break; -@@ -925,7 +925,7 @@ void BrowserCommandController::InitCommandState() { +@@ -945,7 +945,7 @@ void BrowserCommandController::InitCommandState() { command_updater_.UpdateCommandEnabled(IDC_VISIT_DESKTOP_OF_LRU_USER_2, true); command_updater_.UpdateCommandEnabled(IDC_VISIT_DESKTOP_OF_LRU_USER_3, true); #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) command_updater_.UpdateCommandEnabled(IDC_MINIMIZE_WINDOW, true); command_updater_.UpdateCommandEnabled(IDC_MAXIMIZE_WINDOW, true); command_updater_.UpdateCommandEnabled(IDC_RESTORE_WINDOW, true); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_sad__tab.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_sad__tab.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_sad__tab.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/ui/sad_tab.cc.orig 2019-09-09 21:55:10 UTC +--- chrome/browser/ui/sad_tab.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/sad_tab.cc -@@ -181,7 +181,7 @@ std::vector SadTab::GetSubMessages() { +@@ -184,7 +184,7 @@ std::vector SadTab::GetSubMessages() { // Only show incognito suggestion if not already in Incognito mode. if (!web_contents_->GetBrowserContext()->IsOffTheRecord()) message_ids.insert(message_ids.begin(), IDS_SAD_TAB_RELOAD_INCOGNITO); -#if defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) // Note: on macOS, Linux and ChromeOS, the first bullet is either one of // IDS_SAD_TAB_RELOAD_CLOSE_TABS or IDS_SAD_TAB_RELOAD_CLOSE_NOTABS // followed by one of the above suggestions. Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_tab__helpers.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_tab__helpers.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_tab__helpers.cc (revision 523260) @@ -1,25 +1,25 @@ ---- chrome/browser/ui/tab_helpers.cc.orig 2019-10-21 19:06:24 UTC +--- chrome/browser/ui/tab_helpers.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/tab_helpers.cc -@@ -121,7 +121,7 @@ +@@ -122,7 +122,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 -@@ -313,11 +313,11 @@ void TabHelpers::AttachTabHelpers(WebContents* web_con +@@ -314,11 +314,11 @@ void TabHelpers::AttachTabHelpers(WebContents* web_con #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) || base::FeatureList::IsEnabled( Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_task__manager_task__manager__table__model.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_task__manager_task__manager__table__model.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_task__manager_task__manager__table__model.cc (revision 523260) @@ -1,50 +1,50 @@ ---- chrome/browser/ui/task_manager/task_manager_table_model.cc.orig 2019-06-04 18:55:18 UTC +--- chrome/browser/ui/task_manager/task_manager_table_model.cc.orig 2019-12-16 21:50:43 UTC +++ chrome/browser/ui/task_manager/task_manager_table_model.cc -@@ -451,13 +451,13 @@ base::string16 TaskManagerTableModel::GetText(int row, +@@ -450,13 +450,13 @@ base::string16 TaskManagerTableModel::GetText(int row, ? stringifier_->backgrounded_string() : stringifier_->foregrounded_string(); -#if defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) case IDS_TASK_MANAGER_OPEN_FD_COUNT_COLUMN: { const int fd_count = observed_task_manager()->GetOpenFdCount(tasks_[row]); return fd_count >= 0 ? base::FormatNumber(fd_count) : stringifier_->n_a_string(); } -#endif // defined(OS_LINUX) || defined(OS_MACOSX) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) case IDS_TASK_MANAGER_KEEPALIVE_COUNT_COLUMN: { return stringifier_->GetKeepaliveCountText( -@@ -617,7 +617,7 @@ int TaskManagerTableModel::CompareValues(int row1, +@@ -616,7 +616,7 @@ int TaskManagerTableModel::CompareValues(int row1, return BooleanCompare(is_proc1_bg, is_proc2_bg); } -#if defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) case IDS_TASK_MANAGER_OPEN_FD_COUNT_COLUMN: { const int proc1_fd_count = observed_task_manager()->GetOpenFdCount(tasks_[row1]); -@@ -625,7 +625,7 @@ int TaskManagerTableModel::CompareValues(int row1, +@@ -624,7 +624,7 @@ int TaskManagerTableModel::CompareValues(int row1, observed_task_manager()->GetOpenFdCount(tasks_[row2]); return ValueCompare(proc1_fd_count, proc2_fd_count); } -#endif // defined(OS_LINUX) || defined(OS_MACOSX) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) default: NOTREACHED(); -@@ -791,11 +791,11 @@ void TaskManagerTableModel::UpdateRefreshTypes(int col +@@ -790,11 +790,11 @@ void TaskManagerTableModel::UpdateRefreshTypes(int col type = REFRESH_TYPE_KEEPALIVE_COUNT; break; -#if defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) case IDS_TASK_MANAGER_OPEN_FD_COUNT_COLUMN: type = REFRESH_TYPE_FD_COUNT; break; -#endif // defined(OS_LINUX) || defined(OS_MACOSX) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) default: NOTREACHED(); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_first__run__dialog.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_first__run__dialog.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_first__run__dialog.cc (revision 523260) @@ -1,24 +1,13 @@ ---- chrome/browser/ui/views/first_run_dialog.cc.orig 2019-09-09 21:55:11 UTC +--- chrome/browser/ui/views/first_run_dialog.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/views/first_run_dialog.cc -@@ -37,8 +37,10 @@ - namespace { - - void InitCrashReporterIfEnabled(bool enabled) { -+#if !defined(OS_BSD) - if (enabled) - breakpad::InitCrashReporter(std::string()); -+#endif - } - - } // namespace -@@ -108,8 +110,10 @@ std::unique_ptr FirstRunDialog::CreateExt +@@ -115,8 +115,10 @@ std::unique_ptr FirstRunDialog::CreateExt bool FirstRunDialog::Accept() { GetWidget()->Hide(); +#if !defined(OS_BSD) ChangeMetricsReportingStateWithReply(report_crashes_->GetChecked(), base::Bind(&InitCrashReporterIfEnabled)); +#endif if (make_default_->GetChecked()) shell_integration::SetAsDefaultBrowser(); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_frame_browser__view.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/ui/views/frame/browser_view.cc.orig 2019-10-21 19:06:24 UTC +--- chrome/browser/ui/views/frame/browser_view.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/views/frame/browser_view.cc -@@ -1581,7 +1581,7 @@ void BrowserView::UserChangedTheme(BrowserThemeChangeT +@@ -1519,7 +1519,7 @@ void BrowserView::UserChangedTheme(BrowserThemeChangeT const bool should_use_native_frame = frame_->ShouldUseNativeFrame(); bool must_regenerate_frame; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) // GTK and user theme changes can both change frame buttons, so the frame // always needs to be regenerated on Linux. must_regenerate_frame = true; Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_frame_opaque__browser__frame__view.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_frame_opaque__browser__frame__view.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_frame_opaque__browser__frame__view.cc (revision 523260) @@ -1,29 +1,29 @@ ---- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc.orig 2019-09-09 21:55:11 UTC +--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc -@@ -47,7 +47,7 @@ +@@ -48,7 +48,7 @@ #include "ui/views/window/vector_icons/vector_icons.h" #include "ui/views/window/window_shape.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "ui/views/controls/menu/menu_runner.h" #endif -@@ -352,7 +352,7 @@ void OpaqueBrowserFrameView::ButtonPressed(views::Butt +@@ -354,7 +354,7 @@ void OpaqueBrowserFrameView::ButtonPressed(views::Butt void OpaqueBrowserFrameView::OnMenuButtonClicked(views::Button* source, const gfx::Point& point, const ui::Event* event) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) views::MenuRunner menu_runner(frame()->GetSystemMenuModel(), views::MenuRunner::HAS_MNEMONICS); menu_runner.RunMenuAt( -@@ -478,7 +478,7 @@ bool OpaqueBrowserFrameView::EverHasVisibleBackgroundT +@@ -480,7 +480,7 @@ bool OpaqueBrowserFrameView::EverHasVisibleBackgroundT OpaqueBrowserFrameView::FrameButtonStyle OpaqueBrowserFrameView::GetFrameButtonStyle() const { -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) return FrameButtonStyle::kMdButton; #else return FrameButtonStyle::kImageButton; Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_hung__renderer__view.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_hung__renderer__view.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_hung__renderer__view.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/ui/views/hung_renderer_view.cc.orig 2019-06-04 18:55:18 UTC +--- chrome/browser/ui/views/hung_renderer_view.cc.orig 2019-12-16 21:50:43 UTC +++ chrome/browser/ui/views/hung_renderer_view.cc -@@ -390,7 +390,7 @@ bool HungRendererDialogView::Cancel() { +@@ -379,7 +379,7 @@ bool HungRendererDialogView::Cancel() { content::RenderProcessHost* rph = hung_pages_table_model_->GetRenderWidgetHost()->GetProcess(); if (rph) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // A generic |CrashDumpHungChildProcess()| is not implemented for Linux. // Instead we send an explicit IPC to crash on the renderer's IO thread. rph->ForceCrash(); Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_tabs_new__tab__button.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_tabs_new__tab__button.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_tabs_new__tab__button.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/ui/views/tabs/new_tab_button.cc.orig 2019-10-21 19:06:24 UTC +--- chrome/browser/ui/views/tabs/new_tab_button.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/views/tabs/new_tab_button.cc -@@ -69,7 +69,7 @@ const gfx::Size NewTabButton::kButtonSize{28, 28}; +@@ -84,7 +84,7 @@ class NewTabButton::HighlightPathGenerator NewTabButton::NewTabButton(TabStrip* tab_strip, views::ButtonListener* listener) : views::ImageButton(listener), tab_strip_(tab_strip) { set_animate_on_state_change(true); -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) set_triggerable_event_flags(triggerable_event_flags() | ui::EF_MIDDLE_MOUSE_BUTTON); #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_tabs_tab.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_tabs_tab.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_tabs_tab.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/ui/views/tabs/tab.cc.orig 2019-10-21 19:06:24 UTC +--- chrome/browser/ui/views/tabs/tab.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/views/tabs/tab.cc -@@ -512,7 +512,7 @@ void Tab::OnMouseCaptureLost() { +@@ -550,7 +550,7 @@ void Tab::OnMouseCaptureLost() { void Tab::OnMouseMoved(const ui::MouseEvent& event) { tab_style_->SetHoverLocation(event.location()); controller_->OnMouseEventInTab(this, event); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) MaybeUpdateHoverStatus(event); #endif } -@@ -522,7 +522,7 @@ void Tab::OnMouseEntered(const ui::MouseEvent& event) +@@ -560,7 +560,7 @@ void Tab::OnMouseEntered(const ui::MouseEvent& event) } void Tab::MaybeUpdateHoverStatus(const ui::MouseEvent& event) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Move the hit test area for hovering up so that it is not overlapped by tab // hover cards when they are shown. // TODO(crbug/978134): Once Linux/CrOS widget transparency is solved, remove Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_tabs_tab__drag__controller.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_tabs_tab__drag__controller.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_views_tabs_tab__drag__controller.cc (revision 523260) @@ -1,29 +1,29 @@ ---- chrome/browser/ui/views/tabs/tab_drag_controller.cc.orig 2019-10-21 19:06:24 UTC +--- chrome/browser/ui/views/tabs/tab_drag_controller.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/views/tabs/tab_drag_controller.cc -@@ -443,7 +443,7 @@ void TabDragController::Init(TabDragContext* source_co +@@ -446,7 +446,7 @@ void TabDragController::Init(TabDragContext* source_co // synchronous on desktop Linux, so use that. // - Chrome OS // Releasing capture on Ash cancels gestures so avoid it. -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) can_release_capture_ = false; #endif start_point_in_screen_ = gfx::Point(source_tab_offset, mouse_offset.y()); -@@ -865,7 +865,7 @@ TabDragController::DragBrowserToNewTabStrip(TabDragCon +@@ -883,7 +883,7 @@ TabDragController::DragBrowserToNewTabStrip(TabDragCon else SetCapture(target_context); -#if !defined(OS_LINUX) || defined(OS_CHROMEOS) +#if (!defined(OS_LINUX) || defined(OS_CHROMEOS)) && !defined(OS_BSD) // EndMoveLoop is going to snap the window back to its original location. // Hide it so users don't see this. Hiding a window in Linux aura causes // it to lose capture so skip it. -@@ -2003,7 +2003,7 @@ TabDragController::Liveness TabDragController::GetLoca +@@ -2016,7 +2016,7 @@ TabDragController::Liveness TabDragController::GetLoca if (dragged_window) exclude.insert(dragged_window); } -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) // Exclude windows which are pending deletion via Browser::TabStripEmpty(). // These windows can be returned in the Linux Aura port because the browser // window which was used for dragging is not hidden once all of its tabs are Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_webui_about__ui.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_webui_about__ui.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_webui_about__ui.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/ui/webui/about_ui.cc.orig 2019-10-21 19:06:24 UTC +--- chrome/browser/ui/webui/about_ui.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/webui/about_ui.cc @@ -562,7 +562,7 @@ std::string ChromeURLs() { return html; } -#if defined(OS_LINUX) || defined(OS_OPENBSD) +#if defined(OS_LINUX) || defined(OS_BSD) std::string AboutLinuxProxyConfig() { std::string data; AppendHeader(&data, 0, -@@ -617,7 +617,7 @@ void AboutUIHTMLSource::StartDataRequest( - .GetRawDataResource(idr) - .as_string(); +@@ -616,7 +616,7 @@ void AboutUIHTMLSource::StartDataRequest( + response = + ui::ResourceBundle::GetSharedInstance().DecompressDataResource(idr); } -#if defined(OS_LINUX) || defined(OS_OPENBSD) +#if defined(OS_LINUX) || defined(OS_BSD) } else if (source_name_ == chrome::kChromeUILinuxProxyConfigHost) { response = AboutLinuxProxyConfig(); #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_webui_chrome__web__ui__controller__factory.cc (revision 523260) @@ -1,55 +1,55 @@ ---- chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc.orig 2019-10-21 19:06:24 UTC +--- chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc -@@ -212,11 +212,11 @@ +@@ -206,11 +206,11 @@ #include "chrome/browser/ui/webui/conflicts/conflicts_ui.h" #endif -#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/webui/discards/discards_ui.h" #endif --#if defined(OS_LINUX) || defined(OS_ANDROID) -+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) - #include "chrome/browser/ui/webui/sandbox_internals_ui.h" +-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID) ++#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) + #include "chrome/browser/ui/webui/sandbox/sandbox_internals_ui.h" #endif -@@ -338,7 +338,7 @@ bool IsAboutUI(const GURL& url) { +@@ -308,7 +308,7 @@ bool IsAboutUI(const GURL& url) { #if !defined(OS_ANDROID) || url.host_piece() == chrome::kChromeUITermsHost #endif -#if defined(OS_LINUX) || defined(OS_OPENBSD) +#if defined(OS_LINUX) || defined(OS_BSD) || url.host_piece() == chrome::kChromeUILinuxProxyConfigHost #endif #if defined(OS_CHROMEOS) -@@ -654,7 +654,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we +@@ -621,7 +621,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we if (url.host_piece() == chrome::kChromeUINaClHost) return &NewWebUI; #endif -#if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) +#if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) || defined(OS_BSD) if (url.host_piece() == chrome::kChromeUITabModalConfirmDialogHost) return &NewWebUI; #endif -@@ -702,17 +702,17 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we +@@ -669,17 +669,17 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* we return &NewWebUI; } #endif --#if defined(OS_LINUX) || defined(OS_ANDROID) -+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) +-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID) ++#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) if (url.host_piece() == chrome::kChromeUISandboxHost) { return &NewWebUI; } #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 (url.host_piece() == chrome::kChromeUIDiscardsHost) return &NewWebUI; #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) if (url.host_piece() == chrome::kChromeUIBrowserSwitchHost) return &NewWebUI; #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_ui_webui_settings_settings__localized__strings__provider.cc (revision 523260) @@ -1,20 +1,20 @@ ---- chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc.orig 2019-10-21 19:06:24 UTC +--- chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc -@@ -702,7 +702,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht +@@ -698,7 +698,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS}, {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED}, {"themes", IDS_SETTINGS_THEMES}, -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) {"systemTheme", IDS_SETTINGS_SYSTEM_THEME}, {"useSystemTheme", IDS_SETTINGS_USE_SYSTEM_THEME}, {"classicTheme", IDS_SETTINGS_CLASSIC_THEME}, -@@ -722,7 +722,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht +@@ -718,7 +718,7 @@ void AddAppearanceStrings(content::WebUIDataSource* ht {"openWallpaperApp", IDS_OS_SETTINGS_OPEN_WALLPAPER_APP}, {"setWallpaper", IDS_OS_SETTINGS_SET_WALLPAPER}, #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS}, #endif #if defined(OS_MACOSX) Index: branches/2020Q1/www/chromium/files/patch-chrome_browser_web__applications_extensions_web__app__extension__shortcut.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_browser_web__applications_extensions_web__app__extension__shortcut.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_browser_web__applications_extensions_web__app__extension__shortcut.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/browser/web_applications/extensions/web_app_extension_shortcut.cc.orig 2019-04-30 22:22:37 UTC +--- chrome/browser/web_applications/extensions/web_app_extension_shortcut.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/browser/web_applications/extensions/web_app_extension_shortcut.cc -@@ -50,7 +50,7 @@ namespace { +@@ -51,7 +51,7 @@ namespace { #if defined(OS_MACOSX) const int kDesiredSizes[] = {16, 32, 128, 256, 512}; const size_t kNumDesiredSizes = base::size(kDesiredSizes); -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) // Linux supports icons of any size. FreeDesktop Icon Theme Specification states // that "Minimally you should install a 48x48 icon in the hicolor theme." const int kDesiredSizes[] = {16, 32, 48, 128, 256, 512}; Index: branches/2020Q1/www/chromium/files/patch-chrome_common_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_BUILD.gn (revision 523260) @@ -1,13 +1,13 @@ ---- chrome/common/BUILD.gn.orig 2019-10-21 19:06:25 UTC +--- chrome/common/BUILD.gn.orig 2019-12-16 21:51:24 UTC +++ chrome/common/BUILD.gn -@@ -293,6 +293,10 @@ static_library("common") { +@@ -299,6 +299,10 @@ static_library("common") { public_deps += [ "//ppapi/shared_impl" ] } + if (is_bsd) { + sources -= [ "component_flash_hint_file_linux.cc" ] + } + if (enable_extensions) { sources += [ "cast_messages.cc", Index: branches/2020Q1/www/chromium/files/patch-chrome_common_channel__info.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_channel__info.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_channel__info.h (revision 523260) @@ -0,0 +1,11 @@ +--- chrome/common/channel_info.h.orig 2019-12-17 19:22:25 UTC ++++ chrome/common/channel_info.h +@@ -55,7 +55,7 @@ version_info::Channel GetChannelByName(const std::stri + std::string GetChannelSuffixForDataDir(); + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + // Returns the channel-specific filename of the desktop shortcut used to launch + // the browser. + std::string GetDesktopName(base::Environment* env); Property changes on: branches/2020Q1/www/chromium/files/patch-chrome_common_channel__info.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: branches/2020Q1/www/chromium/files/patch-chrome_common_channel__info__posix.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_channel__info__posix.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_channel__info__posix.cc (revision 523260) @@ -0,0 +1,20 @@ +--- chrome/common/channel_info_posix.cc.orig 2019-12-17 19:21:14 UTC ++++ chrome/common/channel_info_posix.cc +@@ -69,7 +69,7 @@ std::string GetChannelSuffixForDataDir() { + } + #endif // defined(GOOGLE_CHROME_BUILD) + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + std::string GetDesktopName(base::Environment* env) { + #if BUILDFLAG(GOOGLE_CHROME_BRANDING) + version_info::Channel product_channel(GetChannel()); +@@ -91,7 +91,7 @@ std::string GetDesktopName(base::Environment* env) { + return "chromium-browser.desktop"; + #endif + } +-#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#endif // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + + version_info::Channel GetChannel() { + return GetChannelImpl(nullptr, nullptr); Property changes on: branches/2020Q1/www/chromium/files/patch-chrome_common_channel__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: branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__features.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__features.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__features.cc (revision 523260) @@ -1,27 +1,27 @@ ---- chrome/common/chrome_features.cc.orig 2019-10-21 19:06:25 UTC +--- chrome/common/chrome_features.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/common/chrome_features.cc -@@ -84,13 +84,13 @@ const base::Feature kAutoFetchOnNetErrorPage{"AutoFetc +@@ -86,13 +86,13 @@ const base::Feature kAutoFetchOnNetErrorPage{"AutoFetc base::FEATURE_DISABLED_BY_DEFAULT}; #endif // defined(OS_ANDROID) -#if defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) // Enables the Restart background mode optimization. When all Chrome UI is // closed and it goes in the background, allows to restart the browser to // discard memory. const base::Feature kBackgroundModeAllowRestart{ "BackgroundModeAllowRestart", base::FEATURE_DISABLED_BY_DEFAULT}; -#endif // defined(OS_WIN) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) // Enables or disables whether permission prompts are automatically blocked // after the user has explicitly dismissed them too many times. -@@ -140,7 +140,7 @@ const base::Feature kThirdPartyModulesBlocking{ - "ThirdPartyModulesBlocking", base::FEATURE_DISABLED_BY_DEFAULT}; - #endif +@@ -152,7 +152,7 @@ const base::Feature kThirdPartyModulesBlocking{ + const base::Feature kTLS13HardeningForLocalAnchors{ + "TLS13HardeningForLocalAnchors", base::FEATURE_DISABLED_BY_DEFAULT}; -#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) || defined(OS_BSD) // Enables the dual certificate verification trial feature. // https://crbug.com/649026 const base::Feature kCertDualVerificationTrialFeature{ Index: branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__features.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__features.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__features.h (revision 523260) @@ -1,24 +1,24 @@ ---- chrome/common/chrome_features.h.orig 2019-10-21 19:06:25 UTC +--- chrome/common/chrome_features.h.orig 2019-12-16 21:51:24 UTC +++ chrome/common/chrome_features.h -@@ -64,10 +64,10 @@ COMPONENT_EXPORT(CHROME_FEATURES) +@@ -67,10 +67,10 @@ COMPONENT_EXPORT(CHROME_FEATURES) extern const base::Feature kAutoFetchOnNetErrorPage; #endif -#if defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) COMPONENT_EXPORT(CHROME_FEATURES) extern const base::Feature kBackgroundModeAllowRestart; -#endif // defined(OS_WIN) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) COMPONENT_EXPORT(CHROME_FEATURES) extern const base::Feature kBlockPromptsIfDismissedOften; -@@ -86,7 +86,7 @@ extern const base::Feature kBundledConnectionHelpFeatu +@@ -89,7 +89,7 @@ extern const base::Feature kBundledConnectionHelpFeatu COMPONENT_EXPORT(CHROME_FEATURES) extern const base::Feature kCaptionSettings; -#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) || defined(OS_BSD) COMPONENT_EXPORT(CHROME_FEATURES) extern const base::Feature kCertDualVerificationTrialFeature; #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__paths.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__paths.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__paths.cc (revision 523260) @@ -1,101 +1,101 @@ ---- chrome/common/chrome_paths.cc.orig 2019-10-21 19:06:25 UTC +--- chrome/common/chrome_paths.cc.orig 2019-12-16 21:50:44 UTC +++ chrome/common/chrome_paths.cc -@@ -52,21 +52,21 @@ const base::FilePath::CharType kPepperFlashSystemBaseD +@@ -51,21 +51,21 @@ const base::FilePath::CharType kPepperFlashSystemBaseD FILE_PATH_LITERAL("Internet Plug-Ins/PepperFlashPlayer"); #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // The path to the external extension .json files. // /usr/share seems like a good choice, see: http://www.pathname.com/fhs/ const base::FilePath::CharType kFilepathSinglePrefExtensions[] = #if BUILDFLAG(GOOGLE_CHROME_BRANDING) - FILE_PATH_LITERAL("/usr/share/google-chrome/extensions"); + FILE_PATH_LITERAL("/usr/local/share/google-chrome/extensions"); #else - FILE_PATH_LITERAL("/usr/share/chromium/extensions"); + FILE_PATH_LITERAL("/usr/local/share/chromium/extensions"); #endif // BUILDFLAG(GOOGLE_CHROME_BRANDING) // The path to the hint file that tells the pepper plugin loader // where it can find the latest component updated flash. const base::FilePath::CharType kComponentUpdatedFlashHint[] = FILE_PATH_LITERAL("latest-component-updated-flash"); -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) - #if defined(OS_CHROMEOS) - const base::FilePath::CharType kChromeOSComponentFlash[] = FILE_PATH_LITERAL( -@@ -197,7 +197,7 @@ bool PathProvider(int key, base::FilePath* result) { + #if defined(OS_LINUX) && BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT) + // The name of the hint file that tells the latest component updated Widevine +@@ -204,7 +204,7 @@ bool PathProvider(int key, base::FilePath* result) { return false; break; case chrome::DIR_DEFAULT_DOWNLOADS_SAFE: -#if defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) if (!GetUserDownloadsDirectorySafe(&cur)) return false; break; -@@ -489,7 +489,7 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -502,7 +502,7 @@ bool PathProvider(int key, base::FilePath* result) { } #endif #if defined(OS_CHROMEOS) || \ - (defined(OS_LINUX) && BUILDFLAG(CHROMIUM_BRANDING)) || defined(OS_MACOSX) + ((defined(OS_LINUX) || defined(OS_BSD)) && BUILDFLAG(CHROMIUM_BRANDING)) || defined(OS_MACOSX) case chrome::DIR_USER_EXTERNAL_EXTENSIONS: { if (!base::PathService::Get(chrome::DIR_USER_DATA, &cur)) return false; -@@ -497,7 +497,7 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -510,7 +510,7 @@ bool PathProvider(int key, base::FilePath* result) { break; } #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: { cur = base::FilePath(kFilepathSinglePrefExtensions); break; -@@ -532,7 +532,7 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -545,7 +545,7 @@ bool PathProvider(int key, base::FilePath* result) { #endif break; -#if defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) case chrome::DIR_NATIVE_MESSAGING: #if defined(OS_MACOSX) #if BUILDFLAG(GOOGLE_CHROME_BRANDING) -@@ -546,6 +546,9 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -559,6 +559,9 @@ bool PathProvider(int key, base::FilePath* result) { #if BUILDFLAG(GOOGLE_CHROME_BRANDING) cur = base::FilePath(FILE_PATH_LITERAL( "/etc/opt/chrome/native-messaging-hosts")); +#elif defined(OS_BSD) + cur = base::FilePath(FILE_PATH_LITERAL( + "/usr/local/etc/chrome/native-messaging-hosts")); #else cur = base::FilePath(FILE_PATH_LITERAL( "/etc/chromium/native-messaging-hosts")); -@@ -558,7 +561,7 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -571,7 +574,7 @@ bool PathProvider(int key, base::FilePath* result) { return false; cur = cur.Append(FILE_PATH_LITERAL("NativeMessagingHosts")); break; -#endif // defined(OS_LINUX) || defined(OS_MACOSX) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) #if !defined(OS_ANDROID) case chrome::DIR_GLOBAL_GCM_STORE: if (!base::PathService::Get(chrome::DIR_USER_DATA, &cur)) -@@ -566,7 +569,7 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -579,7 +582,7 @@ bool PathProvider(int key, base::FilePath* result) { cur = cur.Append(kGCMStoreDirname); break; #endif // !defined(OS_ANDROID) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) case chrome::FILE_COMPONENT_FLASH_HINT: if (!base::PathService::Get( chrome::DIR_COMPONENT_UPDATED_PEPPER_FLASH_PLUGIN, &cur)) { -@@ -574,7 +577,7 @@ bool PathProvider(int key, base::FilePath* result) { +@@ -587,7 +590,7 @@ bool PathProvider(int key, base::FilePath* result) { } cur = cur.Append(kComponentUpdatedFlashHint); break; -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) #if defined(OS_CHROMEOS) case chrome::FILE_CHROME_OS_COMPONENT_FLASH: cur = base::FilePath(kChromeOSComponentFlash); Index: branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__paths.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__paths.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__paths.h (revision 523260) @@ -1,42 +1,42 @@ ---- chrome/common/chrome_paths.h.orig 2019-10-21 19:06:25 UTC +--- chrome/common/chrome_paths.h.orig 2019-12-16 21:50:44 UTC +++ chrome/common/chrome_paths.h @@ -53,7 +53,7 @@ enum { // contains subdirectories. #endif #if defined(OS_CHROMEOS) || \ - (defined(OS_LINUX) && BUILDFLAG(CHROMIUM_BRANDING)) || defined(OS_MACOSX) + ((defined(OS_LINUX) || defined(OS_BSD)) && BUILDFLAG(CHROMIUM_BRANDING)) || defined(OS_MACOSX) DIR_USER_EXTERNAL_EXTENSIONS, // Directory for per-user external extensions // on Chrome Mac and Chromium Linux. // On Chrome OS, this path is used for OEM @@ -61,7 +61,7 @@ enum { // create it. #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) DIR_STANDALONE_EXTERNAL_EXTENSIONS, // Directory for 'per-extension' // definition manifest files that // describe extensions which are to be -@@ -119,7 +119,7 @@ enum { +@@ -122,7 +122,7 @@ enum { DIR_SUPERVISED_USER_INSTALLED_WHITELISTS, // Directory where sanitized // supervised user whitelists are // installed. -#if defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) DIR_NATIVE_MESSAGING, // System directory where native messaging host // manifest files are stored. DIR_USER_NATIVE_MESSAGING, // Directory with Native Messaging Hosts -@@ -134,10 +134,10 @@ enum { +@@ -137,10 +137,10 @@ enum { DIR_GEN_TEST_DATA, // Directory where generated test data resides. DIR_TEST_DATA, // Directory where unit test data resides. DIR_TEST_TOOLS, // Directory where unit test tools reside. -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) FILE_COMPONENT_FLASH_HINT, // A file in a known location that points to // the component updated flash plugin. -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) #if defined(OS_CHROMEOS) FILE_CHROME_OS_COMPONENT_FLASH, // The location of component updated Flash on // Chrome OS. Index: branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__switches.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__switches.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__switches.cc (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/common/chrome_switches.cc.orig 2019-10-21 19:06:25 UTC +--- chrome/common/chrome_switches.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/common/chrome_switches.cc -@@ -853,7 +853,7 @@ const char kAllowNaClFileHandleAPI[] = "allow-n +@@ -852,7 +852,7 @@ const char kAllowNaClFileHandleAPI[] = "allow-n const char kAllowNaClSocketAPI[] = "allow-nacl-socket-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"; // Causes the browser to launch directly in guest mode. Index: branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__switches.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__switches.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_chrome__switches.h (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/common/chrome_switches.h.orig 2019-10-21 19:06:25 UTC +--- chrome/common/chrome_switches.h.orig 2019-12-16 21:51:24 UTC +++ chrome/common/chrome_switches.h -@@ -264,7 +264,7 @@ extern const char kAllowNaClFileHandleAPI[]; +@@ -263,7 +263,7 @@ extern const char kAllowNaClFileHandleAPI[]; extern const char kAllowNaClSocketAPI[]; #endif -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) extern const char kEnableNewAppMenuIcon[]; extern const char kGuest[]; #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_common_extensions_api_api__sources.gni =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_extensions_api_api__sources.gni (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_extensions_api_api__sources.gni (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/common/extensions/api/api_sources.gni.orig 2019-10-21 19:06:25 UTC +--- chrome/common/extensions/api/api_sources.gni.orig 2019-12-16 21:51:24 UTC +++ chrome/common/extensions/api/api_sources.gni -@@ -109,7 +109,7 @@ if (is_chromeos) { +@@ -110,7 +110,7 @@ if (is_chromeos) { "wallpaper.json", "wallpaper_private.json", ] -} else if (is_linux || is_win) { +} else if (is_linux || is_bsd || is_win) { schema_sources_ += [ "input_ime.json" ] } Index: branches/2020Q1/www/chromium/files/patch-chrome_common_features.gni =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_features.gni (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_features.gni (revision 523260) @@ -1,14 +1,14 @@ ---- chrome/common/features.gni.orig 2019-10-21 19:06:26 UTC +--- chrome/common/features.gni.orig 2019-12-16 21:51:24 UTC +++ chrome/common/features.gni -@@ -42,9 +42,9 @@ declare_args() { +@@ -53,9 +53,9 @@ declare_args() { (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) - enable_service_discovery = (enable_mdns && !is_android) || is_mac + enable_service_discovery = (enable_mdns && !is_android) || is_mac || is_bsd # Enables use of the session service, which is enabled by default. # Android stores them separately on the Java side. Index: branches/2020Q1/www/chromium/files/patch-chrome_common_pref__names.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_pref__names.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_pref__names.cc (revision 523260) @@ -1,44 +1,44 @@ ---- chrome/common/pref_names.cc.orig 2019-10-21 19:06:26 UTC +--- chrome/common/pref_names.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/common/pref_names.cc -@@ -1026,7 +1026,7 @@ const char kForceYouTubeRestrict[] = "settings.force_y +@@ -1044,7 +1044,7 @@ const char kForceYouTubeRestrict[] = "settings.force_y // only using an account that belongs to one of the domains from this pref. const char kAllowedDomainsForApps[] = "settings.allowed_domains_for_apps"; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) // Linux specific preference on whether we should match the system theme. const char kUsesSystemTheme[] = "extensions.theme.use_system"; #endif -@@ -1153,7 +1153,7 @@ const char kShowUpdatePromotionInfoBar[] = +@@ -1171,7 +1171,7 @@ const char kShowUpdatePromotionInfoBar[] = "browser.show_update_promotion_info_bar"; #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) // Boolean that is false if we should show window manager decorations. If // true, we draw a custom chrome frame (thicker title bar and blue border). const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; -@@ -1540,7 +1540,7 @@ const char kDownloadDefaultDirectory[] = "download.def +@@ -1572,7 +1572,7 @@ const char kDownloadDefaultDirectory[] = "download.def // upgrade a unsafe location to a safe location. const char kDownloadDirUpgraded[] = "download.directory_upgrade"; -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) const char kOpenPdfDownloadInSystemReader[] = "download.open_pdf_in_system_reader"; #endif -@@ -1791,12 +1791,12 @@ const char kAuthAndroidNegotiateAccountType[] = +@@ -1840,12 +1840,12 @@ const char kAuthAndroidNegotiateAccountType[] = // domain sub-content requests. const char kAllowCrossOriginAuthPrompt[] = "auth.allow_cross_origin_prompt"; -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) // Boolean that specifies whether OK-AS-DELEGATE flag from KDC is respected // along with kAuthNegotiateDelegateWhitelist. const char kAuthNegotiateDelegateByKdcPolicy[] = "auth.negotiate_delegate_by_kdc_policy"; -#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) #if defined(OS_POSIX) // Boolean that specifies whether NTLMv2 is enabled. Index: branches/2020Q1/www/chromium/files/patch-chrome_common_pref__names.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_pref__names.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_pref__names.h (revision 523260) @@ -1,41 +1,41 @@ ---- chrome/common/pref_names.h.orig 2019-10-21 19:06:26 UTC +--- chrome/common/pref_names.h.orig 2019-12-16 21:51:24 UTC +++ chrome/common/pref_names.h -@@ -326,7 +326,7 @@ extern const char kHistoryMenuPromoShown[]; +@@ -330,7 +330,7 @@ extern const char kHistoryMenuPromoShown[]; extern const char kForceGoogleSafeSearch[]; extern const char kForceYouTubeRestrict[]; extern const char kAllowedDomainsForApps[]; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) extern const char kUsesSystemTheme[]; #endif extern const char kCurrentThemePackFilename[]; -@@ -357,7 +357,7 @@ extern const char kDefaultBrowserSettingEnabled[]; +@@ -361,7 +361,7 @@ extern const char kDefaultBrowserSettingEnabled[]; #if defined(OS_MACOSX) extern const char kShowUpdatePromotionInfoBar[]; #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) extern const char kUseCustomChromeFrame[]; #endif #if BUILDFLAG(ENABLE_PLUGINS) -@@ -511,7 +511,7 @@ extern const char kAppWindowPlacement[]; +@@ -523,7 +523,7 @@ extern const char kAppWindowPlacement[]; extern const char kDownloadDefaultDirectory[]; extern const char kDownloadExtensionsToOpen[]; extern const char kDownloadDirUpgraded[]; -#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) extern const char kOpenPdfDownloadInSystemReader[]; #endif #if defined(OS_ANDROID) -@@ -708,9 +708,9 @@ extern const char kGSSAPILibraryName[]; +@@ -729,9 +729,9 @@ extern const char kGSSAPILibraryName[]; extern const char kAuthAndroidNegotiateAccountType[]; extern const char kAllowCrossOriginAuthPrompt[]; -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) extern const char kAuthNegotiateDelegateByKdcPolicy[]; -#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) #if defined(OS_POSIX) extern const char kNtlmV2Enabled[]; Index: branches/2020Q1/www/chromium/files/patch-chrome_common_webui__url__constants.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_webui__url__constants.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_webui__url__constants.cc (revision 523260) @@ -1,48 +1,48 @@ ---- chrome/common/webui_url_constants.cc.orig 2019-10-21 19:06:26 UTC +--- chrome/common/webui_url_constants.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/common/webui_url_constants.cc -@@ -311,7 +311,7 @@ bool IsSystemWebUIHost(base::StringPiece host) { +@@ -310,7 +310,7 @@ bool IsSystemWebUIHost(base::StringPiece host) { const char kChromeUICastHost[] = "cast"; #endif -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) const char kChromeUIDiscardsHost[] = "discards"; const char kChromeUIDiscardsURL[] = "chrome://discards/"; const char kChromeUIHatsHost[] = "hats"; -@@ -322,17 +322,17 @@ const char kChromeUIHatsURL[] = "chrome://hats/"; +@@ -321,17 +321,17 @@ const char kChromeUIHatsURL[] = "chrome://hats/"; const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; #endif --#if defined(OS_LINUX) || defined(OS_ANDROID) -+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) +-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID) ++#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) const char kChromeUISandboxHost[] = "sandbox"; #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) const char kChromeUIBrowserSwitchHost[] = "browser-switch"; const char kChromeUIBrowserSwitchURL[] = "chrome://browser-switch/"; #endif -#if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) -+#if ((defined(OS_BSD) || defined(OS_LINUX)) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) ++#if ((defined(OS_LINUX) || defined(OS_BSD)) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; #endif -@@ -586,13 +586,13 @@ const char* const kChromeHostURLs[] = { +@@ -591,13 +591,13 @@ const char* const kChromeHostURLs[] = { kChromeUIInternetDetailDialogHost, kChromeUIAssistantOptInHost, #endif -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) kChromeUIDiscardsHost, #endif #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) kChromeUILinuxProxyConfigHost, #endif -#if defined(OS_LINUX) || defined(OS_ANDROID) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) kChromeUISandboxHost, #endif #if defined(OS_WIN) Index: branches/2020Q1/www/chromium/files/patch-chrome_common_webui__url__constants.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_common_webui__url__constants.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_common_webui__url__constants.h (revision 523260) @@ -1,32 +1,32 @@ ---- chrome/common/webui_url_constants.h.orig 2019-10-21 19:06:26 UTC +--- chrome/common/webui_url_constants.h.orig 2019-12-16 21:51:24 UTC +++ chrome/common/webui_url_constants.h -@@ -270,7 +270,7 @@ bool IsSystemWebUIHost(base::StringPiece host); +@@ -268,7 +268,7 @@ bool IsSystemWebUIHost(base::StringPiece host); extern const char kChromeUICastHost[]; #endif -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) extern const char kChromeUIDiscardsHost[]; extern const char kChromeUIDiscardsURL[]; extern const char kChromeUIHatsHost[]; -@@ -282,17 +282,17 @@ extern const char kChromeUIHatsURL[]; +@@ -280,17 +280,17 @@ extern const char kChromeUIHatsURL[]; extern const char kChromeUILinuxProxyConfigHost[]; #endif --#if defined(OS_LINUX) || defined(OS_ANDROID) -+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) +-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID) ++#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) extern const char kChromeUISandboxHost[]; #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) extern const char kChromeUIBrowserSwitchHost[]; extern const char kChromeUIBrowserSwitchURL[]; #endif -#if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) -+#if ((defined(OS_BSD) || defined(OS_LINUX)) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) ++#if ((defined(OS_LINUX) || defined(OS_BSD)) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) extern const char kChromeUITabModalConfirmDialogHost[]; #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_renderer_chrome__content__renderer__client.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_renderer_chrome__content__renderer__client.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_renderer_chrome__content__renderer__client.cc (revision 523260) @@ -1,45 +1,11 @@ ---- chrome/renderer/chrome_content_renderer_client.cc.orig 2019-10-21 19:06:26 UTC +--- chrome/renderer/chrome_content_renderer_client.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/renderer/chrome_content_renderer_client.cc -@@ -154,13 +154,13 @@ - #include "chrome/renderer/searchbox/searchbox_extension.h" - #endif - --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_BSD) - #include "base/allocator/buildflags.h" - #if BUILDFLAG(USE_TCMALLOC) - #include "chrome/common/performance_manager/mojom/tcmalloc.mojom.h" - #include "chrome/renderer/performance_manager/mechanisms/tcmalloc_tunables_impl.h" - #endif // BUILDFLAG(USE_TCMALLOC) --#endif // defined(OS_LINUX) -+#endif // defined(OS_LINUX) || defined(OS_BSD) - - #if defined(OS_WIN) - #endif -@@ -1040,7 +1040,7 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin( +@@ -1038,7 +1038,7 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin( } case chrome::mojom::PluginStatus::kRestartRequired: { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) placeholder = create_blocked_plugin(IDR_BLOCKED_PLUGIN_HTML, l10n_util::GetStringFUTF16( -@@ -1636,7 +1636,7 @@ void ChromeContentRendererClient::BindReceiverOnMainTh - } - #endif - --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_BSD) - #if BUILDFLAG(USE_TCMALLOC) - if (auto setter_receiver = receiver.As()) { - performance_manager::mechanism::TcmallocTunablesImpl::Create( -@@ -1644,7 +1644,7 @@ void ChromeContentRendererClient::BindReceiverOnMainTh - return; - } - #endif // BUILDFLAG(USE_TCMALLOC) --#endif // defined(OS_LINUX) -+#endif // defined(OS_LINUX) || defined(OS_BSD) - - // TODO(crbug.com/977637): Get rid of the use of BinderRegistry here. This was - // done only to avoid churning spellcheck code while eliminting the "chrome" Index: branches/2020Q1/www/chromium/files/patch-chrome_test_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_test_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_test_BUILD.gn (revision 523260) @@ -1,11 +1,11 @@ ---- chrome/test/BUILD.gn.orig 2019-10-21 19:06:26 UTC +--- chrome/test/BUILD.gn.orig 2020-01-07 21:53:20 UTC +++ chrome/test/BUILD.gn -@@ -5797,7 +5797,7 @@ test("chrome_app_unittests") { +@@ -5870,7 +5870,7 @@ test("chrome_app_unittests") { "//components/safe_browsing:buildflags", "//components/tracing", ] - if (!is_fuchsia) { + if (!is_fuchsia && !is_bsd) { # TODO(crbug.com/753619): Enable crash reporting on Fuchsia. deps += [ "//third_party/breakpad:client" ] } Index: branches/2020Q1/www/chromium/files/patch-chrome_test_base_in__process__browser__test.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_test_base_in__process__browser__test.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_test_base_in__process__browser__test.cc (revision 523260) @@ -1,22 +1,22 @@ ---- chrome/test/base/in_process_browser_test.cc.orig 2019-09-09 21:55:11 UTC +--- chrome/test/base/in_process_browser_test.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/test/base/in_process_browser_test.cc -@@ -76,6 +76,10 @@ +@@ -77,6 +77,10 @@ #include "chrome/test/base/scoped_bundle_swizzler_mac.h" #endif +#if defined(OS_FREEBSD) +#include +#endif + #if defined(OS_WIN) #include "base/win/scoped_com_initializer.h" #include "base/win/windows_version.h" -@@ -103,7 +107,7 @@ +@@ -104,7 +108,7 @@ #include "ui/events/test/event_generator.h" #endif // defined(OS_CHROMEOS) -#if !defined(OS_CHROMEOS) && defined(OS_LINUX) +#if !defined(OS_CHROMEOS) && (defined(OS_LINUX) || defined(OS_BSD)) #include "ui/views/test/test_desktop_screen_x11.h" #endif Index: branches/2020Q1/www/chromium/files/patch-chrome_test_chromedriver_chrome__launcher.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chrome_test_chromedriver_chrome__launcher.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chrome_test_chromedriver_chrome__launcher.cc (revision 523260) @@ -1,13 +1,13 @@ ---- chrome/test/chromedriver/chrome_launcher.cc.orig 2019-09-09 21:55:12 UTC +--- chrome/test/chromedriver/chrome_launcher.cc.orig 2019-12-16 21:51:24 UTC +++ chrome/test/chromedriver/chrome_launcher.cc @@ -67,6 +67,10 @@ #include "chrome/test/chromedriver/keycode_text_conversion.h" #endif +#if defined(OS_BSD) +#include +#endif + namespace { - // TODO(eseckler): Remove --ignore-certificate-errors for newer Chrome versions + const char* const kCommonSwitches[] = { Index: branches/2020Q1/www/chromium/files/patch-chromecast_browser_cast__browser__main__parts.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chromecast_browser_cast__browser__main__parts.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-chromecast_browser_cast__browser__main__parts.cc (revision 523260) @@ -1,38 +1,38 @@ ---- chromecast/browser/cast_browser_main_parts.cc.orig 2019-10-21 19:06:28 UTC +--- chromecast/browser/cast_browser_main_parts.cc.orig 2019-12-16 21:51:24 UTC +++ chromecast/browser/cast_browser_main_parts.cc -@@ -71,7 +71,7 @@ +@@ -72,7 +72,7 @@ #include "ui/base/ui_base_switches.h" #include "ui/gl/gl_switches.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include #include #include -@@ -283,7 +283,7 @@ const DefaultCommandLineSwitch kDefaultSwitches[] = { +@@ -285,7 +285,7 @@ const DefaultCommandLineSwitch kDefaultSwitches[] = { {cc::switches::kDisableThreadedAnimation, ""}, #endif // defined(OS_ANDROID) #endif // BUILDFLAG(IS_CAST_AUDIO_ONLY) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #if defined(ARCH_CPU_X86_FAMILY) // This is needed for now to enable the x11 Ozone platform to work with // current Linux/NVidia OpenGL drivers. -@@ -293,7 +293,7 @@ const DefaultCommandLineSwitch kDefaultSwitches[] = { +@@ -295,7 +295,7 @@ const DefaultCommandLineSwitch kDefaultSwitches[] = { {switches::kEnableHardwareOverlays, "cast"}, #endif #endif -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) // It's better to start GPU process on demand. For example, for TV platforms // cast starts in background and can't render until TV switches to cast // input. -@@ -433,7 +433,7 @@ void CastBrowserMainParts::ToolkitInitialized() { +@@ -436,7 +436,7 @@ void CastBrowserMainParts::ToolkitInitialized() { views_delegate_ = std::make_unique(); #endif // defined(USE_AURA) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - // Without this call, the FontConfig library gets implicitly initialized - // on the first call to FontConfig. Since it's not safe to initialize it - // concurrently from multiple threads, we explicitly initialize it here + base::FilePath dir_module; + base::PathService::Get(base::DIR_MODULE, &dir_module); + base::FilePath dir_font = dir_module.Append("fonts"); Index: branches/2020Q1/www/chromium/files/patch-chromecast_external__mojo_public_cpp_external__mojo__broker.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-chromecast_external__mojo_public_cpp_external__mojo__broker.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-chromecast_external__mojo_public_cpp_external__mojo__broker.cc (revision 523260) @@ -0,0 +1,20 @@ +--- chromecast/external_mojo/public/cpp/external_mojo_broker.cc.orig 2019-12-17 19:25:44 UTC ++++ chromecast/external_mojo/public/cpp/external_mojo_broker.cc +@@ -7,7 +7,7 @@ + #include + #include + +-#if OS_LINUX ++#if defined(OS_LINUX) || defined(OS_BSD) + #include + #endif + +@@ -398,7 +398,7 @@ ExternalMojoBroker::ExternalMojoBroker(const std::stri + named_channel.TakeServerEndpoint(); + DCHECK(server_endpoint.is_valid()); + +-#if OS_LINUX ++#if defined(OS_LINUX) || defined(OS_BSD) + chmod(broker_path.c_str(), 0770); + #endif + Property changes on: branches/2020Q1/www/chromium/files/patch-chromecast_external__mojo_public_cpp_external__mojo__broker.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: branches/2020Q1/www/chromium/files/patch-components_autofill_content_renderer_password__form__conversion__utils.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_autofill_content_renderer_password__form__conversion__utils.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_autofill_content_renderer_password__form__conversion__utils.cc (revision 523260) @@ -1,14 +1,14 @@ ---- components/autofill/content/renderer/password_form_conversion_utils.cc.orig 2019-10-21 19:06:28 UTC +--- components/autofill/content/renderer/password_form_conversion_utils.cc.orig 2019-12-16 21:50:45 UTC +++ components/autofill/content/renderer/password_form_conversion_utils.cc -@@ -36,7 +36,11 @@ +@@ -19,7 +19,11 @@ #include "third_party/blink/public/web/web_form_control_element.h" #include "third_party/blink/public/web/web_input_element.h" #include "third_party/blink/public/web/web_local_frame.h" +#if defined(OS_BSD) +#include +#else #include "third_party/re2/src/re2/re2.h" +#endif #include "url/gurl.h" using blink::WebElement; Index: branches/2020Q1/www/chromium/files/patch-components_autofill_core_browser_autofill__experiments.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_autofill_core_browser_autofill__experiments.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_autofill_core_browser_autofill__experiments.cc (revision 523260) @@ -1,11 +1,11 @@ ---- components/autofill/core/browser/autofill_experiments.cc.orig 2019-10-21 19:06:28 UTC +--- components/autofill/core/browser/autofill_experiments.cc.orig 2019-12-16 21:50:45 UTC +++ components/autofill/core/browser/autofill_experiments.cc -@@ -234,7 +234,7 @@ bool IsAutofillNoLocalSaveOnUploadSuccessExperimentEna +@@ -233,7 +233,7 @@ bool IsAutofillNoLocalSaveOnUploadSuccessExperimentEna } bool OfferStoreUnmaskedCards(bool is_off_the_record) { -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) // The checkbox can be forced on with a flag, but by default we don't store // on Linux due to lack of system keychain integration. See crbug.com/162735 return base::CommandLine::ForCurrentProcess()->HasSwitch( Index: branches/2020Q1/www/chromium/files/patch-components_autofill_core_browser_personal__data__manager.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_autofill_core_browser_personal__data__manager.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_autofill_core_browser_personal__data__manager.cc (revision 523260) @@ -1,15 +1,15 @@ ---- components/autofill/core/browser/personal_data_manager.cc.orig 2019-10-21 19:06:28 UTC +--- components/autofill/core/browser/personal_data_manager.cc.orig 2019-12-16 21:51:25 UTC +++ components/autofill/core/browser/personal_data_manager.cc -@@ -1925,10 +1925,10 @@ bool PersonalDataManager::IsServerCard(const CreditCar +@@ -1819,10 +1819,10 @@ bool PersonalDataManager::IsServerCard(const CreditCar bool PersonalDataManager::ShouldShowCardsFromAccountOption() const { // The feature is only for Linux, Windows and Mac. -#if (!defined(OS_LINUX) && !defined(OS_WIN) && !defined(OS_MACOSX)) || \ +#if (!defined(OS_LINUX) && !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_BSD)) || \ defined(OS_CHROMEOS) return false; -#endif // (!defined(OS_LINUX) && !defined(OS_WIN) && !defined(OS_MACOSX)) || +#endif // (!defined(OS_LINUX) && !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_BSD)) || // defined(OS_CHROMEOS) // This option should only be shown for users that have not enabled the Sync Index: branches/2020Q1/www/chromium/files/patch-components_autofill_core_common_autofill__payments__features.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_autofill_core_common_autofill__payments__features.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_autofill_core_common_autofill__payments__features.cc (revision 523260) @@ -1,11 +1,11 @@ ---- components/autofill/core/common/autofill_payments_features.cc.orig 2019-10-21 19:06:28 UTC +--- components/autofill/core/common/autofill_payments_features.cc.orig 2019-12-16 21:51:25 UTC +++ components/autofill/core/common/autofill_payments_features.cc -@@ -159,7 +159,7 @@ const base::Feature kAutofillUpstreamEditableExpiratio +@@ -162,7 +162,7 @@ const base::Feature kAutofillUpstreamEditableExpiratio bool ShouldShowImprovedUserConsentForCreditCardSave() { #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) // The new user consent UI is fully launched on MacOS, Windows and Linux. return true; #endif Index: branches/2020Q1/www/chromium/files/patch-components_crash_content_app_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_crash_content_app_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_crash_content_app_BUILD.gn (revision 523260) @@ -1,20 +1,52 @@ ---- components/crash/content/app/BUILD.gn.orig 2019-10-21 19:06:28 UTC +--- components/crash/content/app/BUILD.gn.orig 2019-12-16 21:51:25 UTC +++ components/crash/content/app/BUILD.gn -@@ -54,7 +54,7 @@ static_library("app") { +@@ -51,17 +51,20 @@ static_library("app") { + "crashpad_win.cc", + ] + +- if (is_mac || is_win || is_android || is_linux) { ++ if ((is_mac || is_win || is_android || is_linux) && !is_bsd) { sources += [ "crashpad.cc" ] } - if (is_linux) { + if (is_linux && !is_bsd) { sources += [ "breakpad_linux.cc", "breakpad_linux.h", -@@ -98,7 +98,7 @@ static_library("app") { + "breakpad_linux_impl.h", ] } ++ if (is_bsd) { ++ sources -= [ "crashpad_linux.cc" ] ++ } + defines = [ "CRASH_IMPLEMENTATION" ] + +@@ -73,7 +76,7 @@ static_library("app") { + "//build:branding_buildflags", + ] + +- if (is_mac || is_win || is_android || is_linux) { ++ if ((is_mac || is_win || is_android || is_linux) && !is_bsd) { + deps += [ + "//third_party/crashpad/crashpad/client", + "//third_party/crashpad/crashpad/util", +@@ -99,7 +102,7 @@ static_library("app") { + ] + } + - if (is_linux) { + if (is_linux && !is_bsd) { deps += [ "//third_party/breakpad:client" ] } +@@ -130,7 +133,7 @@ static_library("app") { + libs = [ "log" ] + } + +- if (is_linux) { ++ if (is_linux && !is_bsd) { + data_deps = [ + "//third_party/crashpad/crashpad/handler:crashpad_handler", + ] Index: branches/2020Q1/www/chromium/files/patch-components_crash_content_app_crashpad.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_crash_content_app_crashpad.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_crash_content_app_crashpad.h (revision 523260) @@ -0,0 +1,66 @@ +--- components/crash/content/app/crashpad.h.orig 2019-12-19 16:46:22 UTC ++++ components/crash/content/app/crashpad.h +@@ -22,7 +22,7 @@ + #include + #endif + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include + #endif + +@@ -37,7 +37,7 @@ class CrashReportDatabase; + + namespace crash_reporter { + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // TODO(jperaza): Remove kEnableCrashpad and IsCrashpadEnabled() when Crashpad + // is fully enabled on Linux. + extern const char kEnableCrashpad[]; +@@ -146,11 +146,11 @@ void RequestSingleCrashUpload(const std::string& local + + void DumpWithoutCrashing(); + +-#if defined(OS_LINUX) || defined(OS_ANDROID) ++#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) + // Logs message and immediately crashes the current process without triggering a + // crash dump. + void CrashWithoutDumping(const std::string& message); +-#endif // defined(OS_LINUX) || defined(OS_ANDROID) ++#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) + + // Returns the Crashpad database path, only valid in the browser. + base::FilePath GetCrashpadDatabasePath(); +@@ -188,7 +188,7 @@ bool DumpWithoutCrashingForClient(CrashReporterClient* + void WhitelistMemoryRange(void* begin, size_t size); + #endif // OS_ANDROID + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // Install a handler that gets a chance to handle faults before Crashpad. This + // is used by V8 for trap-based bounds checks. + void SetFirstChanceExceptionHandler(bool (*handler)(int, siginfo_t*, void*)); +@@ -196,7 +196,7 @@ void SetFirstChanceExceptionHandler(bool (*handler)(in + // Gets the socket and process ID of the Crashpad handler connected to this + // process, valid if this function returns `true`. + bool GetHandlerSocket(int* sock, pid_t* pid); +-#endif // OS_LINUX ++#endif // OS_LINUX || OS_BSD + + namespace internal { + +@@ -212,11 +212,11 @@ DWORD WINAPI DumpProcessForHungInputThread(void* param + + #endif // defined(OS_WIN) + +-#if defined(OS_LINUX) || defined(OS_ANDROID) ++#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) + // Starts the handler process with an initial client connected on fd. + // Returns `true` on success. + bool StartHandlerForClient(int fd); +-#endif // OS_LINUX || OS_ANDROID ++#endif // OS_LINUX || OS_ANDROID || OS_BSD + + // The platform-specific portion of InitializeCrashpad(). On Windows, if + // |user_data_dir| is non-empty, the user data directory will be passed to the Property changes on: branches/2020Q1/www/chromium/files/patch-components_crash_content_app_crashpad.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: branches/2020Q1/www/chromium/files/patch-components_crash_content_app_crashpad__linux.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_crash_content_app_crashpad__linux.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_crash_content_app_crashpad__linux.cc (revision 523260) @@ -0,0 +1,24 @@ +--- components/crash/content/app/crashpad_linux.cc.orig 2019-12-19 16:47:28 UTC ++++ components/crash/content/app/crashpad_linux.cc +@@ -5,7 +5,9 @@ + #include "components/crash/content/app/crashpad.h" + + #include ++#if !defined(OS_BSD) + #include ++#endif + + #include + +@@ -66,9 +68,11 @@ void SetPtracerAtFork() { + if (!GetHandlerSocket(nullptr, &pid)) { + return; + } ++#if !defined(OS_BSD) + if (pid > 0 && prctl(PR_SET_PTRACER, pid, 0, 0, 0) != 0) { + PLOG(ERROR) << "prctl"; + } ++#endif + } + + namespace internal { Property changes on: branches/2020Q1/www/chromium/files/patch-components_crash_content_app_crashpad__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: branches/2020Q1/www/chromium/files/patch-components_crash_core_common_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_crash_core_common_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_crash_core_common_BUILD.gn (revision 523260) @@ -1,28 +1,31 @@ ---- components/crash/core/common/BUILD.gn.orig 2019-09-09 21:55:14 UTC +--- components/crash/core/common/BUILD.gn.orig 2019-12-16 21:50:45 UTC +++ components/crash/core/common/BUILD.gn @@ -7,7 +7,7 @@ import("//components/gwp_asan/buildflags/buildflags.gn declare_args() { # If set to true, this will stub out and disable the entire crash key system. - use_crash_key_stubs = is_fuchsia + use_crash_key_stubs = is_fuchsia || is_bsd } group("common") { -@@ -93,7 +93,6 @@ target(crash_key_target_type, "crash_key") { +@@ -110,7 +110,9 @@ target(crash_key_target_type, "crash_key_lib") { ] } - deps += [ "//third_party/breakpad:client" ] - } - } - -@@ -153,7 +152,7 @@ source_set("unit_tests") { ++ if (!is_bsd) { ++ deps += [ "//third_party/breakpad:client" ] ++ } + if (use_combined_annotations) { + public_deps += [ "//third_party/crashpad/crashpad/client" ] + } +@@ -173,7 +175,7 @@ source_set("unit_tests") { sources += [ "objc_zombie_unittest.mm" ] } - if (!is_mac && !is_ios && !is_win && !is_fuchsia && !is_android) { + if (!is_mac && !is_ios && !is_win && !is_fuchsia && !is_android && !is_bsd) { include_dirs = [ "//third_party/breakpad/breakpad/src/" ] sources += [ "crash_key_breakpad_unittest.cc" ] } Index: branches/2020Q1/www/chromium/files/patch-components_discardable__memory_service_discardable__shared__memory__manager.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_discardable__memory_service_discardable__shared__memory__manager.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_discardable__memory_service_discardable__shared__memory__manager.cc (revision 523260) @@ -1,20 +1,20 @@ ---- components/discardable_memory/service/discardable_shared_memory_manager.cc.orig 2019-10-21 19:06:28 UTC +--- components/discardable_memory/service/discardable_shared_memory_manager.cc.orig 2019-12-16 21:51:25 UTC +++ components/discardable_memory/service/discardable_shared_memory_manager.cc @@ -32,7 +32,7 @@ #include "components/discardable_memory/common/discardable_shared_memory_heap.h" - #include "mojo/public/cpp/bindings/strong_binding.h" + #include "mojo/public/cpp/bindings/self_owned_receiver.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "base/files/file_path.h" #include "base/files/file_util.h" #include "base/metrics/histogram_macros.h" @@ -176,7 +176,7 @@ int64_t GetDefaultMemoryLimit() { max_default_memory_limit /= 8; #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) base::FilePath shmem_dir; if (base::GetShmemTempDir(false, &shmem_dir)) { int64_t shmem_dir_amount_of_free_space = Index: branches/2020Q1/www/chromium/files/patch-components_download_internal_common_base__file.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_download_internal_common_base__file.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_download_internal_common_base__file.cc (revision 523260) @@ -1,20 +1,20 @@ ---- components/download/internal/common/base_file.cc.orig 2019-10-21 19:06:28 UTC +--- components/download/internal/common/base_file.cc.orig 2019-12-16 21:50:45 UTC +++ components/download/internal/common/base_file.cc -@@ -593,7 +593,7 @@ GURL GetEffectiveAuthorityURL(const GURL& source_url, +@@ -603,7 +603,7 @@ GURL GetEffectiveAuthorityURL(const GURL& source_url, } // namespace -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) DownloadInterruptReason BaseFile::AnnotateWithSourceInformationSync( const std::string& client_guid, -@@ -611,7 +611,7 @@ DownloadInterruptReason BaseFile::AnnotateWithSourceIn +@@ -621,7 +621,7 @@ DownloadInterruptReason BaseFile::AnnotateWithSourceIn return QuarantineFileResultToReason(result); } -#else // !OS_WIN && !OS_MACOSX && !OS_LINUX +#else // !OS_WIN && !OS_MACOSX && !OS_LINUX && !OS_BSD DownloadInterruptReason BaseFile::AnnotateWithSourceInformationSync( const std::string& client_guid, const GURL& source_url, Index: branches/2020Q1/www/chromium/files/patch-components_feature__engagement_public_feature__list.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_feature__engagement_public_feature__list.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_feature__engagement_public_feature__list.cc (revision 523260) @@ -1,20 +1,20 @@ ---- components/feature_engagement/public/feature_list.cc.orig 2019-10-21 19:06:29 UTC +--- components/feature_engagement/public/feature_list.cc.orig 2019-12-16 21:51:25 UTC +++ components/feature_engagement/public/feature_list.cc -@@ -57,7 +57,7 @@ const base::Feature* const kAllFeatures[] = { +@@ -54,7 +54,7 @@ const base::Feature* const kAllFeatures[] = { &kIPHBadgedReadingListFeature, &kIPHBadgedTranslateManualTriggerFeature, #endif // defined(OS_IOS) -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ defined(OS_CHROMEOS) &kIPHFocusModeFeature, &kIPHGlobalMediaControlsFeature, -@@ -67,7 +67,7 @@ const base::Feature* const kAllFeatures[] = { +@@ -64,7 +64,7 @@ const base::Feature* const kAllFeatures[] = { &kIPHIncognitoWindowFeature, &kIPHNewTabFeature, #endif // BUILDFLAG(ENABLE_LEGACY_DESKTOP_IN_PRODUCT_HELP) -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || // defined(OS_CHROMEOS) }; } // namespace Index: branches/2020Q1/www/chromium/files/patch-components_feature__engagement_public_feature__list.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_feature__engagement_public_feature__list.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_feature__engagement_public_feature__list.h (revision 523260) @@ -1,38 +1,38 @@ ---- components/feature_engagement/public/feature_list.h.orig 2019-10-21 19:06:29 UTC +--- components/feature_engagement/public/feature_list.h.orig 2019-12-16 21:51:25 UTC +++ components/feature_engagement/public/feature_list.h -@@ -107,7 +107,7 @@ DEFINE_VARIATION_PARAM(kIPHBadgedTranslateManualTrigge +@@ -104,7 +104,7 @@ DEFINE_VARIATION_PARAM(kIPHBadgedTranslateManualTrigge "IPH_BadgedTranslateManualTrigger"); #endif // defined(OS_IOS) -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ defined(OS_CHROMEOS) DEFINE_VARIATION_PARAM(kIPHFocusModeFeature, "IPH_FocusMode"); DEFINE_VARIATION_PARAM(kIPHGlobalMediaControls, "IPH_GlobalMediaControls"); -@@ -117,7 +117,7 @@ DEFINE_VARIATION_PARAM(kIPHBookmarkFeature, "IPH_Bookm +@@ -114,7 +114,7 @@ DEFINE_VARIATION_PARAM(kIPHBookmarkFeature, "IPH_Bookm DEFINE_VARIATION_PARAM(kIPHIncognitoWindowFeature, "IPH_IncognitoWindow"); DEFINE_VARIATION_PARAM(kIPHNewTabFeature, "IPH_NewTab"); #endif // BUILDFLAG(ENABLE_LEGACY_DESKTOP_IN_PRODUCT_HELP) -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || // defined(OS_CHROMEOS) } // namespace -@@ -166,7 +166,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation +@@ -160,7 +160,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation VARIATION_ENTRY(kIPHNewIncognitoTabTipFeature), VARIATION_ENTRY(kIPHBadgedReadingListFeature), VARIATION_ENTRY(kIPHBadgedTranslateManualTriggerFeature), -#elif defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +#elif defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ defined(OS_CHROMEOS) VARIATION_ENTRY(kIPHFocusModeFeature), VARIATION_ENTRY(kIPHGlobalMediaControls), -@@ -176,7 +176,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation +@@ -170,7 +170,7 @@ constexpr flags_ui::FeatureEntry::FeatureVariation VARIATION_ENTRY(kIPHIncognitoWindowFeature), VARIATION_ENTRY(kIPHNewTabFeature), #endif // BUILDFLAG(ENABLE_LEGACY_DESKTOP_IN_PRODUCT_HELP) -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || // defined(OS_CHROMEOS) }; Index: branches/2020Q1/www/chromium/files/patch-components_metrics_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_metrics_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_metrics_BUILD.gn (revision 523260) @@ -1,14 +1,14 @@ ---- components/metrics/BUILD.gn.orig 2019-10-21 19:06:29 UTC +--- components/metrics/BUILD.gn.orig 2019-12-16 21:51:25 UTC +++ components/metrics/BUILD.gn -@@ -164,6 +164,11 @@ jumbo_static_library("metrics") { +@@ -165,6 +165,11 @@ jumbo_static_library("metrics") { if (is_fuchsia) { sources += [ "drive_metrics_provider_fuchsia.cc" ] } + + if (is_bsd) { + sources -= [ "system_memory_stats_recorder_linux.cc" ] + } + } # The component metrics provider is a separate target because it depends upon Index: branches/2020Q1/www/chromium/files/patch-components_network__session__configurator_browser_network__session__configurator.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_network__session__configurator_browser_network__session__configurator.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_network__session__configurator_browser_network__session__configurator.cc (revision 523260) @@ -1,11 +1,11 @@ ---- components/network_session_configurator/browser/network_session_configurator.cc.orig 2019-10-21 19:06:29 UTC +--- components/network_session_configurator/browser/network_session_configurator.cc.orig 2019-12-16 21:51:25 UTC +++ components/network_session_configurator/browser/network_session_configurator.cc -@@ -763,7 +763,7 @@ net::URLRequestContextBuilder::HttpCacheParams::Type C +@@ -743,7 +743,7 @@ net::URLRequestContextBuilder::HttpCacheParams::Type C } #endif // #if !defined(OS_ANDROID) -#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) return net::URLRequestContextBuilder::HttpCacheParams::DISK_SIMPLE; #else return net::URLRequestContextBuilder::HttpCacheParams::DISK_BLOCKFILE; Index: branches/2020Q1/www/chromium/files/patch-components_policy_core_common_cloud_cloud__policy__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_policy_core_common_cloud_cloud__policy__util.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_policy_core_common_cloud_cloud__policy__util.cc (revision 523260) @@ -1,73 +1,73 @@ ---- components/policy/core/common/cloud/cloud_policy_util.cc.orig 2019-03-11 22:00:56 UTC +--- components/policy/core/common/cloud/cloud_policy_util.cc.orig 2019-12-16 21:51:25 UTC +++ components/policy/core/common/cloud/cloud_policy_util.cc @@ -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 -@@ -52,7 +52,7 @@ +@@ -57,7 +57,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 -@@ -61,11 +61,24 @@ namespace policy { +@@ -66,11 +66,24 @@ namespace policy { 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}; -@@ -111,7 +124,7 @@ std::string GetMachineName() { +@@ -116,7 +129,7 @@ std::string GetMachineName() { } 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) +-#if defined(OS_LINUX) || defined(OS_MACOSX) ++#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) return base::SysInfo::OperatingSystemVersion(); #elif defined(OS_WIN) base::win::OSInfo::VersionNumber version_number = -@@ -134,7 +147,7 @@ std::string GetOSArchitecture() { +@@ -139,7 +152,7 @@ std::string GetOSArchitecture() { } 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(); Index: branches/2020Q1/www/chromium/files/patch-components_policy_resources_policy__templates.json =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_policy_resources_policy__templates.json (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_policy_resources_policy__templates.json (revision 523260) @@ -1,83 +1,83 @@ ---- components/policy/resources/policy_templates.json.orig 2019-10-21 19:06:29 UTC +--- components/policy/resources/policy_templates.json.orig 2019-12-16 21:51:25 UTC +++ components/policy/resources/policy_templates.json -@@ -1038,7 +1038,7 @@ +@@ -1062,7 +1062,7 @@ 'owners': ['file://components/policy/resources/OWNERS'], 'type': 'string', 'schema': { 'type': 'string' }, - 'supported_on': ['chrome.*:8-', 'chrome_os:11-'], + 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'chrome.freebsd:9-'], 'features': { 'can_be_recommended': True, 'dynamic_refresh': True, -@@ -1068,7 +1068,7 @@ +@@ -1092,7 +1092,7 @@ 'owners': ['file://components/policy/resources/OWNERS'], 'type': 'main', 'schema': { 'type': 'boolean' }, - 'supported_on': ['chrome.*:8-', 'chrome_os:11-'], + 'supported_on': ['chrome.*:8-', 'chrome_os:11-', 'chrome.freebsd:9-'], 'features': { 'can_be_recommended': True, 'dynamic_refresh': True, -@@ -1095,7 +1095,7 @@ +@@ -1119,7 +1119,7 @@ 'owners': ['file://components/policy/resources/OWNERS'], 'type': 'string', 'schema': { 'type': 'string' }, - 'supported_on': ['chrome.*:58-', 'chrome_os:58-'], + 'supported_on': ['chrome.*:58-', 'chrome_os:58-', 'chrome.freebsd:9-'], 'features': { 'can_be_recommended': True, 'dynamic_refresh': True, -@@ -1821,7 +1821,7 @@ +@@ -1845,7 +1845,7 @@ 'owners': ['jamiewalch@chromium.org', 'rkjnsn@chromium.org'], '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.freebsd:25-'], 'features': { 'dynamic_refresh': True, 'per_profile': False, -@@ -3536,7 +3536,7 @@ +@@ -3667,7 +3667,7 @@ 'owners': ['file://components/policy/resources/OWNERS'], 'type': 'string', 'schema': { 'type': 'string' }, - 'supported_on': ['chrome.linux:9-'], + 'supported_on': ['chrome.linux:9-', 'chrome.freebsd:9-'], 'features': { 'dynamic_refresh': False, 'per_profile': False, -@@ -3590,7 +3590,7 @@ +@@ -3721,7 +3721,7 @@ 'owners': ['file://components/policy/resources/OWNERS'], '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.freebsd:63-'], 'features': { 'dynamic_refresh': True, 'per_profile': False, -@@ -6919,7 +6919,7 @@ +@@ -7159,7 +7159,7 @@ 'owners': ['file://src/net/cert/OWNERS'], '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.freebsd:30-'], 'features': { 'dynamic_refresh': True, 'per_profile': False, -@@ -8119,7 +8119,7 @@ +@@ -8383,7 +8383,7 @@ 'owners': ['file://components/policy/resources/OWNERS'], 'type': 'main', 'schema': { 'type': 'boolean' }, - 'supported_on': ['chrome.win:19-', 'chrome.linux:19-'], + 'supported_on': ['chrome.win:19-', 'chrome.linux:19-', 'chrome.freebsd:19-'], 'features': { 'can_be_recommended': True, 'dynamic_refresh': True, -@@ -8713,7 +8713,7 @@ +@@ -9032,7 +9032,7 @@ 'owners': ['file://components/policy/resources/OWNERS'], '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.freebsd:31-'], 'features': { 'dynamic_refresh': True, 'per_profile': True, Index: branches/2020Q1/www/chromium/files/patch-components_policy_tools_generate__policy__source.py =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_policy_tools_generate__policy__source.py (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_policy_tools_generate__policy__source.py (revision 523260) @@ -1,19 +1,19 @@ ---- components/policy/tools/generate_policy_source.py.orig 2019-10-21 19:06:30 UTC +--- components/policy/tools/generate_policy_source.py.orig 2019-12-16 21:51:25 UTC +++ components/policy/tools/generate_policy_source.py -@@ -92,6 +92,7 @@ class PolicyDetails: +@@ -96,6 +96,7 @@ class PolicyDetails: 'chrome.linux', 'chrome.mac', 'chrome.fuchsia', + 'chrome.freebsd', 'chrome.*', 'chrome.win7', ]: -@@ -114,7 +115,7 @@ class PolicyDetails: +@@ -118,7 +119,7 @@ class PolicyDetails: 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', 'freebsd']) elif platform_sub == 'win7': self.platforms.append('win') else: Index: branches/2020Q1/www/chromium/files/patch-components_sync__device__info_device__info__sync__bridge.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_sync__device__info_device__info__sync__bridge.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_sync__device__info_device__info__sync__bridge.cc (revision 523260) @@ -0,0 +1,16 @@ +--- components/sync_device_info/device_info_sync_bridge.cc.orig 2019-12-31 14:39:30 UTC ++++ components/sync_device_info/device_info_sync_bridge.cc +@@ -432,11 +432,13 @@ void DeviceInfoSyncBridge::OnStoreCreated( + return; + } + ++#if !defined(OS_BSD) + store_ = std::move(store); + + base::SysInfo::GetHardwareInfo( + base::BindOnce(&DeviceInfoSyncBridge::OnHardwareInfoRetrieved, + weak_ptr_factory_.GetWeakPtr())); ++#endif + } + + void DeviceInfoSyncBridge::OnHardwareInfoRetrieved( Property changes on: branches/2020Q1/www/chromium/files/patch-components_sync__device__info_device__info__sync__bridge.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: branches/2020Q1/www/chromium/files/patch-components_sync__device__info_local__device__info__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_sync__device__info_local__device__info__util.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_sync__device__info_local__device__info__util.cc (revision 523260) @@ -0,0 +1,11 @@ +--- components/sync_device_info/local_device_info_util.cc.orig 2019-12-31 14:40:27 UTC ++++ components/sync_device_info/local_device_info_util.cc +@@ -19,7 +19,7 @@ std::string GetPersonalizableDeviceNameInternal(); + sync_pb::SyncEnums::DeviceType GetLocalDeviceType() { + #if defined(OS_CHROMEOS) + return sync_pb::SyncEnums_DeviceType_TYPE_CROS; +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_BSD) + return sync_pb::SyncEnums_DeviceType_TYPE_LINUX; + #elif defined(OS_ANDROID) || defined(OS_IOS) + return ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_TABLET Property changes on: branches/2020Q1/www/chromium/files/patch-components_sync__device__info_local__device__info__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: branches/2020Q1/www/chromium/files/patch-components_sync__device__info_local__device__info__util__linux.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_sync__device__info_local__device__info__util__linux.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-components_sync__device__info_local__device__info__util__linux.cc (revision 523260) @@ -1,26 +1,26 @@ ---- components/sync_device_info/local_device_info_util_linux.cc.orig 2019-07-29 16:01:57 UTC +--- components/sync_device_info/local_device_info_util_linux.cc.orig 2019-12-16 21:50:47 UTC +++ components/sync_device_info/local_device_info_util_linux.cc -@@ -30,6 +30,23 @@ std::string GetSessionNameInternal() { - break; - } - return "Chromebook"; +@@ -36,6 +36,23 @@ std::string GetChromeOSDeviceNameFromType() { + std::string GetPersonalizableDeviceNameInternal() { + #if defined(OS_CHROMEOS) + return GetChromeOSDeviceNameFromType(); +#elif defined(OS_BSD) + long len = sysconf(_SC_HOST_NAME_MAX); -+ ++ + if (len == -1) + return "FreeBSD"; -+ ++ + char *hostname = new (std::nothrow) char[len](); + + if ((hostname == nullptr) || (gethostname(hostname, len) == -1)) { + delete[](hostname); + return "FreeBSD"; + } -+ -+ std::string res{hostname}; + ++ std::string res{hostname}; + delete[](hostname); ++ + return res; #else char hostname[HOST_NAME_MAX]; if (gethostname(hostname, HOST_NAME_MAX) == 0) // Success. Index: branches/2020Q1/www/chromium/files/patch-components_viz_host_host__display__client.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_viz_host_host__display__client.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_viz_host_host__display__client.cc (revision 523260) @@ -0,0 +1,11 @@ +--- components/viz/host/host_display_client.cc.orig 2019-12-17 19:29:17 UTC ++++ components/viz/host/host_display_client.cc +@@ -59,7 +59,7 @@ void HostDisplayClient::CreateLayeredWindowUpdater( + } + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + void HostDisplayClient::DidCompleteSwapWithNewSize(const gfx::Size& size) { + NOTIMPLEMENTED(); + } Property changes on: branches/2020Q1/www/chromium/files/patch-components_viz_host_host__display__client.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: branches/2020Q1/www/chromium/files/patch-components_viz_host_host__display__client.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_viz_host_host__display__client.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_viz_host_host__display__client.h (revision 523260) @@ -0,0 +1,11 @@ +--- components/viz/host/host_display_client.h.orig 2019-12-17 19:29:39 UTC ++++ components/viz/host/host_display_client.h +@@ -42,7 +42,7 @@ class VIZ_HOST_EXPORT HostDisplayClient : public mojom + mojo::PendingReceiver receiver) override; + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + void DidCompleteSwapWithNewSize(const gfx::Size& size) override; + #endif + Property changes on: branches/2020Q1/www/chromium/files/patch-components_viz_host_host__display__client.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: branches/2020Q1/www/chromium/files/patch-components_viz_service_display__embedder_software__output__surface.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_viz_service_display__embedder_software__output__surface.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_viz_service_display__embedder_software__output__surface.cc (revision 523260) @@ -0,0 +1,20 @@ +--- components/viz/service/display_embedder/software_output_surface.cc.orig 2019-12-17 19:30:11 UTC ++++ components/viz/service/display_embedder/software_output_surface.cc +@@ -119,7 +119,7 @@ void SoftwareOutputSurface::SwapBuffersCallback(base:: + base::TimeTicks now = base::TimeTicks::Now(); + base::TimeDelta interval_to_next_refresh = + now.SnappedToNextTick(refresh_timebase_, refresh_interval_) - now; +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + if (needs_swap_size_notifications_) + client_->DidSwapWithSize(pixel_size); + #endif +@@ -148,7 +148,7 @@ gfx::OverlayTransform SoftwareOutputSurface::GetDispla + return gfx::OVERLAY_TRANSFORM_NONE; + } + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + void SoftwareOutputSurface::SetNeedsSwapSizeNotifications( + bool needs_swap_size_notifications) { + needs_swap_size_notifications_ = needs_swap_size_notifications; Property changes on: branches/2020Q1/www/chromium/files/patch-components_viz_service_display__embedder_software__output__surface.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: branches/2020Q1/www/chromium/files/patch-components_viz_service_display__embedder_software__output__surface.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_viz_service_display__embedder_software__output__surface.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_viz_service_display__embedder_software__output__surface.h (revision 523260) @@ -0,0 +1,20 @@ +--- components/viz/service/display_embedder/software_output_surface.h.orig 2019-12-17 19:30:42 UTC ++++ components/viz/service/display_embedder/software_output_surface.h +@@ -50,7 +50,7 @@ class VIZ_SERVICE_EXPORT SoftwareOutputSurface : publi + UpdateVSyncParametersCallback callback) override; + void SetDisplayTransformHint(gfx::OverlayTransform transform) override {} + gfx::OverlayTransform GetDisplayTransform() override; +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + void SetNeedsSwapSizeNotifications( + bool needs_swap_size_notifications) override; + #endif +@@ -70,7 +70,7 @@ class VIZ_SERVICE_EXPORT SoftwareOutputSurface : publi + std::queue> stored_latency_info_; + ui::LatencyTracker latency_tracker_; + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + bool needs_swap_size_notifications_ = false; + #endif + Property changes on: branches/2020Q1/www/chromium/files/patch-components_viz_service_display__embedder_software__output__surface.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: branches/2020Q1/www/chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.cc (revision 523260) @@ -0,0 +1,20 @@ +--- components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc.orig 2019-12-17 19:31:16 UTC ++++ components/viz/service/frame_sinks/root_compositor_frame_sink_impl.cc +@@ -49,7 +49,7 @@ RootCompositorFrameSinkImpl::Create( + output_surface->SetNeedsSwapSizeNotifications( + params->send_swap_size_notifications); + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + // For X11, we need notify client about swap completion after resizing, so the + // client can use it for synchronize with X11 WM. + output_surface->SetNeedsSwapSizeNotifications(true); +@@ -358,7 +358,7 @@ void RootCompositorFrameSinkImpl::DisplayDidCompleteSw + #if defined(OS_ANDROID) + if (display_client_) + display_client_->DidCompleteSwapWithSize(pixel_size); +-#elif defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#elif (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + if (display_client_ && pixel_size != last_swap_pixel_size_) { + last_swap_pixel_size_ = pixel_size; + display_client_->DidCompleteSwapWithNewSize(last_swap_pixel_size_); Property changes on: branches/2020Q1/www/chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__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: branches/2020Q1/www/chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__impl.h (revision 523260) @@ -0,0 +1,11 @@ +--- components/viz/service/frame_sinks/root_compositor_frame_sink_impl.h.orig 2019-12-17 19:31:54 UTC ++++ components/viz/service/frame_sinks/root_compositor_frame_sink_impl.h +@@ -140,7 +140,7 @@ class RootCompositorFrameSinkImpl : public mojom::Comp + // to the BFS. + std::unique_ptr display_; + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + gfx::Size last_swap_pixel_size_; + #endif + Property changes on: branches/2020Q1/www/chromium/files/patch-components_viz_service_frame__sinks_root__compositor__frame__sink__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: branches/2020Q1/www/chromium/files/patch-content_app_content__main__runner__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_app_content__main__runner__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_app_content__main__runner__impl.cc (revision 523260) @@ -1,73 +1,73 @@ ---- content/app/content_main_runner_impl.cc.orig 2019-10-21 19:06:31 UTC +--- content/app/content_main_runner_impl.cc.orig 2019-12-16 21:51:26 UTC +++ content/app/content_main_runner_impl.cc -@@ -102,17 +102,17 @@ +@@ -101,17 +101,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 #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" -@@ -133,7 +133,7 @@ +@@ -132,7 +132,7 @@ #include "content/public/common/content_client.h" #endif -#endif // OS_LINUX +#endif // OS_LINUX || defined(OS_BSD) #if !defined(CHROME_MULTIPLE_DLL_BROWSER) #include "content/child/field_trial.h" -@@ -318,7 +318,7 @@ void InitializeZygoteSandboxForBrowserProcess( +@@ -317,7 +317,7 @@ void InitializeZygoteSandboxForBrowserProcess( } #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 -@@ -415,7 +415,7 @@ void PreSandboxInit() { +@@ -414,7 +414,7 @@ void PreSandboxInit() { } #endif // BUILDFLAG(USE_ZYGOTE_HANDLE) -#endif // OS_LINUX +#endif // OS_LINUX || OS_BSD - #if !defined(CHROME_MULTIPLE_DLL_CHILD) - void InitializeBrowserClientProcessImpl() { -@@ -482,7 +482,7 @@ int RunZygote(ContentMainDelegate* delegate) { + } // namespace + +@@ -472,7 +472,7 @@ int RunZygote(ContentMainDelegate* delegate) { delegate->ZygoteStarting(&zygote_fork_delegates); media::InitializeMediaLibrary(); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) PreSandboxInit(); #endif -@@ -647,11 +647,11 @@ int ContentMainRunnerImpl::Initialize(const ContentMai +@@ -637,11 +637,11 @@ int ContentMainRunnerImpl::Initialize(const ContentMai 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: branches/2020Q1/www/chromium/files/patch-content_browser_browser__main__loop.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_browser__main__loop.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_browser__main__loop.cc (revision 523260) @@ -1,46 +1,46 @@ ---- content/browser/browser_main_loop.cc.orig 2019-10-21 19:06:31 UTC +--- content/browser/browser_main_loop.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/browser_main_loop.cc -@@ -244,6 +244,13 @@ +@@ -247,6 +247,13 @@ #include "mojo/public/cpp/bindings/lib/test_random_mojo_delays.h" #endif +#if defined(OS_BSD) +#include "content/browser/sandbox_host_linux.h" +#include "services/service_manager/zygote/common/common_sandbox_support_linux.h" +#include "content/public/common/common_sandbox_support_linux.h" +#include "services/service_manager/sandbox/sandbox.h" +#endif + // One of the linux specific headers defines this as a macro. #ifdef DestroyAll #undef DestroyAll -@@ -573,6 +580,11 @@ int BrowserMainLoop::EarlyInitialization() { +@@ -582,6 +589,11 @@ int BrowserMainLoop::EarlyInitialization() { // by now since a thread to start the ServiceManager has been created // before the browser main loop starts. DCHECK(SandboxHostLinux::GetInstance()->IsInitialized()); +#elif defined(OS_BSD) + SandboxHostLinux::GetInstance()->Init(); + base::FileHandleMappingVector fds_to_map; + const int sfd = SandboxHostLinux::GetInstance()->GetChildSocket(); + fds_to_map.push_back(std::make_pair(sfd, service_manager::GetSandboxFD())); #endif #if defined(USE_X11) -@@ -618,7 +630,7 @@ int BrowserMainLoop::EarlyInitialization() { +@@ -627,7 +639,7 @@ int BrowserMainLoop::EarlyInitialization() { } #endif // !defined(OS_MACOSX) -#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_CHROMEOS) || \ +#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) || \ defined(OS_ANDROID) // We use quite a few file descriptors for our IPC as well as disk the disk // cache,and the default limit on the Mac is low (256), so bump it up. -@@ -628,7 +640,7 @@ int BrowserMainLoop::EarlyInitialization() { +@@ -637,7 +649,7 @@ int BrowserMainLoop::EarlyInitialization() { // users can easily hit this limit with many open tabs. Bump up the limit to // an arbitrarily high number. See https://crbug.com/539567 base::IncreaseFdLimitTo(8192); -#endif // defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_CHROMEOS) || +#endif // defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) || // defined(OS_ANDROID) #if defined(OS_WIN) Index: branches/2020Q1/www/chromium/files/patch-content_browser_compositor_gpu__process__transport__factory.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_compositor_gpu__process__transport__factory.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-content_browser_compositor_gpu__process__transport__factory.cc (revision 523260) @@ -0,0 +1,11 @@ +--- content/browser/compositor/gpu_process_transport_factory.cc.orig 2019-12-17 19:32:45 UTC ++++ content/browser/compositor/gpu_process_transport_factory.cc +@@ -114,7 +114,7 @@ viz::FrameSinkManagerImpl* GetFrameSinkManager() { + return content::BrowserMainLoop::GetInstance()->GetFrameSinkManager(); + } + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + class HostDisplayClient : public viz::HostDisplayClient { + public: + explicit HostDisplayClient(ui::Compositor* compositor) Property changes on: branches/2020Q1/www/chromium/files/patch-content_browser_compositor_gpu__process__transport__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: branches/2020Q1/www/chromium/files/patch-content_browser_compositor_software__browser__compositor__output__surface.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_compositor_software__browser__compositor__output__surface.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-content_browser_compositor_software__browser__compositor__output__surface.cc (revision 523260) @@ -0,0 +1,20 @@ +--- content/browser/compositor/software_browser_compositor_output_surface.cc.orig 2019-12-17 19:33:09 UTC ++++ content/browser/compositor/software_browser_compositor_output_surface.cc +@@ -89,7 +89,7 @@ void SoftwareBrowserCompositorOutputSurface::SwapBuffe + const gfx::Size& pixel_size) { + latency_tracker_.OnGpuSwapBuffersCompleted(latency_info); + client_->DidReceiveSwapBuffersAck({swap_time, swap_time}); +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + if (needs_swap_size_notifications_) + client_->DidSwapWithSize(pixel_size); + #endif +@@ -129,7 +129,7 @@ unsigned SoftwareBrowserCompositorOutputSurface::Updat + return 0; + } + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + void SoftwareBrowserCompositorOutputSurface::SetNeedsSwapSizeNotifications( + bool needs_swap_size_notifications) { + needs_swap_size_notifications_ = needs_swap_size_notifications; Property changes on: branches/2020Q1/www/chromium/files/patch-content_browser_compositor_software__browser__compositor__output__surface.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: branches/2020Q1/www/chromium/files/patch-content_browser_compositor_software__browser__compositor__output__surface.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_compositor_software__browser__compositor__output__surface.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-content_browser_compositor_software__browser__compositor__output__surface.h (revision 523260) @@ -0,0 +1,20 @@ +--- content/browser/compositor/software_browser_compositor_output_surface.h.orig 2019-12-17 19:33:36 UTC ++++ content/browser/compositor/software_browser_compositor_output_surface.h +@@ -39,7 +39,7 @@ class CONTENT_EXPORT SoftwareBrowserCompositorOutputSu + gfx::BufferFormat GetOverlayBufferFormat() const override; + uint32_t GetFramebufferCopyTextureFormat() override; + unsigned UpdateGpuFence() override; +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + void SetNeedsSwapSizeNotifications( + bool needs_swap_size_notifications) override; + #endif +@@ -55,7 +55,7 @@ class CONTENT_EXPORT SoftwareBrowserCompositorOutputSu + base::TimeDelta refresh_interval_; + ui::LatencyTracker latency_tracker_; + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + bool needs_swap_size_notifications_ = false; + #endif + Property changes on: branches/2020Q1/www/chromium/files/patch-content_browser_compositor_software__browser__compositor__output__surface.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: branches/2020Q1/www/chromium/files/patch-content_browser_devtools_protocol_system__info__handler.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_devtools_protocol_system__info__handler.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_devtools_protocol_system__info__handler.cc (revision 523260) @@ -1,11 +1,11 @@ ---- content/browser/devtools/protocol/system_info_handler.cc.orig 2019-09-09 21:55:16 UTC +--- content/browser/devtools/protocol/system_info_handler.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/devtools/protocol/system_info_handler.cc @@ -48,7 +48,7 @@ std::unique_ptr GfxSizeToSystemInfoS // Give the GPU process a few seconds to provide GPU info. // Linux Debug builds need more time -- see Issue 796437. - // Windows builds need more time -- see Issue 873112. --#if (defined(OS_LINUX) && !defined(NDEBUG)) || defined(OS_WIN) -+#if ((defined(OS_LINUX) || defined(OS_BSD)) && !defined(NDEBUG)) || defined(OS_WIN) + // Windows builds need more time -- see Issue 873112 and 1004472. +-#if (defined(OS_LINUX) && !defined(NDEBUG)) ++#if ((defined(OS_LINUX) || defined(OS_BSD)) && !defined(NDEBUG)) const int kGPUInfoWatchdogTimeoutMs = 20000; - #else - const int kGPUInfoWatchdogTimeoutMs = 5000; + #elif defined(OS_WIN) + const int kGPUInfoWatchdogTimeoutMs = 30000; Index: branches/2020Q1/www/chromium/files/patch-content_browser_gpu_gpu__process__host.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_gpu_gpu__process__host.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_gpu_gpu__process__host.cc (revision 523260) @@ -1,11 +1,11 @@ ---- content/browser/gpu/gpu_process_host.cc.orig 2019-10-21 19:06:32 UTC +--- content/browser/gpu/gpu_process_host.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/gpu/gpu_process_host.cc -@@ -1094,7 +1094,7 @@ bool GpuProcessHost::LaunchGpuProcess() { +@@ -1087,7 +1087,7 @@ bool GpuProcessHost::LaunchGpuProcess() { std::unique_ptr cmd_line = std::make_unique(base::CommandLine::NO_PROGRAM); #else -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) int child_flags = gpu_launcher.empty() ? ChildProcessHost::CHILD_ALLOW_SELF : ChildProcessHost::CHILD_NORMAL; #elif defined(OS_MACOSX) Index: branches/2020Q1/www/chromium/files/patch-content_browser_media_media__internals.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_media_media__internals.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_media_media__internals.cc (revision 523260) @@ -1,11 +1,11 @@ ---- content/browser/media/media_internals.cc.orig 2019-09-09 21:55:16 UTC +--- content/browser/media/media_internals.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/media/media_internals.cc -@@ -505,7 +505,7 @@ void MediaInternals::UpdateVideoCaptureDeviceCapabilit +@@ -513,7 +513,7 @@ void MediaInternals::UpdateVideoCaptureDeviceCapabilit device_dict->SetString("id", descriptor.device_id); device_dict->SetString("name", descriptor.GetNameAndModel()); device_dict->Set("formats", std::move(format_list)); -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ defined(OS_ANDROID) device_dict->SetString("captureApi", descriptor.GetCaptureApiTypeString()); #endif Index: branches/2020Q1/www/chromium/files/patch-content_browser_ppapi__plugin__process__host.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_ppapi__plugin__process__host.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_ppapi__plugin__process__host.cc (revision 523260) @@ -1,11 +1,11 @@ ---- content/browser/ppapi_plugin_process_host.cc.orig 2019-10-21 19:06:32 UTC +--- content/browser/ppapi_plugin_process_host.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/ppapi_plugin_process_host.cc -@@ -370,7 +370,7 @@ bool PpapiPluginProcessHost::Init(const PepperPluginIn +@@ -366,7 +366,7 @@ bool PpapiPluginProcessHost::Init(const PepperPluginIn base::CommandLine::StringType plugin_launcher = browser_command_line.GetSwitchValueNative(switches::kPpapiPluginLauncher); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) int flags = plugin_launcher.empty() ? ChildProcessHost::CHILD_ALLOW_SELF : ChildProcessHost::CHILD_NORMAL; #elif defined(OS_MACOSX) Index: branches/2020Q1/www/chromium/files/patch-content_browser_ppapi__plugin__process__host__receiver__bindings.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_ppapi__plugin__process__host__receiver__bindings.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-content_browser_ppapi__plugin__process__host__receiver__bindings.cc (revision 523260) @@ -0,0 +1,20 @@ +--- content/browser/ppapi_plugin_process_host_receiver_bindings.cc.orig 2019-12-17 19:34:30 UTC ++++ content/browser/ppapi_plugin_process_host_receiver_bindings.cc +@@ -8,7 +8,7 @@ + + #include "build/build_config.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include "components/services/font/public/mojom/font_service.mojom.h" // nogncheck + #include "content/browser/font_service.h" // nogncheck + #endif +@@ -17,7 +17,7 @@ namespace content { + + void PpapiPluginProcessHost::BindHostReceiver( + mojo::GenericPendingReceiver receiver) { +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + if (auto font_receiver = receiver.As()) + ConnectToFontService(std::move(font_receiver)); + #endif Property changes on: branches/2020Q1/www/chromium/files/patch-content_browser_ppapi__plugin__process__host__receiver__bindings.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: branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__message__filter.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__message__filter.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__message__filter.cc (revision 523260) @@ -1,29 +1,29 @@ ---- content/browser/renderer_host/render_message_filter.cc.orig 2019-10-21 19:06:32 UTC +--- content/browser/renderer_host/render_message_filter.cc.orig 2019-12-16 21:50:47 UTC +++ content/browser/renderer_host/render_message_filter.cc @@ -70,7 +70,7 @@ #if defined(OS_MACOSX) #include "ui/accelerated_widget_mac/window_resize_helper_mac.h" #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "base/linux_util.h" #include "base/threading/platform_thread.h" #endif -@@ -148,7 +148,7 @@ void RenderMessageFilter::CreateFullscreenWidget( +@@ -149,7 +149,7 @@ void RenderMessageFilter::CreateFullscreenWidget( std::move(callback).Run(route_id); } -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) void RenderMessageFilter::SetThreadPriorityOnFileThread( base::PlatformThreadId ns_tid, base::ThreadPriority priority) { -@@ -169,7 +169,7 @@ void RenderMessageFilter::SetThreadPriorityOnFileThrea +@@ -170,7 +170,7 @@ void RenderMessageFilter::SetThreadPriorityOnFileThrea } #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) void RenderMessageFilter::SetThreadPriority(int32_t ns_tid, base::ThreadPriority priority) { constexpr base::TaskTraits kTraits = { Index: branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__message__filter.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__message__filter.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__message__filter.h (revision 523260) @@ -1,19 +1,19 @@ ---- content/browser/renderer_host/render_message_filter.h.orig 2019-10-21 19:06:32 UTC +--- content/browser/renderer_host/render_message_filter.h.orig 2019-12-16 21:50:47 UTC +++ content/browser/renderer_host/render_message_filter.h -@@ -86,14 +86,14 @@ class CONTENT_EXPORT RenderMessageFilter - mojom::WidgetPtr widget, +@@ -87,14 +87,14 @@ class CONTENT_EXPORT RenderMessageFilter + mojo::PendingRemote widget, CreateFullscreenWidgetCallback callback) override; void HasGpuProcess(HasGpuProcessCallback callback) override; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) void SetThreadPriority(int32_t ns_tid, base::ThreadPriority priority) override; #endif void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) void SetThreadPriorityOnFileThread(base::PlatformThreadId ns_tid, base::ThreadPriority priority); #endif Index: branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.cc (revision 523260) @@ -1,47 +1,47 @@ ---- content/browser/renderer_host/render_process_host_impl.cc.orig 2019-10-21 19:06:32 UTC +--- content/browser/renderer_host/render_process_host_impl.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/renderer_host/render_process_host_impl.cc -@@ -230,7 +230,7 @@ +@@ -238,7 +238,7 @@ #include "content/browser/gpu/gpu_data_manager_impl.h" #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include #include -@@ -1194,7 +1194,7 @@ static constexpr size_t kUnknownPlatformProcessLimit = +@@ -1160,7 +1160,7 @@ static constexpr size_t kUnknownPlatformProcessLimit = // to indicate failure and std::numeric_limits::max() to indicate // unlimited. size_t GetPlatformProcessLimit() { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) struct rlimit limit; if (getrlimit(RLIMIT_NPROC, &limit) != 0) return kUnknownPlatformProcessLimit; -@@ -1205,7 +1205,7 @@ size_t GetPlatformProcessLimit() { +@@ -1171,7 +1171,7 @@ size_t GetPlatformProcessLimit() { #else // TODO(https://crbug.com/104689): Implement on other platforms. return kUnknownPlatformProcessLimit; -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) } #endif // !defined(OS_ANDROID) && !defined(OS_CHROMEOS) -@@ -1239,7 +1239,7 @@ class RenderProcessHostImpl::IOThreadHostImpl +@@ -1219,7 +1219,7 @@ class RenderProcessHostImpl::IOThreadHostImpl + return; + } - // mojom::ChildProcessHost implementation: - void BindHostReceiver(mojo::GenericPendingReceiver receiver) override { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (auto font_receiver = receiver.As()) { ConnectToFontService(std::move(font_receiver)); return; -@@ -1593,7 +1593,7 @@ bool RenderProcessHostImpl::Init() { +@@ -1597,7 +1597,7 @@ bool RenderProcessHostImpl::Init() { renderer_prefix = browser_command_line.GetSwitchValueNative(switches::kRendererCmdPrefix); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) int flags = renderer_prefix.empty() ? ChildProcessHost::CHILD_ALLOW_SELF : ChildProcessHost::CHILD_NORMAL; #elif defined(OS_MACOSX) Index: branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__process__host__impl.h (revision 523260) @@ -1,15 +1,15 @@ ---- content/browser/renderer_host/render_process_host_impl.h.orig 2019-10-21 19:06:32 UTC +--- content/browser/renderer_host/render_process_host_impl.h.orig 2019-12-16 21:51:26 UTC +++ content/browser/renderer_host/render_process_host_impl.h -@@ -423,10 +423,10 @@ class CONTENT_EXPORT RenderProcessHostImpl +@@ -439,10 +439,10 @@ class CONTENT_EXPORT RenderProcessHostImpl is_for_guests_only_ = is_for_guests_only; } -#if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) +#if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) && !defined(OS_BSD) // Launch the zygote early in the browser startup. static void EarlyZygoteLaunch(); -#endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) +#endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) && !defined(OS_BSD) RendererAudioOutputStreamFactoryContext* GetRendererAudioOutputStreamFactoryContext() override; Index: branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__view__host__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__view__host__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__view__host__impl.cc (revision 523260) @@ -1,11 +1,11 @@ ---- content/browser/renderer_host/render_view_host_impl.cc.orig 2019-10-21 19:06:32 UTC +--- content/browser/renderer_host/render_view_host_impl.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/renderer_host/render_view_host_impl.cc -@@ -162,7 +162,7 @@ void GetPlatformSpecificPrefs(blink::mojom::RendererPr +@@ -208,7 +208,7 @@ void RenderViewHostImpl::GetPlatformSpecificPrefs( display::win::ScreenWin::GetSystemMetricsInDIP(SM_CYVSCROLL); prefs->arrow_bitmap_width_horizontal_scroll_bar_in_dips = display::win::ScreenWin::GetSystemMetricsInDIP(SM_CXHSCROLL); -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) prefs->system_font_family_name = gfx::Font().GetFontName(); #endif } Index: branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__widget__host__view__aura.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__widget__host__view__aura.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_renderer__host_render__widget__host__view__aura.cc (revision 523260) @@ -1,29 +1,29 @@ ---- content/browser/renderer_host/render_widget_host_view_aura.cc.orig 2019-10-21 19:06:32 UTC +--- content/browser/renderer_host/render_widget_host_view_aura.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/renderer_host/render_widget_host_view_aura.cc @@ -116,7 +116,7 @@ #include "content/browser/accessibility/browser_accessibility_auralinux.h" #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) #include "ui/base/ime/linux/text_edit_command_auralinux.h" #include "ui/base/ime/linux/text_edit_key_bindings_delegate_auralinux.h" #endif -@@ -2203,7 +2203,7 @@ bool RenderWidgetHostViewAura::NeedsInputGrab() { +@@ -2212,7 +2212,7 @@ bool RenderWidgetHostViewAura::NeedsInputGrab() { } bool RenderWidgetHostViewAura::NeedsMouseCapture() { -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) return NeedsInputGrab(); #endif return false; -@@ -2388,7 +2388,7 @@ void RenderWidgetHostViewAura::ForwardKeyboardEventWit +@@ -2385,7 +2385,7 @@ void RenderWidgetHostViewAura::ForwardKeyboardEventWit if (!target_host) return; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) ui::TextEditKeyBindingsDelegateAuraLinux* keybinding_delegate = ui::GetTextEditKeyBindingsDelegate(); std::vector commands; Index: branches/2020Q1/www/chromium/files/patch-content_browser_utility__process__host.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_utility__process__host.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_utility__process__host.cc (revision 523260) @@ -1,29 +1,29 @@ ---- content/browser/utility_process_host.cc.orig 2019-10-21 19:06:32 UTC +--- content/browser/utility_process_host.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/utility_process_host.cc -@@ -55,7 +55,7 @@ +@@ -56,7 +56,7 @@ #include "services/network/network_sandbox_win.h" #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "components/services/font/public/mojom/font_service.mojom.h" // nogncheck #include "content/browser/font_service.h" // nogncheck #endif -@@ -216,7 +216,7 @@ UtilityProcessHost::UtilityProcessHost() +@@ -217,7 +217,7 @@ UtilityProcessHost::UtilityProcessHost() UtilityProcessHost::UtilityProcessHost(std::unique_ptr client) : sandbox_type_(service_manager::SANDBOX_TYPE_UTILITY), -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) child_flags_(ChildProcessHost::CHILD_ALLOW_SELF), #else child_flags_(ChildProcessHost::CHILD_NORMAL), -@@ -515,7 +515,7 @@ void UtilityProcessHost::OnProcessCrashed(int exit_cod +@@ -523,7 +523,7 @@ base::Optional UtilityProcessHost::GetSer void UtilityProcessHost::BindHostReceiver( mojo::GenericPendingReceiver receiver) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (auto font_receiver = receiver.As()) { ConnectToFontService(std::move(font_receiver)); return; Index: branches/2020Q1/www/chromium/files/patch-content_browser_webui_shared__resources__data__source.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_browser_webui_shared__resources__data__source.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_browser_webui_shared__resources__data__source.cc (revision 523260) @@ -1,17 +1,17 @@ ---- content/browser/webui/shared_resources_data_source.cc.orig 2019-10-21 19:06:32 UTC +--- content/browser/webui/shared_resources_data_source.cc.orig 2019-12-16 21:51:26 UTC +++ content/browser/webui/shared_resources_data_source.cc -@@ -123,12 +123,12 @@ const std::map CreateMojoResourceIdT +@@ -126,12 +126,12 @@ const std::map CreateMojoResourceIdT "mojo/mojo/public/mojom/base/string16.mojom.html"}, {IDR_MOJO_STRING16_MOJOM_LITE_JS, "mojo/mojo/public/mojom/base/string16.mojom-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_HTML, "mojo/mojo/public/mojom/base/time.mojom.html"}, {IDR_MOJO_TIME_MOJOM_LITE_JS, "mojo/mojo/public/mojom/base/time.mojom-lite.js"}, -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) }; } Index: branches/2020Q1/www/chromium/files/patch-content_common_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_common_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_common_BUILD.gn (revision 523260) @@ -1,15 +1,15 @@ ---- content/common/BUILD.gn.orig 2019-10-21 19:06:32 UTC +--- content/common/BUILD.gn.orig 2019-12-16 21:51:26 UTC +++ content/common/BUILD.gn -@@ -367,6 +367,12 @@ source_set("common") { +@@ -366,6 +366,12 @@ source_set("common") { libs += [ "android" ] } + if (is_bsd) { + sources -= [ + "sandbox_init_linux.cc", + ] + } + if (is_debug && !is_component_build && enable_plugins) { # Content depends on the PPAPI message logging stuff; if this isn't here, # some unit test binaries won't compile. This only worked in release mode Index: branches/2020Q1/www/chromium/files/patch-content_common_user__agent.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_common_user__agent.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_common_user__agent.cc (revision 523260) @@ -1,17 +1,17 @@ ---- content/common/user_agent.cc.orig 2019-09-09 21:55:16 UTC +--- content/common/user_agent.cc.orig 2019-12-16 21:51:26 UTC +++ content/common/user_agent.cc -@@ -124,6 +124,14 @@ std::string BuildOSCpuInfo(bool include_android_build_ +@@ -128,6 +128,14 @@ std::string BuildOSCpuInfo(bool include_android_build_ #endif ); +#if defined(OS_BSD) +#if defined(__x86_64__) + base::StringAppendF(&os_cpu, "; Linux x86_64"); +#else + base::StringAppendF(&os_cpu, "; Linux i686"); +#endif +#endif + return os_cpu; } Index: branches/2020Q1/www/chromium/files/patch-content_gpu_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_gpu_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_gpu_BUILD.gn (revision 523260) @@ -1,11 +1,11 @@ ---- content/gpu/BUILD.gn.orig 2019-09-09 21:55:16 UTC +--- content/gpu/BUILD.gn.orig 2019-12-16 21:51:26 UTC +++ content/gpu/BUILD.gn -@@ -125,7 +125,7 @@ target(link_target_type, "gpu_sources") { +@@ -126,7 +126,7 @@ target(link_target_type, "gpu_sources") { # 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: branches/2020Q1/www/chromium/files/patch-content_gpu_gpu__main.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_gpu_gpu__main.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_gpu_gpu__main.cc (revision 523260) @@ -1,56 +1,56 @@ ---- content/gpu/gpu_main.cc.orig 2019-10-21 19:06:32 UTC +--- content/gpu/gpu_main.cc.orig 2019-12-16 21:51:26 UTC +++ content/gpu/gpu_main.cc @@ -82,7 +82,7 @@ #include "ui/gfx/x/x11_switches.h" // nogncheck #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "content/gpu/gpu_sandbox_hook_linux.h" #include "content/public/common/sandbox_init.h" #include "services/service_manager/sandbox/linux/sandbox_linux.h" -@@ -111,7 +111,7 @@ namespace content { +@@ -103,7 +103,7 @@ namespace content { namespace { -#if defined(OS_LINUX) +#if defined(OS_LINUX) && !defined(OS_BSD) bool StartSandboxLinux(gpu::GpuWatchdogThread*, const gpu::GPUInfo*, const gpu::GpuPreferences&); -@@ -172,7 +172,7 @@ class ContentSandboxHelper : public gpu::GpuSandboxHel +@@ -164,7 +164,7 @@ class ContentSandboxHelper : public gpu::GpuSandboxHel bool EnsureSandboxInitialized(gpu::GpuWatchdogThread* watchdog_thread, const gpu::GPUInfo* gpu_info, const gpu::GpuPreferences& gpu_prefs) override { -#if defined(OS_LINUX) +#if defined(OS_LINUX) && !defined(OS_BSD) return StartSandboxLinux(watchdog_thread, gpu_info, gpu_prefs); #elif defined(OS_WIN) return StartSandboxWindows(sandbox_info_); -@@ -276,7 +276,7 @@ int GpuMain(const MainFunctionParams& parameters) { +@@ -268,7 +268,7 @@ int GpuMain(const MainFunctionParams& parameters) { main_thread_task_executor = std::make_unique( gpu_preferences.message_pump_type); -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) #error "Unsupported Linux platform." #elif defined(OS_MACOSX) // Cross-process CoreAnimation requires a CFRunLoop to function at all, and -@@ -383,7 +383,7 @@ int GpuMain(const MainFunctionParams& parameters) { +@@ -372,7 +372,7 @@ int GpuMain(const MainFunctionParams& parameters) { namespace { -#if defined(OS_LINUX) +#if defined(OS_LINUX) && !defined(OS_BSD) bool StartSandboxLinux(gpu::GpuWatchdogThread* watchdog_thread, const gpu::GPUInfo* gpu_info, const gpu::GpuPreferences& gpu_prefs) { -@@ -418,7 +418,7 @@ bool StartSandboxLinux(gpu::GpuWatchdogThread* watchdo +@@ -407,7 +407,7 @@ bool StartSandboxLinux(gpu::GpuWatchdogThread* watchdo return res; } -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) && !defined(OS_BSD) #if defined(OS_WIN) bool StartSandboxWindows(const sandbox::SandboxInterfaceInfo* sandbox_info) { Index: branches/2020Q1/www/chromium/files/patch-content_ppapi__plugin_ppapi__blink__platform__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_ppapi__plugin_ppapi__blink__platform__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_ppapi__plugin_ppapi__blink__platform__impl.cc (revision 523260) @@ -1,38 +1,38 @@ ---- content/ppapi_plugin/ppapi_blink_platform_impl.cc.orig 2019-10-21 19:06:32 UTC +--- content/ppapi_plugin/ppapi_blink_platform_impl.cc.orig 2019-12-16 21:51:26 UTC +++ content/ppapi_plugin/ppapi_blink_platform_impl.cc @@ -19,7 +19,7 @@ #if defined(OS_MACOSX) #include "content/child/child_process_sandbox_support_impl_mac.h" -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) #include "content/child/child_process_sandbox_support_impl_linux.h" #include "mojo/public/cpp/bindings/pending_remote.h" #endif @@ -34,7 +34,7 @@ typedef struct CGFont* CGFontRef; namespace content { PpapiBlinkPlatformImpl::PpapiBlinkPlatformImpl() { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) mojo::PendingRemote font_service; ChildThread::Get()->BindHostReceiver( font_service.InitWithNewPipeAndPassReceiver()); -@@ -51,7 +51,7 @@ PpapiBlinkPlatformImpl::~PpapiBlinkPlatformImpl() { +@@ -50,7 +50,7 @@ PpapiBlinkPlatformImpl::~PpapiBlinkPlatformImpl() { } 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() -@@ -61,7 +61,7 @@ void PpapiBlinkPlatformImpl::Shutdown() { +@@ -60,7 +60,7 @@ void PpapiBlinkPlatformImpl::Shutdown() { } 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: branches/2020Q1/www/chromium/files/patch-content_public_common_common__param__traits__macros.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_public_common_common__param__traits__macros.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_public_common_common__param__traits__macros.h (revision 523260) @@ -1,11 +1,11 @@ ---- content/public/common/common_param_traits_macros.h.orig 2019-09-09 21:55:16 UTC +--- content/public/common/common_param_traits_macros.h.orig 2019-12-16 21:51:26 UTC +++ content/public/common/common_param_traits_macros.h -@@ -337,7 +337,7 @@ IPC_STRUCT_TRAITS_BEGIN(blink::mojom::RendererPreferen +@@ -339,7 +339,7 @@ IPC_STRUCT_TRAITS_BEGIN(blink::mojom::RendererPreferen IPC_STRUCT_TRAITS_MEMBER(disable_client_blocked_error_page) IPC_STRUCT_TRAITS_MEMBER(plugin_fullscreen_allowed) IPC_STRUCT_TRAITS_MEMBER(network_contry_iso) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) IPC_STRUCT_TRAITS_MEMBER(system_font_family_name) #endif #if defined(OS_WIN) Index: branches/2020Q1/www/chromium/files/patch-content_public_common_content__features.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_public_common_content__features.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_public_common_content__features.cc (revision 523260) @@ -1,29 +1,29 @@ ---- content/public/common/content_features.cc.orig 2019-10-21 19:06:32 UTC +--- content/public/common/content_features.cc.orig 2019-12-16 21:51:26 UTC +++ content/public/common/content_features.cc -@@ -47,7 +47,7 @@ const base::Feature kAudioServiceLaunchOnStartup{ +@@ -53,7 +53,7 @@ const base::Feature kAudioServiceLaunchOnStartup{ const base::Feature kAudioServiceOutOfProcess{ "AudioServiceOutOfProcess", #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) base::FEATURE_ENABLED_BY_DEFAULT #else base::FEATURE_DISABLED_BY_DEFAULT -@@ -634,7 +634,7 @@ const base::Feature kWebAssemblyThreads { +@@ -628,7 +628,7 @@ const base::Feature kWebAssemblyThreads { }; // Enable WebAssembly trap handler. -#if (defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX)) && \ +#if (defined(OS_BSD) || defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX)) && \ defined(ARCH_CPU_X86_64) const base::Feature kWebAssemblyTrapHandler{"WebAssemblyTrapHandler", base::FEATURE_ENABLED_BY_DEFAULT}; -@@ -669,7 +669,7 @@ const base::Feature kWebAuthBle{"WebAuthenticationBle" +@@ -663,7 +663,7 @@ const base::Feature kWebAuthBle{"WebAuthenticationBle" // https://w3c.github.io/webauthn const base::Feature kWebAuthCable { "WebAuthenticationCable", -#if !defined(OS_CHROMEOS) && defined(OS_LINUX) +#if (!defined(OS_CHROMEOS) && defined(OS_LINUX)) || defined(OS_BSD) base::FEATURE_DISABLED_BY_DEFAULT #else base::FEATURE_ENABLED_BY_DEFAULT Index: branches/2020Q1/www/chromium/files/patch-content_public_common_content__switches.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_public_common_content__switches.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_public_common_content__switches.cc (revision 523260) @@ -1,11 +1,11 @@ ---- content/public/common/content_switches.cc.orig 2019-10-21 19:06:32 UTC +--- content/public/common/content_switches.cc.orig 2019-12-16 21:51:26 UTC +++ content/public/common/content_switches.cc -@@ -980,7 +980,7 @@ const char kEnableAggressiveDOMStorageFlushing[] = +@@ -976,7 +976,7 @@ const char kEnableAggressiveDOMStorageFlushing[] = // Enable indication that browser is controlled by automation. const char kEnableAutomation[] = "enable-automation"; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_FREEBSD) // Allows sending text-to-speech requests to speech-dispatcher, a common // Linux speech service. Because it's buggy, the user must explicitly // enable it so that visiting a random webpage can't cause instability. Index: branches/2020Q1/www/chromium/files/patch-content_public_common_content__switches.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_public_common_content__switches.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_public_common_content__switches.h (revision 523260) @@ -1,11 +1,11 @@ ---- content/public/common/content_switches.h.orig 2019-10-21 19:06:32 UTC +--- content/public/common/content_switches.h.orig 2019-12-16 21:51:26 UTC +++ content/public/common/content_switches.h -@@ -270,7 +270,7 @@ CONTENT_EXPORT extern const char kRemoteDebuggingSocke +@@ -269,7 +269,7 @@ CONTENT_EXPORT extern const char kRemoteDebuggingSocke CONTENT_EXPORT extern const char kRendererWaitForJavaDebugger[]; #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_FREEBSD) CONTENT_EXPORT extern const char kEnableSpeechDispatcher[]; #endif Index: branches/2020Q1/www/chromium/files/patch-content_public_test_browser__test__base.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_public_test_browser__test__base.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_public_test_browser__test__base.cc (revision 523260) @@ -1,13 +1,13 @@ ---- content/public/test/browser_test_base.cc.orig 2019-10-21 19:06:32 UTC +--- content/public/test/browser_test_base.cc.orig 2019-12-16 21:51:26 UTC +++ content/public/test/browser_test_base.cc -@@ -96,6 +96,10 @@ +@@ -97,6 +97,10 @@ #include "ui/views/test/event_generator_delegate_mac.h" #endif +#if defined(OS_FREEBSD) +#include +#endif + #if defined(OS_POSIX) #include "base/process/process_handle.h" #endif Index: branches/2020Q1/www/chromium/files/patch-content_public_test_mock__render__thread.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_public_test_mock__render__thread.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_public_test_mock__render__thread.cc (revision 523260) @@ -1,11 +1,11 @@ ---- content/public/test/mock_render_thread.cc.orig 2019-04-30 22:22:47 UTC +--- content/public/test/mock_render_thread.cc.orig 2019-12-16 21:51:26 UTC +++ content/public/test/mock_render_thread.cc -@@ -74,7 +74,7 @@ class MockRenderMessageFilterImpl : public mojom::Rend +@@ -73,7 +73,7 @@ class MockRenderMessageFilterImpl : public mojom::Rend std::move(callback).Run(false); } -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) void SetThreadPriority(int32_t platform_thread_id, base::ThreadPriority thread_priority) override {} #endif Index: branches/2020Q1/www/chromium/files/patch-content_renderer_render__thread__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_renderer_render__thread__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_renderer_render__thread__impl.cc (revision 523260) @@ -1,51 +1,51 @@ ---- content/renderer/render_thread_impl.cc.orig 2019-10-21 19:06:33 UTC +--- content/renderer/render_thread_impl.cc.orig 2019-12-16 21:51:26 UTC +++ content/renderer/render_thread_impl.cc @@ -185,12 +185,21 @@ #include "mojo/public/cpp/bindings/message_dumper.h" #endif +#if !defined(OS_BSD) #if defined(OS_MACOSX) #include #else #include #endif +#endif +#if defined(OS_BSD) +#include +#include +#include +#include +#endif + using base::ThreadRestrictions; using blink::WebDocument; using blink::WebFrame; -@@ -901,7 +910,7 @@ void RenderThreadImpl::Init() { +@@ -921,7 +930,7 @@ void RenderThreadImpl::Init() { DCHECK(parsed_num_raster_threads) << string_value; DCHECK_GT(num_raster_threads, 0); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) categorized_worker_pool_->SetBackgroundingCallback( main_thread_scheduler_->DefaultTaskRunner(), base::BindOnce( -@@ -930,7 +939,7 @@ void RenderThreadImpl::Init() { +@@ -951,7 +960,7 @@ void RenderThreadImpl::Init() { base::DiscardableMemoryAllocator::SetInstance( discardable_shared_memory_manager_.get()); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (base::FeatureList::IsEnabled( blink::features::kBlinkCompositorUseDisplayThreadPriority)) { render_message_filter()->SetThreadPriority( -@@ -1309,7 +1318,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl: +@@ -1327,7 +1336,7 @@ media::GpuVideoAcceleratorFactories* RenderThreadImpl: !cmd_line->HasSwitch(switches::kDisableGpuMemoryBufferVideoFrames); #else cmd_line->HasSwitch(switches::kEnableGpuMemoryBufferVideoFrames); -#endif // defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_WIN) +#endif // defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) const bool enable_media_stream_gpu_memory_buffers = enable_gpu_memory_buffers && base::FeatureList::IsEnabled( Index: branches/2020Q1/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.cc (revision 523260) @@ -1,56 +1,56 @@ ---- content/renderer/renderer_blink_platform_impl.cc.orig 2019-10-21 19:06:33 UTC +--- content/renderer/renderer_blink_platform_impl.cc.orig 2019-12-16 21:51:26 UTC +++ content/renderer/renderer_blink_platform_impl.cc -@@ -102,7 +102,7 @@ +@@ -104,7 +104,7 @@ #if defined(OS_MACOSX) #include "content/child/child_process_sandbox_support_impl_mac.h" -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) #include "content/child/child_process_sandbox_support_impl_linux.h" #endif @@ -183,7 +183,7 @@ RendererBlinkPlatformImpl::RendererBlinkPlatformImpl( if (RenderThreadImpl::current()) { io_runner_ = RenderThreadImpl::current()->GetIOTaskRunner(); thread_safe_sender_ = RenderThreadImpl::current()->thread_safe_sender(); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) mojo::PendingRemote font_service; RenderThreadImpl::current()->BindHostReceiver( font_service.InitWithNewPipeAndPassReceiver()); @@ -193,7 +193,7 @@ RendererBlinkPlatformImpl::RendererBlinkPlatformImpl( #endif } -#if defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) if (sandboxEnabled()) { #if defined(OS_MACOSX) - std::unique_ptr sandbox_connector; -@@ -224,7 +224,7 @@ RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl( + sandbox_support_ = std::make_unique(); +@@ -217,7 +217,7 @@ RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl( } void RendererBlinkPlatformImpl::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() -@@ -289,7 +289,7 @@ RendererBlinkPlatformImpl::CreateNetworkURLLoaderFacto +@@ -282,7 +282,7 @@ RendererBlinkPlatformImpl::CreateNetworkURLLoaderFacto 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); -@@ -302,7 +302,7 @@ blink::BlameContext* RendererBlinkPlatformImpl::GetTop +@@ -295,7 +295,7 @@ blink::BlameContext* RendererBlinkPlatformImpl::GetTop } blink::WebSandboxSupport* RendererBlinkPlatformImpl::GetSandboxSupport() { -#if defined(OS_LINUX) || defined(OS_MACOSX) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) return sandbox_support_.get(); #else // These platforms do not require sandbox support. Index: branches/2020Q1/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_renderer_renderer__blink__platform__impl.h (revision 523260) @@ -1,29 +1,29 @@ ---- content/renderer/renderer_blink_platform_impl.h.orig 2019-10-21 19:06:33 UTC +--- content/renderer/renderer_blink_platform_impl.h.orig 2019-12-16 21:51:26 UTC +++ content/renderer/renderer_blink_platform_impl.h @@ -30,7 +30,7 @@ #include "third_party/blink/public/mojom/cache_storage/cache_storage.mojom.h" #include "third_party/blink/public/mojom/loader/code_cache.mojom.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 -@@ -225,7 +225,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : publi +@@ -230,7 +230,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : publi 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 -@@ -252,7 +252,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : publi - std::unique_ptr - web_transmission_encoding_info_handler_; +@@ -254,7 +254,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : publi + mojo::PendingRemote code_cache_host_remote_; + mojo::SharedRemote code_cache_host_; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) sk_sp font_loader_; #endif Index: branches/2020Q1/www/chromium/files/patch-content_shell_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_shell_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_shell_BUILD.gn (revision 523260) @@ -1,11 +1,11 @@ ---- content/shell/BUILD.gn.orig 2019-10-21 19:06:33 UTC +--- content/shell/BUILD.gn.orig 2019-12-16 21:51:26 UTC +++ content/shell/BUILD.gn -@@ -962,7 +962,7 @@ group("content_shell_crash_test") { +@@ -971,7 +971,7 @@ group("content_shell_crash_test") { if (is_win) { data_deps += [ "//build/win:copy_cdb_to_output" ] } - if (is_posix) { + if (is_posix && !is_bsd) { data_deps += [ "//third_party/breakpad:dump_syms", "//third_party/breakpad:minidump_stackwalk", Index: branches/2020Q1/www/chromium/files/patch-content_shell_app_shell__main__delegate.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_shell_app_shell__main__delegate.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_shell_app_shell__main__delegate.cc (revision 523260) @@ -1,20 +1,20 @@ ---- content/shell/app/shell_main_delegate.cc.orig 2019-10-21 19:06:33 UTC +--- content/shell/app/shell_main_delegate.cc.orig 2019-12-16 21:50:48 UTC +++ content/shell/app/shell_main_delegate.cc @@ -170,7 +170,7 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit v8_crashpad_support::SetUp(); #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) breakpad::SetFirstChanceExceptionHandler(v8::TryHandleWebAssemblyTrapPosix); #endif #if defined(OS_MACOSX) -@@ -317,7 +317,7 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit +@@ -313,7 +313,7 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit } void ShellMainDelegate::PreSandboxStartup() { -#if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX)) +#if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD)) // Create an instance of the CPU class to parse /proc/cpuinfo and cache // cpu_brand info. base::CPU cpu_info; Index: branches/2020Q1/www/chromium/files/patch-content_shell_browser_shell__browser__main__parts.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_shell_browser_shell__browser__main__parts.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_shell_browser_shell__browser__main__parts.cc (revision 523260) @@ -1,20 +1,20 @@ ---- content/shell/browser/shell_browser_main_parts.cc.orig 2019-09-09 21:55:17 UTC +--- content/shell/browser/shell_browser_main_parts.cc.orig 2019-12-16 21:51:26 UTC +++ content/shell/browser/shell_browser_main_parts.cc @@ -47,7 +47,7 @@ #if defined(USE_AURA) && defined(USE_X11) #include "ui/events/devices/x11/touch_factory_x11.h" // nogncheck #endif -#if !defined(OS_CHROMEOS) && defined(USE_AURA) && defined(OS_LINUX) +#if !defined(OS_CHROMEOS) && defined(USE_AURA) && (defined(OS_LINUX) || defined(OS_BSD)) #include "ui/base/ime/init/input_method_initializer.h" #endif #if defined(OS_CHROMEOS) -@@ -125,7 +125,7 @@ int ShellBrowserMainParts::PreEarlyInitialization() { +@@ -123,7 +123,7 @@ int ShellBrowserMainParts::PreEarlyInitialization() { #if defined(USE_X11) ui::SetDefaultX11ErrorHandlers(); #endif -#if !defined(OS_CHROMEOS) && defined(USE_AURA) && defined(OS_LINUX) +#if !defined(OS_CHROMEOS) && defined(USE_AURA) && (defined(OS_BSD) || defined(OS_LINUX)) ui::InitializeInputMethodForTesting(); #endif #if defined(OS_ANDROID) Index: branches/2020Q1/www/chromium/files/patch-content_shell_test__runner_test__runner.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_shell_test__runner_test__runner.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_shell_test__runner_test__runner.cc (revision 523260) @@ -1,29 +1,29 @@ ---- content/shell/test_runner/test_runner.cc.orig 2019-10-21 19:06:33 UTC +--- content/shell/test_runner/test_runner.cc.orig 2019-12-16 21:51:26 UTC +++ content/shell/test_runner/test_runner.cc @@ -64,7 +64,7 @@ #include "ui/gfx/geometry/size.h" #include "ui/gfx/skia_util.h" -#if defined(OS_LINUX) || defined(OS_FUCHSIA) +#if defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD) #include "third_party/blink/public/platform/web_font_render_style.h" #endif -@@ -1533,7 +1533,7 @@ void TestRunner::Reset() { +@@ -1514,7 +1514,7 @@ void TestRunner::Reset() { drag_image_.reset(); blink::WebSecurityPolicy::ClearOriginAccessList(); -#if defined(OS_LINUX) || defined(OS_FUCHSIA) +#if defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD) blink::WebFontRenderStyle::SetSubpixelPositioning(false); #endif -@@ -2118,7 +2118,7 @@ void TestRunner::AddOriginAccessAllowListEntry( +@@ -2088,7 +2088,7 @@ void TestRunner::AddOriginAccessAllowListEntry( } void TestRunner::SetTextSubpixelPositioning(bool value) { -#if defined(OS_LINUX) || defined(OS_FUCHSIA) +#if defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD) // Since FontConfig doesn't provide a variable to control subpixel // positioning, we'll fall back to setting it globally for all fonts. blink::WebFontRenderStyle::SetSubpixelPositioning(value); Index: branches/2020Q1/www/chromium/files/patch-content_test_content__test__suite.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_test_content__test__suite.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_test_content__test__suite.cc (revision 523260) @@ -1,18 +1,18 @@ ---- content/test/content_test_suite.cc.orig 2019-04-30 22:22:48 UTC +--- content/test/content_test_suite.cc.orig 2019-12-16 21:50:48 UTC +++ content/test/content_test_suite.cc -@@ -81,6 +81,7 @@ void ContentTestSuite::Initialize() { +@@ -84,6 +84,7 @@ void ContentTestSuite::Initialize() { // to initialize GL, so don't do it here. base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); bool is_child_process = command_line->HasSwitch(switches::kTestChildProcess); +#if !defined(OS_BSD) if (!is_child_process) { gl::GLSurfaceTestSupport::InitializeNoExtensionsOneOff(); auto* gpu_feature_info = gpu::GetTestGpuThreadHolder()->GetGpuFeatureInfo(); -@@ -88,6 +89,7 @@ void ContentTestSuite::Initialize() { +@@ -91,6 +92,7 @@ void ContentTestSuite::Initialize() { gpu_feature_info->disabled_extensions); gl::init::InitializeExtensionSettingsOneOffPlatform(); } +#endif testing::TestEventListeners& listeners = testing::UnitTest::GetInstance()->listeners(); listeners.Append(new TestInitializationListener); Index: branches/2020Q1/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.cc (revision 523260) @@ -1,29 +1,29 @@ ---- content/utility/utility_blink_platform_with_sandbox_support_impl.cc.orig 2019-10-21 19:06:33 UTC +--- content/utility/utility_blink_platform_with_sandbox_support_impl.cc.orig 2019-12-16 21:50:48 UTC +++ content/utility/utility_blink_platform_with_sandbox_support_impl.cc @@ -9,7 +9,7 @@ #if defined(OS_MACOSX) #include "content/child/child_process_sandbox_support_impl_mac.h" -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) #include "content/child/child_process_sandbox_support_impl_linux.h" #endif -@@ -18,7 +18,7 @@ namespace content { +@@ -17,7 +17,7 @@ namespace content { + UtilityBlinkPlatformWithSandboxSupportImpl:: - UtilityBlinkPlatformWithSandboxSupportImpl( - service_manager::Connector* connector) { + UtilityBlinkPlatformWithSandboxSupportImpl() { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) mojo::PendingRemote font_service; UtilityThread::Get()->BindHostReceiver( font_service.InitWithNewPipeAndPassReceiver()); -@@ -35,7 +35,7 @@ UtilityBlinkPlatformWithSandboxSupportImpl:: +@@ -34,7 +34,7 @@ UtilityBlinkPlatformWithSandboxSupportImpl:: 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; Index: branches/2020Q1/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-content_utility_utility__blink__platform__with__sandbox__support__impl.h (revision 523260) @@ -1,24 +1,24 @@ ---- content/utility/utility_blink_platform_with_sandbox_support_impl.h.orig 2019-03-11 22:00:58 UTC +--- content/utility/utility_blink_platform_with_sandbox_support_impl.h.orig 2019-12-16 21:50:48 UTC +++ content/utility/utility_blink_platform_with_sandbox_support_impl.h @@ -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 @@ class UtilityBlinkPlatformWithSandboxSupportImpl : pub +@@ -33,10 +33,10 @@ class UtilityBlinkPlatformWithSandboxSupportImpl : pub 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) sk_sp font_loader_; #endif Index: branches/2020Q1/www/chromium/files/patch-extensions_common_image__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-extensions_common_image__util.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-extensions_common_image__util.cc (revision 523260) @@ -1,14 +1,14 @@ ---- extensions/common/image_util.cc.orig 2019-03-11 22:00:58 UTC +--- extensions/common/image_util.cc.orig 2019-12-16 21:51:26 UTC +++ extensions/common/image_util.cc -@@ -18,7 +18,11 @@ +@@ -19,7 +19,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 // 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" Index: branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_common_gpu__memory__buffer__support.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_common_gpu__memory__buffer__support.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_common_gpu__memory__buffer__support.cc (revision 523260) @@ -1,11 +1,11 @@ ---- gpu/command_buffer/common/gpu_memory_buffer_support.cc.orig 2019-10-21 19:06:34 UTC +--- gpu/command_buffer/common/gpu_memory_buffer_support.cc.orig 2019-12-16 21:50:48 UTC +++ gpu/command_buffer/common/gpu_memory_buffer_support.cc -@@ -88,7 +88,7 @@ bool IsImageSizeValidForGpuMemoryBufferFormat(const gf +@@ -50,7 +50,7 @@ bool IsImageSizeValidForGpuMemoryBufferFormat(const gf 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) || defined(OS_FUCHSIA) return GL_TEXTURE_2D; Index: branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_service_external__vk__image__backing.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_service_external__vk__image__backing.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_service_external__vk__image__backing.cc (revision 523260) @@ -1,65 +1,65 @@ ---- gpu/command_buffer/service/external_vk_image_backing.cc.orig 2019-10-21 19:06:34 UTC +--- gpu/command_buffer/service/external_vk_image_backing.cc.orig 2019-12-16 21:51:26 UTC +++ gpu/command_buffer/service/external_vk_image_backing.cc -@@ -23,7 +23,7 @@ +@@ -26,7 +26,7 @@ #include "ui/gl/buildflags.h" #include "ui/gl/gl_context.h" -#if defined(OS_LINUX) && BUILDFLAG(USE_DAWN) +#if (defined(OS_LINUX) || defined(OS_BSD)) && BUILDFLAG(USE_DAWN) #include "gpu/command_buffer/service/external_vk_image_dawn_representation.h" #endif -@@ -31,7 +31,7 @@ +@@ -34,7 +34,7 @@ #include "gpu/vulkan/fuchsia/vulkan_fuchsia_ext.h" #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #define GL_HANDLE_TYPE_OPAQUE_FD_EXT 0x9586 #endif -@@ -504,7 +504,7 @@ std::unique_ptr +@@ -527,7 +527,7 @@ std::unique_ptr ExternalVkImageBacking::ProduceDawn(SharedImageManager* manager, MemoryTypeTracker* tracker, DawnDevice dawnDevice) { -#if defined(OS_LINUX) && BUILDFLAG(USE_DAWN) +#if (defined(OS_LINUX) || defined(OS_BSD)) && BUILDFLAG(USE_DAWN) if (!dawn_format_) { DLOG(ERROR) << "Format not supported for Dawn"; return nullptr; -@@ -527,7 +527,7 @@ ExternalVkImageBacking::ProduceDawn(SharedImageManager +@@ -550,7 +550,7 @@ ExternalVkImageBacking::ProduceDawn(SharedImageManager return std::make_unique( manager, this, tracker, dawnDevice, dawn_format_.value(), memory_fd, image_info.fAlloc.fSize, memory_type_index_.value()); -#else // !defined(OS_LINUX) || !BUILDFLAG(USE_DAWN) +#else // !defined(OS_LINUX) || !defined(OS_BSD) || !BUILDFLAG(USE_DAWN) NOTIMPLEMENTED_LOG_ONCE(); return nullptr; #endif -@@ -544,7 +544,7 @@ ExternalVkImageBacking::ProduceGLTexture(SharedImageMa +@@ -567,7 +567,7 @@ ExternalVkImageBacking::ProduceGLTexture(SharedImageMa #if defined(OS_FUCHSIA) NOTIMPLEMENTED_LOG_ONCE(); return nullptr; -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) GrVkImageInfo image_info; bool result = backend_texture_.getVkImageInfo(&image_info); DCHECK(result); -@@ -604,7 +604,7 @@ ExternalVkImageBacking::ProduceGLTexture(SharedImageMa +@@ -635,7 +635,7 @@ ExternalVkImageBacking::ProduceGLTexture(SharedImageMa } return std::make_unique( manager, this, tracker, texture_, texture_->service_id()); -#else // !defined(OS_LINUX) && !defined(OS_FUCHSIA) +#else // !defined(OS_LINUX) && !defined(OS_FUCHSIA) && !defined(OS_BSD) #error Unsupported OS #endif } -@@ -630,7 +630,7 @@ ExternalVkImageBacking::ProduceSkia( +@@ -661,7 +661,7 @@ ExternalVkImageBacking::ProduceSkia( tracker); } -#ifdef OS_LINUX +#if defined(OS_LINUX) || defined(OS_BSD) int ExternalVkImageBacking::GetMemoryFd(const GrVkImageInfo& image_info) { VkMemoryGetFdInfoKHR get_fd_info; get_fd_info.sType = VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR; Index: branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_service_external__vk__image__backing.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_service_external__vk__image__backing.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_service_external__vk__image__backing.h (revision 523260) @@ -1,11 +1,11 @@ ---- gpu/command_buffer/service/external_vk_image_backing.h.orig 2019-10-21 19:06:34 UTC +--- gpu/command_buffer/service/external_vk_image_backing.h.orig 2019-12-16 21:51:26 UTC +++ gpu/command_buffer/service/external_vk_image_backing.h -@@ -133,7 +133,7 @@ class ExternalVkImageBacking : public SharedImageBacki +@@ -131,7 +131,7 @@ class ExternalVkImageBacking final : public SharedImag base::Optional dawn_format, base::Optional memory_type_index); -#ifdef OS_LINUX +#if defined(OS_LINUX) || defined(OS_BSD) // Extract file descriptor from image int GetMemoryFd(const GrVkImageInfo& image_info); #endif Index: branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_service_external__vk__image__gl__representation.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_service_external__vk__image__gl__representation.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_command__buffer_service_external__vk__image__gl__representation.cc (revision 523260) @@ -1,20 +1,20 @@ ---- gpu/command_buffer/service/external_vk_image_gl_representation.cc.orig 2019-09-09 21:55:18 UTC +--- gpu/command_buffer/service/external_vk_image_gl_representation.cc.orig 2019-12-16 21:51:26 UTC +++ gpu/command_buffer/service/external_vk_image_gl_representation.cc -@@ -183,7 +183,7 @@ GLuint ExternalVkImageGlRepresentation::ImportVkSemaph +@@ -189,7 +189,7 @@ GLuint ExternalVkImageGlRepresentation::ImportVkSemaph #if defined(OS_FUCHSIA) NOTIMPLEMENTED_LOG_ONCE(); return 0; -#elif defined(OS_LINUX) +#elif defined(OS_LINUX) || defined(OS_BSD) if (handle.vk_handle_type() != VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT) { DLOG(ERROR) << "Importing semaphore handle of unexpected type:" -@@ -198,7 +198,7 @@ GLuint ExternalVkImageGlRepresentation::ImportVkSemaph +@@ -204,7 +204,7 @@ GLuint ExternalVkImageGlRepresentation::ImportVkSemaph fd.release()); return gl_semaphore; -#else // !defined(OS_FUCHSIA) && !defined(OS_LINUX) +#else // !defined(OS_FUCHSIA) && !defined(OS_LINUX) && !defined(OS_BSD) #error Unsupported OS #endif } Index: branches/2020Q1/www/chromium/files/patch-gpu_ipc_common_gpu__memory__buffer__support.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_ipc_common_gpu__memory__buffer__support.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_ipc_common_gpu__memory__buffer__support.cc (revision 523260) @@ -1,56 +1,56 @@ ---- gpu/ipc/common/gpu_memory_buffer_support.cc.orig 2019-10-21 19:06:35 UTC +--- gpu/ipc/common/gpu_memory_buffer_support.cc.orig 2019-12-16 21:50:48 UTC +++ gpu/ipc/common/gpu_memory_buffer_support.cc @@ -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 "ui/gfx/client_native_pixmap_factory.h" #include "ui/gfx/linux/client_native_pixmap_factory_dmabuf.h" #endif @@ -22,7 +22,7 @@ #include "ui/ozone/public/ozone_platform.h" #endif -#if defined(USE_OZONE) || defined(OS_LINUX) +#if defined(USE_OZONE) || defined(OS_LINUX) || defined(OS_BSD) #include "gpu/ipc/common/gpu_memory_buffer_impl_native_pixmap.h" #endif @@ -40,7 +40,7 @@ namespace gpu { 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 @@ -54,7 +54,7 @@ GpuMemoryBufferSupport::GetNativeGpuMemoryBufferType() return gfx::IO_SURFACE_BUFFER; #elif defined(OS_ANDROID) return gfx::ANDROID_HARDWARE_BUFFER; -#elif defined(OS_LINUX) || defined(USE_OZONE) +#elif defined(OS_LINUX) || defined(USE_OZONE) || defined(OS_BSD) return gfx::NATIVE_PIXMAP; #elif defined(OS_WIN) return gfx::DXGI_SHARED_HANDLE; -@@ -110,7 +110,7 @@ bool GpuMemoryBufferSupport::IsNativeGpuMemoryBufferCo +@@ -112,7 +112,7 @@ bool GpuMemoryBufferSupport::IsNativeGpuMemoryBufferCo #elif defined(USE_OZONE) - return ui::OzonePlatform::EnsureInstance()->IsNativePixmapConfigSupported( - format, usage); + return ui::OzonePlatform::GetInstance()->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) { -@@ -166,7 +166,7 @@ GpuMemoryBufferSupport::CreateGpuMemoryBufferImplFromH +@@ -168,7 +168,7 @@ GpuMemoryBufferSupport::CreateGpuMemoryBufferImplFromH return GpuMemoryBufferImplIOSurface::CreateFromHandle( std::move(handle), size, format, usage, std::move(callback)); #endif -#if defined(OS_LINUX) || defined(USE_OZONE) +#if defined(OS_LINUX) || defined(USE_OZONE) || defined(OS_BSD) case gfx::NATIVE_PIXMAP: return GpuMemoryBufferImplNativePixmap::CreateFromHandle( client_native_pixmap_factory(), std::move(handle), size, format, Index: branches/2020Q1/www/chromium/files/patch-gpu_ipc_common_gpu__memory__buffer__support.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_ipc_common_gpu__memory__buffer__support.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_ipc_common_gpu__memory__buffer__support.h (revision 523260) @@ -1,29 +1,29 @@ ---- gpu/ipc/common/gpu_memory_buffer_support.h.orig 2019-03-11 22:00:59 UTC +--- gpu/ipc/common/gpu_memory_buffer_support.h.orig 2019-12-16 21:50:48 UTC +++ gpu/ipc/common/gpu_memory_buffer_support.h @@ -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; } @@ -38,7 +38,7 @@ class GPU_EXPORT GpuMemoryBufferSupport { 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(); } -@@ -61,7 +61,7 @@ class GPU_EXPORT GpuMemoryBufferSupport { +@@ -62,7 +62,7 @@ class GPU_EXPORT GpuMemoryBufferSupport { 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: branches/2020Q1/www/chromium/files/patch-gpu_ipc_service_gpu__init.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_ipc_service_gpu__init.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_ipc_service_gpu__init.cc (revision 523260) @@ -1,118 +1,118 @@ ---- gpu/ipc/service/gpu_init.cc.orig 2019-10-21 19:06:35 UTC +--- gpu/ipc/service/gpu_init.cc.orig 2019-12-16 21:51:26 UTC +++ gpu/ipc/service/gpu_init.cc @@ -109,7 +109,7 @@ void InitializePlatformOverlaySettings(GPUInfo* gpu_in #endif } -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(IS_CHROMECAST) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(IS_CHROMECAST)) || defined(OS_BSD) bool CanAccessNvidiaDeviceFile() { bool res = true; base::ScopedBlockingCall scoped_blocking_call(FROM_HERE, @@ -120,7 +120,7 @@ bool CanAccessNvidiaDeviceFile() { } return res; } -#endif // OS_LINUX && !OS_CHROMEOS && !IS_CHROMECAST +#endif // (OS_LINUX && !OS_CHROMEOS && !IS_CHROMECAST) || OS_BSD class GpuWatchdogInit { public: @@ -165,7 +165,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL // crash during feature collection. gpu::SetKeysForCrashLogging(gpu_info_); -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) if (gpu_info_.gpu.vendor_id == 0x10de && // NVIDIA gpu_info_.gpu.driver_vendor == "NVIDIA" && !CanAccessNvidiaDeviceFile()) return false; @@ -246,7 +246,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL sandbox_helper_->PreSandboxStartup(); bool attempted_startsandbox = false; -#if defined(OS_LINUX) +#if defined(OS_LINUX) && !defined(OS_BSD) // On Chrome OS ARM Mali, GPU driver userspace creates threads when // initializing a GL context, so start the sandbox early. // TODO(zmo): Need to collect OS version before this. @@ -255,7 +255,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL watchdog_thread_.get(), &gpu_info_, gpu_preferences_); attempted_startsandbox = true; } -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) && !defined(OS_BSD) base::TimeTicks before_initialize_one_off = base::TimeTicks::Now(); -@@ -304,14 +304,14 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL +@@ -280,14 +280,14 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL } if (gl_initialized && use_swiftshader && gl::GetGLImplementation() != gl::kGLImplementationSwiftShaderGL) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) VLOG(1) << "Quit GPU process launch to fallback to SwiftShader cleanly " << "on Linux"; return false; #else gl::init::ShutdownGL(true); gl_initialized = false; -#endif // OS_LINUX +#endif // OS_LINUX || OS_BSD } if (!gl_initialized) gl_initialized = gl::init::InitializeGLNoExtensionsOneOff(); -@@ -337,7 +337,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL - command_line, gpu_feature_info_, - gpu_preferences_.disable_software_rasterizer, false); - if (use_swiftshader) { +@@ -314,7 +314,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL + command_line, gpu_feature_info_, + gpu_preferences_.disable_software_rasterizer, false); + if (use_swiftshader) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - VLOG(1) << "Quit GPU process launch to fallback to SwiftShader cleanly " - << "on Linux"; - return false; -@@ -348,7 +348,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL - << "failed"; + VLOG(1) << "Quit GPU process launch to fallback to SwiftShader cleanly " + << "on Linux"; return false; - } +@@ -326,7 +326,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL + << "failed"; + return false; + } -#endif // OS_LINUX +#endif // OS_LINUX || OS_BSD - } - } + } + } else { // use_swiftshader == true + switch (gpu_preferences_.use_vulkan) { +@@ -413,7 +413,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL -@@ -377,7 +377,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL - InitializePlatformOverlaySettings(&gpu_info_); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Driver may create a compatibility profile context when collect graphics // information on Linux platform. Try to collect graphics information // based on core profile context after disabling platform extensions. -@@ -396,7 +396,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL +@@ -432,7 +432,7 @@ bool GpuInit::InitializeAndStartSandbox(base::CommandL return false; } } -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) if (use_swiftshader) { AdjustInfoToSwiftShader(); -@@ -569,7 +569,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c +@@ -604,7 +604,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c InitializePlatformOverlaySettings(&gpu_info_); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Driver may create a compatibility profile context when collect graphics // information on Linux platform. Try to collect graphics information // based on core profile context after disabling platform extensions. -@@ -589,7 +589,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c +@@ -624,7 +624,7 @@ void GpuInit::InitializeInProcess(base::CommandLine* c } } } -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) if (use_swiftshader) { AdjustInfoToSwiftShader(); Index: branches/2020Q1/www/chromium/files/patch-gpu_ipc_service_gpu__watchdog__thread.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_ipc_service_gpu__watchdog__thread.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_ipc_service_gpu__watchdog__thread.cc (revision 523260) @@ -1,76 +1,56 @@ ---- gpu/ipc/service/gpu_watchdog_thread.cc.orig 2019-10-21 19:06:35 UTC +--- gpu/ipc/service/gpu_watchdog_thread.cc.orig 2019-12-16 21:51:26 UTC +++ gpu/ipc/service/gpu_watchdog_thread.cc -@@ -45,8 +45,10 @@ const int kGpuTimeout = 10000; +@@ -40,7 +40,7 @@ const int kGpuTimeout = 15000; + const int kGpuTimeout = 10000; #endif - #if defined(USE_X11) -+#if !defined(OS_BSD) +-#if defined(USE_X11) ++#if defined(USE_X11) && !defined(OS_BSD) const base::FilePath::CharType kTtyFilePath[] = FILE_PATH_LITERAL("/sys/class/tty/tty0/active"); -+#endif - const unsigned char text[20] = "check"; #endif - -@@ -68,9 +70,12 @@ GpuWatchdogThreadImplV1::GpuWatchdogThreadImplV1() +@@ -59,7 +59,7 @@ GpuWatchdogThreadImplV1::GpuWatchdogThreadImplV1() + arm_cpu_time_(), + #endif + suspension_counter_(this) +-#if defined(USE_X11) ++#if defined(USE_X11) && !defined(OS_BSD) , - display_(nullptr), - window_(0), -- atom_(x11::None), -+ atom_(x11::None) -+#if !defined(OS_BSD) -+ , host_tty_(-1) #endif -+#endif - { - base::subtle::NoBarrier_Store(&awaiting_acknowledge_, false); - -@@ -85,7 +90,9 @@ GpuWatchdogThreadImplV1::GpuWatchdogThreadImplV1() +@@ -76,7 +76,7 @@ GpuWatchdogThreadImplV1::GpuWatchdogThreadImplV1() + DCHECK(result); #endif - #if defined(USE_X11) -+#if !defined(OS_BSD) +-#if defined(USE_X11) ++#if defined(USE_X11) && !defined(OS_BSD) tty_file_ = base::OpenFile(base::FilePath(kTtyFilePath), "r"); -+#endif - SetupXServer(); + host_tty_ = GetActiveTTY(); #endif - base::MessageLoopCurrent::Get()->AddTaskObserver(&task_observer_); -@@ -231,8 +238,10 @@ GpuWatchdogThreadImplV1::~GpuWatchdogThreadImplV1() { +@@ -222,7 +222,7 @@ GpuWatchdogThreadImplV1::~GpuWatchdogThreadImplV1() { + base::PowerMonitor::RemoveObserver(this); - #if defined(USE_X11) -+#if !defined(OS_BSD) +-#if defined(USE_X11) ++#if defined(USE_X11) && !defined(OS_BSD) if (tty_file_) fclose(tty_file_); -+#endif - if (display_) { - DCHECK(window_); - XDestroyWindow(display_, window_); -@@ -432,7 +441,7 @@ void GpuWatchdogThreadImplV1::DeliberatelyTerminateToR + #endif +@@ -371,7 +371,7 @@ void GpuWatchdogThreadImplV1::DeliberatelyTerminateToR 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 +525,9 @@ void GpuWatchdogThreadImplV1::SetupXServer() { - CopyFromParent, InputOutput, CopyFromParent, 0, nullptr); - atom_ = XInternAtom(display_, "CHECK", x11::False); - } -+#if !defined(OS_BSD) - host_tty_ = GetActiveTTY(); -+#endif - } - - void GpuWatchdogThreadImplV1::SetupXChangeProp() { -@@ -616,7 +627,7 @@ base::ThreadTicks GpuWatchdogThreadImplV1::GetWatchedT +@@ -528,7 +528,7 @@ base::ThreadTicks GpuWatchdogThreadImplV1::GetWatchedT } #endif -#if defined(USE_X11) +#if defined(USE_X11) && !defined(OS_BSD) int GpuWatchdogThreadImplV1::GetActiveTTY() const { char tty_string[8] = {0}; if (tty_file_ && !fseek(tty_file_, 0, SEEK_SET) && Index: branches/2020Q1/www/chromium/files/patch-gpu_ipc_service_gpu__watchdog__thread.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_ipc_service_gpu__watchdog__thread.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_ipc_service_gpu__watchdog__thread.h (revision 523260) @@ -1,13 +1,20 @@ ---- gpu/ipc/service/gpu_watchdog_thread.h.orig 2019-10-21 19:06:35 UTC +--- gpu/ipc/service/gpu_watchdog_thread.h.orig 2019-12-16 21:51:26 UTC +++ gpu/ipc/service/gpu_watchdog_thread.h -@@ -234,8 +234,10 @@ class GPU_IPC_SERVICE_EXPORT GpuWatchdogThreadImplV1 - XDisplay* display_; - gfx::AcceleratedWidget window_; - XAtom atom_; -+#if !defined(OS_BSD) +@@ -171,7 +171,7 @@ class GPU_IPC_SERVICE_EXPORT GpuWatchdogThreadImplV1 + base::ThreadTicks GetWatchedThreadTime(); + #endif + +-#if defined(USE_X11) ++#if defined(USE_X11) && !defined(OS_BSD) + int GetActiveTTY() const; + #endif + +@@ -219,7 +219,7 @@ class GPU_IPC_SERVICE_EXPORT GpuWatchdogThreadImplV1 + base::Time check_time_; + base::TimeTicks check_timeticks_; + +-#if defined(USE_X11) ++#if defined(USE_X11) && !defined(OS_BSD) FILE* tty_file_; int host_tty_; -+#endif #endif - - base::WeakPtrFactory weak_factory_{this}; Index: branches/2020Q1/www/chromium/files/patch-gpu_vulkan_vulkan__function__pointers.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_vulkan_vulkan__function__pointers.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_vulkan_vulkan__function__pointers.cc (revision 523260) @@ -1,32 +1,32 @@ ---- gpu/vulkan/vulkan_function_pointers.cc.orig 2019-10-21 19:06:35 UTC +--- gpu/vulkan/vulkan_function_pointers.cc.orig 2019-12-16 21:50:48 UTC +++ gpu/vulkan/vulkan_function_pointers.cc -@@ -731,7 +731,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer +@@ -772,7 +772,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer } #endif // defined(OS_ANDROID) -#if defined(OS_LINUX) || defined(OS_ANDROID) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) if (gfx::HasExtension(enabled_extensions, VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME)) { vkGetSemaphoreFdKHRFn = reinterpret_cast( -@@ -750,9 +750,9 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer +@@ -791,9 +791,9 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer return false; } } -#endif // defined(OS_LINUX) || defined(OS_ANDROID) +#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (gfx::HasExtension(enabled_extensions, VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME)) { vkGetMemoryFdKHRFn = reinterpret_cast( -@@ -763,7 +763,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer +@@ -813,7 +813,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer return false; } } -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) #if defined(OS_FUCHSIA) if (gfx::HasExtension(enabled_extensions, Index: branches/2020Q1/www/chromium/files/patch-gpu_vulkan_vulkan__function__pointers.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-gpu_vulkan_vulkan__function__pointers.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-gpu_vulkan_vulkan__function__pointers.h (revision 523260) @@ -1,42 +1,45 @@ ---- gpu/vulkan/vulkan_function_pointers.h.orig 2019-10-21 19:06:35 UTC +--- gpu/vulkan/vulkan_function_pointers.h.orig 2019-12-16 21:50:48 UTC +++ gpu/vulkan/vulkan_function_pointers.h -@@ -170,14 +170,14 @@ struct VulkanFunctionPointers { +@@ -178,15 +178,15 @@ struct VulkanFunctionPointers { vkGetAndroidHardwareBufferPropertiesANDROIDFn = nullptr; #endif // defined(OS_ANDROID) -#if defined(OS_LINUX) || defined(OS_ANDROID) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) PFN_vkGetSemaphoreFdKHR vkGetSemaphoreFdKHRFn = nullptr; PFN_vkImportSemaphoreFdKHR vkImportSemaphoreFdKHRFn = nullptr; -#endif // defined(OS_LINUX) || defined(OS_ANDROID) +#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) PFN_vkGetMemoryFdKHR vkGetMemoryFdKHRFn = nullptr; + PFN_vkGetMemoryFdPropertiesKHR vkGetMemoryFdPropertiesKHRFn = nullptr; -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) #if defined(OS_FUCHSIA) PFN_vkImportSemaphoreZirconHandleFUCHSIA -@@ -356,16 +356,16 @@ struct VulkanFunctionPointers { +@@ -374,18 +374,18 @@ struct VulkanFunctionPointers { ->vkGetAndroidHardwareBufferPropertiesANDROIDFn #endif // defined(OS_ANDROID) -#if defined(OS_LINUX) || defined(OS_ANDROID) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) #define vkGetSemaphoreFdKHR \ gpu::GetVulkanFunctionPointers()->vkGetSemaphoreFdKHRFn #define vkImportSemaphoreFdKHR \ gpu::GetVulkanFunctionPointers()->vkImportSemaphoreFdKHRFn -#endif // defined(OS_LINUX) || defined(OS_ANDROID) +#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #define vkGetMemoryFdKHR gpu::GetVulkanFunctionPointers()->vkGetMemoryFdKHRFn + #define vkGetMemoryFdPropertiesKHR \ + gpu::GetVulkanFunctionPointers()->vkGetMemoryFdPropertiesKHRFn -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) #if defined(OS_FUCHSIA) #define vkImportSemaphoreZirconHandleFUCHSIA \ Index: branches/2020Q1/www/chromium/files/patch-headless_lib_browser_headless__content__browser__client.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-headless_lib_browser_headless__content__browser__client.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-headless_lib_browser_headless__content__browser__client.cc (revision 523260) @@ -1,20 +1,20 @@ ---- headless/lib/browser/headless_content_browser_client.cc.orig 2019-10-21 19:06:35 UTC +--- headless/lib/browser/headless_content_browser_client.cc.orig 2019-12-16 21:51:26 UTC +++ headless/lib/browser/headless_content_browser_client.cc -@@ -165,7 +165,7 @@ HeadlessContentBrowserClient::GetGeneratedCodeCacheSet +@@ -166,7 +166,7 @@ HeadlessContentBrowserClient::GetGeneratedCodeCacheSet return content::GeneratedCodeCacheSettings(true, 0, context->GetPath()); } -#if defined(OS_POSIX) && !defined(OS_MACOSX) +#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD) void HeadlessContentBrowserClient::GetAdditionalMappedFilesForChildProcess( const base::CommandLine& command_line, int child_process_id, -@@ -176,7 +176,7 @@ void HeadlessContentBrowserClient::GetAdditionalMapped +@@ -177,7 +177,7 @@ void HeadlessContentBrowserClient::GetAdditionalMapped mappings->Share(service_manager::kCrashDumpSignal, crash_signal_fd); #endif // defined(HEADLESS_USE_BREAKPAD) } -#endif // defined(OS_POSIX) && !defined(OS_MACOSX) +#endif // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD) void HeadlessContentBrowserClient::AppendExtraCommandLineSwitches( base::CommandLine* command_line, Index: branches/2020Q1/www/chromium/files/patch-headless_lib_browser_headless__content__browser__client.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-headless_lib_browser_headless__content__browser__client.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-headless_lib_browser_headless__content__browser__client.h (revision 523260) @@ -1,11 +1,11 @@ ---- headless/lib/browser/headless_content_browser_client.h.orig 2019-10-21 19:06:35 UTC +--- headless/lib/browser/headless_content_browser_client.h.orig 2019-12-16 21:51:26 UTC +++ headless/lib/browser/headless_content_browser_client.h -@@ -33,7 +33,7 @@ class HeadlessContentBrowserClient : public content::C +@@ -34,7 +34,7 @@ class HeadlessContentBrowserClient : public content::C ::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: branches/2020Q1/www/chromium/files/patch-headless_lib_browser_headless__request__context__manager.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-headless_lib_browser_headless__request__context__manager.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-headless_lib_browser_headless__request__context__manager.cc (revision 523260) @@ -1,29 +1,29 @@ ---- headless/lib/browser/headless_request_context_manager.cc.orig 2019-10-21 19:06:35 UTC +--- headless/lib/browser/headless_request_context_manager.cc.orig 2019-12-16 21:51:26 UTC +++ headless/lib/browser/headless_request_context_manager.cc -@@ -25,7 +25,7 @@ namespace headless { +@@ -26,7 +26,7 @@ namespace headless { namespace { -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) static char kProductName[] = "HeadlessChrome"; #endif -@@ -55,7 +55,7 @@ net::NetworkTrafficAnnotationTag GetProxyConfigTraffic +@@ -56,7 +56,7 @@ net::NetworkTrafficAnnotationTag GetProxyConfigTraffic return traffic_annotation; } -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) ::network::mojom::CryptConfigPtr BuildCryptConfigOnce( const base::FilePath& user_data_path) { static bool done_once = false; -@@ -195,7 +195,7 @@ HeadlessRequestContextManager::HeadlessRequestContextM +@@ -197,7 +197,7 @@ HeadlessRequestContextManager::HeadlessRequestContextM proxy_config_monitor_ = std::make_unique( base::ThreadTaskRunnerHandle::Get()); } -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) auto crypt_config = BuildCryptConfigOnce(user_data_path_); if (crypt_config) content::GetNetworkService()->SetCryptConfig(std::move(crypt_config)); Index: branches/2020Q1/www/chromium/files/patch-ipc_ipc__channel.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-ipc_ipc__channel.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ipc_ipc__channel.h (revision 523260) @@ -1,11 +1,11 @@ ---- ipc/ipc_channel.h.orig 2019-09-09 21:55:20 UTC +--- ipc/ipc_channel.h.orig 2019-12-16 21:51:27 UTC +++ ipc/ipc_channel.h -@@ -256,7 +256,7 @@ class COMPONENT_EXPORT(IPC) Channel : public Sender { +@@ -280,7 +280,7 @@ class COMPONENT_EXPORT(IPC) Channel : public Sender { static std::string GenerateUniqueRandomChannelID(); #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Sandboxed processes live in a PID namespace, so when sending the IPC hello // message from client to server we need to send the PID from the global // PID namespace. Index: branches/2020Q1/www/chromium/files/patch-ipc_ipc__channel__mojo.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ipc_ipc__channel__mojo.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ipc_ipc__channel__mojo.cc (revision 523260) @@ -1,15 +1,15 @@ ---- ipc/ipc_channel_mojo.cc.orig 2019-06-04 18:55:25 UTC +--- ipc/ipc_channel_mojo.cc.orig 2019-12-16 21:51:27 UTC +++ ipc/ipc_channel_mojo.cc -@@ -64,10 +64,10 @@ class MojoChannelFactory : public ChannelFactory { +@@ -65,10 +65,10 @@ class MojoChannelFactory : public ChannelFactory { }; base::ProcessId GetSelfPID() { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (int global_pid = Channel::GetGlobalPid()) return global_pid; -#endif // OS_LINUX +#endif // OS_LINUX || OS_BSD #if defined(OS_NACL) return -1; #else Index: branches/2020Q1/www/chromium/files/patch-media_audio_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_audio_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_audio_BUILD.gn (revision 523260) @@ -1,22 +1,22 @@ ---- media/audio/BUILD.gn.orig 2019-09-09 21:55:20 UTC +--- media/audio/BUILD.gn.orig 2019-12-16 21:51:27 UTC +++ media/audio/BUILD.gn -@@ -234,8 +234,18 @@ source_set("audio") { - deps += [ "//media/base/android:media_jni_headers" ] +@@ -250,8 +250,18 @@ source_set("audio") { + ] } - if (is_linux) { + if (is_linux && !use_sndio) { sources += [ "linux/audio_manager_linux.cc" ] + } + if (use_sndio) { + libs += [ "sndio" ] + sources += [ + "openbsd/audio_manager_openbsd.cc", + "sndio/sndio_input.cc", + "sndio/sndio_input.h", + "sndio/sndio_output.cc", + "sndio/sndio_output.h" + ] } if (use_alsa) { Index: branches/2020Q1/www/chromium/files/patch-media_base_video__frame.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_base_video__frame.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_base_video__frame.cc (revision 523260) @@ -1,74 +1,74 @@ ---- media/base/video_frame.cc.orig 2019-10-21 19:06:36 UTC +--- media/base/video_frame.cc.orig 2019-12-16 21:50:49 UTC +++ media/base/video_frame.cc -@@ -52,7 +52,7 @@ static std::string StorageTypeToString( +@@ -57,7 +57,7 @@ std::string VideoFrame::StorageTypeToString( return "OWNED_MEMORY"; case VideoFrame::STORAGE_SHMEM: return "SHMEM"; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) case VideoFrame::STORAGE_DMABUFS: return "DMABUFS"; #endif -@@ -67,7 +67,7 @@ static std::string StorageTypeToString( +@@ -74,7 +74,7 @@ std::string VideoFrame::StorageTypeToString( // static bool VideoFrame::IsStorageTypeMappable(VideoFrame::StorageType storage_type) { return -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // This is not strictly needed but makes explicit that, at VideoFrame // level, DmaBufs are not mappable from userspace. storage_type != VideoFrame::STORAGE_DMABUFS && -@@ -185,7 +185,7 @@ static base::Optional GetDefaultLayo +@@ -257,7 +257,7 @@ static base::Optional GetDefaultLayo return VideoFrameLayout::CreateWithPlanes(format, coded_size, planes); } -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // This class allows us to embed a vector into a scoped_refptr, and // thus to have several VideoFrames share the same set of DMABUF FDs. class VideoFrame::DmabufHolder -@@ -203,7 +203,7 @@ class VideoFrame::DmabufHolder +@@ -275,7 +275,7 @@ class VideoFrame::DmabufHolder friend class base::RefCountedThreadSafe; ~DmabufHolder() = default; }; -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) // static bool VideoFrame::IsValidConfig(VideoPixelFormat format, -@@ -468,7 +468,7 @@ scoped_refptr VideoFrame::WrapExternalYuva +@@ -588,7 +588,7 @@ scoped_refptr VideoFrame::WrapExternalGpuM return frame; } -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // static scoped_refptr VideoFrame::WrapExternalDmabufs( const VideoFrameLayout& layout, -@@ -604,7 +604,7 @@ scoped_refptr VideoFrame::WrapVideoFrame( +@@ -724,7 +724,7 @@ scoped_refptr VideoFrame::WrapVideoFrame( } } -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) - DCHECK(frame.dmabuf_fds_); + DCHECK(frame->dmabuf_fds_); // If there are any |dmabuf_fds_| plugged in, we should refer them too. - wrapping_frame->dmabuf_fds_ = frame.dmabuf_fds_; -@@ -911,7 +911,7 @@ VideoFrame::mailbox_holder(size_t texture_index) const - return mailbox_holders_[texture_index]; + wrapping_frame->dmabuf_fds_ = frame->dmabuf_fds_; +@@ -1050,7 +1050,7 @@ VideoFrame::mailbox_holder(size_t texture_index) const + : mailbox_holders_[texture_index]; } -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) const std::vector& VideoFrame::DmabufFds() const { DCHECK_EQ(storage_type_, STORAGE_DMABUFS); -@@ -986,7 +986,7 @@ VideoFrame::VideoFrame(const VideoFrameLayout& layout, +@@ -1133,7 +1133,7 @@ VideoFrame::VideoFrame(const VideoFrameLayout& layout, storage_type_(storage_type), visible_rect_(Intersection(visible_rect, gfx::Rect(layout.coded_size()))), natural_size_(natural_size), -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) dmabuf_fds_(base::MakeRefCounted()), #endif timestamp_(timestamp), Index: branches/2020Q1/www/chromium/files/patch-media_base_video__frame.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_base_video__frame.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_base_video__frame.h (revision 523260) @@ -1,50 +1,50 @@ ---- media/base/video_frame.h.orig 2019-10-21 19:06:36 UTC +--- media/base/video_frame.h.orig 2019-12-16 21:50:49 UTC +++ media/base/video_frame.h @@ -39,9 +39,9 @@ #include "base/mac/scoped_cftyperef.h" #endif // defined(OS_MACOSX) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "base/files/scoped_file.h" -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) - namespace media { - -@@ -76,7 +76,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte + namespace gfx { + class GpuMemoryBuffer; +@@ -80,7 +80,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte STORAGE_UNOWNED_MEMORY = 2, // External, non owned data pointers. STORAGE_OWNED_MEMORY = 3, // VideoFrame has allocated its own data buffer. STORAGE_SHMEM = 4, // Backed by unsafe (writable) shared memory. -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // TODO(mcasas): Consider turning this type into STORAGE_NATIVE // based on the idea of using this same enum value for both DMA // buffers on Linux and CVPixelBuffers on Mac (which currently use -@@ -229,7 +229,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte - uint8_t* a_data, +@@ -245,7 +245,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte + ReleaseMailboxCB mailbox_holder_release_cb, base::TimeDelta timestamp); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Wraps provided dmabufs // (https://www.kernel.org/doc/html/latest/driver-api/dma-buf.html) with a // VideoFrame. The frame will take ownership of |dmabuf_fds|, and will -@@ -444,7 +444,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte +@@ -476,7 +476,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte // mailbox, the caller must wait for the included sync point. const gpu::MailboxHolder& mailbox_holder(size_t texture_index) const; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Returns a vector containing the backing DmaBufs for this frame. The number // of returned DmaBufs will be equal or less than the number of planes of // the frame. If there are less, this means that the last FD contains the -@@ -630,7 +630,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte - base::UnsafeSharedMemoryRegion owned_shm_region_; - base::WritableSharedMemoryMapping owned_shm_mapping_; +@@ -662,7 +662,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte + // GPU memory buffer, if this frame is STORAGE_GPU_MEMORY_BUFFER. + std::unique_ptr gpu_memory_buffer_; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) class DmabufHolder; // Dmabufs for the frame, used when storage is STORAGE_DMABUFS. Size is either Index: branches/2020Q1/www/chromium/files/patch-media_capture_video_fake__video__capture__device__factory.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_capture_video_fake__video__capture__device__factory.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_capture_video_fake__video__capture__device__factory.cc (revision 523260) @@ -1,11 +1,11 @@ ---- media/capture/video/fake_video_capture_device_factory.cc.orig 2019-10-21 19:06:36 UTC +--- media/capture/video/fake_video_capture_device_factory.cc.orig 2019-12-16 21:50:49 UTC +++ media/capture/video/fake_video_capture_device_factory.cc -@@ -205,7 +205,7 @@ void FakeVideoCaptureDeviceFactory::GetDeviceDescripto +@@ -208,7 +208,7 @@ void FakeVideoCaptureDeviceFactory::GetDeviceDescripto for (const auto& entry : devices_config_) { device_descriptors->emplace_back( base::StringPrintf("fake_device_%d", entry_index), entry.device_id, -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) VideoCaptureApi::LINUX_V4L2_SINGLE_PLANE #elif defined(OS_MACOSX) VideoCaptureApi::MACOSX_AVFOUNDATION Index: branches/2020Q1/www/chromium/files/patch-media_capture_video_video__capture__buffer__pool__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_capture_video_video__capture__buffer__pool__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_capture_video_video__capture__buffer__pool__impl.cc (revision 523260) @@ -1,11 +1,11 @@ ---- media/capture/video/video_capture_buffer_pool_impl.cc.orig 2019-10-21 19:06:36 UTC +--- media/capture/video/video_capture_buffer_pool_impl.cc.orig 2019-12-16 21:50:49 UTC +++ media/capture/video/video_capture_buffer_pool_impl.cc -@@ -57,7 +57,7 @@ VideoCaptureBufferPoolImpl::CreateSharedMemoryViaRawFi +@@ -59,7 +59,7 @@ VideoCaptureBufferPoolImpl::CreateSharedMemoryViaRawFi int buffer_id) { // This requires platforms where base::SharedMemoryHandle is backed by a // file descriptor. -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) base::AutoLock lock(lock_); VideoCaptureBufferTracker* tracker = GetTracker(buffer_id); Index: branches/2020Q1/www/chromium/files/patch-media_capture_video_video__capture__device__client.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_capture_video_video__capture__device__client.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_capture_video_video__capture__device__client.cc (revision 523260) @@ -1,11 +1,11 @@ ---- media/capture/video/video_capture_device_client.cc.orig 2019-10-21 19:06:36 UTC +--- media/capture/video/video_capture_device_client.cc.orig 2019-12-16 21:50:49 UTC +++ media/capture/video/video_capture_device_client.cc -@@ -301,7 +301,7 @@ void VideoCaptureDeviceClient::OnIncomingCapturedData( +@@ -297,7 +297,7 @@ void VideoCaptureDeviceClient::OnIncomingCapturedData( // see http://linuxtv.org/downloads/v4l-dvb-apis/packed-rgb.html. // Windows RGB24 defines blue at lowest byte, // see https://msdn.microsoft.com/en-us/library/windows/desktop/dd407253 -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) fourcc_format = libyuv::FOURCC_RAW; #elif defined(OS_WIN) fourcc_format = libyuv::FOURCC_24BG; Index: branches/2020Q1/www/chromium/files/patch-media_gpu_buffer__validation.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_gpu_buffer__validation.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-media_gpu_buffer__validation.cc (revision 523260) @@ -0,0 +1,48 @@ +--- media/gpu/buffer_validation.cc.orig 2019-12-17 19:41:51 UTC ++++ media/gpu/buffer_validation.cc +@@ -12,15 +12,15 @@ + #include "ui/gfx/geometry/size.h" + #include "ui/gfx/gpu_memory_buffer.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include + #include +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + namespace media { + + bool GetFileSize(const int fd, size_t* size) { +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + if (fd < 0) { + VLOGF(1) << "Invalid file descriptor"; + return false; +@@ -46,7 +46,7 @@ bool GetFileSize(const int fd, size_t* size) { + #else + NOTIMPLEMENTED(); + return false; +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + } + + bool VerifyGpuMemoryBufferHandle(media::VideoPixelFormat pixel_format, +@@ -56,7 +56,7 @@ bool VerifyGpuMemoryBufferHandle(media::VideoPixelForm + VLOGF(1) << "Unexpected GpuMemoryBufferType: " << gmb_handle.type; + return false; + } +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + const size_t num_planes = media::VideoFrame::NumPlanes(pixel_format); + if (num_planes != gmb_handle.native_pixmap_handle.planes.size() || + num_planes == 0) { +@@ -108,7 +108,7 @@ bool VerifyGpuMemoryBufferHandle(media::VideoPixelForm + #else + NOTIMPLEMENTED(); + return false; +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + } + + } // namespace media Property changes on: branches/2020Q1/www/chromium/files/patch-media_gpu_buffer__validation.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: branches/2020Q1/www/chromium/files/patch-media_gpu_libyuv__image__processor.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_gpu_libyuv__image__processor.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_gpu_libyuv__image__processor.cc (revision 523260) @@ -1,38 +1,38 @@ ---- media/gpu/libyuv_image_processor.cc.orig 2019-07-29 19:24:17 UTC +--- media/gpu/libyuv_image_processor.cc.orig 2019-12-16 21:51:27 UTC +++ media/gpu/libyuv_image_processor.cc -@@ -91,7 +91,7 @@ std::unique_ptr LibYUVImageProce +@@ -78,7 +78,7 @@ std::unique_ptr LibYUVImageProce // LibYUVImageProcessor supports only memory-based video frame for input. VideoFrame::StorageType input_storage_type = VideoFrame::STORAGE_UNKNOWN; for (auto input_type : input_config.preferred_storage_types) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (input_type == VideoFrame::STORAGE_DMABUFS) { video_frame_mapper = VideoFrameMapperFactory::CreateMapper( - input_config.layout.format(), true); -@@ -100,7 +100,7 @@ std::unique_ptr LibYUVImageProce + input_config.fourcc.ToVideoPixelFormat(), true); +@@ -87,7 +87,7 @@ std::unique_ptr LibYUVImageProce break; } } -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) if (VideoFrame::IsStorageTypeMappable(input_type)) { input_storage_type = input_type; -@@ -203,7 +203,7 @@ void LibYUVImageProcessor::ProcessTask(scoped_refptrBelongsToCurrentThread()); DVLOGF(4); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (input_frame->storage_type() == VideoFrame::STORAGE_DMABUFS) { DCHECK_NE(video_frame_mapper_.get(), nullptr); input_frame = video_frame_mapper_->Map(std::move(input_frame)); -@@ -213,7 +213,7 @@ void LibYUVImageProcessor::ProcessTask(scoped_refptr duped_fds = -@@ -136,7 +136,7 @@ gfx::GpuMemoryBufferHandle CreateGpuMemoryBufferHandle - } - #else - NOTREACHED(); + #include "gpu/ipc/common/gpu_client_ids.h" + #include "gpu/ipc/service/gpu_memory_buffer_factory.h" -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) - return handle; + + namespace media { + + namespace { + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + + scoped_refptr CreateVideoFrameGpu( + gpu::GpuMemoryBufferFactory* factory, +@@ -92,7 +92,7 @@ scoped_refptr CreateVideoFrameGpu( + gpu::kPlatformVideoFramePoolClientId)); + return frame; } +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + } // namespace + +@@ -104,11 +104,11 @@ scoped_refptr CreatePlatformVideoFrame( + const gfx::Size& natural_size, + base::TimeDelta timestamp, + gfx::BufferUsage buffer_usage) { +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + return CreateVideoFrameGpu(gpu_memory_buffer_factory, pixel_format, + coded_size, visible_rect, natural_size, timestamp, + buffer_usage); +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + NOTREACHED(); + return nullptr; + } Index: branches/2020Q1/www/chromium/files/patch-media_media__options.gni =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_media__options.gni (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_media__options.gni (revision 523260) @@ -1,12 +1,12 @@ ---- media/media_options.gni.orig 2019-07-24 18:58:30 UTC +--- media/media_options.gni.orig 2019-12-16 21:51:27 UTC +++ media/media_options.gni -@@ -110,6 +110,9 @@ declare_args() { +@@ -117,6 +117,9 @@ declare_args() { # Enables runtime selection of ALSA library for audio. use_alsa = false + # Enable runtime selection of sndio(7) + use_sndio = false + # Alsa should be used on non-Android, non-Mac POSIX systems. # Alsa should be used on desktop Chromecast and audio-only Chromecast builds. if (is_posix && !is_android && !is_mac && Index: branches/2020Q1/www/chromium/files/patch-media_mojo_clients_mojo__video__encode__accelerator.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_mojo_clients_mojo__video__encode__accelerator.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_mojo_clients_mojo__video__encode__accelerator.cc (revision 523260) @@ -1,11 +1,11 @@ ---- media/mojo/clients/mojo_video_encode_accelerator.cc.orig 2019-09-16 09:54:00 UTC +--- media/mojo/clients/mojo_video_encode_accelerator.cc.orig 2019-12-16 21:51:27 UTC +++ media/mojo/clients/mojo_video_encode_accelerator.cc @@ -124,7 +124,7 @@ void MojoVideoEncodeAccelerator::Encode(scoped_refptr< frame->layout().num_planes()); DCHECK(vea_.is_bound()); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) + // TODO(crbug.com/1003197): Remove this once we stop supporting STORAGE_DMABUF + // in VideoEncodeAccelerator. if (frame->storage_type() == VideoFrame::STORAGE_DMABUFS) { - DCHECK(frame->HasDmaBufs()); - vea_->Encode( Index: branches/2020Q1/www/chromium/files/patch-media_mojo_mojom_video__frame__mojom__traits.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_mojo_mojom_video__frame__mojom__traits.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_mojo_mojom_video__frame__mojom__traits.cc (revision 523260) @@ -1,20 +1,20 @@ ---- media/mojo/mojom/video_frame_mojom_traits.cc.orig 2019-10-30 16:06:07 UTC +--- media/mojo/mojom/video_frame_mojom_traits.cc.orig 2019-12-16 21:51:27 UTC +++ media/mojo/mojom/video_frame_mojom_traits.cc -@@ -52,7 +52,7 @@ media::mojom::VideoFrameDataPtr MakeVideoFrameData( +@@ -56,7 +56,7 @@ media::mojom::VideoFrameDataPtr MakeVideoFrameData( mojo_frame->PlaneOffset(media::VideoFrame::kVPlane))); } -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (input->storage_type() == media::VideoFrame::STORAGE_DMABUFS) { std::vector dmabuf_fds; -@@ -145,7 +145,7 @@ bool StructTraits gpu_task_runner, base::WeakPtr media_gpu_channel_manager, -@@ -245,7 +245,7 @@ std::unique_ptr GpuMojoMediaClient::Crea +@@ -265,7 +265,7 @@ std::unique_ptr GpuMojoMediaClient::Crea command_buffer_id->route_id)); } -#elif defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) +#elif defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) video_decoder = VdaVideoDecoder::Create( task_runner, gpu_task_runner_, media_log->Clone(), target_color_space, gpu_preferences_, gpu_workarounds_, Index: branches/2020Q1/www/chromium/files/patch-media_video_fake__gpu__memory__buffer.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_video_fake__gpu__memory__buffer.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-media_video_fake__gpu__memory__buffer.cc (revision 523260) @@ -0,0 +1,47 @@ +--- media/video/fake_gpu_memory_buffer.cc.orig 2019-12-17 19:43:52 UTC ++++ media/video/fake_gpu_memory_buffer.cc +@@ -6,7 +6,7 @@ + + #include "build/build_config.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include + #include + #include +@@ -44,7 +44,7 @@ class FakeGpuMemoryBufferImpl : public gpu::GpuMemoryB + + } // namespace + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + base::ScopedFD GetDummyFD() { + base::ScopedFD fd(open("/dev/zero", O_RDWR)); + DCHECK(fd.is_valid()); +@@ -67,7 +67,7 @@ FakeGpuMemoryBuffer::FakeGpuMemoryBuffer(const gfx::Si + // Set a dummy id since this is for testing only. + handle_.id = gfx::GpuMemoryBufferId(0); + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // Set a dummy fd since this is for testing only. + handle_.native_pixmap_handle.planes.push_back( + gfx::NativePixmapPlane(size_.width(), 0, y_plane_size, GetDummyFD())); +@@ -76,7 +76,7 @@ FakeGpuMemoryBuffer::FakeGpuMemoryBuffer(const gfx::Si + size_.width(), handle_.native_pixmap_handle.planes[0].size, + uv_plane_size, GetDummyFD())); + } +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + } + + FakeGpuMemoryBuffer::~FakeGpuMemoryBuffer() = default; +@@ -135,7 +135,7 @@ gfx::GpuMemoryBufferHandle FakeGpuMemoryBuffer::CloneH + gfx::GpuMemoryBufferHandle handle; + handle.type = gfx::NATIVE_PIXMAP; + handle.id = handle_.id; +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + handle.native_pixmap_handle = + gfx::CloneHandleForIPC(handle_.native_pixmap_handle); + #endif Property changes on: branches/2020Q1/www/chromium/files/patch-media_video_fake__gpu__memory__buffer.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: branches/2020Q1/www/chromium/files/patch-media_video_gpu__memory__buffer__video__frame__pool.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_video_gpu__memory__buffer__video__frame__pool.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-media_video_gpu__memory__buffer__video__frame__pool.cc (revision 523260) @@ -1,11 +1,11 @@ ---- media/video/gpu_memory_buffer_video_frame_pool.cc.orig 2019-10-21 19:06:37 UTC +--- media/video/gpu_memory_buffer_video_frame_pool.cc.orig 2019-12-16 21:51:27 UTC +++ media/video/gpu_memory_buffer_video_frame_pool.cc -@@ -555,7 +555,7 @@ void GpuMemoryBufferVideoFramePool::PoolImpl::CreateHa +@@ -557,7 +557,7 @@ void GpuMemoryBufferVideoFramePool::PoolImpl::CreateHa } bool is_software_backed_video_frame = !video_frame->HasTextures(); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) is_software_backed_video_frame &= !video_frame->HasDmaBufs(); #endif Index: branches/2020Q1/www/chromium/files/patch-media_webrtc_webrtc__switches.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-media_webrtc_webrtc__switches.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-media_webrtc_webrtc__switches.cc (revision 523260) @@ -0,0 +1,18 @@ +--- media/webrtc/webrtc_switches.cc.orig 2019-12-17 19:45:42 UTC ++++ media/webrtc/webrtc_switches.cc +@@ -44,7 +44,7 @@ namespace media { + + bool IsWebRtcApmInAudioServiceEnabled() { + #if defined(OS_WIN) || defined(OS_MACOSX) || \ +- (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++ (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + return base::FeatureList::IsEnabled(features::kWebRtcApmInAudioService) && + !base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kForceDisableWebRtcApmInAudioService); +@@ -53,4 +53,4 @@ bool IsWebRtcApmInAudioServiceEnabled() { + #endif + } + +-} // namespace media +\ No newline at end of file ++} // namespace media Property changes on: branches/2020Q1/www/chromium/files/patch-media_webrtc_webrtc__switches.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: branches/2020Q1/www/chromium/files/patch-net_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-net_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-net_BUILD.gn (revision 523260) @@ -1,46 +1,46 @@ ---- net/BUILD.gn.orig 2019-10-21 19:06:38 UTC +--- net/BUILD.gn.orig 2019-12-16 21:51:27 UTC +++ net/BUILD.gn @@ -105,7 +105,7 @@ net_configs = [ "//build/config/compiler:wexit_time_destructors", ] -if (is_linux) { +if (is_linux && !is_bsd) { net_configs += [ "//build/config/linux:libresolv" ] } -@@ -1924,7 +1924,7 @@ component("net") { +@@ -1938,7 +1938,7 @@ component("net") { } } - if (is_android || is_chromeos) { + if (is_android || is_chromeos || is_bsd) { sources += [ "base/network_change_notifier_posix.cc", "base/network_change_notifier_posix.h", -@@ -1957,7 +1957,7 @@ component("net") { +@@ -1971,7 +1971,7 @@ component("net") { } # Use getifaddrs() on POSIX platforms, except Linux and Android. - if (is_posix && !is_linux && !is_android) { + if (is_posix && ((!is_linux && !is_android) || (is_bsd))) { sources += [ "base/network_interfaces_getifaddrs.cc", "base/network_interfaces_getifaddrs.h", -@@ -2051,6 +2051,16 @@ component("net") { +@@ -2065,6 +2065,16 @@ component("net") { ] sources -= [ "disk_cache/blockfile/file_posix.cc" ] + } + + if (is_bsd) { + sources -= [ + "base/address_tracker_linux.cc", + "base/address_tracker_linux.h", + "base/network_change_notifier_linux.cc", + "base/network_change_notifier_linux.h", + "base/network_interfaces_linux.cc", + ] } if (is_ios || is_mac) { Index: branches/2020Q1/www/chromium/files/patch-net_base_address__tracker__linux.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-net_base_address__tracker__linux.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-net_base_address__tracker__linux.cc (revision 523260) @@ -1,177 +1,177 @@ ---- net/base/address_tracker_linux.cc.orig 2019-06-04 18:55:26 UTC +--- net/base/address_tracker_linux.cc.orig 2019-12-16 21:51:27 UTC +++ net/base/address_tracker_linux.cc @@ -21,96 +21,10 @@ namespace net { namespace internal { -namespace { - -// Some kernel functions such as wireless_send_event and rtnetlink_ifinfo_prep -// may send spurious messages over rtnetlink. RTM_NEWLINK messages where -// ifi_change == 0 and rta_type == IFLA_WIRELESS should be ignored. -bool IgnoreWirelessChange(const struct nlmsghdr* header, - const struct ifinfomsg* msg) { - size_t length = IFLA_PAYLOAD(header); - for (const struct rtattr* attr = IFLA_RTA(msg); RTA_OK(attr, length); - attr = RTA_NEXT(attr, length)) { - if (attr->rta_type == IFLA_WIRELESS && msg->ifi_change == 0) - return true; - } - return false; -} - -// Retrieves address from NETLINK address message. -// Sets |really_deprecated| for IPv6 addresses with preferred lifetimes of 0. -bool GetAddress(const struct nlmsghdr* header, - IPAddress* out, - bool* really_deprecated) { - if (really_deprecated) - *really_deprecated = false; - const struct ifaddrmsg* msg = - reinterpret_cast(NLMSG_DATA(header)); - size_t address_length = 0; - switch (msg->ifa_family) { - case AF_INET: - address_length = IPAddress::kIPv4AddressSize; - break; - case AF_INET6: - address_length = IPAddress::kIPv6AddressSize; - break; - default: - // Unknown family. - return false; - } - // Use IFA_ADDRESS unless IFA_LOCAL is present. This behavior here is based on - // getaddrinfo in glibc (check_pf.c). Judging from kernel implementation of - // NETLINK, IPv4 addresses have only the IFA_ADDRESS attribute, while IPv6 - // have the IFA_LOCAL attribute. - uint8_t* address = NULL; - uint8_t* local = NULL; - size_t length = IFA_PAYLOAD(header); - for (const struct rtattr* attr = - reinterpret_cast(IFA_RTA(msg)); - RTA_OK(attr, length); - attr = RTA_NEXT(attr, length)) { - switch (attr->rta_type) { - case IFA_ADDRESS: - DCHECK_GE(RTA_PAYLOAD(attr), address_length); - address = reinterpret_cast(RTA_DATA(attr)); - break; - case IFA_LOCAL: - DCHECK_GE(RTA_PAYLOAD(attr), address_length); - local = reinterpret_cast(RTA_DATA(attr)); - break; - case IFA_CACHEINFO: { - const struct ifa_cacheinfo *cache_info = - reinterpret_cast(RTA_DATA(attr)); - if (really_deprecated) - *really_deprecated = (cache_info->ifa_prefered == 0); - } break; - default: - break; - } - } - if (local) - address = local; - if (!address) - return false; - *out = IPAddress(address, address_length); - return true; -} - -} // namespace - // static char* AddressTrackerLinux::GetInterfaceName(int interface_index, char* buf) { - memset(buf, 0, IFNAMSIZ); - base::ScopedFD ioctl_socket = GetSocketForIoctl(); - if (!ioctl_socket.is_valid()) - return buf; - - struct ifreq ifr = {}; - ifr.ifr_ifindex = interface_index; - - if (ioctl(ioctl_socket.get(), SIOCGIFNAME, &ifr) == 0) - strncpy(buf, ifr.ifr_name, IFNAMSIZ - 1); - return buf; + NOTIMPLEMENTED(); + return NULL; } AddressTrackerLinux::AddressTrackerLinux() @@ -147,6 +61,7 @@ AddressTrackerLinux::AddressTrackerLinux( AddressTrackerLinux::~AddressTrackerLinux() = default; void AddressTrackerLinux::Init() { +#if !defined(OS_FREEBSD) netlink_fd_.reset(socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE)); if (!netlink_fd_.is_valid()) { PLOG(ERROR) << "Could not create NETLINK socket"; @@ -242,6 +157,7 @@ void AddressTrackerLinux::AbortAndForceOnline() { connection_type_initialized_cv_.Broadcast(); } +#if !defined(OS_BSD) AddressTrackerLinux::AddressMap AddressTrackerLinux::GetAddressMap() const { AddressTrackerAutoLock lock(*this, address_map_lock_); return address_map_; @@ -260,6 +176,7 @@ bool AddressTrackerLinux::IsInterfaceIgnored(int inter const char* interface_name = get_interface_name_(interface_index, buf); return ignored_interfaces_.find(interface_name) != ignored_interfaces_.end(); } +#endif // !OS_BSD NetworkChangeNotifier::ConnectionType AddressTrackerLinux::GetCurrentConnectionType() { -@@ -318,6 +235,7 @@ void AddressTrackerLinux::HandleMessage(char* buffer, +@@ -318,6 +235,7 @@ void AddressTrackerLinux::HandleMessage(const char* bu bool* address_changed, bool* link_changed, bool* tunnel_changed) { +#if !defined(OS_FREEBSD) DCHECK(buffer); - for (struct nlmsghdr* header = reinterpret_cast(buffer); - NLMSG_OK(header, length); -@@ -414,6 +332,10 @@ void AddressTrackerLinux::HandleMessage(char* buffer, + for (const struct nlmsghdr* header = + reinterpret_cast(buffer); +@@ -414,6 +332,10 @@ void AddressTrackerLinux::HandleMessage(const char* bu break; } } +#else // !OS_FREEBSD + NOTIMPLEMENTED(); + AbortAndForceOnline(); +#endif // !OS_FREEBSD } void AddressTrackerLinux::OnFileCanReadWithoutBlocking() { @@ -441,31 +363,7 @@ bool AddressTrackerLinux::IsTunnelInterfaceName(const } void AddressTrackerLinux::UpdateCurrentConnectionType() { - AddressTrackerLinux::AddressMap address_map = GetAddressMap(); - std::unordered_set online_links = GetOnlineLinks(); - - // Strip out tunnel interfaces from online_links - for (auto it = online_links.cbegin(); it != online_links.cend();) { - if (IsTunnelInterface(*it)) { - it = online_links.erase(it); - } else { - ++it; - } - } - - NetworkInterfaceList networks; - NetworkChangeNotifier::ConnectionType type = - NetworkChangeNotifier::CONNECTION_NONE; - if (GetNetworkListImpl(&networks, 0, online_links, address_map, - get_interface_name_)) { - type = NetworkChangeNotifier::ConnectionTypeFromInterfaceList(networks); - } else { - type = online_links.empty() ? NetworkChangeNotifier::CONNECTION_NONE - : NetworkChangeNotifier::CONNECTION_UNKNOWN; - } - - AddressTrackerAutoLock lock(*this, connection_type_lock_); - current_connection_type_ = type; + NOTIMPLEMENTED(); } int AddressTrackerLinux::GetThreadsWaitingForConnectionTypeInitForTesting() Index: branches/2020Q1/www/chromium/files/patch-net_base_network__change__notifier.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-net_base_network__change__notifier.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-net_base_network__change__notifier.cc (revision 523260) @@ -1,28 +1,28 @@ ---- net/base/network_change_notifier.cc.orig 2019-10-21 19:06:38 UTC +--- net/base/network_change_notifier.cc.orig 2019-12-16 21:51:27 UTC +++ net/base/network_change_notifier.cc @@ -35,7 +35,7 @@ #include "net/base/network_change_notifier_linux.h" #elif defined(OS_MACOSX) #include "net/base/network_change_notifier_mac.h" --#elif defined(OS_CHROMEOS) -+#elif defined(OS_CHROMEOS) || defined(OS_BSD) +-#elif defined(OS_CHROMEOS) || defined(OS_ANDROID) ++#elif defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD) #include "net/base/network_change_notifier_posix.h" #elif defined(OS_FUCHSIA) #include "net/base/network_change_notifier_fuchsia.h" -@@ -224,7 +224,7 @@ std::unique_ptr NetworkChangeNo - // Android builds MUST use their own class factory. - CHECK(false); - return NULL; +@@ -240,7 +240,7 @@ std::unique_ptr NetworkChangeNo + // service in a separate process. + return std::make_unique(initial_type, + initial_subtype); -#elif defined(OS_CHROMEOS) +#elif defined(OS_CHROMEOS) || defined(OS_BSD) - return std::make_unique(CONNECTION_NONE, - SUBTYPE_NONE); + return std::make_unique(initial_type, + initial_subtype); #elif defined(OS_LINUX) -@@ -236,7 +236,6 @@ std::unique_ptr NetworkChangeNo +@@ -252,7 +252,6 @@ std::unique_ptr NetworkChangeNo return std::make_unique( 0 /* required_features */); #else - NOTIMPLEMENTED(); return NULL; #endif } Index: branches/2020Q1/www/chromium/files/patch-net_socket_socket__posix.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-net_socket_socket__posix.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-net_socket_socket__posix.cc (revision 523260) @@ -1,11 +1,11 @@ ---- net/socket/socket_posix.cc.orig 2019-10-21 19:06:38 UTC +--- net/socket/socket_posix.cc.orig 2019-12-16 21:51:27 UTC +++ net/socket/socket_posix.cc -@@ -520,7 +520,7 @@ void SocketPosix::ReadCompleted() { +@@ -517,7 +517,7 @@ void SocketPosix::ReadCompleted() { } int SocketPosix::DoWrite(IOBuffer* buf, int buf_len) { -#if defined(OS_LINUX) || defined(OS_ANDROID) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) // Disable SIGPIPE for this write. Although Chromium globally disables // SIGPIPE, the net stack may be used in other consumers which do not do // this. MSG_NOSIGNAL is a Linux-only API. On OS X, this is a setsockopt on Index: branches/2020Q1/www/chromium/files/patch-net_tools_cert__verify__tool_cert__verify__tool.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-net_tools_cert__verify__tool_cert__verify__tool.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-net_tools_cert__verify__tool_cert__verify__tool.cc (revision 523260) @@ -1,20 +1,20 @@ ---- net/tools/cert_verify_tool/cert_verify_tool.cc.orig 2019-07-24 18:58:33 UTC +--- net/tools/cert_verify_tool/cert_verify_tool.cc.orig 2019-12-16 21:51:27 UTC +++ net/tools/cert_verify_tool/cert_verify_tool.cc -@@ -28,7 +28,7 @@ +@@ -29,7 +29,7 @@ #include "net/url_request/url_request_context_builder.h" #include "net/url_request/url_request_context_getter.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "net/proxy_resolution/proxy_config.h" #include "net/proxy_resolution/proxy_config_service_fixed.h" #endif -@@ -49,7 +49,7 @@ void SetUpOnNetworkThread( +@@ -50,7 +50,7 @@ void SetUpOnNetworkThread( base::WaitableEvent* initialization_complete_event) { net::URLRequestContextBuilder url_request_context_builder; url_request_context_builder.set_user_agent(GetUserAgent()); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // On Linux, use a fixed ProxyConfigService, since the default one // depends on glib. // Index: branches/2020Q1/www/chromium/files/patch-net_url__request_url__request__context__builder.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-net_url__request_url__request__context__builder.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-net_url__request_url__request__context__builder.cc (revision 523260) @@ -1,20 +1,20 @@ ---- net/url_request/url_request_context_builder.cc.orig 2019-10-21 19:06:39 UTC +--- net/url_request/url_request_context_builder.cc.orig 2019-12-16 21:51:27 UTC +++ net/url_request/url_request_context_builder.cc -@@ -519,7 +519,7 @@ std::unique_ptr URLRequestContextBu +@@ -496,7 +496,7 @@ std::unique_ptr URLRequestContextBu } if (!proxy_resolution_service_) { -#if !defined(OS_LINUX) && !defined(OS_ANDROID) +#if !defined(OS_LINUX) && !defined(OS_ANDROID) && !defined(OS_BSD) // TODO(willchan): Switch to using this code when // ProxyResolutionService::CreateSystemProxyConfigService()'s signature // doesn't suck. -@@ -528,7 +528,7 @@ std::unique_ptr URLRequestContextBu +@@ -505,7 +505,7 @@ std::unique_ptr URLRequestContextBu ProxyResolutionService::CreateSystemProxyConfigService( base::ThreadTaskRunnerHandle::Get().get()); } -#endif // !defined(OS_LINUX) && !defined(OS_ANDROID) +#endif // !defined(OS_LINUX) && !defined(OS_ANDROID) && !defined(OS_BSD) proxy_resolution_service_ = CreateProxyResolutionService( std::move(proxy_config_service_), context.get(), context->host_resolver(), context->network_delegate(), Index: branches/2020Q1/www/chromium/files/patch-pdf_pdfium_pdfium__engine.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-pdf_pdfium_pdfium__engine.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-pdf_pdfium_pdfium__engine.cc (revision 523260) @@ -1,56 +1,56 @@ ---- pdf/pdfium/pdfium_engine.cc.orig 2019-10-21 19:06:39 UTC +--- pdf/pdfium/pdfium_engine.cc.orig 2019-12-16 21:51:27 UTC +++ pdf/pdfium/pdfium_engine.cc -@@ -53,7 +53,7 @@ +@@ -52,7 +52,7 @@ #include "ui/gfx/geometry/rect.h" #include "v8/include/v8.h" -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include "pdf/pdfium/pdfium_font_linux.h" #endif -@@ -378,7 +378,7 @@ bool InitializeSDK(bool enable_v8) { +@@ -377,7 +377,7 @@ void InitializeSDK(bool enable_v8) { config.m_v8EmbedderSlot = gin::kEmbedderPDFium; FPDF_InitLibraryWithConfig(&config); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) InitializeLinuxFontMapper(); #endif -@@ -414,7 +414,7 @@ PDFiumEngine::PDFiumEngine(PDFEngine::Client* client, +@@ -411,7 +411,7 @@ PDFiumEngine::PDFiumEngine(PDFEngine::Client* client, IFSDK_PAUSE::user = nullptr; IFSDK_PAUSE::NeedToPauseNow = Pause_NeedToPauseNow; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // PreviewModeClient does not know its pp::Instance. SetLastInstance(client_->GetPluginInstance()); #endif -@@ -870,7 +870,7 @@ pp::Buffer_Dev PDFiumEngine::PrintPagesAsRasterPdf( +@@ -867,7 +867,7 @@ pp::Buffer_Dev PDFiumEngine::PrintPagesAsRasterPdf( KillFormFocus(); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) SetLastInstance(client_->GetPluginInstance()); #endif -@@ -2696,7 +2696,7 @@ bool PDFiumEngine::ContinuePaint(int progressive_index +@@ -2798,7 +2798,7 @@ bool PDFiumEngine::ContinuePaint(int progressive_index DCHECK(image_data); last_progressive_start_time_ = base::Time::Now(); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) SetLastInstance(client_->GetPluginInstance()); #endif -@@ -3190,7 +3190,7 @@ void PDFiumEngine::SetCurrentPage(int index) { +@@ -3292,7 +3292,7 @@ void PDFiumEngine::SetCurrentPage(int index) { FORM_DoPageAAction(old_page, form(), FPDFPAGE_AACTION_CLOSE); } most_visible_page_ = index; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) SetLastInstance(client_->GetPluginInstance()); #endif if (most_visible_page_ != -1 && called_do_document_action_) { Index: branches/2020Q1/www/chromium/files/patch-printing_cups__config__helper.py =================================================================== --- branches/2020Q1/www/chromium/files/patch-printing_cups__config__helper.py (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-printing_cups__config__helper.py (revision 523260) @@ -1,11 +1,11 @@ ---- printing/cups_config_helper.py.orig 2019-03-11 22:01:01 UTC +--- printing/cups_config_helper.py.orig 2019-12-16 21:50:51 UTC +++ printing/cups_config_helper.py -@@ -65,7 +65,7 @@ def main(): +@@ -67,7 +67,7 @@ def main(): mode = sys.argv[1] if len(sys.argv) > 2 and sys.argv[2]: sysroot = sys.argv[2] - cups_config = os.path.join(sysroot, 'usr', 'bin', 'cups-config') + cups_config = os.path.join(sysroot, 'bin', 'cups-config') if not os.path.exists(cups_config): - print 'cups-config not found: %s' % cups_config + print('cups-config not found: %s' % cups_config) return 1 Index: branches/2020Q1/www/chromium/files/patch-remoting_host_remoting__me2me__host.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-remoting_host_remoting__me2me__host.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-remoting_host_remoting__me2me__host.cc (revision 523260) @@ -1,108 +1,108 @@ ---- remoting/host/remoting_me2me_host.cc.orig 2019-10-21 19:06:39 UTC +--- remoting/host/remoting_me2me_host.cc.orig 2019-12-16 21:51:27 UTC +++ remoting/host/remoting_me2me_host.cc -@@ -120,13 +120,13 @@ +@@ -121,13 +121,13 @@ #include "remoting/host/mac/permission_utils.h" #endif // defined(OS_MACOSX) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include #include "base/linux_util.h" #include "remoting/host/audio_capturer_linux.h" #include "remoting/host/linux/certificate_watcher.h" #include "ui/gfx/x/x11.h" -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) #if defined(OS_WIN) #include -@@ -161,11 +161,11 @@ const char kApplicationName[] = "chromoting"; +@@ -162,11 +162,11 @@ const char kApplicationName[] = "chromoting"; const char kStdinConfigPath[] = "-"; #endif // !defined(REMOTING_MULTI_PROCESS) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // The command line switch used to pass name of the pipe to capture audio on // linux. const char kAudioPipeSwitchName[] = "audio-pipe-name"; -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) #if defined(OS_POSIX) // The command line switch used to pass name of the unix domain socket used to -@@ -358,7 +358,7 @@ class HostProcess : public ConfigWatcher::Delegate, +@@ -359,7 +359,7 @@ class HostProcess : public ConfigWatcher::Delegate, std::unique_ptr context_; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Watch for certificate changes and kill the host when changes occur std::unique_ptr cert_watcher_; #endif -@@ -555,10 +555,10 @@ bool HostProcess::InitWithCommandLine(const base::Comm +@@ -560,10 +560,10 @@ bool HostProcess::InitWithCommandLine(const base::Comm enable_window_capture_ = cmd_line->HasSwitch(kWindowIdSwitchName); if (enable_window_capture_) { -#if defined(OS_LINUX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) LOG(WARNING) << "Window capturing is not fully supported on Linux or " "Windows."; -#endif // defined(OS_LINUX) || defined(OS_WIN) +#endif // defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) // uint32_t is large enough to hold window IDs on all platforms. uint32_t window_id; -@@ -753,7 +753,7 @@ void HostProcess::CreateAuthenticatorFactory() { +@@ -758,7 +758,7 @@ void HostProcess::CreateAuthenticatorFactory() { DCHECK(third_party_auth_config_.token_url.is_valid()); DCHECK(third_party_auth_config_.token_validation_url.is_valid()); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (!cert_watcher_) { cert_watcher_.reset(new CertificateWatcher( base::Bind(&HostProcess::ShutdownHost, this, kSuccessExitCode), -@@ -839,7 +839,7 @@ void HostProcess::StartOnUiThread() { +@@ -844,7 +844,7 @@ void HostProcess::StartOnUiThread() { base::Bind(&HostProcess::OnPolicyUpdate, base::Unretained(this)), base::Bind(&HostProcess::OnPolicyError, base::Unretained(this))); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // If an audio pipe is specific on the command-line then initialize // AudioCapturerLinux to capture from it. base::FilePath audio_pipe_name = base::CommandLine::ForCurrentProcess()-> -@@ -848,7 +848,7 @@ void HostProcess::StartOnUiThread() { +@@ -853,7 +853,7 @@ void HostProcess::StartOnUiThread() { remoting::AudioCapturerLinux::InitializePipeReader( context_->audio_task_runner(), audio_pipe_name); } -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) #if defined(OS_POSIX) base::FilePath security_key_socket_name = -@@ -903,7 +903,7 @@ void HostProcess::ShutdownOnUiThread() { +@@ -908,7 +908,7 @@ void HostProcess::ShutdownOnUiThread() { // It is now safe for the HostProcess to be deleted. self_ = nullptr; -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Cause the global AudioPipeReader to be freed, otherwise the audio // thread will remain in-use and prevent the process from exiting. // TODO(wez): DesktopEnvironmentFactory should own the pipe reader. -@@ -1532,7 +1532,7 @@ void HostProcess::StartHost() { +@@ -1537,7 +1537,7 @@ void HostProcess::StartHost() { host_->AddExtension(std::make_unique()); // TODO(simonmorris): Get the maximum session duration from a policy. -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) host_->SetMaximumSessionDuration(base::TimeDelta::FromHours(20)); #endif -@@ -1711,7 +1711,7 @@ void HostProcess::OnCrash(const std::string& function_ +@@ -1718,7 +1718,7 @@ void HostProcess::OnCrash(const std::string& function_ int HostProcessMain() { HOST_LOG << "Starting host process: version " << STRINGIZE(VERSION); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) if (!base::CommandLine::ForCurrentProcess()->HasSwitch( kReportOfflineReasonSwitchName)) { // Required in order for us to run multiple X11 threads. Index: branches/2020Q1/www/chromium/files/patch-remoting_resources_remoting__strings.grd =================================================================== --- branches/2020Q1/www/chromium/files/patch-remoting_resources_remoting__strings.grd (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-remoting_resources_remoting__strings.grd (revision 523260) @@ -1,20 +1,20 @@ ---- remoting/resources/remoting_strings.grd.orig 2019-10-30 16:22:45 UTC +--- remoting/resources/remoting_strings.grd.orig 2019-12-16 21:51:27 UTC +++ remoting/resources/remoting_strings.grd -@@ -1332,7 +1332,7 @@ If '$3org.chromium. - Not Now +@@ -1366,7 +1366,7 @@ If '$3org.chromium. + Open Screen Recording Preferences - + Select a session to launch within your Chrome Remote Desktop environment. (Note that some session types may not support running within Chrome Remote Desktop and on the local console simultaneously.) -@@ -1348,7 +1348,7 @@ If '$3org.chromium. +@@ -1382,7 +1382,7 @@ If '$3org.chromium. Launch the default XSession - + Index: branches/2020Q1/www/chromium/files/patch-services_device_geolocation_location__arbitrator.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_device_geolocation_location__arbitrator.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-services_device_geolocation_location__arbitrator.cc (revision 523260) @@ -1,11 +1,11 @@ ---- services/device/geolocation/location_arbitrator.cc.orig 2019-06-04 18:55:28 UTC +--- services/device/geolocation/location_arbitrator.cc.orig 2019-12-16 21:51:27 UTC +++ services/device/geolocation/location_arbitrator.cc @@ -156,7 +156,7 @@ LocationArbitrator::NewNetworkLocationProvider( std::unique_ptr LocationArbitrator::NewSystemLocationProvider() { --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) || \ - defined(OS_FUCHSIA) +-#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FUCHSIA) ++#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD) return nullptr; #else + return device::NewSystemLocationProvider(); Index: branches/2020Q1/www/chromium/files/patch-services_device_hid_hid__service__freebsd.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_device_hid_hid__service__freebsd.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-services_device_hid_hid__service__freebsd.cc (revision 523260) @@ -1,378 +1,378 @@ ---- services/device/hid/hid_service_freebsd.cc.orig 2019-10-30 16:46:42 UTC +--- services/device/hid/hid_service_freebsd.cc.orig 2019-12-17 20:07:49 UTC +++ services/device/hid/hid_service_freebsd.cc @@ -0,0 +1,375 @@ +// 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/files/file.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/scoped_blocking_call.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)) {} ++ base::CreateSequencedTaskRunner(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() { + 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::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) { + base::ScopedBlockingCall scoped_blocking_call( + FROM_HERE, base::BlockingType::MAY_BLOCK); + 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::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) { + base::ScopedBlockingCall scoped_blocking_call( + FROM_HERE, base::BlockingType::MAY_BLOCK); + task_runner_->PostTask( + FROM_HERE, base::Bind(&HidServiceFreeBSD::RemoveDevice, service_, + device_id)); + } + + private: + + void CheckPendingPermissionChange() { + 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::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)), ++ base::CreateSequencedTaskRunner(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::ScopedBlockingCall scoped_blocking_call( + FROM_HERE, base::BlockingType::MAY_BLOCK); + 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_CALLED_ON_VALID_SEQUENCE(sequence_checker_); + + 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) { + 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: branches/2020Q1/www/chromium/files/patch-services_device_time__zone__monitor_time__zone__monitor.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_device_time__zone__monitor_time__zone__monitor.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-services_device_time__zone__monitor_time__zone__monitor.cc (revision 523260) @@ -1,20 +1,20 @@ ---- services/device/time_zone_monitor/time_zone_monitor.cc.orig 2019-03-11 22:01:01 UTC +--- services/device/time_zone_monitor/time_zone_monitor.cc.orig 2019-12-16 21:51:27 UTC +++ services/device/time_zone_monitor/time_zone_monitor.cc -@@ -29,7 +29,7 @@ void TimeZoneMonitor::Bind(device::mojom::TimeZoneMoni +@@ -30,7 +30,7 @@ void TimeZoneMonitor::Bind( void TimeZoneMonitor::NotifyClients() { DCHECK(thread_checker_.CalledOnValidThread()); -#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && defined(IS_CHROMECAST)) +#if defined(OS_CHROMEOS) || ((defined(OS_BSD) || defined(OS_LINUX)) && defined(IS_CHROMECAST)) // On CrOS (and Chromecast), ICU's default tz is already set to a new zone. No // need to redetect it with detectHostTimeZone(). std::unique_ptr new_zone(icu::TimeZone::createDefault()); -@@ -41,7 +41,7 @@ void TimeZoneMonitor::NotifyClients() { +@@ -42,7 +42,7 @@ void TimeZoneMonitor::NotifyClients() { #else std::unique_ptr new_zone(icu::TimeZone::detectHostTimeZone()); #endif -#if defined(OS_LINUX) && !defined(IS_CHROMECAST) +#if (defined(OS_LINUX) && !defined(IS_CHROMECAST)) || defined(OS_BSD) // We get here multiple times on Linux per a single tz change, but // want to update the ICU default zone and notify renderer only once. std::unique_ptr current_zone(icu::TimeZone::createDefault()); Index: branches/2020Q1/www/chromium/files/patch-services_network_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_network_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-services_network_BUILD.gn (revision 523260) @@ -1,10 +1,10 @@ ---- services/network/BUILD.gn.orig 2019-10-21 19:06:39 UTC +--- services/network/BUILD.gn.orig 2019-12-16 21:51:27 UTC +++ services/network/BUILD.gn -@@ -261,7 +261,6 @@ jumbo_component("network_service") { +@@ -259,7 +259,6 @@ jumbo_component("network_service") { if (is_linux) { deps += [ - "//sandbox/linux:sandbox_services", "//services/service_manager/sandbox:sandbox", ] } Index: branches/2020Q1/www/chromium/files/patch-services_network_network__context.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_network_network__context.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-services_network_network__context.cc (revision 523260) @@ -1,11 +1,11 @@ ---- services/network/network_context.cc.orig 2019-10-21 19:06:39 UTC +--- services/network/network_context.cc.orig 2019-12-16 21:51:27 UTC +++ services/network/network_context.cc -@@ -1776,7 +1776,7 @@ URLRequestContextOwner NetworkContext::MakeURLRequestC +@@ -1638,7 +1638,7 @@ URLRequestContextOwner NetworkContext::MakeURLRequestC net::CookieCryptoDelegate* crypto_delegate = nullptr; if (params_->enable_encrypted_cookies) { -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(IS_CHROMECAST) +#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) && !defined(IS_CHROMECAST) DCHECK(network_service_->os_crypt_config_set()) << "NetworkService::SetCryptConfig must be called before creating a " "NetworkContext with encrypted cookies."; Index: branches/2020Q1/www/chromium/files/patch-services_network_network__service.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_network_network__service.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-services_network_network__service.cc (revision 523260) @@ -1,20 +1,20 @@ ---- services/network/network_service.cc.orig 2019-10-21 19:06:39 UTC +--- services/network/network_service.cc.orig 2019-12-16 21:51:27 UTC +++ services/network/network_service.cc @@ -62,7 +62,7 @@ #include "third_party/boringssl/src/include/openssl/cpu.h" #endif -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(IS_CHROMECAST) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(IS_CHROMECAST)) || defined(OS_BSD) #include "components/os_crypt/key_storage_config_linux.h" #endif -@@ -596,7 +596,7 @@ void NetworkService::OnCertDBChanged() { +@@ -572,7 +572,7 @@ void NetworkService::OnCertDBChanged() { net::CertDatabase::GetInstance()->NotifyObserversCertDBChanged(); } -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) void NetworkService::SetCryptConfig(mojom::CryptConfigPtr crypt_config) { #if !defined(IS_CHROMECAST) DCHECK(!os_crypt_config_set_); Index: branches/2020Q1/www/chromium/files/patch-services_network_network__service.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_network_network__service.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-services_network_network__service.h (revision 523260) @@ -1,11 +1,11 @@ ---- services/network/network_service.h.orig 2019-10-21 19:06:39 UTC +--- services/network/network_service.h.orig 2019-12-16 21:51:27 UTC +++ services/network/network_service.h -@@ -152,7 +152,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkService +@@ -143,7 +143,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkService mojom::NetworkService::GetNetworkListCallback callback) override; 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: branches/2020Q1/www/chromium/files/patch-services_tracing_public_cpp_perfetto_trace__event__data__source.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_tracing_public_cpp_perfetto_trace__event__data__source.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-services_tracing_public_cpp_perfetto_trace__event__data__source.cc (revision 523260) @@ -0,0 +1,11 @@ +--- services/tracing/public/cpp/perfetto/trace_event_data_source.cc.orig 2019-12-17 19:52:52 UTC ++++ services/tracing/public/cpp/perfetto/trace_event_data_source.cc +@@ -102,7 +102,7 @@ void WriteMetadataProto(ChromeMetadataPacket* metadata + #endif // defined(OS_ANDROID) && defined(OFFICIAL_BUILD) + } + +-#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_FUCHSIA) ++#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_FUCHSIA) || defined(OS_BSD) + // Linux, Android, and Fuchsia all use CLOCK_MONOTONIC. See crbug.com/166153 + // about efforts to unify base::TimeTicks across all platforms. + constexpr perfetto::protos::pbzero::ClockSnapshot::Clock::BuiltinClocks Property changes on: branches/2020Q1/www/chromium/files/patch-services_tracing_public_cpp_perfetto_trace__event__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: branches/2020Q1/www/chromium/files/patch-services_video__capture_broadcasting__receiver.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-services_video__capture_broadcasting__receiver.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-services_video__capture_broadcasting__receiver.cc (revision 523260) @@ -1,20 +1,20 @@ ---- services/video_capture/broadcasting_receiver.cc.orig 2019-10-21 19:06:40 UTC +--- services/video_capture/broadcasting_receiver.cc.orig 2019-12-16 21:51:28 UTC +++ services/video_capture/broadcasting_receiver.cc @@ -40,7 +40,7 @@ void CloneSharedBufferHandle(const mojo::ScopedSharedB void CloneSharedBufferToRawFileDescriptorHandle( const mojo::ScopedSharedBufferHandle& source, media::mojom::VideoBufferHandlePtr* target) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // |source| is unwrapped to a |PlatformSharedMemoryRegion|, from whence a file // descriptor can be extracted which is then mojo-wrapped. base::subtle::PlatformSharedMemoryRegion platform_region = -@@ -178,7 +178,7 @@ void BroadcastingReceiver::BufferContext:: +@@ -183,7 +183,7 @@ void BroadcastingReceiver::BufferContext:: ConvertRawFileDescriptorToSharedBuffer() { DCHECK(buffer_handle_->is_shared_memory_via_raw_file_descriptor()); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // The conversion unwraps the descriptor from its mojo handle to the raw file // descriptor (ie, an int). This is used to create a // PlatformSharedMemoryRegion which is then wrapped as a Index: branches/2020Q1/www/chromium/files/patch-third__party_angle_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_angle_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_angle_BUILD.gn (revision 523260) @@ -1,21 +1,21 @@ ---- third_party/angle/BUILD.gn.orig 2019-10-21 19:09:09 UTC +--- third_party/angle/BUILD.gn.orig 2019-12-16 21:56:11 UTC +++ third_party/angle/BUILD.gn -@@ -353,6 +353,7 @@ angle_static_library("angle_gpu_info_util") { +@@ -371,6 +371,7 @@ angle_static_library("angle_gpu_info_util") { "X11", "Xi", "Xext", + "GL", ] } } -@@ -1076,10 +1077,6 @@ foreach(is_shared_library, +@@ -1055,10 +1056,6 @@ foreach(is_shared_library, if (is_linux) { sources += util_linux_sources - libs += [ - "rt", - "dl", - ] } if (is_mac) { Index: branches/2020Q1/www/chromium/files/patch-third__party_angle_src_libANGLE_Display.cpp =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_angle_src_libANGLE_Display.cpp (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_angle_src_libANGLE_Display.cpp (revision 523260) @@ -1,20 +1,20 @@ ---- third_party/angle/src/libANGLE/Display.cpp.orig 2019-10-21 19:09:09 UTC +--- third_party/angle/src/libANGLE/Display.cpp.orig 2019-12-16 21:56:11 UTC +++ third_party/angle/src/libANGLE/Display.cpp -@@ -68,7 +68,7 @@ +@@ -70,7 +70,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" # elif defined(ANGLE_PLATFORM_ANDROID) # include "libANGLE/renderer/vulkan/android/DisplayVkAndroid.h" -@@ -268,7 +268,7 @@ rx::DisplayImpl *CreateDisplayFromAttribs(const Attrib +@@ -282,7 +282,7 @@ rx::DisplayImpl *CreateDisplayFromAttribs(const Attrib #if defined(ANGLE_ENABLE_VULKAN) # if defined(ANGLE_PLATFORM_WINDOWS) impl = new rx::DisplayVkWin32(state); -# elif defined(ANGLE_PLATFORM_LINUX) +# elif defined(ANGLE_PLATFORM_POSIX) impl = new rx::DisplayVkXcb(state); # elif defined(ANGLE_PLATFORM_ANDROID) impl = new rx::DisplayVkAndroid(state); Index: branches/2020Q1/www/chromium/files/patch-third__party_angle_src_libANGLE_renderer_driver__utils.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_angle_src_libANGLE_renderer_driver__utils.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_angle_src_libANGLE_renderer_driver__utils.h (revision 523260) @@ -1,11 +1,11 @@ ---- third_party/angle/src/libANGLE/renderer/driver_utils.h.orig 2019-10-21 19:09:09 UTC +--- third_party/angle/src/libANGLE/renderer/driver_utils.h.orig 2019-12-16 21:56:11 UTC +++ third_party/angle/src/libANGLE/renderer/driver_utils.h -@@ -114,7 +114,7 @@ inline bool IsWindows() +@@ -115,7 +115,7 @@ inline bool IsWindows() inline bool IsLinux() { -#if defined(ANGLE_PLATFORM_LINUX) +#if defined(ANGLE_PLATFORM_POSIX) return true; #else return false; Index: branches/2020Q1/www/chromium/files/patch-third__party_angle_third__party_vulkan-loader_src_loader_loader.c =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_angle_third__party_vulkan-loader_src_loader_loader.c (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_angle_third__party_vulkan-loader_src_loader_loader.c (revision 523260) @@ -1,11 +1,11 @@ ---- third_party/angle/third_party/vulkan-loader/src/loader/loader.c.orig 2019-04-30 22:25:57 UTC +--- third_party/angle/third_party/vulkan-loader/src/loader/loader.c.orig 2019-12-16 21:56:20 UTC +++ third_party/angle/third_party/vulkan-loader/src/loader/loader.c @@ -229,7 +229,7 @@ void *loader_device_heap_realloc(const struct loader_d } // Environment variables -#if defined(__linux__) || defined(__APPLE__) +#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) - static inline char *loader_getenv(const char *name, const struct loader_instance *inst) { - // No allocation of memory necessary for Linux, but we should at least touch + static inline bool IsHighIntegrity() { + return geteuid() != getuid() || getegid() != getgid(); Index: branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_core_scroll_scrollbar__theme__aura.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_core_scroll_scrollbar__theme__aura.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_core_scroll_scrollbar__theme__aura.cc (revision 523260) @@ -1,20 +1,20 @@ ---- third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc.orig 2019-10-21 19:06:43 UTC +--- third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc.orig 2019-12-16 21:51:28 UTC +++ third_party/blink/renderer/core/scroll/scrollbar_theme_aura.cc -@@ -338,7 +338,7 @@ ScrollbarPart ScrollbarThemeAura::InvalidateOnThumbPos +@@ -152,7 +152,7 @@ bool ScrollbarThemeAura::SupportsDragSnapBack() const + // Disable snapback on desktop Linux to better integrate with the desktop + // behavior. Typically, Linux apps do not implement scrollbar snapback (this + // is true for at least GTK and QT apps). +-#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + return false; + #endif +@@ -335,7 +335,7 @@ ScrollbarPart ScrollbarThemeAura::PartsToInvalidateOnT + bool ScrollbarThemeAura::ShouldCenterOnThumb(const Scrollbar& scrollbar, const WebMouseEvent& event) { -#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) +#if ((defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)) if (event.button == WebPointerProperties::Button::kMiddle) return true; #endif -@@ -353,7 +353,7 @@ bool ScrollbarThemeAura::ShouldSnapBackToDragOrigin( - // Disable snapback on desktop Linux to better integrate with the desktop - // behavior. Typically, Linux apps do not implement scrollbar snapback (this is - // true for at least GTK and QT apps). --#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) -+#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - return false; - #endif - Index: branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_modules_mediastream_processed__local__audio__source.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_modules_mediastream_processed__local__audio__source.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_modules_mediastream_processed__local__audio__source.cc (revision 523260) @@ -1,20 +1,11 @@ ---- third_party/blink/renderer/modules/mediastream/processed_local_audio_source.cc.orig 2019-10-30 16:30:37 UTC +--- third_party/blink/renderer/modules/mediastream/processed_local_audio_source.cc.orig 2019-12-16 21:51:29 UTC +++ third_party/blink/renderer/modules/mediastream/processed_local_audio_source.cc -@@ -84,7 +84,7 @@ void LogAudioProcesingProperties( - } // namespace - - bool IsApmInAudioServiceEnabled() { --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - return base::FeatureList::IsEnabled(features::kWebRtcApmInAudioService); - #else - return false; -@@ -427,7 +427,7 @@ void ProcessedLocalAudioSource::CaptureUsingProcessor( +@@ -421,7 +421,7 @@ void ProcessedLocalAudioSource::CaptureUsingProcessor( bool key_pressed) { #if defined(OS_WIN) || defined(OS_MACOSX) DCHECK_LE(volume, 1.0); -#elif (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_OPENBSD) +#elif (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) // We have a special situation on Linux where the microphone volume can be // "higher than maximum". The input volume slider in the sound preference // allows the user to set a scaling that is higher than 100%. It means that Index: branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_BUILD.gn (revision 523260) @@ -1,10 +1,10 @@ ---- third_party/blink/renderer/platform/BUILD.gn.orig 2019-09-09 21:55:25 UTC +--- third_party/blink/renderer/platform/BUILD.gn.orig 2019-12-16 21:51:29 UTC +++ third_party/blink/renderer/platform/BUILD.gn -@@ -103,6 +103,7 @@ executable("character_data_generator") { +@@ -106,6 +106,7 @@ executable("character_data_generator") { "//build/win:default_exe_manifest", "//third_party/icu", ] + libs = [ "cxxrt" ] } # This isn't strictly necessary since we can just add the deps to "platform", Index: branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__cache.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__cache.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__cache.h (revision 523260) @@ -1,53 +1,53 @@ ---- third_party/blink/renderer/platform/fonts/font_cache.h.orig 2019-10-21 19:06:44 UTC +--- third_party/blink/renderer/platform/fonts/font_cache.h.orig 2019-12-16 21:51:29 UTC +++ third_party/blink/renderer/platform/fonts/font_cache.h -@@ -158,7 +158,7 @@ class PLATFORM_EXPORT FontCache { +@@ -162,7 +162,7 @@ class PLATFORM_EXPORT FontCache { 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_; } -@@ -233,7 +233,7 @@ class PLATFORM_EXPORT FontCache { +@@ -237,7 +237,7 @@ class PLATFORM_EXPORT FontCache { const FontDescription&); #endif // defined(OS_ANDROID) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) struct PlatformFallbackFont { String name; std::string filename; -@@ -245,7 +245,7 @@ class PLATFORM_EXPORT FontCache { +@@ -249,7 +249,7 @@ class PLATFORM_EXPORT FontCache { 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*, -@@ -317,12 +317,12 @@ class PLATFORM_EXPORT FontCache { +@@ -321,12 +321,12 @@ class PLATFORM_EXPORT FontCache { const FontFaceCreationParams&, std::string& name); -#if defined(OS_ANDROID) || defined(OS_LINUX) +#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) static AtomicString GetFamilyNameForCharacter(SkFontMgr*, UChar32, const FontDescription&, FontFallbackPriority); -#endif // defined(OS_ANDROID) || defined(OS_LINUX) +#endif // defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) scoped_refptr FallbackOnStandardFontStyle( const FontDescription&, -@@ -355,7 +355,7 @@ class PLATFORM_EXPORT FontCache { - mojom::blink::DWriteFontProxyPtr service_; +@@ -360,7 +360,7 @@ class PLATFORM_EXPORT FontCache { + std::unique_ptr fallback_params_cache_; #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: branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__description.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__description.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_fonts_font__description.cc (revision 523260) @@ -1,20 +1,20 @@ ---- third_party/blink/renderer/platform/fonts/font_description.cc.orig 2019-06-04 18:55:30 UTC +--- third_party/blink/renderer/platform/fonts/font_description.cc.orig 2019-12-16 21:50:53 UTC +++ third_party/blink/renderer/platform/fonts/font_description.cc @@ -38,7 +38,7 @@ #include "third_party/blink/renderer/platform/wtf/text/string_hash.h" #include "third_party/blink/renderer/platform/wtf/text/string_hasher.h" -#if defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) #include "third_party/blink/renderer/platform/fonts/font_cache.h" #endif -@@ -223,7 +223,7 @@ FontCacheKey FontDescription::CacheKey( - static_cast(fields_.orientation_) << 1 | // bit 2-3 - static_cast(fields_.subpixel_text_position_); // bit 1 +@@ -225,7 +225,7 @@ FontCacheKey FontDescription::CacheKey( + static_cast(fields_.orientation_) << 1 | // bit 2-3 + static_cast(fields_.subpixel_text_position_); // bit 1 -#if defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) float device_scale_factor_for_key = FontCache::DeviceScaleFactor(); #else float device_scale_factor_for_key = 1.0f; Index: branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_wtf_threading__pthreads.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_wtf_threading__pthreads.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_blink_renderer_platform_wtf_threading__pthreads.cc (revision 523260) @@ -1,22 +1,22 @@ ---- third_party/blink/renderer/platform/wtf/threading_pthreads.cc.orig 2019-10-21 19:06:45 UTC +--- third_party/blink/renderer/platform/wtf/threading_pthreads.cc.orig 2019-12-16 21:50:53 UTC +++ third_party/blink/renderer/platform/wtf/threading_pthreads.cc -@@ -51,12 +51,17 @@ +@@ -50,12 +50,17 @@ #include #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) #include #endif -#if defined(OS_LINUX) || defined(OS_ANDROID) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) #include +#endif + +#if defined(OS_BSD) +#include +#include #endif namespace WTF { Index: branches/2020Q1/www/chromium/files/patch-third__party_boringssl_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_boringssl_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_boringssl_BUILD.gn (revision 523260) @@ -1,36 +1,36 @@ ---- third_party/boringssl/BUILD.gn.orig 2019-04-30 22:23:27 UTC +--- third_party/boringssl/BUILD.gn.orig 2019-12-16 21:51:04 UTC +++ third_party/boringssl/BUILD.gn -@@ -74,7 +74,7 @@ if (is_win && !is_msan && current_cpu != "arm64") { +@@ -71,7 +71,7 @@ if (is_win && !is_msan && current_cpu != "arm64") { } else if (current_cpu == "x64") { if (is_mac) { sources += crypto_sources_mac_x86_64 - } else if (is_linux || is_android) { + } else if (is_linux || is_bsd || is_android) { sources += crypto_sources_linux_x86_64 } else { public_configs = [ ":no_asm_config" ] -@@ -82,13 +82,13 @@ if (is_win && !is_msan && current_cpu != "arm64") { +@@ -79,13 +79,13 @@ if (is_win && !is_msan && current_cpu != "arm64") { } else if (current_cpu == "x86") { if (is_mac) { sources += crypto_sources_mac_x86 - } else if (is_linux || is_android) { + } else if (is_linux || is_bsd || is_android) { sources += crypto_sources_linux_x86 } else { public_configs = [ ":no_asm_config" ] } } else if (current_cpu == "arm") { - if (is_linux || is_android) { + if (is_linux || is_bsd || is_android) { sources += crypto_sources_linux_arm } else if (is_ios) { sources += crypto_sources_ios_arm -@@ -96,7 +96,7 @@ if (is_win && !is_msan && current_cpu != "arm64") { +@@ -93,7 +93,7 @@ if (is_win && !is_msan && current_cpu != "arm64") { public_configs = [ ":no_asm_config" ] } } else if (current_cpu == "arm64") { - if (is_linux || is_android) { + if (is_linux || is_bsd || is_android) { sources += crypto_sources_linux_aarch64 } else if (is_ios) { sources += crypto_sources_ios_aarch64 Index: branches/2020Q1/www/chromium/files/patch-third__party_crashpad_crashpad_util_posix_signals.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_crashpad_crashpad_util_posix_signals.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_crashpad_crashpad_util_posix_signals.cc (revision 523260) @@ -1,40 +1,40 @@ ---- third_party/crashpad/crashpad/util/posix/signals.cc.orig 2019-03-11 22:01:15 UTC +--- third_party/crashpad/crashpad/util/posix/signals.cc.orig 2019-12-16 21:51:05 UTC +++ third_party/crashpad/crashpad/util/posix/signals.cc @@ -45,10 +45,10 @@ constexpr int kCrashSignals[] = { #if defined(SIGEMT) SIGEMT, #endif // defined(SIGEMT) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) SIGXCPU, SIGXFSZ, -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) }; // These are the non-core-generating but terminating signals. @@ -85,9 +85,9 @@ constexpr int kTerminateSignals[] = { SIGXCPU, SIGXFSZ, #endif // defined(OS_MACOSX) -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) SIGIO, -#endif // defined(OS_LINUX) +#endif // defined(OS_LINUX) || defined(OS_BSD) }; bool InstallHandlers(const std::vector& signals, -@@ -216,8 +216,12 @@ bool Signals::WillSignalReraiseAutonomously(const sigi +@@ -224,8 +224,12 @@ bool Signals::WillSignalReraiseAutonomously(const sigi // remains. See 10.12.3 xnu-3789.41.3/bsd/kern/kern_sig.c // psignal_internal(). (code > 0 && +#if defined(SI_ASYNCIO) code != SI_ASYNCIO && +#endif +#if defined(SI_MESGQ) code != SI_MESGQ && +#endif code != SI_QUEUE && code != SI_TIMER && code != SI_USER && Index: branches/2020Q1/www/chromium/files/patch-third__party_perfetto_include_perfetto_base_build__config.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_perfetto_include_perfetto_base_build__config.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_perfetto_include_perfetto_base_build__config.h (revision 523260) @@ -1,51 +1,51 @@ ---- third_party/perfetto/include/perfetto/base/build_config.h.orig 2019-10-21 19:09:14 UTC +--- third_party/perfetto/include/perfetto/base/build_config.h.orig 2019-12-16 21:56:17 UTC +++ third_party/perfetto/include/perfetto/base/build_config.h -@@ -40,6 +40,7 @@ +@@ -28,6 +28,7 @@ #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 1 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MACOSX() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WASM() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FUCHSIA() 0 -@@ -47,13 +48,15 @@ +@@ -35,13 +36,15 @@ #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MACOSX() 1 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WASM() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FUCHSIA() 0 -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MACOSX() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 1 +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 1 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WASM() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FUCHSIA() 0 -@@ -61,6 +64,7 @@ +@@ -49,6 +52,7 @@ #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MACOSX() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 1 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WASM() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FUCHSIA() 0 -@@ -68,6 +72,7 @@ +@@ -56,6 +60,7 @@ #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MACOSX() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WASM() 1 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FUCHSIA() 0 -@@ -75,6 +80,7 @@ +@@ -63,6 +68,7 @@ #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_ANDROID() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_MACOSX() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_LINUX() 0 +#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FREEBSD() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WIN() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_WASM() 0 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_OS_FUCHSIA() 1 Index: branches/2020Q1/www/chromium/files/patch-third__party_skia_src_sksl_SkSLString.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_skia_src_sksl_SkSLString.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_skia_src_sksl_SkSLString.h (revision 523260) @@ -1,11 +1,11 @@ ---- third_party/skia/src/sksl/SkSLString.h.orig 2019-09-09 21:57:02 UTC +--- third_party/skia/src/sksl/SkSLString.h.orig 2019-12-16 21:56:18 UTC +++ third_party/skia/src/sksl/SkSLString.h -@@ -13,6 +13,8 @@ - #include - #include +@@ -17,6 +17,8 @@ + #include "include/core/SkString.h" + #endif +#include + namespace SkSL { // Represents a (not necessarily null-terminated) slice of a string. Index: branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_BUILD.gn (revision 523260) @@ -1,24 +1,24 @@ ---- third_party/swiftshader/BUILD.gn.orig 2019-10-21 19:09:15 UTC +--- third_party/swiftshader/BUILD.gn.orig 2019-12-16 21:56:18 UTC +++ third_party/swiftshader/BUILD.gn -@@ -135,9 +135,6 @@ config("swiftshader_config") { +@@ -142,9 +142,6 @@ config("swiftshader_config") { ldflags = [ "-Wl,--gc-sections" ] if (target_cpu == "mipsel") { - ldflags += [ - "-Wl,--hash-style=sysv", - ] if (mips_arch_variant == "r1") { ldflags += [ "-mips32", -@@ -149,11 +146,8 @@ config("swiftshader_config") { +@@ -156,11 +153,8 @@ config("swiftshader_config") { } } 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: branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_third__party_marl_src_memory.cpp =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_third__party_marl_src_memory.cpp (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_third__party_marl_src_memory.cpp (revision 523260) @@ -0,0 +1,11 @@ +--- third_party/swiftshader/third_party/marl/src/memory.cpp.orig 2019-12-22 15:09:53 UTC ++++ third_party/swiftshader/third_party/marl/src/memory.cpp +@@ -19,7 +19,7 @@ + + #include + +-#if defined(__linux__) || defined(__APPLE__) ++#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) + #include + #include + namespace { Property changes on: branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_third__party_marl_src_memory.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: branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_third__party_marl_src_thread.cpp =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_third__party_marl_src_thread.cpp (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_third__party_marl_src_thread.cpp (revision 523260) @@ -0,0 +1,22 @@ +--- third_party/swiftshader/third_party/marl/src/thread.cpp.orig 2019-12-22 15:09:09 UTC ++++ third_party/swiftshader/third_party/marl/src/thread.cpp +@@ -27,6 +27,10 @@ + #include + #include + #include ++#elif defined(__FreeBSD__) ++#include ++#include ++#include + #else + #include + #include +@@ -85,6 +89,8 @@ void Thread::setName(const char* fmt, ...) { + + #if defined(__APPLE__) + pthread_setname_np(name); ++#elif defined(__FreeBSD__) ++ pthread_set_name_np(pthread_self(), name); + #elif !defined(__Fuchsia__) + pthread_setname_np(pthread_self(), name); + #endif Property changes on: branches/2020Q1/www/chromium/files/patch-third__party_swiftshader_third__party_marl_src_thread.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: branches/2020Q1/www/chromium/files/patch-third__party_webrtc_modules_audio__device_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_webrtc_modules_audio__device_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_webrtc_modules_audio__device_BUILD.gn (revision 523260) @@ -1,11 +1,11 @@ ---- third_party/webrtc/modules/audio_device/BUILD.gn.orig 2019-10-21 19:09:18 UTC +--- third_party/webrtc/modules/audio_device/BUILD.gn.orig 2019-12-16 21:56:20 UTC +++ third_party/webrtc/modules/audio_device/BUILD.gn -@@ -265,7 +265,7 @@ rtc_source_set("audio_device_impl") { +@@ -263,7 +263,7 @@ rtc_source_set("audio_device_impl") { if (rtc_use_dummy_audio_file_devices) { defines += [ "WEBRTC_DUMMY_FILE_DEVICES" ] } else { - if (is_linux) { + if (is_linux && !is_bsd) { sources += [ "linux/alsasymboltable_linux.cc", "linux/alsasymboltable_linux.h", Index: branches/2020Q1/www/chromium/files/patch-third__party_webrtc_rtc__base_network.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_webrtc_rtc__base_network.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_webrtc_rtc__base_network.cc (revision 523260) @@ -1,29 +1,29 @@ ---- third_party/webrtc/rtc_base/network.cc.orig 2019-09-09 21:57:05 UTC +--- third_party/webrtc/rtc_base/network.cc.orig 2019-12-16 21:56:20 UTC +++ third_party/webrtc/rtc_base/network.cc @@ -14,7 +14,7 @@ // linux/if.h can't be included at the same time as the posix sys/if.h, and // it's transitively required by linux/route.h, so include that version on // linux instead of the standard posix one. -#if defined(WEBRTC_LINUX) +#if defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD) #include #include #elif !defined(__native_client__) -@@ -765,7 +765,7 @@ bool BasicNetworkManager::CreateNetworks(bool include_ +@@ -767,7 +767,7 @@ bool BasicNetworkManager::CreateNetworks(bool include_ } #endif // WEBRTC_WIN -#if defined(WEBRTC_LINUX) +#if defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD) bool IsDefaultRoute(const std::string& network_name) { FILE* f = fopen("/proc/net/route", "r"); if (!f) { -@@ -808,7 +808,7 @@ bool BasicNetworkManager::IsIgnoredNetwork(const Netwo +@@ -810,7 +810,7 @@ bool BasicNetworkManager::IsIgnoredNetwork(const Netwo strncmp(network.name().c_str(), "vboxnet", 7) == 0) { return true; } -#if defined(WEBRTC_LINUX) +#if defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD) // Make sure this is a default route, if we're ignoring non-defaults. if (ignore_non_default_routes_ && !IsDefaultRoute(network.name())) { return true; Index: branches/2020Q1/www/chromium/files/patch-third__party_webrtc_rtc__base_network.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_webrtc_rtc__base_network.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_webrtc_rtc__base_network.h (revision 523260) @@ -1,13 +1,13 @@ ---- third_party/webrtc/rtc_base/network.h.orig 2019-03-11 22:08:15 UTC +--- third_party/webrtc/rtc_base/network.h.orig 2019-12-16 21:56:20 UTC +++ third_party/webrtc/rtc_base/network.h -@@ -25,6 +25,10 @@ - #include "rtc_base/network_monitor.h" +@@ -26,6 +26,10 @@ + #include "rtc_base/system/rtc_export.h" #include "rtc_base/third_party/sigslot/sigslot.h" +#if defined(WEBRTC_BSD) +#include +#endif + #if defined(WEBRTC_POSIX) struct ifaddrs; #endif // defined(WEBRTC_POSIX) Index: branches/2020Q1/www/chromium/files/patch-third__party_webrtc_rtc__base_platform__thread__types.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-third__party_webrtc_rtc__base_platform__thread__types.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-third__party_webrtc_rtc__base_platform__thread__types.cc (revision 523260) @@ -1,39 +1,39 @@ ---- third_party/webrtc/rtc_base/platform_thread_types.cc.orig 2019-09-09 21:57:05 UTC +--- third_party/webrtc/rtc_base/platform_thread_types.cc.orig 2019-12-16 21:56:20 UTC +++ third_party/webrtc/rtc_base/platform_thread_types.cc @@ -11,7 +11,11 @@ #include "rtc_base/platform_thread_types.h" #if defined(WEBRTC_LINUX) +#if !defined(__FreeBSD__) #include +#else +#include +#endif #include #endif @@ -27,6 +31,8 @@ PlatformThreadId CurrentThreadId() { return gettid(); #elif defined(WEBRTC_FUCHSIA) return zx_thread_self(); +#elif defined(__FreeBSD__) + return pthread_getthreadid_np(); #elif defined(WEBRTC_LINUX) return syscall(__NR_gettid); #elif defined(__EMSCRIPTEN__) @@ -57,6 +63,7 @@ bool IsThreadRefEqual(const PlatformThreadRef& a, cons } void SetCurrentThreadName(const char* name) { +#if !defined(__FreeBSD__) #if defined(WEBRTC_WIN) - struct { - DWORD dwType; -@@ -74,6 +81,7 @@ void SetCurrentThreadName(const char* name) { + // For details see: + // https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-set-a-thread-name-in-native-code +@@ -81,6 +88,7 @@ void SetCurrentThreadName(const char* name) { prctl(PR_SET_NAME, reinterpret_cast(name)); // NOLINT #elif defined(WEBRTC_MAC) || defined(WEBRTC_IOS) pthread_setname_np(name); +#endif #endif } Index: branches/2020Q1/www/chromium/files/patch-tools_gn_base_files_file__posix.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-tools_gn_base_files_file__posix.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-tools_gn_base_files_file__posix.cc (revision 523260) @@ -1,11 +1,11 @@ ---- tools/gn/base/files/file_posix.cc.orig 2019-03-11 22:12:13 UTC +--- tools/gn/base/files/file_posix.cc.orig 2019-12-16 21:58:04 UTC +++ tools/gn/base/files/file_posix.cc -@@ -414,7 +414,7 @@ void File::DoInitialize(const FilePath& path, uint32_t +@@ -409,7 +409,7 @@ void File::DoInitialize(const FilePath& path, uint32_t bool File::Flush() { DCHECK(IsValid()); -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) return !HANDLE_EINTR(fdatasync(file_.get())); #else return !HANDLE_EINTR(fsync(file_.get())); Index: branches/2020Q1/www/chromium/files/patch-tools_gn_base_files_file__util.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-tools_gn_base_files_file__util.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-tools_gn_base_files_file__util.h (revision 523260) @@ -1,11 +1,11 @@ ---- tools/gn/base/files/file_util.h.orig 2019-06-04 19:02:25 UTC +--- tools/gn/base/files/file_util.h.orig 2019-12-16 21:58:04 UTC +++ tools/gn/base/files/file_util.h -@@ -361,7 +361,7 @@ bool VerifyPathControlledByAdmin(const base::FilePath& +@@ -360,7 +360,7 @@ bool VerifyPathControlledByAdmin(const base::FilePath& // the directory |path|, in the number of FilePath::CharType, or -1 on failure. int GetMaximumPathComponentLength(const base::FilePath& path); -#if defined(OS_LINUX) || defined(OS_AIX) +#if defined(OS_LINUX) || defined(OS_AIX) || defined(OS_BSD) // Broad categories of file systems as returned by statfs() on Linux. enum FileSystemType { FILE_SYSTEM_UNKNOWN, // statfs failed. Index: branches/2020Q1/www/chromium/files/patch-tools_gn_base_files_file__util__posix.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-tools_gn_base_files_file__util__posix.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-tools_gn_base_files_file__util__posix.cc (revision 523260) @@ -1,11 +1,11 @@ ---- tools/gn/base/files/file_util_posix.cc.orig 2019-06-04 19:02:25 UTC +--- tools/gn/base/files/file_util_posix.cc.orig 2019-12-16 21:58:04 UTC +++ tools/gn/base/files/file_util_posix.cc -@@ -254,7 +254,7 @@ bool ReplaceFile(const FilePath& from_path, - #endif // !defined(OS_NACL_NONSFI) +@@ -250,7 +250,7 @@ bool ReplaceFile(const FilePath& from_path, + } bool CreateLocalNonBlockingPipe(int fds[2]) { -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) return pipe2(fds, O_CLOEXEC | O_NONBLOCK) == 0; #else int raw_fds[2]; Index: branches/2020Q1/www/chromium/files/patch-tools_gn_build_gen.py =================================================================== --- branches/2020Q1/www/chromium/files/patch-tools_gn_build_gen.py (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-tools_gn_build_gen.py (revision 523260) @@ -1,24 +1,24 @@ ---- tools/gn/build/gen.py.orig 2019-09-09 21:59:05 UTC +--- tools/gn/build/gen.py.orig 2019-12-16 21:58:04 UTC +++ tools/gn/build/gen.py @@ -69,6 +69,9 @@ class Platform(object): def is_aix(self): return self._platform == 'aix' + def is_freebsd(self): + return self._platform == 'freebsd' + def is_posix(self): return self._platform in ['linux', 'freebsd', 'darwin', 'aix', 'openbsd'] -@@ -337,6 +340,11 @@ def WriteGNNinja(path, platform, host, options): +@@ -341,6 +344,11 @@ def WriteGNNinja(path, platform, host, options): elif platform.is_aix(): cflags_cc.append('-maix64') ldflags.append('-maix64') + elif platform.is_freebsd(): + cflags.extend(['-Wno-deprecated-register', '-Wno-parentheses-equality']) + ldflags.extend(['-pthread']) + libs.extend(['-lexecinfo', '-lkvm', '-lutil']) + include_dirs += ['/usr/local/include'] if platform.is_posix(): ldflags.append('-pthread') Index: branches/2020Q1/www/chromium/files/patch-tools_gn_tools_gn_exec__process.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-tools_gn_tools_gn_exec__process.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-tools_gn_tools_gn_exec__process.cc (revision 523260) @@ -1,13 +1,13 @@ ---- tools/gn/tools/gn/exec_process.cc.orig 2019-03-11 22:12:13 UTC +--- tools/gn/tools/gn/exec_process.cc.orig 2019-12-16 21:58:04 UTC +++ tools/gn/tools/gn/exec_process.cc -@@ -29,6 +29,10 @@ +@@ -30,6 +30,10 @@ #include "base/posix/file_descriptor_shuffle.h" #endif +#if defined(OS_BSD) +#include +#endif + namespace internal { #if defined(OS_WIN) Index: branches/2020Q1/www/chromium/files/patch-tools_json__schema__compiler_feature__compiler.py =================================================================== --- branches/2020Q1/www/chromium/files/patch-tools_json__schema__compiler_feature__compiler.py (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-tools_json__schema__compiler_feature__compiler.py (revision 523260) @@ -1,10 +1,10 @@ ---- tools/json_schema_compiler/feature_compiler.py.orig 2019-09-09 21:55:45 UTC +--- tools/json_schema_compiler/feature_compiler.py.orig 2019-12-16 21:51:33 UTC +++ tools/json_schema_compiler/feature_compiler.py -@@ -215,6 +215,7 @@ FEATURE_GRAMMAR = ( +@@ -217,6 +217,7 @@ FEATURE_GRAMMAR = ( 'enum_map': { 'chromeos': 'Feature::CHROMEOS_PLATFORM', 'linux': 'Feature::LINUX_PLATFORM', + 'bsd': 'Feature::LINUX_PLATFORM', 'mac': 'Feature::MACOSX_PLATFORM', 'win': 'Feature::WIN_PLATFORM', } Index: branches/2020Q1/www/chromium/files/patch-tools_json__schema__compiler_model.py =================================================================== --- branches/2020Q1/www/chromium/files/patch-tools_json__schema__compiler_model.py (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-tools_json__schema__compiler_model.py (revision 523260) @@ -1,11 +1,11 @@ ---- tools/json_schema_compiler/model.py.orig 2019-10-21 19:07:27 UTC +--- tools/json_schema_compiler/model.py.orig 2019-12-16 21:51:07 UTC +++ tools/json_schema_compiler/model.py -@@ -603,7 +603,7 @@ class Platforms(object): +@@ -605,7 +605,7 @@ class Platforms(object): """ CHROMEOS = _PlatformInfo("chromeos") CHROMEOS_TOUCH = _PlatformInfo("chromeos_touch") - LINUX = _PlatformInfo("linux") + LINUX = _PlatformInfo("bsd") MAC = _PlatformInfo("mac") WIN = _PlatformInfo("win") Index: branches/2020Q1/www/chromium/files/patch-ui_base_resource_resource__bundle.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_base_resource_resource__bundle.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_base_resource_resource__bundle.cc (revision 523260) @@ -1,20 +1,20 @@ ---- ui/base/resource/resource_bundle.cc.orig 2019-10-21 19:07:28 UTC +--- ui/base/resource/resource_bundle.cc.orig 2019-12-16 21:51:33 UTC +++ ui/base/resource/resource_bundle.cc -@@ -793,7 +793,7 @@ void ResourceBundle::ReloadFonts() { +@@ -818,7 +818,7 @@ void ResourceBundle::ReloadFonts() { } ScaleFactor ResourceBundle::GetMaxScaleFactor() const { -#if defined(OS_WIN) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) return max_scale_factor_; #else return GetSupportedScaleFactors().back(); -@@ -846,7 +846,7 @@ void ResourceBundle::InitSharedInstance(Delegate* dele +@@ -871,7 +871,7 @@ void ResourceBundle::InitSharedInstance(Delegate* dele // On platforms other than iOS, 100P is always a supported scale factor. // For Windows we have a separate case in this function. supported_scale_factors.push_back(SCALE_FACTOR_100P); -#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_WIN) +#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) supported_scale_factors.push_back(SCALE_FACTOR_200P); #endif #endif Index: branches/2020Q1/www/chromium/files/patch-ui_base_ui__base__features.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_base_ui__base__features.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_base_ui__base__features.cc (revision 523260) @@ -1,20 +1,20 @@ ---- ui/base/ui_base_features.cc.orig 2019-10-21 19:07:28 UTC +--- ui/base/ui_base_features.cc.orig 2019-12-16 21:51:33 UTC +++ ui/base/ui_base_features.cc -@@ -112,7 +112,7 @@ const base::Feature kEnableAutomaticUiAdjustmentsForTo +@@ -117,7 +117,7 @@ const base::Feature kEnableAutomaticUiAdjustmentsForTo "EnableAutomaticUiAdjustmentsForTouch", base::FEATURE_ENABLED_BY_DEFAULT}; #endif // defined(OS_WIN) || 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) // Enables stylus appearing as touch when in contact with digitizer. const base::Feature kDirectManipulationStylus = { "DirectManipulationStylus", -@@ -122,7 +122,7 @@ const base::Feature kDirectManipulationStylus = { +@@ -127,7 +127,7 @@ const base::Feature kDirectManipulationStylus = { base::FEATURE_DISABLED_BY_DEFAULT #endif }; -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) const base::Feature kFormControlsRefresh = {"FormControlsRefresh", base::FEATURE_DISABLED_BY_DEFAULT}; Index: branches/2020Q1/www/chromium/files/patch-ui_base_ui__base__features.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_base_ui__base__features.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_base_ui__base__features.h (revision 523260) @@ -1,15 +1,15 @@ ---- ui/base/ui_base_features.h.orig 2019-10-21 19:07:28 UTC +--- ui/base/ui_base_features.h.orig 2019-12-16 21:51:33 UTC +++ ui/base/ui_base_features.h -@@ -61,10 +61,10 @@ COMPONENT_EXPORT(UI_BASE_FEATURES) +@@ -63,10 +63,10 @@ COMPONENT_EXPORT(UI_BASE_FEATURES) extern const base::Feature kEnableAutomaticUiAdjustmentsForTouch; #endif // defined(OS_WIN) || 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) COMPONENT_EXPORT(UI_BASE_FEATURES) extern const base::Feature kDirectManipulationStylus; -#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) // Used to enable the new controls UI. COMPONENT_EXPORT(UI_BASE_FEATURES) Index: branches/2020Q1/www/chromium/files/patch-ui_base_webui_web__ui__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_base_webui_web__ui__util.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_base_webui_web__ui__util.cc (revision 523260) @@ -1,11 +1,11 @@ ---- ui/base/webui/web_ui_util.cc.orig 2019-07-24 18:59:19 UTC +--- ui/base/webui/web_ui_util.cc.orig 2019-12-16 21:51:33 UTC +++ ui/base/webui/web_ui_util.cc -@@ -215,7 +215,7 @@ std::string GetFontFamily() { +@@ -227,7 +227,7 @@ std::string GetFontFamily() { // TODO(dnicoara) Remove Ozone check when PlatformFont support is introduced // into Ozone: crbug.com/320050 -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(USE_OZONE) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) && !defined(USE_OZONE) font_family = ui::ResourceBundle::GetSharedInstance().GetFont( ui::ResourceBundle::BaseFont).GetFontName() + ", " + font_family; #endif Index: branches/2020Q1/www/chromium/files/patch-ui_base_x_x11__shm__image__pool__base.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_base_x_x11__shm__image__pool__base.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-ui_base_x_x11__shm__image__pool__base.cc (revision 523260) @@ -0,0 +1,53 @@ +--- ui/base/x/x11_shm_image_pool_base.cc.orig 2019-12-16 21:51:33 UTC ++++ ui/base/x/x11_shm_image_pool_base.cc +@@ -12,12 +12,17 @@ + + #include "base/bind.h" + #include "base/callback.h" ++#include "base/command_line.h" ++#include "base/environment.h" + #include "base/location.h" ++#include "base/strings/string_util.h" ++#include "base/system/sys_info.h" + #include "base/threading/thread_task_runner_handle.h" + #include "build/build_config.h" + #include "ui/events/platform/platform_event_dispatcher.h" + #include "ui/events/platform/platform_event_source.h" + #include "ui/gfx/geometry/rect.h" ++#include "ui/gfx/x/x11_switches.h" + + namespace ui { + +@@ -39,10 +44,14 @@ constexpr float kShmResizeShrinkThreshold = + 1.0f / (kShmResizeThreshold * kShmResizeThreshold); + + std::size_t MaxShmSegmentSizeImpl() { ++#if defined(OS_BSD) ++ return base::SysInfo::MaxSharedMemorySize(); ++#else + struct shminfo info; + if (shmctl(0, IPC_INFO, reinterpret_cast(&info)) == -1) + return 0; + return info.shmmax; ++#endif + } + + std::size_t MaxShmSegmentSize() { +@@ -139,7 +148,7 @@ bool XShmImagePoolBase::Resize(const gfx::Size& pixel_ + shmctl(state.shminfo_.shmid, IPC_RMID, 0); + return false; + } +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // On Linux, a shmid can still be attached after IPC_RMID if otherwise + // kept alive. Detach before XShmAttach to prevent a memory leak in case + // the process dies. +@@ -149,7 +158,7 @@ bool XShmImagePoolBase::Resize(const gfx::Size& pixel_ + if (!XShmAttach(display_, &state.shminfo_)) + return false; + state.shmem_attached_to_server_ = true; +-#if !defined(OS_LINUX) ++#if !defined(OS_LINUX) && !defined(OS_BSD) + // The Linux-specific shmctl behavior above may not be portable, so we're + // forced to do IPC_RMID after the server has attached to the segment. + // XShmAttach is asynchronous, so we must also sync. Property changes on: branches/2020Q1/www/chromium/files/patch-ui_base_x_x11__shm__image__pool__base.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: branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor.cc (revision 523260) @@ -0,0 +1,11 @@ +--- ui/compositor/compositor.cc.orig 2019-12-17 19:57:24 UTC ++++ ui/compositor/compositor.cc +@@ -681,7 +681,7 @@ void Compositor::OnFrameTokenChanged(uint32_t frame_to + NOTREACHED(); + } + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + void Compositor::OnCompleteSwapWithNewSize(const gfx::Size& size) { + for (auto& observer : observer_list_) + observer.OnCompositingCompleteSwapWithNewSize(this, size); Property changes on: branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor.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: branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor.h (revision 523260) @@ -0,0 +1,11 @@ +--- ui/compositor/compositor.h.orig 2019-12-17 19:57:38 UTC ++++ ui/compositor/compositor.h +@@ -412,7 +412,7 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerT + void OnFirstSurfaceActivation(const viz::SurfaceInfo& surface_info) override; + void OnFrameTokenChanged(uint32_t frame_token) override; + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + void OnCompleteSwapWithNewSize(const gfx::Size& size); + #endif + Property changes on: branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor.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: branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor__observer.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor__observer.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor__observer.h (revision 523260) @@ -0,0 +1,16 @@ +--- ui/compositor/compositor_observer.h.orig 2019-12-17 19:56:41 UTC ++++ ui/compositor/compositor_observer.h +@@ -42,11 +42,11 @@ class COMPOSITOR_EXPORT CompositorObserver { + // Called when a child of the compositor is resizing. + virtual void OnCompositingChildResizing(Compositor* compositor) {} + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + // Called when a swap with new size is completed. + virtual void OnCompositingCompleteSwapWithNewSize(ui::Compositor* compositor, + const gfx::Size& size) {} +-#endif // defined(OS_LINUX) ++#endif // defined(OS_LINUX) || defined(OS_BSD) + + // Called at the top of the compositor's destructor, to give observers a + // chance to remove themselves. Property changes on: branches/2020Q1/www/chromium/files/patch-ui_compositor_compositor__observer.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: branches/2020Q1/www/chromium/files/patch-ui_compositor_host_host__context__factory__private.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_compositor_host_host__context__factory__private.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-ui_compositor_host_host__context__factory__private.cc (revision 523260) @@ -0,0 +1,11 @@ +--- ui/compositor/host/host_context_factory_private.cc.orig 2019-12-17 19:57:59 UTC ++++ ui/compositor/host/host_context_factory_private.cc +@@ -31,7 +31,7 @@ namespace { + + static const char* kBrowser = "Browser"; + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + class HostDisplayClient : public viz::HostDisplayClient { + public: + explicit HostDisplayClient(ui::Compositor* compositor) Property changes on: branches/2020Q1/www/chromium/files/patch-ui_compositor_host_host__context__factory__private.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: branches/2020Q1/www/chromium/files/patch-ui_gfx_font__fallback__linux.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_gfx_font__fallback__linux.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_gfx_font__fallback__linux.cc (revision 523260) @@ -1,13 +1,13 @@ ---- ui/gfx/font_fallback_linux.cc.orig 2019-09-09 21:55:46 UTC +--- ui/gfx/font_fallback_linux.cc.orig 2019-12-16 21:51:34 UTC +++ ui/gfx/font_fallback_linux.cc -@@ -18,6 +18,10 @@ - #include "base/trace_event/trace_event.h" - #include "ui/gfx/font.h" +@@ -24,6 +24,10 @@ + #include "ui/gfx/linux/fontconfig_util.h" + #include "ui/gfx/platform_font.h" +#if defined(OS_BSD) +#include +#endif + namespace gfx { namespace { Index: branches/2020Q1/www/chromium/files/patch-ui_gfx_font__util.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_gfx_font__util.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-ui_gfx_font__util.cc (revision 523260) @@ -0,0 +1,25 @@ +--- ui/gfx/font_util.cc.orig 2019-12-17 19:58:26 UTC ++++ ui/gfx/font_util.cc +@@ -6,7 +6,7 @@ + + #include "build/build_config.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include + #include "ui/gfx/linux/fontconfig_util.h" + #endif +@@ -24,11 +24,11 @@ void InitializeFonts() { + // background (resources have not yet been granted to cast) since it prevents + // the long delay the user would have seen on first rendering. + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + // Ensures the config is created on this thread. + FcConfig* config = GetGlobalFontConfig(); + DCHECK(config); +-#endif // OS_LINUX ++#endif // OS_LINUX || OS_BSD + + #if defined(OS_WIN) + gfx::win::InitializeDirectWrite(); Property changes on: branches/2020Q1/www/chromium/files/patch-ui_gfx_font__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: branches/2020Q1/www/chromium/files/patch-ui_gfx_gpu__memory__buffer.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_gfx_gpu__memory__buffer.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-ui_gfx_gpu__memory__buffer.cc (revision 523260) @@ -0,0 +1,11 @@ +--- ui/gfx/gpu_memory_buffer.cc.orig 2019-12-17 19:59:38 UTC ++++ ui/gfx/gpu_memory_buffer.cc +@@ -28,7 +28,7 @@ GpuMemoryBufferHandle GpuMemoryBufferHandle::Clone() c + handle.region = region.Duplicate(); + handle.offset = offset; + handle.stride = stride; +-#if defined(OS_LINUX) || defined(OS_FUCHSIA) ++#if defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD) + handle.native_pixmap_handle = CloneHandleForIPC(native_pixmap_handle); + #elif defined(OS_MACOSX) && !defined(OS_IOS) + NOTIMPLEMENTED(); Property changes on: branches/2020Q1/www/chromium/files/patch-ui_gfx_gpu__memory__buffer.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: branches/2020Q1/www/chromium/files/patch-ui_gfx_gpu__memory__buffer.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_gfx_gpu__memory__buffer.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_gfx_gpu__memory__buffer.h (revision 523260) @@ -1,20 +1,20 @@ ---- ui/gfx/gpu_memory_buffer.h.orig 2019-06-04 18:55:50 UTC +--- ui/gfx/gpu_memory_buffer.h.orig 2019-12-16 21:51:34 UTC +++ ui/gfx/gpu_memory_buffer.h @@ -16,7 +16,7 @@ #include "ui/gfx/geometry/rect.h" #include "ui/gfx/gfx_export.h" -#if defined(USE_OZONE) || defined(OS_LINUX) +#if defined(USE_OZONE) || defined(OS_LINUX) || defined(OS_BSD) #include "ui/gfx/native_pixmap_handle.h" #elif defined(OS_MACOSX) && !defined(OS_IOS) #include "ui/gfx/mac/io_surface.h" -@@ -65,7 +65,7 @@ struct GFX_EXPORT GpuMemoryBufferHandle { +@@ -66,7 +66,7 @@ struct GFX_EXPORT GpuMemoryBufferHandle { base::UnsafeSharedMemoryRegion region; uint32_t offset; int32_t stride; -#if defined(OS_LINUX) || defined(OS_FUCHSIA) +#if defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD) NativePixmapHandle native_pixmap_handle; #elif defined(OS_MACOSX) && !defined(OS_IOS) ScopedRefCountedIOSurfaceMachPort mach_port; Index: branches/2020Q1/www/chromium/files/patch-ui_gfx_linux_client__native__pixmap__dmabuf.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_gfx_linux_client__native__pixmap__dmabuf.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_gfx_linux_client__native__pixmap__dmabuf.cc (revision 523260) @@ -1,25 +1,25 @@ ---- ui/gfx/linux/client_native_pixmap_dmabuf.cc.orig 2019-07-24 18:59:22 UTC +--- ui/gfx/linux/client_native_pixmap_dmabuf.cc.orig 2019-12-16 21:51:34 UTC +++ ui/gfx/linux/client_native_pixmap_dmabuf.cc @@ -5,7 +5,9 @@ #include "ui/gfx/linux/client_native_pixmap_dmabuf.h" #include +#if !defined(__FreeBSD__) #include +#endif #include #include #include -@@ -24,11 +26,7 @@ - #include "build/build_config.h" +@@ -25,11 +27,7 @@ + #include "ui/gfx/buffer_format_util.h" #include "ui/gfx/switches.h" -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) -#include -#else -#include - +#if defined(__FreeBSD__) struct dma_buf_sync { __u64 flags; }; Index: branches/2020Q1/www/chromium/files/patch-ui_gfx_mojom_buffer__types__mojom__traits.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_gfx_mojom_buffer__types__mojom__traits.h (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_gfx_mojom_buffer__types__mojom__traits.h (revision 523260) @@ -1,29 +1,29 @@ ---- ui/gfx/mojom/buffer_types_mojom_traits.h.orig 2019-10-30 16:35:23 UTC +--- ui/gfx/mojom/buffer_types_mojom_traits.h.orig 2019-12-16 21:51:08 UTC +++ ui/gfx/mojom/buffer_types_mojom_traits.h -@@ -191,7 +191,7 @@ struct StructTraits struct StructTraits { -@@ -217,7 +217,7 @@ struct StructTraits struct StructTraitsrgba_visual(); + const auto& visual_info = + ui::IsCompositingManagerPresent() + ? gl::GLVisualPickerGLX::GetInstance()->rgba_visual() + : gl::GLVisualPickerGLX::GetInstance()->system_visual(); g_visual = visual_info.visual; g_depth = visual_info.depth; g_colormap = Index: branches/2020Q1/www/chromium/files/patch-ui_message__center_views_message__popup__view.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_message__center_views_message__popup__view.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_message__center_views_message__popup__view.cc (revision 523260) @@ -1,11 +1,11 @@ ---- ui/message_center/views/message_popup_view.cc.orig 2019-09-09 21:55:47 UTC +--- ui/message_center/views/message_popup_view.cc.orig 2019-12-16 21:51:34 UTC +++ ui/message_center/views/message_popup_view.cc -@@ -106,7 +106,7 @@ void MessagePopupView::AutoCollapse() { +@@ -101,7 +101,7 @@ void MessagePopupView::AutoCollapse() { void MessagePopupView::Show() { views::Widget::InitParams params(views::Widget::InitParams::TYPE_POPUP); params.z_order = ui::ZOrderLevel::kFloatingWindow; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) // Make the widget explicitly activatable as TYPE_POPUP is not activatable by // default but we need focus for the inline reply textarea. params.activatable = views::Widget::InitParams::ACTIVATABLE_YES; Index: branches/2020Q1/www/chromium/files/patch-ui_native__theme_native__theme__base.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_native__theme_native__theme__base.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_native__theme_native__theme__base.cc (revision 523260) @@ -1,11 +1,11 @@ ---- ui/native_theme/native_theme_base.cc.orig 2019-10-21 19:07:29 UTC +--- ui/native_theme/native_theme_base.cc.orig 2019-12-16 21:51:34 UTC +++ ui/native_theme/native_theme_base.cc -@@ -177,7 +177,7 @@ void NativeThemeBase::Paint(cc::PaintCanvas* canvas, +@@ -212,7 +212,7 @@ void NativeThemeBase::Paint(cc::PaintCanvas* canvas, case kCheckbox: PaintCheckbox(canvas, state, rect, extra.button, color_scheme); break; -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) case kFrameTopArea: PaintFrameTopArea(canvas, state, rect, extra.frame_top_area, color_scheme); Index: branches/2020Q1/www/chromium/files/patch-ui_views_controls_label.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_views_controls_label.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_views_controls_label.cc (revision 523260) @@ -1,20 +1,20 @@ ---- ui/views/controls/label.cc.orig 2019-10-21 19:07:29 UTC +--- ui/views/controls/label.cc.orig 2019-12-16 21:51:34 UTC +++ ui/views/controls/label.cc -@@ -691,7 +691,7 @@ bool Label::OnMousePressed(const ui::MouseEvent& event +@@ -689,7 +689,7 @@ bool Label::OnMousePressed(const ui::MouseEvent& event GetFocusManager()->SetFocusedView(this); } -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) if (event.IsOnlyMiddleMouseButton() && GetFocusManager() && !had_focus) GetFocusManager()->SetFocusedView(this); #endif -@@ -876,7 +876,7 @@ bool Label::PasteSelectionClipboard() { +@@ -874,7 +874,7 @@ bool Label::PasteSelectionClipboard() { } void Label::UpdateSelectionClipboard() { -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) if (!GetObscured()) { ui::ScopedClipboardWriter(ui::ClipboardBuffer::kSelection) .WriteText(GetSelectedText()); Index: branches/2020Q1/www/chromium/files/patch-ui_views_corewm_tooltip__aura.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_views_corewm_tooltip__aura.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_views_corewm_tooltip__aura.cc (revision 523260) @@ -1,11 +1,11 @@ ---- ui/views/corewm/tooltip_aura.cc.orig 2019-10-21 19:07:29 UTC +--- ui/views/corewm/tooltip_aura.cc.orig 2019-12-16 21:51:34 UTC +++ ui/views/corewm/tooltip_aura.cc -@@ -42,7 +42,7 @@ constexpr int kVerticalPaddingBottom = 5; +@@ -43,7 +43,7 @@ constexpr int kVerticalPaddingBottom = 5; // TODO(varkha): Update if native widget can be transparent on Linux. bool CanUseTranslucentTooltipWidget() { -#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_WIN) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_WIN) || defined(OS_BSD) return false; #else return true; Index: branches/2020Q1/www/chromium/files/patch-ui_views_selection__controller.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_views_selection__controller.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_views_selection__controller.cc (revision 523260) @@ -1,11 +1,11 @@ ---- ui/views/selection_controller.cc.orig 2019-06-04 18:55:50 UTC +--- ui/views/selection_controller.cc.orig 2019-12-16 21:51:09 UTC +++ ui/views/selection_controller.cc -@@ -21,7 +21,7 @@ SelectionController::SelectionController(SelectionCont +@@ -22,7 +22,7 @@ SelectionController::SelectionController(SelectionCont delegate_(delegate), handles_selection_clipboard_(false) { // On Linux, update the selection clipboard on a text selection. -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) set_handles_selection_clipboard(true); #endif Index: branches/2020Q1/www/chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_views_widget_desktop__aura_desktop__window__tree__host__platform.cc (revision 523260) @@ -1,20 +1,11 @@ ---- ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc.orig 2019-10-21 19:07:29 UTC +--- ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc.orig 2019-12-16 21:51:34 UTC +++ ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc -@@ -137,7 +137,7 @@ void DesktopWindowTreeHostPlatform::OnNativeWidgetCrea - Widget::InitParams::TYPE_WINDOW && - !params.remove_standard_frame); +@@ -732,7 +732,7 @@ void DesktopWindowTreeHostPlatform::AddAdditionalInitP + // DesktopWindowTreeHost: --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_BSD) - // Setup a non_client_window_event_filter, which handles resize/move, double - // click and other events. - DCHECK(!non_client_window_event_filter_); -@@ -668,7 +668,7 @@ void DesktopWindowTreeHostPlatform::Relayout() { - } - - void DesktopWindowTreeHostPlatform::RemoveNonClientEventFilter() { --#if defined(OS_LINUX) -+#if defined(OS_LINUX) || defined(OS_BSD) - if (!non_client_window_event_filter_) - return; - + // Linux subclasses this host and adds some Linux specific bits. +-#if !defined(OS_LINUX) ++#if !defined(OS_LINUX) && !defined(OS_BSD) + // static + DesktopWindowTreeHost* DesktopWindowTreeHost::Create( + internal::NativeWidgetDelegate* native_widget_delegate, Index: branches/2020Q1/www/chromium/files/patch-ui_views_widget_native__widget__aura.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_views_widget_native__widget__aura.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-ui_views_widget_native__widget__aura.cc (revision 523260) @@ -0,0 +1,36 @@ +--- ui/views/widget/native_widget_aura.cc.orig 2019-12-17 20:00:27 UTC ++++ ui/views/widget/native_widget_aura.cc +@@ -59,7 +59,7 @@ + #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + #include "ui/views/linux_ui/linux_ui.h" + #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" + #endif +@@ -1065,7 +1065,7 @@ void NativeWidgetAura::SetInitialFocus(ui::WindowShowS + // Widget, public: + + namespace { +-#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) ++#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + void CloseWindow(aura::Window* window) { + if (window) { + Widget* widget = Widget::GetWidgetForNativeView(window); +@@ -1095,13 +1095,13 @@ void Widget::CloseAllSecondaryWidgets() { + EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0); + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + DesktopWindowTreeHostLinux::CleanUpWindowList(CloseWindow); + #endif + } + + const ui::NativeTheme* Widget::GetNativeTheme() const { +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + const LinuxUI* linux_ui = LinuxUI::instance(); + if (linux_ui) { + ui::NativeTheme* native_theme = Property changes on: branches/2020Q1/www/chromium/files/patch-ui_views_widget_native__widget__aura.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: branches/2020Q1/www/chromium/files/patch-ui_views_window_dialog__delegate.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_views_window_dialog__delegate.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_views_window_dialog__delegate.cc (revision 523260) @@ -1,11 +1,11 @@ ---- ui/views/window/dialog_delegate.cc.orig 2019-10-21 19:07:29 UTC +--- ui/views/window/dialog_delegate.cc.orig 2019-12-16 21:51:34 UTC +++ ui/views/window/dialog_delegate.cc -@@ -53,7 +53,7 @@ Widget* DialogDelegate::CreateDialogWidget(WidgetDeleg +@@ -58,7 +58,7 @@ Widget* DialogDelegate::CreateDialogWidget(WidgetDeleg // static bool DialogDelegate::CanSupportCustomFrame(gfx::NativeView parent) { -#if defined(OS_LINUX) && !defined(OS_CHROMEOS) +#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) // The new style doesn't support unparented dialogs on Linux desktop. return parent != nullptr; #elif defined(OS_WIN) Index: branches/2020Q1/www/chromium/files/patch-ui_webui_resources_js_cr.js =================================================================== --- branches/2020Q1/www/chromium/files/patch-ui_webui_resources_js_cr.js (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-ui_webui_resources_js_cr.js (revision 523260) @@ -1,14 +1,14 @@ ---- ui/webui/resources/js/cr.js.orig 2019-09-09 21:55:47 UTC +--- ui/webui/resources/js/cr.js.orig 2019-12-16 21:51:34 UTC +++ ui/webui/resources/js/cr.js -@@ -436,6 +436,11 @@ var cr = cr || function(global) { - get doc() { - return document; +@@ -437,6 +437,11 @@ var cr = cr || function(global) { + get isMac() { + return /Mac/.test(navigator.platform); }, + + /** Whether this is on *BSD. */ + get isBSD() { + return /BSD/.test(navigator.userAgent); + }, - /** Whether we are using a Mac or not. */ - get isMac() { + /** Whether this is on the Windows platform or not. */ + get isWindows() { Index: branches/2020Q1/www/chromium/files/patch-v8_BUILD.gn =================================================================== --- branches/2020Q1/www/chromium/files/patch-v8_BUILD.gn (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-v8_BUILD.gn (revision 523260) @@ -1,32 +1,32 @@ ---- v8/BUILD.gn.orig 2019-10-21 19:09:21 UTC +--- v8/BUILD.gn.orig 2019-12-16 21:56:22 UTC +++ v8/BUILD.gn -@@ -3588,7 +3588,7 @@ v8_component("v8_libbase") { +@@ -3639,7 +3639,7 @@ v8_component("v8_libbase") { } } - if (is_linux) { + if (is_linux && !is_bsd) { sources += [ "src/base/debug/stack_trace_posix.cc", "src/base/platform/platform-linux.cc", -@@ -3608,6 +3608,12 @@ v8_component("v8_libbase") { +@@ -3659,6 +3659,12 @@ v8_component("v8_libbase") { "dl", "rt", ] + } else if (is_bsd) { + sources += [ + "src/base/debug/stack_trace_posix.cc", + "src/base/platform/platform-freebsd.cc", + ] + libs = [ "rt", "execinfo" ] } else if (is_android) { if (current_toolchain == host_toolchain) { libs = [ -@@ -3859,6 +3865,7 @@ if (v8_use_snapshot && current_toolchain == v8_snapsho +@@ -3916,6 +3922,7 @@ if (current_toolchain == v8_snapshot_toolchain) { "src/snapshot/embedded/platform-embedded-file-writer-win.h", "src/snapshot/mksnapshot.cc", ] + libs = ["execinfo"] configs = [ ":internal_config" ] Index: branches/2020Q1/www/chromium/files/patch-v8_src_api_api.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-v8_src_api_api.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-v8_src_api_api.cc (revision 523260) @@ -1,20 +1,20 @@ ---- v8/src/api/api.cc.orig 2019-10-21 19:09:21 UTC +--- v8/src/api/api.cc.orig 2019-12-16 21:56:22 UTC +++ v8/src/api/api.cc @@ -111,7 +111,7 @@ #include "src/wasm/wasm-result.h" #include "src/wasm/wasm-serialization.h" -#if V8_OS_LINUX || V8_OS_MACOSX +#if V8_OS_LINUX || V8_OS_MACOSX || V8_OS_OPENBSD || V8_OS_FREEBSD #include #include "include/v8-wasm-trap-handler-posix.h" #include "src/trap-handler/handler-inside-posix.h" -@@ -5573,7 +5573,7 @@ bool v8::V8::Initialize() { +@@ -5609,7 +5609,7 @@ bool v8::V8::Initialize() { 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 Index: branches/2020Q1/www/chromium/files/patch-v8_src_base_cpu.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-v8_src_base_cpu.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-v8_src_base_cpu.cc (revision 523260) @@ -1,18 +1,18 @@ ---- v8/src/base/cpu.cc.orig 2019-03-11 22:08:08 UTC +--- v8/src/base/cpu.cc.orig 2019-12-16 21:56:22 UTC +++ v8/src/base/cpu.cc -@@ -424,6 +424,7 @@ CPU::CPU() +@@ -422,6 +422,7 @@ CPU::CPU() #if V8_OS_LINUX +#if V8_OS_LINUX CPUInfo cpu_info; // Extract implementor from the "CPU implementer" field. -@@ -457,6 +458,7 @@ CPU::CPU() +@@ -455,6 +456,7 @@ CPU::CPU() } delete[] part; } +#endif // Extract architecture from the "CPU Architecture" field. // The list is well-known, unlike the the output of Index: branches/2020Q1/www/chromium/files/patch-v8_src_base_platform_platform-posix.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-v8_src_base_platform_platform-posix.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-v8_src_base_platform_platform-posix.cc (revision 523260) @@ -1,24 +1,24 @@ ---- v8/src/base/platform/platform-posix.cc.orig 2019-09-09 21:57:07 UTC +--- v8/src/base/platform/platform-posix.cc.orig 2019-12-16 21:56:22 UTC +++ v8/src/base/platform/platform-posix.cc -@@ -382,7 +382,7 @@ bool OS::DiscardSystemPages(void* address, size_t size +@@ -383,7 +383,7 @@ bool OS::DiscardSystemPages(void* address, size_t size // static bool OS::HasLazyCommits() { -#if V8_OS_AIX || V8_OS_LINUX || V8_OS_MACOSX +#if V8_OS_AIX || V8_OS_LINUX || V8_OS_MACOSX || V8_OS_FREEBSD return true; #else // TODO(bbudge) Return true for all POSIX platforms. -@@ -513,6 +513,12 @@ int OS::GetCurrentThreadId() { +@@ -514,6 +514,12 @@ int OS::GetCurrentThreadId() { return static_cast(syscall(__NR_gettid)); #elif V8_OS_ANDROID return static_cast(gettid()); +#elif V8_OS_DRAGONFLYBSD || defined(__DragonFly__) + return static_cast(lwp_gettid()); +#elif V8_OS_FREEBSD + return static_cast(pthread_getthreadid_np()); +#elif V8_OS_NETBSD + return static_cast(_lwp_self()); #elif V8_OS_AIX return static_cast(thread_self()); #elif V8_OS_FUCHSIA Index: branches/2020Q1/www/chromium/files/patch-weblayer_browser_browser__main__parts__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-weblayer_browser_browser__main__parts__impl.cc (revision 523259) +++ branches/2020Q1/www/chromium/files/patch-weblayer_browser_browser__main__parts__impl.cc (revision 523260) @@ -1,20 +1,20 @@ ---- weblayer/browser/browser_main_parts_impl.cc.orig 2019-10-30 16:40:04 UTC +--- weblayer/browser/browser_main_parts_impl.cc.orig 2019-12-16 21:51:34 UTC +++ weblayer/browser/browser_main_parts_impl.cc -@@ -34,7 +34,7 @@ +@@ -37,7 +37,7 @@ #if defined(USE_AURA) && defined(USE_X11) #include "ui/events/devices/x11/touch_factory_x11.h" // nogncheck #endif -#if !defined(OS_CHROMEOS) && defined(USE_AURA) && defined(OS_LINUX) +#if !defined(OS_CHROMEOS) && defined(USE_AURA) && (defined(OS_LINUX) || defined(OS_BSD)) #include "ui/base/ime/init/input_method_initializer.h" #endif -@@ -70,7 +70,7 @@ int BrowserMainPartsImpl::PreEarlyInitialization() { +@@ -84,7 +84,7 @@ int BrowserMainPartsImpl::PreEarlyInitialization() { #if defined(USE_X11) ui::SetDefaultX11ErrorHandlers(); #endif -#if defined(USE_AURA) && defined(OS_LINUX) +#if defined(USE_AURA) && (defined(OS_LINUX) || defined(OS_BSD)) ui::InitializeInputMethodForTesting(); #endif #if defined(OS_ANDROID) Index: branches/2020Q1/www/chromium/files/patch-weblayer_browser_content__browser__client__impl.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-weblayer_browser_content__browser__client__impl.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-weblayer_browser_content__browser__client__impl.cc (revision 523260) @@ -0,0 +1,38 @@ +--- weblayer/browser/content_browser_client_impl.cc.orig 2020-01-07 21:53:35 UTC ++++ weblayer/browser/content_browser_client_impl.cc +@@ -57,7 +57,7 @@ + #include "weblayer/browser/safe_browsing/safe_browsing_service.h" + #endif + +-#if defined(OS_LINUX) || defined(OS_ANDROID) ++#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) + #include "content/public/common/content_descriptors.h" + #endif + +@@ -200,7 +200,7 @@ ContentBrowserClientImpl::CreateNetworkContext( + + void ContentBrowserClientImpl::OnNetworkServiceCreated( + network::mojom::NetworkService* network_service) { +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) + network::mojom::CryptConfigPtr config = network::mojom::CryptConfig::New(); + content::GetNetworkService()->SetCryptConfig(std::move(config)); + #endif +@@ -330,7 +330,7 @@ SafeBrowsingService* ContentBrowserClientImpl::GetSafe + } + #endif + +-#if defined(OS_LINUX) || defined(OS_ANDROID) ++#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) + void ContentBrowserClientImpl::GetAdditionalMappedFilesForChildProcess( + const base::CommandLine& command_line, + int child_process_id, +@@ -358,7 +358,7 @@ void ContentBrowserClientImpl::GetAdditionalMappedFile + mappings->Share(service_manager::kCrashDumpSignal, crash_signal_fd); + #endif // defined(OS_ANDROID) + } +-#endif // defined(OS_LINUX) || defined(OS_ANDROID) ++#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) + + #if defined(OS_ANDROID) + bool ContentBrowserClientImpl::ShouldOverrideUrlLoading( Property changes on: branches/2020Q1/www/chromium/files/patch-weblayer_browser_content__browser__client__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: branches/2020Q1/www/chromium/files/patch-weblayer_browser_content__browser__client__impl.h =================================================================== --- branches/2020Q1/www/chromium/files/patch-weblayer_browser_content__browser__client__impl.h (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-weblayer_browser_content__browser__client__impl.h (revision 523260) @@ -0,0 +1,17 @@ +--- weblayer/browser/content_browser_client_impl.h.orig 2020-01-07 21:53:35 UTC ++++ weblayer/browser/content_browser_client_impl.h +@@ -80,12 +80,12 @@ class ContentBrowserClientImpl : public content::Conte + base::OnceCallback)> callback) + override; + +-#if defined(OS_LINUX) || defined(OS_ANDROID) ++#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) + void GetAdditionalMappedFilesForChildProcess( + const base::CommandLine& command_line, + int child_process_id, + content::PosixFileDescriptorInfo* mappings) override; +-#endif // defined(OS_LINUX) || defined(OS_ANDROID) ++#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) + + #if defined(OS_ANDROID) + bool ShouldOverrideUrlLoading(int frame_tree_node_id, Property changes on: branches/2020Q1/www/chromium/files/patch-weblayer_browser_content__browser__client__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: branches/2020Q1/www/chromium/files/patch-weblayer_common_weblayer__paths.cc =================================================================== --- branches/2020Q1/www/chromium/files/patch-weblayer_common_weblayer__paths.cc (nonexistent) +++ branches/2020Q1/www/chromium/files/patch-weblayer_common_weblayer__paths.cc (revision 523260) @@ -0,0 +1,20 @@ +--- weblayer/common/weblayer_paths.cc.orig 2019-12-17 20:03:36 UTC ++++ weblayer/common/weblayer_paths.cc +@@ -16,7 +16,7 @@ + + #if defined(OS_WIN) + #include "base/base_paths_win.h" +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_BSD) + #include "base/nix/xdg_util.h" + #endif + +@@ -39,7 +39,7 @@ bool GetDefaultUserDataDirectory(base::FilePath* resul + return false; + *result = result->AppendASCII("weblayer"); + return true; +-#elif defined(OS_LINUX) ++#elif defined(OS_LINUX) || defined(OS_BSD) + std::unique_ptr env(base::Environment::Create()); + base::FilePath config_dir(base::nix::GetXDGDirectory( + env.get(), base::nix::kXdgConfigHomeEnvVar, base::nix::kDotConfigDir)); Property changes on: branches/2020Q1/www/chromium/files/patch-weblayer_common_weblayer__paths.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: branches/2020Q1/www/chromium/pkg-plist =================================================================== --- branches/2020Q1/www/chromium/pkg-plist (revision 523259) +++ branches/2020Q1/www/chromium/pkg-plist (revision 523260) @@ -1,330 +1,579 @@ 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%%/libVkICD_mock_icd.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.svg %%DATADIR%%/resources/inspector/Images/accelerometer-bottom.png %%DATADIR%%/resources/inspector/Images/accelerometer-front.svg %%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.svg %%DATADIR%%/resources/inspector/Images/breakpointConditional.svg %%DATADIR%%/resources/inspector/Images/checkboxCheckmark.svg %%DATADIR%%/resources/inspector/Images/checker.png %%DATADIR%%/resources/inspector/Images/chevrons.svg %%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/errorWave.svg %%DATADIR%%/resources/inspector/Images/ic_info_black_18dp.svg %%DATADIR%%/resources/inspector/Images/ic_warning_black_18dp.svg %%DATADIR%%/resources/inspector/Images/largeIcons.svg %%DATADIR%%/resources/inspector/Images/mediumIcons.svg %%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.svg %%DATADIR%%/resources/inspector/Images/smallIcons.svg %%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.svg %%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/audits/audits_module.js %%DATADIR%%/resources/inspector/audits_test_runner/audits_test_runner_module.js %%DATADIR%%/resources/inspector/audits_worker.js %%DATADIR%%/resources/inspector/audits_worker/audits_worker_module.js +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/ar-XB.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/ar.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/bg.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/ca.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/cs.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/da.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/de.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/el.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/en-GB.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/en-US.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/en-XA.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/en-XL.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/es-419.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/es.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/fi.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/fil.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/fr.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/he.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/hi.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/hr.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/hu.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/id.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/it.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/ja.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/ko.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/lt.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/lv.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/nl.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/no.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/pl.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/pt-PT.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/pt.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/ro.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/ru.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/sk.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/sl.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/sr-Latn.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/sr.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/sv.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/ta.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/te.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/th.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/tr.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/uk.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/vi.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/zh-HK.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/zh-TW.json +%%DATADIR%%/resources/inspector/audits_worker/lighthouse/locales/zh.json %%DATADIR%%/resources/inspector/axe_core_test_runner/axe_core_test_runner_module.js %%DATADIR%%/resources/inspector/bindings_test_runner/bindings_test_runner_module.js +%%DATADIR%%/resources/inspector/bindings/bindings.js +%%DATADIR%%/resources/inspector/bindings/BlackboxManager.js +%%DATADIR%%/resources/inspector/bindings/BreakpointManager.js +%%DATADIR%%/resources/inspector/bindings/CompilerScriptMapping.js +%%DATADIR%%/resources/inspector/bindings/ContentProviderBasedProject.js +%%DATADIR%%/resources/inspector/bindings/CSSWorkspaceBinding.js +%%DATADIR%%/resources/inspector/bindings/DebuggerWorkspaceBinding.js +%%DATADIR%%/resources/inspector/bindings/DefaultScriptMapping.js +%%DATADIR%%/resources/inspector/bindings/FileUtils.js +%%DATADIR%%/resources/inspector/bindings/LiveLocation.js +%%DATADIR%%/resources/inspector/bindings/NetworkProject.js +%%DATADIR%%/resources/inspector/bindings/PresentationConsoleMessageHelper.js +%%DATADIR%%/resources/inspector/bindings/ResourceMapping.js +%%DATADIR%%/resources/inspector/bindings/ResourceScriptMapping.js +%%DATADIR%%/resources/inspector/bindings/ResourceUtils.js +%%DATADIR%%/resources/inspector/bindings/SASSSourceMapping.js +%%DATADIR%%/resources/inspector/bindings/StylesSourceMapping.js +%%DATADIR%%/resources/inspector/bindings/TempFile.js %%DATADIR%%/resources/inspector/browser_debugger/browser_debugger_module.js +%%DATADIR%%/resources/inspector/browser_sdk/browser_sdk.js +%%DATADIR%%/resources/inspector/browser_sdk/LogManager.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/common/App.js +%%DATADIR%%/resources/inspector/common/AppProvider.js +%%DATADIR%%/resources/inspector/common/CharacterIdMap.js +%%DATADIR%%/resources/inspector/common/Color.js +%%DATADIR%%/resources/inspector/common/common.js +%%DATADIR%%/resources/inspector/common/Console.js +%%DATADIR%%/resources/inspector/common/ContentProvider.js +%%DATADIR%%/resources/inspector/common/EventTarget.js +%%DATADIR%%/resources/inspector/common/JavaScriptMetaData.js +%%DATADIR%%/resources/inspector/common/Linkifier.js +%%DATADIR%%/resources/inspector/common/Object.js +%%DATADIR%%/resources/inspector/common/ParsedURL.js +%%DATADIR%%/resources/inspector/common/Progress.js +%%DATADIR%%/resources/inspector/common/QueryParamHandler.js +%%DATADIR%%/resources/inspector/common/ResourceType.js +%%DATADIR%%/resources/inspector/common/Revealer.js +%%DATADIR%%/resources/inspector/common/Runnable.js +%%DATADIR%%/resources/inspector/common/SegmentedRange.js +%%DATADIR%%/resources/inspector/common/Settings.js +%%DATADIR%%/resources/inspector/common/StaticContentProvider.js +%%DATADIR%%/resources/inspector/common/StringOutputStream.js +%%DATADIR%%/resources/inspector/common/TextDictionary.js +%%DATADIR%%/resources/inspector/common/Throttler.js +%%DATADIR%%/resources/inspector/common/Trie.js +%%DATADIR%%/resources/inspector/common/UIString.js +%%DATADIR%%/resources/inspector/common/Worker.js +%%DATADIR%%/resources/inspector/components/components.js +%%DATADIR%%/resources/inspector/components/DockController.js +%%DATADIR%%/resources/inspector/components/ImagePreview.js +%%DATADIR%%/resources/inspector/components/JSPresentationUtils.js +%%DATADIR%%/resources/inspector/components/Linkifier.js +%%DATADIR%%/resources/inspector/components/Reload.js +%%DATADIR%%/resources/inspector/components/TargetDetachedDialog.js +%%DATADIR%%/resources/inspector/console_counters/console_counters.js +%%DATADIR%%/resources/inspector/console_counters/WarningErrorCounter.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/css_overview/css_overview_module.js +%%DATADIR%%/resources/inspector/dagre_layout/dagre_layout_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/dom_extension/DOMExtension.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/extensions/ExtensionAPI.js +%%DATADIR%%/resources/inspector/extensions/ExtensionPanel.js +%%DATADIR%%/resources/inspector/extensions/extensions.js +%%DATADIR%%/resources/inspector/extensions/ExtensionServer.js +%%DATADIR%%/resources/inspector/extensions/ExtensionTraceProvider.js +%%DATADIR%%/resources/inspector/extensions/ExtensionView.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/host/host.js +%%DATADIR%%/resources/inspector/host/InspectorFrontendHost.js +%%DATADIR%%/resources/inspector/host/InspectorFrontendHostAPI.js +%%DATADIR%%/resources/inspector/host/Platform.js +%%DATADIR%%/resources/inspector/host/ResourceLoader.js +%%DATADIR%%/resources/inspector/host/UserMetrics.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/media/media_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/persistence/Automapping.js +%%DATADIR%%/resources/inspector/persistence/EditFileSystemView.js +%%DATADIR%%/resources/inspector/persistence/FileSystemWorkspaceBinding.js +%%DATADIR%%/resources/inspector/persistence/IsolatedFileSystem.js +%%DATADIR%%/resources/inspector/persistence/IsolatedFileSystemManager.js +%%DATADIR%%/resources/inspector/persistence/NetworkPersistenceManager.js +%%DATADIR%%/resources/inspector/persistence/persistence.js +%%DATADIR%%/resources/inspector/persistence/PersistenceActions.js +%%DATADIR%%/resources/inspector/persistence/PersistenceImpl.js +%%DATADIR%%/resources/inspector/persistence/PersistenceUtils.js +%%DATADIR%%/resources/inspector/persistence/PlatformFileSystem.js +%%DATADIR%%/resources/inspector/persistence/WorkspaceSettingsTab.js +%%DATADIR%%/resources/inspector/platform/utilities.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/protocol/InspectorBackend.js +%%DATADIR%%/resources/inspector/protocol/NodeURL.js +%%DATADIR%%/resources/inspector/protocol/protocol.js %%DATADIR%%/resources/inspector/quick_open/quick_open_module.js %%DATADIR%%/resources/inspector/resources/resources_module.js +%%DATADIR%%/resources/inspector/root.js +%%DATADIR%%/resources/inspector/Runtime.js %%DATADIR%%/resources/inspector/sdk_test_runner/sdk_test_runner_module.js +%%DATADIR%%/resources/inspector/sdk/ChildTargetManager.js +%%DATADIR%%/resources/inspector/sdk/CompilerSourceMappingContentProvider.js +%%DATADIR%%/resources/inspector/sdk/Connections.js +%%DATADIR%%/resources/inspector/sdk/ConsoleModel.js +%%DATADIR%%/resources/inspector/sdk/CookieModel.js +%%DATADIR%%/resources/inspector/sdk/CookieParser.js +%%DATADIR%%/resources/inspector/sdk/CPUProfileDataModel.js +%%DATADIR%%/resources/inspector/sdk/CPUProfilerModel.js +%%DATADIR%%/resources/inspector/sdk/CSSMatchedStyles.js +%%DATADIR%%/resources/inspector/sdk/CSSMedia.js +%%DATADIR%%/resources/inspector/sdk/CSSMetadata.js +%%DATADIR%%/resources/inspector/sdk/CSSModel.js +%%DATADIR%%/resources/inspector/sdk/CSSProperty.js +%%DATADIR%%/resources/inspector/sdk/CSSRule.js +%%DATADIR%%/resources/inspector/sdk/CSSStyleDeclaration.js +%%DATADIR%%/resources/inspector/sdk/CSSStyleSheetHeader.js +%%DATADIR%%/resources/inspector/sdk/DebuggerModel.js +%%DATADIR%%/resources/inspector/sdk/DOMDebuggerModel.js +%%DATADIR%%/resources/inspector/sdk/DOMModel.js +%%DATADIR%%/resources/inspector/sdk/EmulationModel.js +%%DATADIR%%/resources/inspector/sdk/FilmStripModel.js +%%DATADIR%%/resources/inspector/sdk/HARLog.js +%%DATADIR%%/resources/inspector/sdk/HeapProfilerModel.js +%%DATADIR%%/resources/inspector/sdk/IsolateManager.js +%%DATADIR%%/resources/inspector/sdk/LayerTreeBase.js +%%DATADIR%%/resources/inspector/sdk/LogModel.js +%%DATADIR%%/resources/inspector/sdk/NetworkLog.js +%%DATADIR%%/resources/inspector/sdk/NetworkManager.js +%%DATADIR%%/resources/inspector/sdk/NetworkRequest.js +%%DATADIR%%/resources/inspector/sdk/OverlayModel.js +%%DATADIR%%/resources/inspector/sdk/PaintProfiler.js +%%DATADIR%%/resources/inspector/sdk/PerformanceMetricsModel.js +%%DATADIR%%/resources/inspector/sdk/ProfileTreeModel.js +%%DATADIR%%/resources/inspector/sdk/RemoteObject.js +%%DATADIR%%/resources/inspector/sdk/Resource.js +%%DATADIR%%/resources/inspector/sdk/ResourceTreeModel.js +%%DATADIR%%/resources/inspector/sdk/RuntimeModel.js +%%DATADIR%%/resources/inspector/sdk/ScreenCaptureModel.js +%%DATADIR%%/resources/inspector/sdk/Script.js +%%DATADIR%%/resources/inspector/sdk/sdk.js +%%DATADIR%%/resources/inspector/sdk/SDKModel.js +%%DATADIR%%/resources/inspector/sdk/SecurityOriginManager.js +%%DATADIR%%/resources/inspector/sdk/ServerTiming.js +%%DATADIR%%/resources/inspector/sdk/ServiceWorkerCacheModel.js +%%DATADIR%%/resources/inspector/sdk/ServiceWorkerManager.js +%%DATADIR%%/resources/inspector/sdk/SourceMap.js +%%DATADIR%%/resources/inspector/sdk/SourceMapManager.js +%%DATADIR%%/resources/inspector/sdk/Target.js +%%DATADIR%%/resources/inspector/sdk/TargetManager.js +%%DATADIR%%/resources/inspector/sdk/TracingManager.js +%%DATADIR%%/resources/inspector/sdk/TracingModel.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/services/ServiceManager.js +%%DATADIR%%/resources/inspector/services/services.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/timeline/timeline_module.js %%DATADIR%%/resources/inspector/toolbox.html %%DATADIR%%/resources/inspector/toolbox.js +%%DATADIR%%/resources/inspector/ui/Action.js +%%DATADIR%%/resources/inspector/ui/ActionDelegate.js +%%DATADIR%%/resources/inspector/ui/ActionRegistry.js +%%DATADIR%%/resources/inspector/ui/ARIAUtils.js +%%DATADIR%%/resources/inspector/ui/Context.js +%%DATADIR%%/resources/inspector/ui/ContextFlavorListener.js +%%DATADIR%%/resources/inspector/ui/ContextMenu.js +%%DATADIR%%/resources/inspector/ui/Dialog.js +%%DATADIR%%/resources/inspector/ui/DropTarget.js +%%DATADIR%%/resources/inspector/ui/EmptyWidget.js +%%DATADIR%%/resources/inspector/ui/FilterBar.js +%%DATADIR%%/resources/inspector/ui/FilterSuggestionBuilder.js +%%DATADIR%%/resources/inspector/ui/ForwardedInputEventHandler.js +%%DATADIR%%/resources/inspector/ui/Fragment.js +%%DATADIR%%/resources/inspector/ui/Geometry.js +%%DATADIR%%/resources/inspector/ui/GlassPane.js +%%DATADIR%%/resources/inspector/ui/HistoryInput.js +%%DATADIR%%/resources/inspector/ui/Icon.js +%%DATADIR%%/resources/inspector/ui/Infobar.js +%%DATADIR%%/resources/inspector/ui/InplaceEditor.js +%%DATADIR%%/resources/inspector/ui/InspectorView.js +%%DATADIR%%/resources/inspector/ui/KeyboardShortcut.js +%%DATADIR%%/resources/inspector/ui/ListControl.js +%%DATADIR%%/resources/inspector/ui/ListModel.js +%%DATADIR%%/resources/inspector/ui/ListWidget.js +%%DATADIR%%/resources/inspector/ui/Panel.js +%%DATADIR%%/resources/inspector/ui/PopoverHelper.js +%%DATADIR%%/resources/inspector/ui/ProgressIndicator.js +%%DATADIR%%/resources/inspector/ui/RemoteDebuggingTerminatedScreen.js +%%DATADIR%%/resources/inspector/ui/ReportView.js +%%DATADIR%%/resources/inspector/ui/ResizerWidget.js +%%DATADIR%%/resources/inspector/ui/RootView.js +%%DATADIR%%/resources/inspector/ui/SearchableView.js +%%DATADIR%%/resources/inspector/ui/SegmentedButton.js +%%DATADIR%%/resources/inspector/ui/SettingsUI.js +%%DATADIR%%/resources/inspector/ui/ShortcutRegistry.js +%%DATADIR%%/resources/inspector/ui/ShortcutsScreen.js +%%DATADIR%%/resources/inspector/ui/SoftContextMenu.js +%%DATADIR%%/resources/inspector/ui/SoftDropDown.js +%%DATADIR%%/resources/inspector/ui/SplitWidget.js +%%DATADIR%%/resources/inspector/ui/SuggestBox.js +%%DATADIR%%/resources/inspector/ui/SyntaxHighlighter.js +%%DATADIR%%/resources/inspector/ui/TabbedPane.js +%%DATADIR%%/resources/inspector/ui/TargetCrashedScreen.js +%%DATADIR%%/resources/inspector/ui/TextEditor.js +%%DATADIR%%/resources/inspector/ui/TextPrompt.js +%%DATADIR%%/resources/inspector/ui/ThrottledWidget.js +%%DATADIR%%/resources/inspector/ui/Toolbar.js +%%DATADIR%%/resources/inspector/ui/Tooltip.js +%%DATADIR%%/resources/inspector/ui/Treeoutline.js +%%DATADIR%%/resources/inspector/ui/ui.js +%%DATADIR%%/resources/inspector/ui/UIUtils.js +%%DATADIR%%/resources/inspector/ui/View.js +%%DATADIR%%/resources/inspector/ui/ViewManager.js +%%DATADIR%%/resources/inspector/ui/Widget.js +%%DATADIR%%/resources/inspector/ui/XElement.js +%%DATADIR%%/resources/inspector/ui/XLink.js +%%DATADIR%%/resources/inspector/ui/XWidget.js +%%DATADIR%%/resources/inspector/ui/ZoomManager.js %%DATADIR%%/resources/inspector/web_audio/web_audio_module.js %%DATADIR%%/resources/inspector/worker_app.html %%DATADIR%%/resources/inspector/worker_app.js %%DATADIR%%/resources/inspector/workspace_diff/workspace_diff_module.js +%%DATADIR%%/resources/inspector/workspace/FileManager.js +%%DATADIR%%/resources/inspector/workspace/UISourceCode.js +%%DATADIR%%/resources/inspector/workspace/workspace.js +%%DATADIR%%/resources/inspector/workspace/WorkspaceImpl.js %%DATADIR%%/snapshot_blob.bin +%%NOT_AARCH64%%%%DATADIR%%/libvk_swiftshader.so %%NOT_AARCH64%%%%DATADIR%%/swiftshader/libEGL.so %%NOT_AARCH64%%%%DATADIR%%/swiftshader/libGLESv2.so %%DATADIR%%/v8_context_snapshot.bin %%DEBUG%%%%DATADIR%%/character_data_generator -%%DEBUG%%%%DATADIR%%/libVkLayer_core_validation.so -%%DEBUG%%%%DATADIR%%/libVkLayer_object_lifetimes.so -%%DEBUG%%%%DATADIR%%/libVkLayer_stateless_validation.so -%%DEBUG%%%%DATADIR%%/libVkLayer_thread_safety.so -%%DEBUG%%%%DATADIR%%/libVkLayer_unique_objects.so +%%DEBUG%%%%DATADIR%%/libVkLayer_khronos_validation.so %%DEBUG%%%%DATADIR%%/libimmediate_crash_test_helper.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 Index: branches/2020Q1 =================================================================== --- branches/2020Q1 (revision 523259) +++ branches/2020Q1 (revision 523260) Property changes on: branches/2020Q1 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /head:r523259