Add extremely broken chromium-new

This commit is contained in:
coypu 2016-02-24 04:06:20 +02:00
parent f4c4697b38
commit 42c9fbe9a7
341 changed files with 16945 additions and 0 deletions

3
chromium-new/DESCR Normal file
View File

@ -0,0 +1,3 @@
Chromium is an open-source browser project that aims
to build a safer, faster, and more stable way for all
Internet users to experience the web.

316
chromium-new/Makefile Normal file
View File

@ -0,0 +1,316 @@
# $NetBSD: Makefile,v 1.14 2012/09/24 18:26:53 asau Exp $
DISTNAME= chromium-48.0.2564.116
CATEGORIES= www
MASTER_SITES= http://build.chromium.org/buildbot/official/obsolete/
EXTRACT_SUFX= .tar.xz
MAINTAINER= rxg@NetBSD.org
HOMEPAGE= http://dev.chromium.org/Home
COMMENT= Open-source browser project
LICENSE= modified-bsd
USE_TOOLS+= bash bison flex:pkgsrc gmake pax perl pkg-config
USE_LANGUAGES= c c++
BUILD_DEPENDS+= gperf>=3.0.1:../../devel/gperf
BUILD_DEPENDS+= yasm>=0:../../devel/yasm
ONLY_FOR_PLATFORM= *-*-arm *-*-i386 *-*-x86_64
TOOLS_PLATFORM.flex= # override the platform definition to use pkgsrc's flex.
DATADIR= ${DESTDIR}${PREFIX}/share/chromium
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux" || ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD"
.include "../../audio/alsa-lib/buildlink3.mk"
.endif
GNU_CONFIGURE= yes
CONFIGURE_DIRS= third_party/icu/source
CONFIGURE_DIRS+=third_party/tcmalloc/vendor
CONFIGURE_DIRS+=third_party/yasm/source/patched-yasm
CONFIGURE_ENV+= GYP_DEFINES=${GYP_DEFINES:C/^/-D/}
# Replace config.{guess,sub}
OVERRIDE_DIRDEPTH= 5
GYP_DEFINES+= clang=1
GYP_DEFINES+= OS=${LOWER_OPSYS}
GYP_DEFINES+= buildtype=Official
.if ${OPSYS} != "Linux"
GYP_DEFINES+= disable_nacl=1
.endif
GYP_DEFINES+= disable_sse2=0
GYP_DEFINES+= ffmpeg_branding=${FFMPEG_CODECS}
GYP_DEFINES+= libvpx_path=${BUILDLINK_DIR}/lib
.if ${OPSYS} != "Linux" && ${OPSYS} != "FreeBSD"
GYP_DEFINES+= linux_use_tcmalloc=0
.endif
.if ${OPSYS} == "NetBSD"
GYP_DEFINES+= no_gc_sections=1
.endif
GYP_DEFINES+= python_ver=2.7 # ${PYVERSSUFFIX}
GYP_DEFINES+= linux_breakpad=0
GYP_DEFINES+= use_system_bzip2=1
GYP_DEFINES+= use_system_ffmpeg=0
GYP_DEFINES+= use_system_libevent=1
GYP_DEFINES+= use_system_libjpeg=1
GYP_DEFINES+= use_system_libpng=1
GYP_DEFINES+= use_system_libxml=1
GYP_DEFINES+= use_system_sqlite=0
GYP_DEFINES+= use_system_ssl=0
GYP_DEFINES+= use_system_vpx=1
GYP_DEFINES+= use_system_yasm=0
GYP_DEFINES+= use_system_zlib=1
FFMPEG_ARGS+= --disable-everything
FFMPEG_ARGS+= --disable-network
FFMPEG_ARGS+= --disable-bzlib
FFMPEG_ARGS+= --disable-zlib
FFMPEG_ARGS+= --disable-swscale
FFMPEG_ARGS+= --disable-amd3dnow
FFMPEG_ARGS+= --disable-amd3dnowext
FFMPEG_ARGS+= --enable-shared
FFMPEG_ARGS+= --enable-libvpx
FFMPEG_ARGS+= --enable-encoder=libvpx
.include "options.mk"
BUILD_DIRS= .
MAKE_ENV+= BUILDTYPE=${BUILDTYPE}
#MAKE_ENV+= CC.host=${CC:Q}
MAKE_ENV+= CFLAGS.host=${CFLAGS:M*:Q}
MAKE_ENV+= CXX.host=${CXX:Q}
MAKE_ENV+= CXXFLAGS.host=${CXXFLAGS:M*:Q}
MAKE_ENV+= LINK.host=${CXX:Q}
MAKE_ENV+= LDFLAGS.host=${LDFLAGS:M*:Q}
MAKE_ENV+= AR.host=${AR:Q}
.if ${OPSYS} != "Linux"
# Override the LINK variable for the platforms which do not have flock(1).
MAKE_ENV+= LINK=${CXX:Q}
.endif
BUILDDIR= ${WRKSRC}/out # /${BUILDTYPE}
CHECK_PORTABILITY_SKIP+=gpu/demos/run_demo_ppapi.sh
CHECK_PORTABILITY_SKIP+=third_party/xdg-utils/scripts/xdg-terminal
CHECK_PORTABILITY_SKIP+=third_party/xdg-utils/scripts/xdg-terminal.in
CHECK_PORTABILITY_SKIP+=v8/tools/linux-tick-processor
SUBST_CLASSES+= bash
SUBST_MESSAGE.bash= Fixing bash path
SUBST_STAGE.bash= post-patch
SUBST_FILES.bash+= build/linux/python_arch.sh
SUBST_FILES.bash+= chrome/tools/build/linux/chrome-wrapper
SUBST_FILES.bash+= chrome/tools/build/linux/sed.sh
SUBST_SED.bash= -e 's:/bin/bash:${BASH}:'
SUBST_CLASSES+= path
SUBST_MESSAGE.path= Fixing pkg path
SUBST_STAGE.path= post-patch
SUBST_FILES.path+= base/base_paths_linux.cc
SUBST_FILES.path+= base/process_util_openbsd.cc
SUBST_FILES.path+= build/common.gypi
SUBST_FILES.path+= chrome/chrome_tests.gypi
SUBST_SED.path+= -e 's:/usr/local/:${PREFIX}/:'
SUBST_SED.path+= -e 's:/usr/lib/:${BUILDLINK_DIR}/lib/:'
SUBST_SED.path+= -e 's:/usr/include/:${BUILDLINK_DIR}/include/:'
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 bin share/chromium
INSTALLATION_DIRS+= share/chromium/locales share/chromium/resources
MODPY_ADJ_FILES=build/linux/unbundle/replace_gyp_files.py
BUILDTYPE= Release
MAKE_ENV+= BUILDTYPE=${BUILDTYPE}
pre-configure:
# phajdan-jr: list of things *not* to remove, so maybe the script
# should be called "keep_bundled_libraries.py"
cd ${WRKSRC} && ${PYTHON_CMD} \
./build/linux/unbundle/remove_bundled_libraries.py \
'base/third_party/dmg_fp' \
'base/third_party/dynamic_annotations' \
'base/third_party/icu' \
'base/third_party/nspr' \
'base/third_party/superfasthash' \
'base/third_party/symbolize' \
'base/third_party/valgrind' \
'base/third_party/xdg_mime' \
'base/third_party/xdg_user_dirs' \
'breakpad/src/third_party/curl' \
'chrome/third_party/mock4js' \
'chrome/third_party/mozilla_security_manager' \
'courgette/third_party' \
'crypto/third_party/nss' \
'net/third_party/mozilla_security_manager' \
'net/third_party/nss' \
'third_party/WebKit' \
'third_party/analytics' \
'third_party/angle' \
'third_party/angle/src/third_party' \
'third_party/blanketjs' \
'third_party/brotli' \
'third_party/boringssl' \
'third_party/cacheinvalidation' \
'third_party/catapult' \
'third_party/catapult/third_party/beautifulsoup' \
'third_party/catapult/third_party/py_vulcanize' \
'third_party/catapult/third_party/py_vulcanize/py_vulcanize' \
'third_party/catapult/third_party/py_vulcanize/third_party/rcssmin' \
'third_party/catapult/third_party/py_vulcanize/third_party/rjsmin' \
'third_party/catapult/tracing' \
'third_party/catapult/tracing/third_party' \
'third_party/cld' \
'third_party/cros_system_api' \
'third_party/dom_distiller_js' \
'third_party/dom_distiller_js/dist/proto_gen/third_party/dom_distiller_js' \
'third_party/ffmpeg' \
'third_party/gardiner_mod' \
'third_party/fips181' \
'third_party/flot' \
'third_party/google_input_tools' \
'third_party/google_input_tools/third_party/closure_library' \
'third_party/google_input_tools/third_party/closure_library/third_party/closure' \
'third_party/hunspell' \
'third_party/iccjpeg' \
'third_party/icu/icu.isolate' \
'third_party/jinja2' \
'third_party/jstemplate' \
'third_party/khronos' \
'third_party/leveldatabase' \
'third_party/libaddressinput' \
'third_party/libjingle' \
'third_party/libphonenumber' \
'third_party/libsrtp' \
'third_party/libvpx_new' \
'third_party/libvpx_new/source/libvpx/third_party/x86inc' \
'third_party/libwebm' \
'third_party/libxml/chromium' \
'third_party/libXNVCtrl' \
'third_party/libyuv' \
'third_party/lss' \
'third_party/lzma_sdk' \
'third_party/markupsafe' \
'third_party/mesa' \
'third_party/mojo' \
'third_party/modp_b64' \
'third_party/mt19937ar' \
'third_party/npapi' \
'third_party/openmax_dl' \
'third_party/opus' \
'third_party/ots' \
'third_party/pdfium' \
'third_party/pdfium/third_party' \
'third_party/ply' \
'third_party/polymer' \
'third_party/protobuf' \
'third_party/pywebsocket' \
'third_party/qcms' \
'third_party/qunit' \
'third_party/sfntly' \
'third_party/sinonjs' \
'third_party/skia' \
'third_party/smhasher' \
'third_party/sqlite' \
'third_party/tcmalloc' \
'third_party/tlslite' \
'third_party/usrsctp' \
'third_party/web-animations-js' \
'third_party/webdriver' \
'third_party/webrtc' \
'third_party/widevine' \
'third_party/x86inc' \
'third_party/yasm' \
'third_party/zlib' \
'url/third_party/mozilla' \
'v8/src/third_party/valgrind' \
'v8/src/third_party/fdlibm' \
--do-remove || ${FALSE}
cd ${WRKSRC} && ${PYTHON_CMD} \
./build/linux/unbundle/replace_gyp_files.py \
${GYP_DEFINES:C/^/-D/} || ${FALSE}
# allow removal of third_party/adobe
${ECHO_CMD} > ${WRKSRC}/flapper_version.h
# missing file: file is in -testdata only, but configure stage
# will fail if it's not there. do not break TESTS build while
# allowing regular build without pulling in -testdata.
${TOUCH} ${WRKSRC}/chrome/test/data/webui/i18n_process_css_test.html
# gyp_chromium generates all the Makefiles from gyp
do-configure:
cd ${WRKSRC} && \
build/linux/unbundle/replace_gyp_files.py ${GYP_DEFINES:C/^/-D/} && \
env -i ${CONFIGURE_ENV} ${MODPY_BIN} build/gyp_chromium \
${GYP_DEFS} "--depth=${WRKSRC}"
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_MAN} ${WRKSRC}/out/${BUILDTYPE}/chrome.1 ${STAGEDIR}${MANPREFIX}/man/man1
.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_SCRIPT} ${WRKSRC}/chrome/tools/build/linux/chrome-wrapper \
${STAGEDIR}${DATADIR}
.for p in chrome_100_percent content_resources keyboard_resources resources
${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/${p}.pak \
${STAGEDIR}${DATADIR}
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/chrome \
${STAGEDIR}${DATADIR}
cd ${WRKSRC}/out && \
${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_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/mksnapshot \
${STAGEDIR}${DATADIR}
# END OF THINGS FROM FREEBSD PORTS
${INSTALL_DATA_DIR} ${PREFIX}/chrome
${INSTALL_PROGRAM} ${BUILDDIR}/chrome ${PREFIX}/chrome
${SUBST_PROGRAM} ${FILESDIR}/chrome ${PREFIX}/bin/chrome
${INSTALL_MAN} ${BUILDDIR}/chrome.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${BUILDDIR}/*.pak ${PREFIX}/chrome
${INSTALL_DATA_DIR} ${PREFIX}/chrome/locales
${INSTALL_DATA} ${BUILDDIR}/locales/* ${PREFIX}/chrome/locales
${INSTALL_DATA} ${BUILDDIR}/*.png ${PREFIX}/chrome
${INSTALL_DATA_DIR} ${PREFIX}/chrome/resources
@cp -Rp ${BUILDDIR}/resources/* ${PREFIX}/chrome/resources
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/chrome/resources
.for f in libexif.so protoc icudtl.dat mksnapshot
${INSTALL_DATA} ${BUILDDIR}/${f} ${PREFIX}/chrome
.endfor
.for s in 22 24 48 64 128 256
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/${s}x${s}/apps
${INSTALL_DATA} ${WRKSRC}/chrome/app/theme/chromium/product_logo_${s}.png \
${PREFIX}/share/icons/hicolor/${s}x${s}/apps/chrome.png
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${FILESDIR}/chromium-browser.desktop \
${PREFIX}/share/applications/chromium-browser.desktop
.include "../../security/libgnome-keyring/buildlink3.mk"
.include "../../graphics/libexif/buildlink3.mk"
.include "../../audio/pulseaudio/buildlink3.mk"
.include "../../sysutils/pciutils/buildlink3.mk"
.include "../../devel/GConf/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/nss/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/python/pyversion.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../multimedia/libvpx/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXScrnSaver/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

217
chromium-new/PLIST Normal file
View File

@ -0,0 +1,217 @@
@comment $OpenBSD: PLIST,v 1.56 2016/02/06 18:02:18 robert Exp $
@pkgpath www/chromium,proprietary
bin/chrome
chrome/
@bin chrome/chrome
chrome/chrome_100_percent.pak
chrome/chrome_200_percent.pak
chrome/chrome_material_100_percent.pak
chrome/chrome_material_200_percent.pak
chrome/content_resources.pak
chrome/icudtl.dat
chrome/keyboard_resources.pak
chrome/libexif.so
chrome/locales/
chrome/locales/am.pak
chrome/locales/ar.pak
chrome/locales/bg.pak
chrome/locales/bn.pak
chrome/locales/ca.pak
chrome/locales/cs.pak
chrome/locales/da.pak
chrome/locales/de.pak
chrome/locales/el.pak
chrome/locales/en-GB.pak
chrome/locales/en-US.pak
chrome/locales/es-419.pak
chrome/locales/es.pak
chrome/locales/et.pak
chrome/locales/fa.pak
chrome/locales/fi.pak
chrome/locales/fil.pak
chrome/locales/fr.pak
chrome/locales/gu.pak
chrome/locales/he.pak
chrome/locales/hi.pak
chrome/locales/hr.pak
chrome/locales/hu.pak
chrome/locales/id.pak
chrome/locales/it.pak
chrome/locales/ja.pak
chrome/locales/kn.pak
chrome/locales/ko.pak
chrome/locales/lt.pak
chrome/locales/lv.pak
chrome/locales/ml.pak
chrome/locales/mr.pak
chrome/locales/ms.pak
chrome/locales/nb.pak
chrome/locales/nl.pak
chrome/locales/pl.pak
chrome/locales/pt-BR.pak
chrome/locales/pt-PT.pak
chrome/locales/ro.pak
chrome/locales/ru.pak
chrome/locales/sk.pak
chrome/locales/sl.pak
chrome/locales/sr.pak
chrome/locales/sv.pak
chrome/locales/sw.pak
chrome/locales/ta.pak
chrome/locales/te.pak
chrome/locales/th.pak
chrome/locales/tr.pak
chrome/locales/uk.pak
chrome/locales/vi.pak
chrome/locales/zh-CN.pak
chrome/locales/zh-TW.pak
chrome/mksnapshot
chrome/product_logo_48.png
chrome/protoc
chrome/resources/
chrome/resources.pak
chrome/resources/extension/
chrome/resources/extension/demo/
chrome/resources/extension/demo/library.js
chrome/resources/inspector/
chrome/resources/inspector/Images/
chrome/resources/inspector/Images/applicationCache.png
chrome/resources/inspector/Images/breakpoint.png
chrome/resources/inspector/Images/breakpointConditional.png
chrome/resources/inspector/Images/breakpointConditional_2x.png
chrome/resources/inspector/Images/breakpoint_2x.png
chrome/resources/inspector/Images/checker.png
chrome/resources/inspector/Images/chromeDisabledSelect.png
chrome/resources/inspector/Images/chromeDisabledSelect_2x.png
chrome/resources/inspector/Images/chromeLeft.png
chrome/resources/inspector/Images/chromeMiddle.png
chrome/resources/inspector/Images/chromeRight.png
chrome/resources/inspector/Images/chromeSelect.png
chrome/resources/inspector/Images/chromeSelect_2x.png
chrome/resources/inspector/Images/cookie.png
chrome/resources/inspector/Images/database.png
chrome/resources/inspector/Images/databaseTable.png
chrome/resources/inspector/Images/deleteIcon.png
chrome/resources/inspector/Images/domain.png
chrome/resources/inspector/Images/errorWave.png
chrome/resources/inspector/Images/errorWave_2x.png
chrome/resources/inspector/Images/fileSystem.png
chrome/resources/inspector/Images/forward.png
chrome/resources/inspector/Images/frame.png
chrome/resources/inspector/Images/graphLabelCalloutLeft.png
chrome/resources/inspector/Images/graphLabelCalloutRight.png
chrome/resources/inspector/Images/indexedDB.png
chrome/resources/inspector/Images/indexedDBIndex.png
chrome/resources/inspector/Images/indexedDBObjectStore.png
chrome/resources/inspector/Images/localStorage.png
chrome/resources/inspector/Images/navigationControls.png
chrome/resources/inspector/Images/navigationControls_2x.png
chrome/resources/inspector/Images/notifications.svg
chrome/resources/inspector/Images/paneAddButtons.png
chrome/resources/inspector/Images/paneFilterButtons.png
chrome/resources/inspector/Images/paneRefreshButtons.png
chrome/resources/inspector/Images/popoverArrows.png
chrome/resources/inspector/Images/profileGroupIcon.png
chrome/resources/inspector/Images/profileIcon.png
chrome/resources/inspector/Images/profileSmallIcon.png
chrome/resources/inspector/Images/radioDot.png
chrome/resources/inspector/Images/resourceCSSIcon.png
chrome/resources/inspector/Images/resourceDocumentIcon.png
chrome/resources/inspector/Images/resourceDocumentIconSmall.png
chrome/resources/inspector/Images/resourceJSIcon.png
chrome/resources/inspector/Images/resourcePlainIcon.png
chrome/resources/inspector/Images/resourcePlainIconSmall.png
chrome/resources/inspector/Images/resourcesTimeGraphIcon.png
chrome/resources/inspector/Images/responsiveDesign.png
chrome/resources/inspector/Images/responsiveDesign_2x.png
chrome/resources/inspector/Images/searchNext.png
chrome/resources/inspector/Images/searchPrev.png
chrome/resources/inspector/Images/securityPropertyInfo.svg
chrome/resources/inspector/Images/securityPropertyInsecure.svg
chrome/resources/inspector/Images/securityPropertySecure.svg
chrome/resources/inspector/Images/securityPropertyUnknown.svg
chrome/resources/inspector/Images/securityPropertyWarning.svg
chrome/resources/inspector/Images/securityStateInsecure.svg
chrome/resources/inspector/Images/securityStateNeutral.svg
chrome/resources/inspector/Images/securityStateSecure.svg
chrome/resources/inspector/Images/serviceWorker.svg
chrome/resources/inspector/Images/sessionStorage.png
chrome/resources/inspector/Images/settingsListRemove.png
chrome/resources/inspector/Images/settingsListRemove_2x.png
chrome/resources/inspector/Images/speech.png
chrome/resources/inspector/Images/thumbActiveHoriz.png
chrome/resources/inspector/Images/thumbActiveVert.png
chrome/resources/inspector/Images/thumbHoriz.png
chrome/resources/inspector/Images/thumbHoverHoriz.png
chrome/resources/inspector/Images/thumbHoverVert.png
chrome/resources/inspector/Images/thumbVert.png
chrome/resources/inspector/Images/toolbarButtonGlyphs.png
chrome/resources/inspector/Images/toolbarButtonGlyphs_2x.png
chrome/resources/inspector/Images/toolbarItemSelected.png
chrome/resources/inspector/Images/toolbarResizerHorizontal.png
chrome/resources/inspector/Images/toolbarResizerVertical.png
chrome/resources/inspector/Images/touchCursor.png
chrome/resources/inspector/Images/touchCursor_2x.png
chrome/resources/inspector/Images/updateServiceWorker.svg
chrome/resources/inspector/InspectorBackendCommands.js
chrome/resources/inspector/SupportedCSSProperties.js
chrome/resources/inspector/accessibility_module.js
chrome/resources/inspector/animation_module.js
chrome/resources/inspector/audits_module.js
chrome/resources/inspector/cm_modes_module.js
chrome/resources/inspector/components_lazy_module.js
chrome/resources/inspector/console_module.js
chrome/resources/inspector/devices_module.js
chrome/resources/inspector/devtools.js
chrome/resources/inspector/devtools_extension_api.js
chrome/resources/inspector/diff_module.js
chrome/resources/inspector/elements_module.js
chrome/resources/inspector/emulated_devices/
chrome/resources/inspector/emulated_devices/google-nexus-5-horizontal-default-1x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-horizontal-default-2x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-horizontal-keyboard-1x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-horizontal-keyboard-2x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-horizontal-navigation-1x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-horizontal-navigation-2x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-vertical-default-1x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-vertical-default-2x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-vertical-keyboard-1x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-vertical-keyboard-2x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-vertical-navigation-1x.png
chrome/resources/inspector/emulated_devices/google-nexus-5-vertical-navigation-2x.png
chrome/resources/inspector/emulated_devices_module.js
chrome/resources/inspector/heap_snapshot_worker_module.js
chrome/resources/inspector/inspector.css
chrome/resources/inspector/inspector.html
chrome/resources/inspector/inspector.js
chrome/resources/inspector/layers_module.js
chrome/resources/inspector/network_module.js
chrome/resources/inspector/profiler_module.js
chrome/resources/inspector/promises_module.js
chrome/resources/inspector/resources_module.js
chrome/resources/inspector/screencast_module.js
chrome/resources/inspector/script_formatter_worker_module.js
chrome/resources/inspector/security_module.js
chrome/resources/inspector/settings_module.js
chrome/resources/inspector/snippets_module.js
chrome/resources/inspector/source_frame_module.js
chrome/resources/inspector/sources_module.js
chrome/resources/inspector/temp_storage_shared_worker_module.js
chrome/resources/inspector/timeline_module.js
chrome/resources/inspector/toolbox.css
chrome/resources/inspector/toolbox.html
chrome/resources/inspector/toolbox.js
chrome/resources/inspector/ui_lazy_module.js
chrome/shell_resources.pak
@man man/man1/chrome.1
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
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor

327
chromium-new/distinfo Normal file
View File

@ -0,0 +1,327 @@
$NetBSD$
SHA1 (chromium-48.0.2564.116.tar.xz) = 8c3bc85212c20ce70af4972cd7e9f8e9dcb3d1dc
RMD160 (chromium-48.0.2564.116.tar.xz) = 99f0b5df7a57a1b87949b83dacd8b3a798f88fc4
SHA512 (chromium-48.0.2564.116.tar.xz) = 22c653580c1320b00e56a8b055e215b0292518af52e2d7e24b0610950ef1457a03dcec62b5417dd2e1021a2cf42b06d38b2249ee39d97aa662728f4972c54fc6
Size (chromium-48.0.2564.116.tar.xz) = 432321192 bytes
SHA1 (patch-apps_apps_gypi) = a2a98273aab4671b2b74ff8922c45ec62a22fb7b
SHA1 (patch-apps_ui_views_app_window_frame_view_cc) = 386b9d23ec5fdd08d6ea6747bac223ef8321db4c
SHA1 (patch-ash_display_mirror_window_controller_cc) = 128a1739fe4ea0148f90f6d5ded09d4c9221fd93
SHA1 (patch-base_atomicops_h) = a95b474ad136469fd522460797f422a36ef4e8e5
SHA1 (patch-base_base_gypi) = 5f488c63f4c9e01be1fbd36946b7a87947806167
SHA1 (patch-base_debug_debugger_posix_cc) = dfea1c31173c28ffb0cac670720edc1a11f63195
SHA1 (patch-base_debug_stack_trace_h) = 8bd629190af965378acb59c46649e3c162e22f7b
SHA1 (patch-base_debug_stack_trace_posix_cc) = 129684c79897c1036d0329a04fc8a9bd5c512042
SHA1 (patch-base_message_loop_message_loop_cc) = ea6629ca45948dec699637587093587ee06364cd
SHA1 (patch-base_posix_unix_domain_socket_linux_cc) = 7cc07d0a8f2cfa2c9b006ee90d55501971e92c69
SHA1 (patch-base_process_launch_h) = eec2f80f196e1b6c1dda8305a4e2cfc41b679b20
SHA1 (patch-base_process_memory_cc) = 1569da95cc971e68bf65608c2bdf62e4a37871d3
SHA1 (patch-base_process_process_iterator_openbsd_cc) = a96daafd4bd1f8591d91505d04c03bb1da08ccb9
SHA1 (patch-base_process_process_metrics_h) = 6d22d7916d970ef238b1e0cbc4c9476a1ed6387b
SHA1 (patch-base_process_process_posix_cc) = 73ccef51f5cf5bdff58c6a92d96e26d744b3388f
SHA1 (patch-base_strings_safe_sprintf_cc) = 647d3590d48538c8a7d08bf8254cd5d26c210daf
SHA1 (patch-base_sys_info_openbsd_cc) = f42764b21b5f571d28d8a60f3ec847b6e6da7790
SHA1 (patch-base_sys_info_posix_cc) = e99a7f198d73ec109b9e30b7a05dbf6477eb5c81
SHA1 (patch-base_threading_platform_thread_linux_cc) = b1900ffe36115fc10bb2393622418a3b7e09a10f
SHA1 (patch-base_trace_event_process_memory_dump_h) = c25bf2b4766241b9d3b72aa02c5330611c639709
SHA1 (patch-build_all_gyp) = d7b61631af9a53c6d24a3df6ded17a03ec892225
SHA1 (patch-build_compiler__version.py) = a7a3bc72c51408ea8e65924fa666c30424b4b396
SHA1 (patch-build_filename_rules_gypi) = ef7a1358d688102fd04316f64ab1c6e6830ccc79
SHA1 (patch-chrome_app_chrome_main_delegate_cc) = a723ba5e58fd389bcca47127f4f52938c6cf0599
SHA1 (patch-chrome_app_chrome_main_delegate_h) = 842efc5f8daba0f26232d328a28fcc8383c942a0
SHA1 (patch-chrome_app_chromium_strings_grd) = a0f3f2c26209b4ce76f3c799e170de2dd986fbc6
SHA1 (patch-chrome_app_google_chrome_strings_grd) = 66bd086b555a23c553e9e41113610d7dcb87d53b
SHA1 (patch-chrome_app_resources_locale_settings_grd) = 88df92705bf1a4cae2dbf3486af4310e9c1982eb
SHA1 (patch-chrome_app_theme_theme_resources_grd) = e7e0a7a431685bab4301b103708d601d2b74fa3c
SHA1 (patch-chrome_browser_about_flags_cc) = 6544fb5fb33e7b22d40127e9965defbc548242ad
SHA1 (patch-chrome_browser_after_startup_task_utils_cc) = 249f38a8c528aa03e81e43b31d8dd9af0581e7ac
SHA1 (patch-chrome_browser_browser_resources_grd) = 9f96c4055acb702720d7f4a76cc9723796f50eee
SHA1 (patch-chrome_browser_chrome_browser_main_cc) = 15988cdb15189da5c6cdbb9a9b5bd47252d4c30a
SHA1 (patch-chrome_browser_chrome_browser_main_linux_cc) = 9794f5d40ec15c542307fce00cb8156237ceb682
SHA1 (patch-chrome_browser_chrome_content_browser_client_cc) = db49f002ae589ce6c985c5716d5efc8f2fc7e3a8
SHA1 (patch-chrome_browser_chrome_content_browser_client_h) = 929531a9c853bba300c3071b7b91ff90035d7fd6
SHA1 (patch-chrome_browser_custom_handlers_protocol_handler_registry_cc) = 2e7c5566c3b2676811b7b588d490fdefb76df225
SHA1 (patch-chrome_browser_defaults_cc) = 54ba1666204b4cb89acdf5193ed93ad95f549086
SHA1 (patch-chrome_browser_download_chrome_download_manager_delegate_cc) = 52edf1123472881e375611afe48080cf77685530
SHA1 (patch-chrome_browser_download_download_commands_cc) = d565f1ba0ff877eefddd0e966827c1f34aeb9d91
SHA1 (patch-chrome_browser_download_download_commands_h) = 919cc0243e25cecc9b94b45ac2603854d6c184c3
SHA1 (patch-chrome_browser_download_download_prefs_cc) = 301caa8f50155158bbf9ae5ba5e7ebb8cbfcb97f
SHA1 (patch-chrome_browser_download_download_prefs_h) = 68f31416f4f39375d19fb52ddea60ad37d18088b
SHA1 (patch-chrome_browser_download_download_shelf_context_menu_cc) = f6be15cce64f5c8f830139c7e09bf8770c55183a
SHA1 (patch-chrome_browser_download_download_status_updater_cc) = f5ed58eef48a5d23273103458a41d8c197424dd5
SHA1 (patch-chrome_browser_extensions_api_image_writer_private_image_writer_private_api_cc) = ce19fe5ec52b3f9aa4f0caba6d73bb46ad818888
SHA1 (patch-chrome_browser_extensions_api_messaging_message_service_cc) = 6945e0a6db9b1ea8600050643916066f3fc700c3
SHA1 (patch-chrome_browser_extensions_api_music_manager_private_device_id_linux_cc) = ace5e5e9d6bd58dea0b24e3391c66b99a98df0e9
SHA1 (patch-chrome_browser_extensions_api_omnibox_omnibox_api_cc) = 24588da152d8e56b3c682187bcf6a3e089498dbf
SHA1 (patch-chrome_browser_extensions_bookmark_app_helper_cc) = 1e8fcddfed455060a0e85cd793e8798bfc55d900
SHA1 (patch-chrome_browser_first_run_first_run_internal_posix_cc) = 07100d1900fab27ec9b1a9dd17c83435aa290478
SHA1 (patch-chrome_browser_gpu_gl_string_manager_cc) = 366aa95789d5bc43557f1717c93c69a3d5648e5d
SHA1 (patch-chrome_browser_gpu_gpu_feature_checker_cc) = 4b36b99308cb87c238741e4c08fc572257dfc4d7
SHA1 (patch-chrome_browser_media_galleries_fileapi_mtp_device_map_service_cc) = a435be26cb1a0813df616534c81f5b9da49acb27
SHA1 (patch-chrome_browser_media_galleries_media_file_system_registry_cc) = 9388124d1be0eee59e65bab1982d4693fcbf0e7c
SHA1 (patch-chrome_browser_media_galleries_media_folder_finder_cc) = 7e519cbe2a88cf6eb00b53d0e9b9c8e17aecc98e
SHA1 (patch-chrome_browser_memory_details_cc) = 16405983aff970bed7561fca09616a4e6d5ad2fd
SHA1 (patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc) = 18dbe9a320d54a2d417df9b119163323cb446791
SHA1 (patch-chrome_browser_net_async_dns_field_trial_cc) = 02625e9d3dd78358a9719946bacd680d36473dfa
SHA1 (patch-chrome_browser_notifications_message_center_notification_manager_cc) = 47be0f255a274e01480f2eb58e0d5d5e1e23d113
SHA1 (patch-chrome_browser_platform_util_linux_cc) = 2e4a82b894d5bdd59e561ab0a6e4ef3956e4075e
SHA1 (patch-chrome_browser_process_singleton_posix_cc) = 6540c6a31467df1b46e720893d78e9457b36c67a
SHA1 (patch-chrome_browser_renderer_preferences_util_cc) = 787374606febee3fe99ddeba4c18d94f84a041f5
SHA1 (patch-chrome_browser_resources_plugin_metadata_plugins_linux_json) = 8a1bf3ac7c7a25b50f1aeefbf8f28c186bce3266
SHA1 (patch-chrome_browser_safe_browsing_incident_reporting_incident_reporting_service_cc) = eb682caa650e52ecea26afd94069862b641fd98d
SHA1 (patch-chrome_browser_speech_tts_controller_impl_cc) = f4bdbb9b2b0a76e1b24dee56ba0cb6d6a238e739
SHA1 (patch-chrome_browser_ssl_bad_clock_blocking_page_cc) = 5181ca0f231758e1989be75cd5384d21fa182cad
SHA1 (patch-chrome_browser_sync_profile_sync_components_factory_impl_cc) = 4af8b20eda0523f3dde34da75c7c399f54383324
SHA1 (patch-chrome_browser_task_manager_task_manager_cc) = 4898ab4417febb854a23fcdbf8650c3f06392ada
SHA1 (patch-chrome_browser_tracing_crash_service_uploader_cc) = 88a67080eafa8fa391d6067a0a2260fe1ac26ab5
SHA1 (patch-chrome_browser_ui_app_list_app_list_service_cc) = ad91dbf0ce8833159e2df86b28cefd74adee58a0
SHA1 (patch-chrome_browser_ui_ash_system_tray_delegate_common_cc) = 6231200d136312702f4d98222dc02ab99e3cf963
SHA1 (patch-chrome_browser_ui_aura_chrome_browser_main_extra_parts_aura_cc) = c870fc0454f60fefcbade4d4082e1150f6625538
SHA1 (patch-chrome_browser_ui_aura_chrome_browser_main_extra_parts_aura_h) = 2ad86cdd720b1c547b1ebe549b6b14db9f3a9ddf
SHA1 (patch-chrome_browser_ui_browser_command_controller_cc) = 07e43d5545cc5f33b0c79d7e8fede393b95ddaf4
SHA1 (patch-chrome_browser_ui_browser_view_prefs_cc) = 14538a9b467c81251e8b22a4b31df3f613d44f8b
SHA1 (patch-chrome_browser_ui_exclusive_access_exclusive_access_bubble_cc) = 375bbfbd7980ca5c9c10f2dbd96da9abc5afaade
SHA1 (patch-chrome_browser_ui_panels_panel_manager_cc) = 50c199ce6540c26d4a19079b9523533c22175e4d
SHA1 (patch-chrome_browser_ui_startup_bad_flags_prompt_cc) = 165b7df74d654274a793b7e3669ae3c780ea79ff
SHA1 (patch-chrome_browser_ui_toolbar_app_menu_model_cc) = 39ed45cb82dd2493841b2343c49a6cb9e1111ba4
SHA1 (patch-chrome_browser_ui_views_accelerator_table_cc) = d1b3a09efa0974652e1de3d15e7d0c14e217bea1
SHA1 (patch-chrome_browser_ui_views_app_list_linux_app_list_linux_cc) = cee38e0121a8531e005754d86bbf753e71c03713
SHA1 (patch-chrome_browser_ui_views_apps_chrome_native_app_window_views_aura_cc) = c618db278e8a1605abe124b63ae3c9b4bac871a9
SHA1 (patch-chrome_browser_ui_views_ash_chrome_browser_main_extra_parts_ash_cc) = 80b2031d9da0cea968c7c6a998cf4eca41bff38a
SHA1 (patch-chrome_browser_ui_views_chrome_views_delegate_cc) = eb776e45fcd640bce49d35f27ac5e4de294b107d
SHA1 (patch-chrome_browser_ui_views_chrome_views_delegate_h) = 7700432094ce1a37785ab981162e9f5d5f688052
SHA1 (patch-chrome_browser_ui_views_exclusive_access_bubble_views_cc) = 33415e9e2f848e9d40ec8ace871085c67a65c7d4
SHA1 (patch-chrome_browser_ui_views_first_run_dialog_cc) = 1f43f3ce85eaaf5892bdc23798b8348299325ca6
SHA1 (patch-chrome_browser_ui_views_frame_browser_frame_cc) = 14e526301bc3ef67b72ae7a8b05e836ecfdd1b5f
SHA1 (patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_cc) = b14074dc8b7855ba9f73463234dbf2e0e77ca2f5
SHA1 (patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_layout_cc) = a11e78ce31bb493832a7bde80843b7d4caf55108
SHA1 (patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_platform_specific_cc) = 3291d608f3ca994ab893c1751af6220c36a4be44
SHA1 (patch-chrome_browser_ui_views_frame_system_menu_model_builder_cc) = 24c5cd9b35956347f025f4ac6e2e767d4e08f543
SHA1 (patch-chrome_browser_ui_views_message_center_message_center_frame_view_cc) = 50d434e4a174e78b8ad801830326fa72dcfb4965
SHA1 (patch-chrome_browser_ui_views_panels_panel_frame_view_cc) = ab00646fc5baf11d6020ceadd5c82b5e2e5054e2
SHA1 (patch-chrome_browser_ui_views_tabs_tab_drag_controller_cc) = 4fc6856ac80ad8d28964174b42a9e317f0411bfc
SHA1 (patch-chrome_browser_ui_views_tabs_tab_strip_cc) = 0249994c09d2d2e1b3289f08afc715c41f9e7992
SHA1 (patch-chrome_browser_ui_views_task_manager_view_cc) = 6c89c828db2b4d3c557788961847e0b4818ec384
SHA1 (patch-chrome_browser_ui_webui_about_ui_cc) = f570261e0753d7257a979a2f222339a9746d78d8
SHA1 (patch-chrome_browser_ui_webui_chrome_web_ui_controller_factory_cc) = 5e3d8b26b2bcfb8cc5369a267443dac16dabe3df
SHA1 (patch-chrome_browser_ui_webui_options_browser_options_handler_cc) = 5fe653d1d1840f17c03d191608bfdb824628365c
SHA1 (patch-chrome_browser_ui_webui_options_browser_options_handler_h) = 427d1c0d6ee8ee2c5bc887fd68bb315a67f98308
SHA1 (patch-chrome_browser_web_applications_web_app_cc) = 6e2a887cc9c624dc03fd7d04dc7f87070870c441
SHA1 (patch-chrome_browser_web_applications_web_app_h) = 2e29d2fc4a43c323d19340ecb7e058ab56605bff
SHA1 (patch-chrome_chrome_browser_extensions_gypi) = abe0edac09db893522f6f4a395832e551e80e708
SHA1 (patch-chrome_chrome_browser_gypi) = 0e7094e853ab946f42697d032a239d3a7c7c6bc4
SHA1 (patch-chrome_chrome_browser_ui_gypi) = a13ba112e481d781b4a2c13a3c7bc2801fc039f0
SHA1 (patch-chrome_chrome_common_gypi) = 4c468049a0e87bc0fa26bcbc139b50129260583b
SHA1 (patch-chrome_chrome_exe_gypi) = 63e7250528190df07baeaa1ea68c2b44bf9ca13c
SHA1 (patch-chrome_chrome_utility_gypi) = c57ee47a9a3f1c75e90f3bf0281601f56e758786
SHA1 (patch-chrome_common_chrome_paths_cc) = b142a2b8cd957d649375bed511ecf60d6fc8efd7
SHA1 (patch-chrome_common_chrome_paths_h) = f2f81cdae75d284f03031506d2c2445c98a7a9ce
SHA1 (patch-chrome_common_chrome_paths_internal_h) = f3affe09f488a9b338de64a514abe29596388b4b
SHA1 (patch-chrome_common_chrome_switches_cc) = 1554430d18baba0dfdbba85e5ef89f25c224e9ea
SHA1 (patch-chrome_common_chrome_switches_h) = eba8d6990e30876ff53322cd67c73b6112b8b5ac
SHA1 (patch-chrome_common_extensions_api_schemas_gypi) = b0f1a619beaea53f36ec5bb23d80c00330cc8af2
SHA1 (patch-chrome_common_extensions_command_cc) = 60c213e0d19e15e818dc6d4bd943bc1aa36b73fc
SHA1 (patch-chrome_common_pref_names_cc) = 760e48ae960879ad84de6fcd839371267cee97ab
SHA1 (patch-chrome_common_pref_names_h) = d80fa77ecc5f52950a812ce5d94d883f8feac751
SHA1 (patch-chrome_common_url_constants_cc) = 5fab96137e9fd2225c3cc6f4d2d341ad07149696
SHA1 (patch-chrome_common_url_constants_h) = 870a3fc989ce959ed652fd6d8967d897c2c54c47
SHA1 (patch-chrome_common_variations_fieldtrial_testing_config_gyp) = 99cd9876a16562438ef8b1654cc83b87dc9ad961
SHA1 (patch-chrome_policy_templates_gypi) = f9522beb6273bbcd8b94703ae7687a7133d05925
SHA1 (patch-chrome_renderer_resources_neterror_js) = e8ee00fece51cbd0b3385cb615bb76b30b7e4ecf
SHA1 (patch-chrome_utility_media_galleries_image_metadata_extractor_cc) = 228a256a739959df3f86d9ba540db9264363511c
SHA1 (patch-chromecast_browser_cast_browser_main_parts_cc) = 1274481d5299facf03b75c1e5c66ea72cd97062a
SHA1 (patch-components_audio_modem_modem_impl_cc) = a596a19ed3cdd176f81d587d8949bfda6e8dced8
SHA1 (patch-components_cookie_config_cookie_store_util_cc) = 84fe0a3c9aa58e1f0da459b417f53e13a9c654bd
SHA1 (patch-components_html_viewer_blink_settings_impl_cc) = 1f8248a563661fd271711b3d33f12be67c548df3
SHA1 (patch-components_metrics_drive_metrics_provider_linux_cc) = f73d6b75ddf545564d711d788d9860d9194e0065
SHA1 (patch-components_metrics_gypi) = 5932c1821a0e77ffddb9e9a603f1da50a5d198ae
SHA1 (patch-components_omnibox_browser_omnibox_field_trial_cc) = 62abbe18985df360dd151096cab81280c38ff706
SHA1 (patch-components_policy_resources_policy_templates_json) = 55cc8085d972225d6403b8cbf84c4b5c393c72ca
SHA1 (patch-components_policy_tools_generate_policy_source_py) = 97b27e9cb765b5d970ccaa1e2979e77f2c7b3da6
SHA1 (patch-components_printing_renderer_print_web_view_helper_h) = 77954534b06a685ad08ee458177bf167a31c95c3
SHA1 (patch-components_storage_monitor_gypi) = 52bd6e07a286b8d086cca167dd71448a21a11085
SHA1 (patch-components_storage_monitor_storage_monitor_openbsd_cc) = 574ee9b66c47e69476ecea9b60403195760157e1
SHA1 (patch-components_storage_monitor_storage_monitor_openbsd_h) = 75c718e1b535ae2cfedce3be7d1fcfa7db83b0eb
SHA1 (patch-content_app_content_main_runner_cc) = 2f6d10b06e1a4734e5dd87a2c144c1e13baf6ca2
SHA1 (patch-content_browser_accessibility_browser_accessibility_h) = 26e317a61531a01a795a7fc4094b3968accd6c4c
SHA1 (patch-content_browser_accessibility_browser_accessibility_manager_h) = 4d81d67df5b7b945ff553efa2c82510cc032cb48
SHA1 (patch-content_browser_browser_main_loop_cc) = e4a5ae6cb29cf55ef7dfd83254745b88b7805549
SHA1 (patch-content_browser_child_process_launcher_cc) = 44a9c8c5ee0cffc88df3e5c0e9b2dd1fb444ef00
SHA1 (patch-content_browser_devtools_protocol_color_picker_cc) = 0bc57382c9b4156e2a8f24c4ff7911637a7bb408
SHA1 (patch-content_browser_download_base_file_cc) = c3341c718ba069ff704db8b6a4e7032d3ea350bb
SHA1 (patch-content_browser_download_base_file_linux_cc) = eaa7a2700bc957aed8db9ece2db04d12d52b789a
SHA1 (patch-content_browser_gamepad_gamepad_provider_cc) = 976512b93af553a3643f81ac64cb5041bb94a9d7
SHA1 (patch-content_browser_geolocation_location_arbitrator_impl_cc) = d666c91a784213695b93313773136892e5de7d2b
SHA1 (patch-content_browser_gpu_gpu_data_manager_impl_private_cc) = 32c1dcf88bc928d59d2bf2fdf752fbf13095da37
SHA1 (patch-content_browser_gpu_gpu_internals_ui_cc) = a9a5bb55779543496b895171e8ad2ac8d5ffc9c5
SHA1 (patch-content_browser_power_usage_monitor_impl_cc) = d99b6d741efede2803b33a9d42bb8e63679afafb
SHA1 (patch-content_browser_renderer_host_p2p_socket_dispatcher_host_h) = 9ade8cdd86d0072195418f87e70a85ebd5b8a267
SHA1 (patch-content_browser_renderer_host_render_widget_host_impl_cc) = 08fd30e3be2745a1469aa1eb9e88403ceb784c3d
SHA1 (patch-content_browser_renderer_host_render_widget_host_view_aura_cc) = cd2add3c89e865bfb364720288df1e220b2a59fb
SHA1 (patch-content_browser_time_zone_monitor_cc) = dfd1abe62286c835d5bab1b55cfeebdda6a24ee7
SHA1 (patch-content_common_gpu_gpu_memory_manager_h) = 55bc32d264cf39152656cb9b477277b0ffc5e9d3
SHA1 (patch-content_common_sandbox_init_openbsd_cc) = 9ce35cf6d87308c441c53f85fd5815436a0fe098
SHA1 (patch-content_common_sandbox_init_openbsd_h) = 2a7dea923f5fe36f21a6ae7d4daa50a437582051
SHA1 (patch-content_common_set_process_title_linux_cc) = cad168cb2b93975428326cb4169777121336541b
SHA1 (patch-content_common_set_process_title_linux_h) = a1f32b0983e76d022381c96b14af8ed95932590a
SHA1 (patch-content_content_renderer_gypi) = da0e3e9e3fda00ce139ded758e7121891b904f76
SHA1 (patch-content_gpu_gpu_main_cc) = 6bedfde52607e6452618f586cf9fe9b48fcb6704
SHA1 (patch-content_ppapi_plugin_ppapi_plugin_main_cc) = 974cdaa3eac0ddfbee4e589275dae6255fb99df7
SHA1 (patch-content_public_common_content_switches_cc) = cd28ee3320461272323196774ca9efef1700f2af
SHA1 (patch-content_public_common_content_switches_h) = 1cca9d47e5ac4b847833ac38d33a449e0bba985a
SHA1 (patch-content_renderer_devtools_v8_sampling_profiler_cc) = 913ff39dd25715ca41598579df859c4e0b8ce0f9
SHA1 (patch-content_renderer_render_thread_impl_cc) = 571fe2ea03a0708e4b6c85ea3fa8cdac8c4f91ca
SHA1 (patch-content_renderer_renderer_main_cc) = ae78f5433fce13aa6e410df597ec0e472b581ef2
SHA1 (patch-content_renderer_renderer_main_platform_delegate_linux_cc) = daeaed28ed165249850cc6a2d31fcebca7d7fefd
SHA1 (patch-content_renderer_webscrollbarbehavior_impl_gtkoraura_cc) = e8ed3e9b04ed45573774be67fddbfa595c35ec89
SHA1 (patch-content_utility_utility_main_cc) = 535d865a3382f1bd6b1fe1ff720fd80965a4a7d9
SHA1 (patch-dbus_property_cc) = aac8dbac19c35ef061597d51c92f1c9cd832cc14
SHA1 (patch-device_battery_battery_gyp) = 2d823bf51903e728e7cdf336ac414a19b0cca62c
SHA1 (patch-device_hid_hid_gyp) = 125418900118b96cda93e7b96ab02b898f6b26d1
SHA1 (patch-device_serial_serial_gyp) = ef5a088281067304832941d1758084354b018a44
SHA1 (patch-device_serial_serial_io_handler_posix_cc) = 92c4adea51a2384a762caa990e84d458aa0d473c
SHA1 (patch-device_serial_serial_service_impl_cc) = fe22628a2018968343dadb16bd118977a08cfe81
SHA1 (patch-extensions_browser_api_serial_serial_api_cc) = babb21fd791e98dda90706777e3fe39b4a2007c0
SHA1 (patch-gpu_config_gpu_info_collector_linux_cc) = 6da163f3fdfcf3d3ff5ada94e204628d32717196
SHA1 (patch-gpu_gles2_conform_support_gles2_conform_support_gyp) = e8652f8073d21556e6516db06bb9c57dcd3f685e
SHA1 (patch-gpu_gpu_config_gypi) = 6b5814c1ae639e8e116d875c38dc1eee2b74a741
SHA1 (patch-gpu_tools_tools_gyp) = 130d03ff0912edbaeed39b04951eea56f07c27e8
SHA1 (patch-media_audio_audio_input_controller_cc) = d377f5dae9e4909c05c05a5b74775a03afe12edb
SHA1 (patch-media_audio_audio_manager_cc) = 40b99c7a90351f6c6f1b7bbed4db4376632c81c1
SHA1 (patch-media_audio_audio_manager_h) = 335ea70acacc4090d481cd00458c793c0984672d
SHA1 (patch-media_capture_video_fake_video_capture_device_factory_cc) = 0eb2fd38903b9f391125b050601795e880260f0c
SHA1 (patch-media_capture_video_file_video_capture_device_factory_cc) = f3d13efd4052b2763290c7685e50d4fc2e7ce09d
SHA1 (patch-media_capture_video_video_capture_device_cc) = 4f92b89b1c5105adc7aaae3cd9a63cd55176552f
SHA1 (patch-media_capture_video_video_capture_device_factory_cc) = f9892013e921a76e8c2b2ef28e4d3e423821526e
SHA1 (patch-media_capture_video_video_capture_device_h) = 22bc674aa3ca1f8d9bd226e012240de5787955be
SHA1 (patch-media_media_gyp) = 9d1b5376dd145f4d0d151080922ce0cfda48ad53
SHA1 (patch-native_client_build_compiler_version_py) = 36a1702f0519c2b6574825cf6c84e2e32c8467a1
SHA1 (patch-net_base_address_tracker_linux_h) = e0b778ee12b5113d59497bc2652f361a2cdde3ec
SHA1 (patch-net_base_net_util_cc) = f5addb2332f7a45388848197c3116a2b01dd51b1
SHA1 (patch-net_base_network_change_notifier_cc) = f0bb4b1d4a4df338174cff9d287af74d8f4c5da0
SHA1 (patch-net_base_network_interfaces_posix_cc) = 2c548950da9bb9c5bebc27060bb3e6896c7209e7
SHA1 (patch-net_disk_cache_blockfile_disk_format_h) = a85434714e2898a1a308b930e1ea9562acd37f10
SHA1 (patch-net_dns_address_sorter_posix_cc) = 94f9b8472e05413f6eb10d93b0ab5f5a06f8ef7b
SHA1 (patch-net_dns_host_resolver_proc_cc) = ac8cb0a8b8a71b0b67695e69e6ceeeb47a6e4585
SHA1 (patch-net_http_http_network_session_cc) = 904ddea534197a0328ebb24ed2ab353420af28d0
SHA1 (patch-net_net_common_gypi) = 8b0ff4c411e4df8d6233562aa0a5d1579feaaaf4
SHA1 (patch-net_net_gypi) = 4b71b17cc2f804202535d79e38603d2a3a91e248
SHA1 (patch-net_proxy_proxy_config_service_linux_cc) = 496d53b18e03b505e3dfc4aadf287e6d8ffc40ce
SHA1 (patch-net_proxy_proxy_service_cc) = 8cae0017fd9471d18c9c8e46e04d3e1a1d19d1d8
SHA1 (patch-net_socket_socks5_client_socket_cc) = 2e0c6ceb0904f778964913d033d9c394b476c561
SHA1 (patch-net_tools_get_server_time_get_server_time_cc) = d0ab552e74a23e3d6c58b03e33d14b6580644fbd
SHA1 (patch-net_udp_udp_socket_posix_cc) = 2857e597555618cdf1b865b8de5d20f6def5aaf6
SHA1 (patch-net_url_request_url_request_context_builder_cc) = 9fc8cabeb96f9d56cf32cbd8878d3a5329d2838f
SHA1 (patch-pdf_pdfium_pdfium_engine_cc) = e872b2a97b03b5524683b2168c97d67675db3301
SHA1 (patch-ppapi_shared_impl_private_net_address_private_impl_cc) = 11a1cb636c4066aeff9a27d30e4456a479a87962
SHA1 (patch-printing_backend_cups_helper_cc) = a3cd4669bcd0784640625ee192acb3efef4ef8fa
SHA1 (patch-remoting_remoting_all_gyp) = e69a348f56c158f2a49b8ac7b1a23a0b23fc39b3
SHA1 (patch-remoting_remoting_host_gypi) = 3a457fee325d254ac3932f600636f905b2bcb9d2
SHA1 (patch-skia_ext_SkMemory_new_handler_cpp) = e1748ede734f05ac5081f14e9ed2a75334dc940e
SHA1 (patch-skia_skia_chrome_gypi) = e9bc20864bdaf0a5514715ba8a917f8c85846843
SHA1 (patch-skia_skia_common_gypi) = 2b40cfcfe9875f13350062e5f7031bd306725493
SHA1 (patch-sync_util_get_session_name_cc) = c4509dc7f0b07ca236dcc20c53c12b7c8ec447ff
SHA1 (patch-sync_util_get_session_name_linux_cc) = 4e7379a42804000888295d23309c4e4fa2e7e034
SHA1 (patch-third__party_catapult_third__party_Paste_paste_urlmap.py) = da39a3ee5e6b4b0d3255bfef95601890afd80709
SHA1 (patch-third_party_WebKit_Source_bindings_core_v8_V8ScriptRunner_cpp) = 4f3278861f6203a7d141209f470b8db7f96668eb
SHA1 (patch-third_party_WebKit_Source_core_core_gyp) = edb3d1209b2fcf9655b91bc0e44069e1cc61e9d3
SHA1 (patch-third_party_WebKit_Source_platform_blink_platform_gyp) = 290089a150d9f7fd760e4e5a26d4dc747927cdc9
SHA1 (patch-third_party_WebKit_Source_platform_fonts_SimpleFontData_cpp) = 09e6e4089edd9bbcae5456788d6694f4ce3f6142
SHA1 (patch-third_party_WebKit_Source_platform_heap_StackFrameDepth_cpp) = cfd3f5b45e675f661a70a7b71922cb062ceeca43
SHA1 (patch-third_party_WebKit_Source_platform_heap_ThreadState_cpp) = ac019ce7c4b4b4bc7908d9d06aaeeb318eb62cb8
SHA1 (patch-third_party_WebKit_Source_platform_heap_ThreadState_h) = 539acfa00e976ab7b673ede198a9be6bb235a798
SHA1 (patch-third_party_WebKit_Source_web_PopupMenuImpl_cpp) = 1b4c3f7dd8ecdf197c3ed68afd04601cfa3a1b70
SHA1 (patch-third_party_WebKit_Source_web_web_gyp) = 06407978dde3db75315106edbfc7bb1af2b9749b
SHA1 (patch-third_party_WebKit_Source_wtf_MathExtras_h) = daca99eb6a0927cbb725ab29d39a4983942f01ee
SHA1 (patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_asm) = 2c01287cb6458a46212fda061bb52940926ff5bc
SHA1 (patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_ia32_config_h) = 08006e02acc835c245da640591b8216033dd7740
SHA1 (patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_asm) = cf2e69f5a2946e9b56bbd3040dd403c2a1b9d279
SHA1 (patch-third_party_ffmpeg_chromium_config_Chrome_openbsd_x64_config_h) = 9c4493e198414e6ae0e423b87068f342b5ea5325
SHA1 (patch-third_party_ffmpeg_ffmpeg_generated_gypi) = 15175c2de1838c5641dd00081bd894246e7c7a0c
SHA1 (patch-third_party_ffmpeg_ffmpeg_gyp) = ad5e61682398f48bb1353127c93664e200fa984b
SHA1 (patch-third_party_ffmpeg_libavcodec_x86_cabac_h) = cb1528d562192adaa530e88cf03dc2d6dc8a0ba1
SHA1 (patch-third_party_ffmpeg_libavutil_autorename_libavutil_cpu_c) = 68f65b3f79d0b29c6afcbac83460a0cc78e79547
SHA1 (patch-third_party_ffmpeg_libavutil_cpu_c) = 3a63686ab9832ad4e5a61d800e4e977d3e17c4e8
SHA1 (patch-third_party_ffmpeg_libavutil_mem_c) = de0fcf05784ad1c7f0893180857e1301fdb8f556
SHA1 (patch-third_party_iccjpeg_iccjpeg_gyp) = bbdf151689b866987604145f803290be06fe2504
SHA1 (patch-third_party_libXNVCtrl_NVCtrl_c) = c16a2df29a1a6e387d9f843346f00b1d5cdcf443
SHA1 (patch-third_party_libXNVCtrl_libXNVCtrl_gyp) = a66bc420b99ccf700cfa4d7b11d6aabd25ef2210
SHA1 (patch-third_party_libjingle_libjingle_gyp) = 74afffc19a27c9da965bff5da9ee7e48ff0fb7ad
SHA1 (patch-third_party_libjpeg_turbo_libjpeg_gyp) = 5e6dc6e2fcc40d2cf287f2babcb2855154e6725e
SHA1 (patch-third_party_libusb_src_libusb_core_c) = bbec3ef05c3926e4e8498db5e649542347d30338
SHA1 (patch-third_party_pdfium_build_standalone_gypi) = 75fb884511e6df5c663cbc4eee5b4b0bb36f8e93
SHA1 (patch-third_party_pdfium_core_include_fxcrt_fx_system_h) = 1492e01427a18f9a4c0a1fd9ed5cfc999ec0bf0c
SHA1 (patch-third_party_pdfium_core_src_fxge_ge_fx_ge_linux_cpp) = c0c1f003f188eb0e81aa4c04d4fa436d30381653
SHA1 (patch-third_party_pdfium_fpdfsdk_src_javascript_JS_Value_cpp) = 5a3dfd92c99f2558cfb2bf21252a5a68d5f814db
SHA1 (patch-third_party_pdfium_pdfium_gyp) = dacdbd0cf4feb0151fd2026fca64c4a20997be27
SHA1 (patch-third_party_pdfium_third_party_libopenjpeg20_opj_malloc_h) = 6dd75272092cf514797cd3b6effd45c4b15fa792
SHA1 (patch-third_party_protobuf_src_google_protobuf_stubs_atomicops_h) = ae498290d29142ca009470a280e6b39277dfa42a
SHA1 (patch-third_party_protobuf_src_google_protobuf_stubs_strutil_h) = c22a732020f9961e8f46ed9f2f3cd2d248b75a12
SHA1 (patch-third_party_skia_gyp_ports_gyp) = ea0f2bf37ac2bd88ab508bd5cd96f1cb28a2c2fa
SHA1 (patch-third_party_skia_src_gpu_GrAutoLocaleSetter_h) = 8d422e4f6d54375f098a17413e193771abda56bb
SHA1 (patch-third_party_webrtc_base_base_gyp) = 982281cc8b3b3c02980e5d40a87a1f33a2cd2069
SHA1 (patch-third_party_webrtc_base_httpcommon_cc) = 987aa71231c9285d4cbbebc5d1e6cba841d373cb
SHA1 (patch-third_party_webrtc_base_network_cc) = ceea6a76d7d3079a0bba27648d04a1111320286b
SHA1 (patch-third_party_webrtc_base_physicalsocketserver_cc) = 4301cea4cb10623b414407ed45d1b77b7d877e55
SHA1 (patch-third_party_webrtc_base_stringutils_h) = 3dbf9b71f3fd08d07c8d5716b8405bc210d9c603
SHA1 (patch-third_party_webrtc_build_common_gypi) = 87211788de131393f021a17f936bc7ded7aa8397
SHA1 (patch-third_party_webrtc_system_wrappers_source_atomic32_posix_cc) = a26c68ee817cb909626054d7b175157e7a76e51c
SHA1 (patch-third_party_webrtc_system_wrappers_source_condition_variable_cc) = 5de636543871e7772bf07d2d1b730c42cb01e91a
SHA1 (patch-third_party_webrtc_system_wrappers_source_thread_posix_cc) = 545f642dff52aa509fc05e579269ece41ffaa6da
SHA1 (patch-third_party_webrtc_system_wrappers_source_timestamp_extrapolator_cc) = 7c34e6f62d21b360918e1a5d0d0194c9bb64a08f
SHA1 (patch-third_party_yasm_source_config_openbsd_config_h) = 7e9adef1ffaa8602359e80717eae307bb2ce5934
SHA1 (patch-third_party_yasm_source_config_openbsd_libyasm-stdint_h) = fb026c462e3446645a8425d340da6d573df08a1c
SHA1 (patch-tools_gyp_pylib_gyp_generator_make_py) = b771c9f8a023cec99fb6241ac3de196554c14e34
SHA1 (patch-tools_gyp_pylib_gyp_generator_ninja_py) = d216a6ec667cf9d609c0ebea13dfff363d53d905
SHA1 (patch-ui_accessibility_accessibility_gyp) = c7082c5f84dcd479c2d6359b6267e56d30924c68
SHA1 (patch-ui_accessibility_platform_ax_platform_node_cc) = c298673c5043b2ce2cc578ef4570bac1c7c04572
SHA1 (patch-ui_app_list_app_list_constants_cc) = 2ba236a14421ca87ea551d50a94f98a7bc337338
SHA1 (patch-ui_app_list_app_list_constants_h) = c6973d6e5841a5e65f84b835991acddcd36cbc2d
SHA1 (patch-ui_app_list_app_list_menu_cc) = e829349500bdc25eae7eee9f9360edbf49bb462f
SHA1 (patch-ui_app_list_views_app_list_item_view_cc) = 568d04350ebdd4f544929c878ea9b35517b62494
SHA1 (patch-ui_app_list_views_app_list_view_cc) = b6ede81be2dbbd79a50adfcd19c2e6ce3780a602
SHA1 (patch-ui_base_ime_input_method_factory_cc) = fefd16eae7f8cd4ead2ade4ccfb9d056df338e30
SHA1 (patch-ui_base_resource_resource_bundle_cc) = c1290d6f6f2e3f573e4c79f114f40020261c2529
SHA1 (patch-ui_base_ui_base_gyp) = 2d264f38d26697da1e762a9ba5fc3932d287106a
SHA1 (patch-ui_base_user_activity_user_activity_detector_cc) = 8dd555d51d38e366a7b9b67bfc9a03eff0bd53e3
SHA1 (patch-ui_base_webui_web_ui_util_cc) = a132558563ec216b99b9cad0568b8f637293feb5
SHA1 (patch-ui_events_devices_x11_device_data_manager_x11_cc) = 0421727d06c693d8c12803d3c0ba2c8a9d862927
SHA1 (patch-ui_events_event_switches_cc) = 00558ffbeda919cc9ca9749d6c018a934daeac25
SHA1 (patch-ui_events_event_switches_h) = 349428f29fa9f8d27033cd58ff36b4d49414cfc4
SHA1 (patch-ui_events_keycodes_dom_keycode_converter_cc) = 17dcf8067a36bf596aaafd45666c46a0d6b38ea9
SHA1 (patch-ui_events_x_keysym_to_unicode_h) = 917ff528fd8b5203cfb282ff8e024c7b1b3a7180
SHA1 (patch-ui_gfx_canvas_skia_cc) = 155bef7b2bd2b57d60175fc96013fc67305749ce
SHA1 (patch-ui_gfx_codec_png_codec_cc) = 0bd53edfcc3970a3f6abbc1b1fac5317f30d1549
SHA1 (patch-ui_gfx_gfx_gyp) = 81f037af6264bbd9f5eee42bec4a4586126ff5fa
SHA1 (patch-ui_gl_generate_bindings_py) = d366d93a465742c3e3186b89c52433f38ac9185f
SHA1 (patch-ui_gl_gl_bindings_api_autogen_glx_h) = d39b93af51bc9db2bd644d29ed22451d09d25f4f
SHA1 (patch-ui_gl_gl_bindings_autogen_glx_h) = c6050abbd54ee8968e224a0afad651b6bc77bf06
SHA1 (patch-ui_gl_gl_gyp) = bbabb14ab15f7093bea363744cebe036ce6c4ebc
SHA1 (patch-ui_gl_gl_surface_glx_cc) = ac4b8e96a7bd87269dbd0b230a89145bdda257ab
SHA1 (patch-ui_gl_sync_control_vsync_provider_cc) = eef88aa6b872e439abf53f788669db76d7505caf
SHA1 (patch-ui_message_center_message_center_style_h) = 0b720748fe6e43a606f564bf295d2c23e4f6b507
SHA1 (patch-ui_message_center_views_message_center_button_bar_cc) = 5343cfe7bbb7685a969c37104f5a9a1ed7c8bb57
SHA1 (patch-ui_message_center_views_message_center_button_bar_h) = 98d0bb2a3767c431adb841177054478fc5681179
SHA1 (patch-ui_message_center_views_message_center_view_cc) = bda5720ff379ce81ac4da65bde5395280389758c
SHA1 (patch-ui_message_center_views_notification_view_cc) = a8aa0654d97df87eb0ca3d64f1c5555cf13578b9
SHA1 (patch-ui_resources_ui_resources_grd) = e6a3913a75ce643d11f27ffcb3230d61b29b2dc2
SHA1 (patch-ui_shell_dialogs_select_file_dialog_cc) = 4dcbf7c0a81159b3fc0c8c714111012d2ea20d72
SHA1 (patch-ui_touch_selection_ui_touch_selection_gyp) = bb8350c679a442bd695cbd4050e9b5a86652d305
SHA1 (patch-ui_views_accessibility_native_view_accessibility_cc) = 6e020ca60188f6de769421fe6b87d334fce08521
SHA1 (patch-ui_views_bubble_bubble_delegate_cc) = 5a9438c53dacf12e9f0f87aa357c76a9496a8674
SHA1 (patch-ui_views_controls_button_label_button_cc) = 354c3e821e3cbe0c1ab5bbe81d336d598080a864
SHA1 (patch-ui_views_controls_combobox_combobox_cc) = 338d11d433422d26b7cdb5e6f6417387912a5e32
SHA1 (patch-ui_views_controls_scrollbar_base_scroll_bar_cc) = c9c43d95fc167b77c1800025bcef072bea382051
SHA1 (patch-ui_views_controls_textfield_textfield_cc) = 2e7e71cd41b276f54e2d37a8f905ec19b1c1e768
SHA1 (patch-ui_views_controls_webview_webview_gyp) = 959443af686b1bb88ac581d9114e700d3cfb8042
SHA1 (patch-ui_views_views_delegate_cc) = 8b862fc9cd4c6907150ef60f502e46a583bfb9ec
SHA1 (patch-ui_views_views_delegate_h) = 75294f0dc80772e1ca0c0c2cf37e04ae9151f7ac
SHA1 (patch-ui_views_views_gyp) = 0e59654149b5425c622e572624b90b0f50725638
SHA1 (patch-ui_views_views_switches_cc) = 4c6f396375e8de277aa4183e6cde098914518bfa
SHA1 (patch-ui_views_window_custom_frame_view_cc) = 0ac8793cbf21c9e3fad016bebcef5746738349b6
SHA1 (patch-ui_views_window_dialog_delegate_cc) = a34e24a0f48662f7ee38f165b944ad6110f65abd
SHA1 (patch-ui_webui_resources_js_cr_js) = e7e4e8d2d221a2e0299bbb515be5a87b0c31920e
SHA1 (patch-ui_webui_resources_js_util_js) = d72f6a9562c5884bf3a05a67b408991ad32d2f20
SHA1 (patch-v8_src_base_platform_platform-openbsd_cc) = cd35ecef3a85828e819d1bd7b3c12015b4c19954
SHA1 (patch-v8_src_base_platform_platform-posix_cc) = 107630bc69fbce716bbc23c71f6732baf3783d00
SHA1 (patch-v8_src_log-utils_h) = 40ae4cfa4abf9e31a6b11f958725a489bc53f29a

42
chromium-new/options.mk Normal file
View File

@ -0,0 +1,42 @@
# $NetBSD: options.mk,v 1.3 2011/05/27 13:23:09 rxg Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.chromium
.if ${MACHINE_ARCH} != "arm"
PKG_SUPPORTED_OPTIONS= cups
.endif
PKG_SUPPORTED_OPTIONS+= codecs debug gnome-keyring
PKG_SUGGESTED_OPTIONS= # empty
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mcups)
GYP_DEFINES+= use_cups=1
. include "../../print/cups/buildlink3.mk"
.else
GYP_DEFINES+= use_cups=0
.endif
.if !empty(PKG_OPTIONS:Mcodecs)
FFMPEG_CODECS= Chrome
FFMPEG_ARGS+= --enable-decoder='theora,vorbis,libvpx,pcm_u8,pcm_s16le,pcm_f32le,aac,h264,mp3'
FFMPEG_ARGS+= --enable-demuxer='ogg,matroska,wav,mp3,mov'
FFMPEG_ARGS+= --enable-parser=mpegaudio
.else
FFMPEG_CODECS= Chromium
FFMPEG_ARGS+= --enable-decoder='theora,vorbis,libvpx,pcm_u8,pcm_s16le,pcm_f32le'
FFMPEG_ARGS+= --enable-demuxer='ogg,matroska,wav'
.endif
.if !empty(PKG_OPTIONS:Mdebug)
BUILDTYPE= Debug
.else
BUILDTYPE= Release
.endif
.if !empty(PKG_OPTIONS:Mgnome-keyring)
GYP_DEFINES+= linux_link_gnome_keyring=1
GYP_DEFINES+= use_gnome_keyring=1
. include "../../security/libgnome-keyring/buildlink3.mk"
.else
GYP_DEFINES+= use_gnome_keyring=0
.endif

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-apps_apps_gypi,v 1.2 2014/11/19 21:27:32 robert Exp $
--- apps/apps.gypi.orig.port Wed Nov 19 06:13:07 2014
+++ apps/apps.gypi Wed Nov 19 08:38:24 2014
@@ -19,6 +19,7 @@
'chrome_resources.gyp:theme_resources',
'common/extensions/api/api.gyp:chrome_api',
'../skia/skia.gyp:skia',
+ 'chrome_resources.gyp:theme_resources',
],
'include_dirs': [
'<(INTERMEDIATE_DIR)',

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-apps_ui_views_app_window_frame_view_cc,v 1.2 2015/09/05 16:06:50 robert Exp $
--- apps/ui/views/app_window_frame_view.cc.orig.port Sat Aug 22 21:01:50 2015
+++ apps/ui/views/app_window_frame_view.cc Wed Sep 2 07:31:54 2015
@@ -132,7 +132,7 @@ gfx::Rect AppWindowFrameView::GetBoundsForClientView()
gfx::Rect AppWindowFrameView::GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const {
gfx::Rect window_bounds = client_bounds;
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
// Get the difference between the widget's client area bounds and window
// bounds, and grow |window_bounds| by that amount.
gfx::Insets native_frame_insets =

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-ash_display_mirror_window_controller_cc,v 1.4 2015/10/14 16:42:07 robert Exp $
--- ash/display/mirror_window_controller.cc.orig.port Wed Oct 7 04:42:06 2015
+++ ash/display/mirror_window_controller.cc Wed Oct 14 07:41:12 2015
@@ -256,7 +256,11 @@ void MirrorWindowController::UpdateWindow(
return info.id() == iter->first;
}) == display_info_list.end()) {
CloseAndDeleteHost(iter->second, true);
+#if defined(__llvm__)
+ mirroring_host_info_map_.erase(iter++);
+#else
iter = mirroring_host_info_map_.erase(iter);
+#endif
} else {
++iter;
}

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-base_atomicops_h,v 1.15 2015/04/27 16:38:25 robert Exp $
--- base/atomicops.h.orig.port Wed Apr 15 00:18:48 2015
+++ base/atomicops.h Wed Apr 15 08:32:49 2015
@@ -66,7 +66,11 @@ typedef intptr_t Atomic64;
// Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or
// Atomic64 routines below, depending on your architecture.
+//#if defined(OS_OPENBSD) && defined(__i386__)
+//typedef Atomic32 AtomicWord;
+//#else
typedef intptr_t AtomicWord;
+//#endif
// Atomically execute:
// result = *ptr;

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-base_base_gypi,v 1.39 2016/01/23 18:49:31 robert Exp $
--- base/base.gypi.orig.port Wed Jan 20 21:01:18 2016
+++ base/base.gypi Fri Jan 22 19:58:58 2016
@@ -990,11 +990,17 @@
'process/memory_stubs.cc',
],
'sources/': [
+ ['exclude', '^debug/proc_maps_linux\\.cc$'],
['exclude', '^files/file_path_watcher_linux\\.cc$'],
- ['exclude', '^files/file_path_watcher_stub\\.cc$'],
+ ['exclude', '^files/file_path_watcher_kqueue\\.cc$'],
['exclude', '^files/file_util_linux\\.cc$'],
+ ['exclude', '^process/memory_linux\\.cc$'],
['exclude', '^process/process_linux\\.cc$'],
['exclude', '^sys_info_linux\\.cc$'],
+ ['exclude', '^process/process_iterator_linux\\.cc$'],
+ ['exclude', '^process/process_metrics_linux\\.cc$'],
+ ['exclude', '^files/file_path_watcher_fsevents\\.cc$'],
+ ['exclude', '^files/file_path_watcher_fsevents\\.h$'],
],
}],
# Remove all unnecessary files for build_nexe.py to avoid exceeding

View File

@ -0,0 +1,62 @@
$OpenBSD: patch-base_debug_debugger_posix_cc,v 1.17 2015/10/14 16:42:07 robert Exp $
--- base/debug/debugger_posix.cc.orig.port Wed Oct 7 04:42:06 2015
+++ base/debug/debugger_posix.cc Wed Oct 14 07:41:12 2015
@@ -28,6 +28,10 @@
#include <sys/sysctl.h>
#endif
+#if defined(OS_OPENBSD)
+#include <sys/proc.h>
+#endif
+
#if defined(OS_FREEBSD)
#include <sys/user.h>
#endif
@@ -88,33 +92,38 @@ bool BeingDebugged() {
// Caution: struct kinfo_proc is marked __APPLE_API_UNSTABLE. The source and
// binary interfaces may change.
- struct kinfo_proc info;
- size_t info_size = sizeof(info);
+ struct kinfo_proc *info;
+ size_t info_size;
-#if defined(OS_OPENBSD)
if (sysctl(mib, arraysize(mib), NULL, &info_size, NULL, 0) < 0)
return -1;
+ info = (struct kinfo_proc *)malloc(info_size);
+
mib[5] = (info_size / sizeof(struct kinfo_proc));
-#endif
- int sysctl_result = sysctl(mib, arraysize(mib), &info, &info_size, NULL, 0);
+ int sysctl_result = sysctl(mib, arraysize(mib), info, &info_size, NULL, 0);
DCHECK_EQ(sysctl_result, 0);
if (sysctl_result != 0) {
is_set = true;
being_debugged = false;
- return being_debugged;
+ goto out;
}
// This process is being debugged if the P_TRACED flag is set.
is_set = true;
#if defined(OS_FREEBSD)
- being_debugged = (info.ki_flag & P_TRACED) != 0;
+ being_debugged = (info->ki_flag & P_TRACED) != 0;
+#elif defined(OS_OPENBSD) && !defined(_P_TRACED)
+ being_debugged = (info->p_psflags & PS_TRACED) != 0;
#elif defined(OS_BSD)
- being_debugged = (info.p_flag & P_TRACED) != 0;
+ being_debugged = (info->p_flag & P_TRACED) != 0;
#else
- being_debugged = (info.kp_proc.p_flag & P_TRACED) != 0;
+ being_debugged = (info->kp_proc.p_flag & P_TRACED) != 0;
#endif
+
+out:
+ free(info);
return being_debugged;
}

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-base_debug_stack_trace_h,v 1.2 2013/04/03 08:19:10 robert Exp $
--- base/debug/stack_trace.h.orig.port Fri Mar 22 02:13:43 2013
+++ base/debug/stack_trace.h Tue Apr 2 21:05:17 2013
@@ -12,6 +12,7 @@
#include "build/build_config.h"
#if defined(OS_POSIX)
+#include <sys/stdint.h>
#include <unistd.h>
#endif

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-base_debug_stack_trace_posix_cc,v 1.19 2016/01/23 18:49:31 robert Exp $
--- base/debug/stack_trace_posix.cc.orig.port Wed Jan 20 21:01:18 2016
+++ base/debug/stack_trace_posix.cc Fri Jan 22 19:58:58 2016
@@ -567,6 +567,9 @@ class SandboxSymbolizeHelper {
// for the modules that are loaded in the current process.
// Returns true on success.
bool CacheMemoryRegions() {
+#if defined(OS_OPENBSD)
+ return false;
+#else
// Reads /proc/self/maps.
std::string contents;
if (!ReadProcMaps(&contents)) {
@@ -582,6 +585,7 @@ class SandboxSymbolizeHelper {
is_initialized_ = true;
return true;
+#endif
}
// Opens all object files and caches their file descriptors.
@@ -712,7 +716,7 @@ StackTrace::StackTrace() {
// NOTE: This code MUST be async-signal safe (it's used by in-process
// stack dumping signal handler). NO malloc or stdio is allowed here.
-#if !defined(__UCLIBC__)
+#if !defined(__UCLIBC__) && !defined(OS_BSD)
// Though the backtrace API man page does not list any possible negative
// return values, we take no chance.
count_ = base::saturated_cast<size_t>(backtrace(trace_, arraysize(trace_)));

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-base_message_loop_message_loop_cc,v 1.5 2015/10/14 16:42:07 robert Exp $
--- base/message_loop/message_loop.cc.orig.port Tue Oct 13 21:04:30 2015
+++ base/message_loop/message_loop.cc Wed Oct 14 07:41:12 2015
@@ -205,7 +205,7 @@ scoped_ptr<MessagePump> MessageLoop::CreateMessagePump
// TODO(rvargas): Get rid of the OS guards.
#if defined(USE_GLIB) && !defined(OS_NACL)
typedef MessagePumpGlib MessagePumpForUI;
-#elif defined(OS_LINUX) && !defined(OS_NACL)
+#elif defined(OS_BSD) && !defined(OS_NACL)
typedef MessagePumpLibevent MessagePumpForUI;
#endif

View File

@ -0,0 +1,38 @@
$OpenBSD: patch-base_posix_unix_domain_socket_linux_cc,v 1.5 2015/09/05 16:06:50 robert Exp $
--- base/posix/unix_domain_socket_linux.cc.orig.port Sat Aug 22 21:01:50 2015
+++ base/posix/unix_domain_socket_linux.cc Wed Sep 2 07:31:54 2015
@@ -5,7 +5,10 @@
#include "base/posix/unix_domain_socket_linux.h"
#include <errno.h>
+#include <sys/types.h>
+#include <sys/param.h>
#include <sys/socket.h>
+#include <sys/ucred.h>
#include <unistd.h>
#include <vector>
@@ -25,6 +28,14 @@ namespace base {
const size_t UnixDomainSocket::kMaxFileDescriptors = 16;
+#ifndef SCM_CREDENTIALS
+# define SCM_CREDENTIALS 0x9001
+#endif
+
+#ifndef SO_PASSCRED
+# define SO_PASSCRED 0x9002
+#endif
+
#if !defined(OS_NACL_NONSFI)
// Creates a connected pair of UNIX-domain SOCK_SEQPACKET sockets, and passes
// ownership of the newly allocated file descriptors to |one| and |two|.
@@ -150,7 +161,7 @@ ssize_t UnixDomainSocket::RecvMsgWithFlags(int fd,
cmsg->cmsg_type == SCM_CREDENTIALS) {
DCHECK_EQ(payload_len, sizeof(struct ucred));
DCHECK_EQ(pid, -1);
- pid = reinterpret_cast<struct ucred*>(CMSG_DATA(cmsg))->pid;
+ pid = getpid();
}
#endif
}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-base_process_launch_h,v 1.2 2015/04/27 16:38:25 robert Exp $
--- base/process/launch.h.orig.port Wed Apr 15 00:31:20 2015
+++ base/process/launch.h Wed Apr 15 08:32:50 2015
@@ -131,7 +131,7 @@ struct BASE_EXPORT LaunchOptions {
// will be the same as its pid.
bool new_process_group;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
// If non-zero, start the process using clone(), using flags as provided.
// Unlike in clone, clone_flags may not contain a custom termination signal
// that is sent to the parent when the child dies. The termination signal will

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-base_process_memory_cc,v 1.3 2016/01/23 18:49:31 robert Exp $
--- base/process/memory.cc.orig.port Sat Jan 23 10:35:17 2016
+++ base/process/memory.cc Sat Jan 23 10:35:24 2016
@@ -25,7 +25,7 @@ void TerminateBecauseOutOfMemory(size_t size) {
}
// Defined in memory_mac.mm for Mac.
-#if !defined(OS_MACOSX)
+#if !defined(OS_MACOSX) && !defined(OS_BSD)
bool UncheckedCalloc(size_t num_items, size_t size, void** result) {
const size_t alloc_size = num_items * size;

View File

@ -0,0 +1,92 @@
$OpenBSD: patch-base_process_process_handle_openbsd_cc,v 1.1 2013/10/29 06:51:34 robert Exp $
--- base/process/process_handle_openbsd.cc.orig.port Fri Oct 18 20:52:30 2013
+++ base/process/process_handle_openbsd.cc Fri Oct 18 23:28:42 2013
@@ -4,6 +4,8 @@
#include "base/process/process_handle.h"
+#include <sys/param.h>
+#include <sys/proc.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <unistd.h>
@@ -11,39 +13,64 @@
namespace base {
ProcessId GetParentProcessId(ProcessHandle process) {
- struct kinfo_proc info;
+ struct kinfo_proc *info;
size_t length;
+ pid_t ppid;
int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process,
sizeof(struct kinfo_proc), 0 };
if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0)
return -1;
- mib[5] = (length / sizeof(struct kinfo_proc));
+ info = (struct kinfo_proc *)malloc(length);
- if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0)
+ if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0)
return -1;
- return info.p_ppid;
+ info = (struct kinfo_proc *)malloc(length);
+
+ mib[5] = (length / sizeof(struct kinfo_proc));
+
+ if (sysctl(mib, arraysize(mib), info, &length, NULL, 0) < 0) {
+ ppid = -1;
+ goto out;
+ }
+
+ ppid = info->p_ppid;
+
+out:
+ free(info);
+ return ppid;
}
FilePath GetProcessExecutablePath(ProcessHandle process) {
- struct kinfo_proc kp;
- size_t len;
+ struct kinfo_proc *info;
+ size_t length;
+ char *path = NULL;
int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process,
sizeof(struct kinfo_proc), 0 };
- if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) == -1)
+ if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) == -1)
return FilePath();
- mib[5] = (len / sizeof(struct kinfo_proc));
- if (sysctl(mib, arraysize(mib), &kp, &len, NULL, 0) < 0)
- return FilePath();
- if ((kp.p_flag & P_SYSTEM) != 0)
- return FilePath();
- if (strcmp(kp.p_comm, "chrome") == 0)
- return FilePath(kp.p_comm);
- return FilePath();
+ info = (struct kinfo_proc *)malloc(length);
+
+ mib[5] = (length / sizeof(struct kinfo_proc));
+
+ if (sysctl(mib, arraysize(mib), info, &length, NULL, 0) < 0)
+ goto out;
+
+ if ((info->p_flag & P_SYSTEM) != 0)
+ goto out;
+
+ if (strcmp(info->p_comm, "chrome") == 0) {
+ path = info->p_comm;
+ goto out;
+ }
+
+out:
+ free(info);
+ return FilePath(path);
}
} // namespace base

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-base_process_process_iterator_openbsd_cc,v 1.1 2013/09/29 19:04:00 robert Exp $
--- base/process/process_iterator_openbsd.cc.orig.port Sat Sep 28 19:45:12 2013
+++ base/process/process_iterator_openbsd.cc Sat Sep 28 19:46:09 2013
@@ -5,6 +5,9 @@
#include "base/process/process_iterator.h"
#include <errno.h>
+#include <unistd.h>
+#include <sys/param.h>
+#include <sys/proc.h>
#include <sys/sysctl.h>
#include "base/logging.h"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-base_process_process_metrics_h,v 1.2 2016/01/23 18:49:31 robert Exp $
--- base/process/process_metrics.h.orig.port Wed Jan 20 21:01:18 2016
+++ base/process/process_metrics.h Fri Jan 22 19:58:58 2016
@@ -240,7 +240,7 @@ BASE_EXPORT void SetFdLimit(unsigned int max_descripto
#endif // defined(OS_POSIX)
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \
- defined(OS_ANDROID)
+ defined(OS_ANDROID) || defined(OS_BSD)
// Data about system-wide memory consumption. Values are in KB. Available on
// Windows, Mac, Linux, Android and Chrome OS.
//

View File

@ -0,0 +1,130 @@
$OpenBSD: patch-base_process_process_metrics_openbsd_cc,v 1.5 2015/01/22 11:16:40 robert Exp $
--- base/process/process_metrics_openbsd.cc.orig.port Wed Dec 3 03:13:19 2014
+++ base/process/process_metrics_openbsd.cc Sat Dec 6 12:13:17 2014
@@ -4,8 +4,19 @@
#include "base/process/process_metrics.h"
+#include "base/files/file_util.h"
+#include "base/logging.h"
+#include "base/process/internal_linux.h"
+#include "base/strings/string_number_conversions.h"
+#include "base/strings/string_split.h"
+#include "base/strings/string_tokenizer.h"
+#include "base/strings/string_util.h"
+#include "base/sys_info.h"
+#include "base/threading/thread_restrictions.h"
+
#include <sys/param.h>
#include <sys/sysctl.h>
+#include <sys/vmmeter.h>
namespace base {
@@ -15,20 +26,27 @@ ProcessMetrics* ProcessMetrics::CreateProcessMetrics(P
}
size_t ProcessMetrics::GetPagefileUsage() const {
- struct kinfo_proc info;
- size_t length;
+ struct kinfo_proc *info;
+ size_t length, pfu;
int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_,
sizeof(struct kinfo_proc), 0 };
if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0)
return -1;
+ info = (struct kinfo_proc *)malloc(length);
+
mib[5] = (length / sizeof(struct kinfo_proc));
- if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0)
- return -1;
+ if (sysctl(mib, arraysize(mib), info, &length, NULL, 0) < 0) {
+ pfu = -1;
+ goto out;
+ }
+ pfu = (info->p_vm_tsize + info->p_vm_dsize + info->p_vm_ssize);
- return (info.p_vm_tsize + info.p_vm_dsize + info.p_vm_ssize);
+out:
+ free(info);
+ return pfu;
}
size_t ProcessMetrics::GetPeakPagefileUsage() const {
@@ -36,20 +54,28 @@ size_t ProcessMetrics::GetPeakPagefileUsage() const {
}
size_t ProcessMetrics::GetWorkingSetSize() const {
- struct kinfo_proc info;
- size_t length;
+ struct kinfo_proc *info;
+ size_t length, wss;
int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process_,
sizeof(struct kinfo_proc), 0 };
if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0)
return -1;
+ info = (struct kinfo_proc *)malloc(length);
+
mib[5] = (length / sizeof(struct kinfo_proc));
- if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0)
- return -1;
+ if (sysctl(mib, arraysize(mib), info, &length, NULL, 0) < 0) {
+ wss = -1;
+ goto out;
+ }
- return info.p_vm_rssize * getpagesize();
+ wss = (info->p_vm_rssize * getpagesize());
+
+out:
+ free(info);
+ return wss;
}
size_t ProcessMetrics::GetPeakWorkingSetSize() const {
@@ -89,20 +115,27 @@ bool ProcessMetrics::GetIOCounters(IoCounters* io_coun
}
static int GetProcessCPU(pid_t pid) {
- struct kinfo_proc info;
+ struct kinfo_proc *info;
size_t length;
+ int pctcpu = 0;
int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, pid,
sizeof(struct kinfo_proc), 0 };
if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0)
return -1;
+ info = (struct kinfo_proc *)malloc(length);
+
mib[5] = (length / sizeof(struct kinfo_proc));
- if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0)
- return 0;
+ if (sysctl(mib, arraysize(mib), info, &length, NULL, 0) < 0)
+ goto out;
- return info.p_pctcpu;
+ pctcpu = info->p_pctcpu;
+
+out:
+ free(info);
+ return pctcpu;
}
double ProcessMetrics::GetCPUUsage() {
@@ -116,7 +149,6 @@ double ProcessMetrics::GetCPUUsage() {
}
int64 time_delta = (time - last_cpu_time_).InMicroseconds();
- DCHECK_NE(time_delta, 0);
if (time_delta == 0)
return 0;

View File

@ -0,0 +1,64 @@
$OpenBSD: patch-base_process_process_posix_cc,v 1.5 2016/01/23 18:49:31 robert Exp $
--- base/process/process_posix.cc.orig.port Wed Jan 20 21:01:18 2016
+++ base/process/process_posix.cc Fri Jan 22 19:58:58 2016
@@ -17,9 +17,13 @@
#if defined(OS_MACOSX)
#include <sys/event.h>
#endif
+#include <signal.h>
namespace {
+const int kBackgroundPriority = 5;
+const int kForegroundPriority = 0;
+
#if !defined(OS_NACL_NONSFI)
bool WaitpidWithTimeout(base::ProcessHandle handle,
@@ -256,12 +260,10 @@ Process Process::DeprecatedGetProcessFromHandle(Proces
return Process(handle);
}
-#if !defined(OS_LINUX)
// static
bool Process::CanBackgroundProcesses() {
- return false;
+ return true;
}
-#endif // !defined(OS_LINUX)
bool Process::IsValid() const {
return process_ != kNullProcessHandle;
@@ -357,21 +359,23 @@ bool Process::WaitForExitWithTimeout(TimeDelta timeout
return WaitForExitWithTimeoutImpl(Handle(), exit_code, timeout);
}
-#if !defined(OS_LINUX)
bool Process::IsProcessBackgrounded() const {
// See SetProcessBackgrounded().
DCHECK(IsValid());
- return false;
+ return GetPriority() == kBackgroundPriority;
}
-bool Process::SetProcessBackgrounded(bool value) {
- // Not implemented for POSIX systems other than Linux. With POSIX, if we were
- // to lower the process priority we wouldn't be able to raise it back to its
- // initial priority.
- NOTIMPLEMENTED();
- return false;
+bool Process::SetProcessBackgrounded(bool background) {
+ DCHECK(IsValid());
+
+ if (!CanBackgroundProcesses())
+ return false;
+
+ int priority = background ? kBackgroundPriority : kForegroundPriority;
+ int result = setpriority(PRIO_PROCESS, process_, priority);
+ DPCHECK(result == 0);
+ return result == 0;
}
-#endif // !defined(OS_LINUX)
int Process::GetPriority() const {
DCHECK(IsValid());

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-base_strings_safe_sprintf_cc,v 1.3 2016/01/23 18:49:31 robert Exp $
--- base/strings/safe_sprintf.cc.orig.port Wed Jan 20 21:01:18 2016
+++ base/strings/safe_sprintf.cc Fri Jan 22 19:58:58 2016
@@ -118,7 +118,7 @@ class Buffer {
// doesn't really implement constexpr yet so it doesn't complain, but clang
// does.
#if __cplusplus >= 201103 && !defined(OS_ANDROID) && !defined(OS_MACOSX) && \
- !defined(OS_IOS) && !(defined(__clang__) && defined(OS_WIN))
+ !defined(OS_IOS) && !(defined(__clang__) && defined(OS_WIN)) && !defined(OS_BSD)
COMPILE_ASSERT(kSSizeMaxConst == \
static_cast<size_t>(std::numeric_limits<ssize_t>::max()),
kSSizeMax_is_the_max_value_of_an_ssize_t);

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-base_sys_info_openbsd_cc,v 1.8 2016/01/06 21:46:44 robert Exp $
--- base/sys_info_openbsd.cc.orig.port Tue Dec 15 21:05:04 2015
+++ base/sys_info_openbsd.cc Sun Jan 3 22:19:58 2016
@@ -26,6 +26,8 @@ int64 AmountOfMemory(int pages_name) {
namespace base {
+int64 aofpmem = 0;
+
// static
int SysInfo::NumberOfProcessors() {
int mib[] = { CTL_HW, HW_NCPU };
@@ -40,12 +42,11 @@ int SysInfo::NumberOfProcessors() {
// static
int64 SysInfo::AmountOfPhysicalMemory() {
- return AmountOfMemory(_SC_PHYS_PAGES);
-}
+ // pledge(2)
+ if (!aofpmem)
+ aofpmem = AmountOfMemory(_SC_PHYS_PAGES);
-// static
-int64 SysInfo::AmountOfAvailablePhysicalMemory() {
- return AmountOfMemory(_SC_AVPHYS_PAGES);
+ return aofpmem;
}
// static

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-base_sys_info_posix_cc,v 1.5 2014/11/19 21:27:32 robert Exp $
--- base/sys_info_posix.cc.orig.port Wed Nov 19 05:52:58 2014
+++ base/sys_info_posix.cc Wed Nov 19 08:38:24 2014
@@ -87,6 +87,17 @@ int64 SysInfo::AmountOfVirtualMemory() {
}
// static
+int64 SysInfo::AmountOfAvailablePhysicalMemory() {
+ long available_pages = sysconf(_SC_AVPHYS_PAGES);
+ long page_size = sysconf(_SC_PAGE_SIZE);
+ if (available_pages == -1 || page_size == -1) {
+ NOTREACHED();
+ return 0;
+ }
+ return static_cast<int64>(available_pages) * page_size;
+}
+
+// static
int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) {
base::ThreadRestrictions::AssertIOAllowed();

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-base_threading_platform_thread_linux_cc,v 1.8 2015/10/14 16:42:07 robert Exp $
--- base/threading/platform_thread_linux.cc.orig.port Wed Oct 7 04:42:07 2015
+++ base/threading/platform_thread_linux.cc Wed Oct 14 07:41:12 2015
@@ -15,7 +15,9 @@
#if !defined(OS_NACL)
#include <pthread.h>
+#if !defined(OS_BSD)
#include <sys/prctl.h>
+#endif
#include <sys/types.h>
#include <unistd.h>
#endif
@@ -79,7 +81,7 @@ void PlatformThread::SetName(const std::string& name)
ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name);
tracked_objects::ThreadData::InitializeThreadContext(name);
-#if !defined(OS_NACL)
+#if !defined(OS_NACL) && !defined(OS_BSD)
// On linux we can get the thread names to show up in the debugger by setting
// the process name for the LWP. We don't want to do this for the main
// thread because that would rename the process, causing tools like killall

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-base_trace_event_process_memory_dump_h,v 1.1 2016/01/23 18:49:31 robert Exp $
--- base/trace_event/process_memory_dump.h.orig.port Fri Jan 22 23:16:20 2016
+++ base/trace_event/process_memory_dump.h Fri Jan 22 23:16:29 2016
@@ -22,7 +22,7 @@
// resident memory.
// TODO(crbug.com/542671): COUNT_RESIDENT_BYTES_SUPPORTED is disabled on iOS
// as it cause memory corruption on iOS 9.0+ devices.
-#if defined(OS_POSIX) && !defined(OS_NACL) && !defined(OS_IOS)
+#if defined(OS_POSIX) && !defined(OS_NACL) && !defined(OS_IOS) && !defined(OS_BSD)
#define COUNT_RESIDENT_BYTES_SUPPORTED
#endif

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-build_all_gyp,v 1.28 2016/01/23 18:49:31 robert Exp $
--- build/all.gyp.orig.port Wed Jan 20 21:01:18 2016
+++ build/all.gyp Fri Jan 22 19:58:58 2016
@@ -352,7 +352,6 @@
'../media/midi/midi.gyp:midi_unittests',
'../mojo/mojo.gyp:mojo',
'../ppapi/ppapi_internal.gyp:ppapi_unittests',
- '../remoting/remoting.gyp:remoting_unittests',
'../third_party/WebKit/public/all.gyp:all_blink',
'../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_unittests',
'../third_party/leveldatabase/leveldatabase.gyp:env_chromium_unittests',

View File

@ -0,0 +1,106 @@
$OpenBSD: patch-build_common_gypi,v 1.42 2016/01/23 18:49:31 robert Exp $
--- build/common.gypi.orig.port Wed Jan 20 21:01:18 2016
+++ build/common.gypi Fri Jan 22 19:58:58 2016
@@ -105,7 +105,7 @@
'conditions': [
# Windows and Linux (including Chrome OS) use Aura and Ash.
- ['OS=="win" or OS=="linux"', {
+ ['OS=="win" or OS=="linux" or OS=="openbsd"', {
'use_ash%': 1,
'use_aura%': 1,
}],
@@ -229,12 +229,12 @@
}],
# Enable HiDPI on Mac OS, Windows and Linux (including Chrome OS).
- ['OS=="mac" or OS=="win" or OS=="linux"', {
+ ['OS=="mac" or OS=="win" or OS=="linux" or OS=="openbsd"', {
'enable_hidpi%': 1,
}],
# Enable Top Chrome Material Design on Chrome OS, Windows, and Linux.
- ['chromeos==1 or OS=="win" or OS=="linux"', {
+ ['chromeos==1 or OS=="win" or OS=="linux" or OS=="openbsd"', {
'enable_topchrome_md%': 1,
}],
@@ -761,7 +761,7 @@
}],
# DBus usage.
- ['OS=="linux" and embedded==0', {
+ ['(OS=="linux" or OS=="openbsd") and embedded==0', {
'use_dbus%': 1,
}, {
'use_dbus%': 0,
@@ -868,7 +868,7 @@
# Use GPU accelerated cross process image transport by default
# on linux builds with the Aura window manager
- ['use_aura==1 and OS=="linux"', {
+ ['use_aura==1 and (OS=="linux" or OS=="openbsd")', {
'ui_compositor_image_transport%': 1,
}, {
'ui_compositor_image_transport%': 0,
@@ -974,7 +974,7 @@
# --help for more information. Meant to be overriden with GYP_DEFINES.
# TODO(maruel): Remove the conditions as more configurations are
# supported.
- ['OS!="ios" and OS!="android" and chromeos==0', {
+ ['OS!="ios" and OS!="android" and chromeos==0 and OS!="openbsd"', {
'test_isolation_mode%': 'check',
}, {
'test_isolation_mode%': 'noop',
@@ -990,7 +990,7 @@
}, {
'use_openmax_dl_fft%': 0,
}],
- ['OS=="win" or OS=="linux"', {
+ ['OS=="win" or OS=="linux" or OS=="openbsd"', {
'enable_mdns%' : 1,
}],
@@ -1617,7 +1617,7 @@
['OS=="win"', {
'windows_driver_kit_path%': '$(WDK_DIR)',
}],
- ['os_posix==1 and OS!="mac" and OS!="ios"', {
+ ['os_posix==1 and OS!="mac" and OS!="ios" and OS!="openbsd"', {
'conditions': [
['target_arch=="mipsel" or target_arch=="mips64el"', {
'werror%': '',
@@ -3609,6 +3609,13 @@
},
},
'conditions': [
+ ['OS=="openbsd"', {
+ 'target_defaults': {
+ 'cflags': [
+ '-Wno-unknown-warning-option',
+ ],
+ },
+ }],
['os_posix==1', {
'target_defaults': {
'ldflags': [
@@ -4695,7 +4702,7 @@
}],
# FreeBSD-specific options; note that most FreeBSD options are set above,
# with Linux.
- ['OS=="freebsd"', {
+ ['OS=="openbsd"', {
'target_defaults': {
'ldflags': [
'-Wl,--no-keep-memory',
@@ -5980,8 +5987,8 @@
['clang==1 and ((OS!="mac" and OS!="ios") or clang_xcode==0) '
'and OS!="win"', {
'make_global_settings': [
- ['CC', '<(make_clang_dir)/bin/clang'],
- ['CXX', '<(make_clang_dir)/bin/clang++'],
+ ['CC', '/usr/local/bin/clang'],
+ ['CXX', '/usr/local/bin/clang++'],
['CC.host', '$(CC)'],
['CXX.host', '$(CXX)'],
],

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-build_filename_rules_gypi,v 1.1 2014/07/20 17:22:33 robert Exp $
--- build/filename_rules.gypi.orig.port Fri Jul 18 23:35:30 2014
+++ build/filename_rules.gypi Fri Jul 18 23:41:13 2014
@@ -85,7 +85,7 @@
['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
}],
- ['<(use_aura)==0 or OS!="linux" or >(nacl_untrusted_build)==1', {
+ ['<(use_aura)==0 or (OS!="linux" and OS!="openbsd") or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_auralinux\\.(h|cc)$'] ]
}],
['<(use_ash)==0 or >(nacl_untrusted_build)==1', {

View File

@ -0,0 +1,84 @@
$OpenBSD: patch-chrome_app_chrome_main_delegate_cc,v 1.27 2016/01/23 18:49:31 robert Exp $
--- chrome/app/chrome_main_delegate.cc.orig.port Wed Jan 20 21:01:18 2016
+++ chrome/app/chrome_main_delegate.cc Fri Jan 22 19:58:58 2016
@@ -76,7 +76,7 @@
#include "components/crash/content/app/crash_reporter_client.h"
#endif
-#if !defined(DISABLE_NACL) && defined(OS_LINUX)
+#if !defined(DISABLE_NACL) && defined(OS_LINUX) && !defined(OS_BSD)
#include "components/nacl/common/nacl_paths.h"
#include "components/nacl/zygote/nacl_fork_delegate_linux.h"
#endif
@@ -107,7 +107,7 @@
#include "components/crash/content/app/breakpad_linux.h"
#endif
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
#include "base/environment.h"
#endif
@@ -145,7 +145,7 @@ base::LazyInstance<ChromeContentBrowserClient> g_chrom
LAZY_INSTANCE_INITIALIZER;
#endif
-#if defined(OS_POSIX)
+#if defined(OS_POSIX) && !defined(OS_BSD)
base::LazyInstance<ChromeCrashReporterClient>::Leaky g_chrome_crash_client =
LAZY_INSTANCE_INITIALIZER;
#endif
@@ -252,7 +252,7 @@ bool SubprocessNeedsResourceBundle(const std::string&
// Mac needs them for the plugin process name.
process_type == switches::kPluginProcess ||
#endif
-#if defined(OS_POSIX) && !defined(OS_MACOSX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD)
// The zygote process opens the resources for the renderers.
process_type == switches::kZygoteProcess ||
#endif
@@ -304,7 +304,7 @@ void HandleHelpSwitches(const base::CommandLine& comma
}
#endif
-#if !defined(OS_MACOSX) && !defined(OS_ANDROID)
+#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && !defined(OS_BSD)
void SIGTERMProfilingShutdown(int signal) {
Profiling::Stop();
struct sigaction sigact;
@@ -338,7 +338,7 @@ void InitializeUserDataDir() {
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.
@@ -665,7 +665,7 @@ void ChromeMainDelegate::PreSandboxStartup() {
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
-#if defined(OS_POSIX)
+#if defined(OS_POSIX) && !defined(OS_BSD)
crash_reporter::SetCrashReporterClient(g_chrome_crash_client.Pointer());
#endif
@@ -786,7 +786,7 @@ void ChromeMainDelegate::PreSandboxStartup() {
chrome::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 != switches::kZygoteProcess) {
#if defined(OS_ANDROID)
@@ -910,7 +910,7 @@ bool ChromeMainDelegate::DelaySandboxInitialization(
#endif
return process_type == switches::kRelauncherProcess;
}
-#elif defined(OS_POSIX) && !defined(OS_ANDROID)
+#elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_BSD)
void ChromeMainDelegate::ZygoteStarting(
ScopedVector<content::ZygoteForkDelegate>* delegates) {
#if !defined(DISABLE_NACL)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_app_chrome_main_delegate_h,v 1.5 2015/04/27 16:38:25 robert Exp $
--- chrome/app/chrome_main_delegate.h.orig.port Wed Apr 15 00:31:21 2015
+++ chrome/app/chrome_main_delegate.h Wed Apr 15 08:32:50 2015
@@ -36,7 +36,7 @@ class ChromeMainDelegate : public content::ContentMain
const std::string& process_type) override;
bool ShouldSendMachPort(const std::string& process_type) override;
bool DelaySandboxInitialization(const std::string& process_type) override;
-#elif defined(OS_POSIX) && !defined(OS_ANDROID)
+#elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_BSD)
void ZygoteStarting(
ScopedVector<content::ZygoteForkDelegate>* delegates) override;
void ZygoteForked() override;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_app_chromium_strings_grd,v 1.13 2016/01/23 18:49:31 robert Exp $
--- chrome/app/chromium_strings.grd.orig.port Wed Jan 20 21:01:18 2016
+++ chrome/app/chromium_strings.grd Fri Jan 22 19:58:58 2016
@@ -1014,7 +1014,7 @@ Signing in anyway will merge Chromium information like
</message>
<!-- ProcessSingleton -->
- <if expr="is_linux or is_macosx">
+ <if expr="is_linux or is_macosx or is_bsd">
<message name="IDS_PROFILE_IN_USE_POSIX" desc="Message shown when the browser cannot start because the profile is in use on a different host.">
The profile appears to be in use by another Chromium process (<ph name="PROCESS_ID">$1<ex>12345</ex></ph>) on another computer (<ph name="HOST_NAME">$2<ex>example.com</ex></ph>). 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.
</message>

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_app_google_chrome_strings_grd,v 1.12 2016/01/23 18:49:31 robert Exp $
--- chrome/app/google_chrome_strings.grd.orig.port Wed Jan 20 21:01:18 2016
+++ chrome/app/google_chrome_strings.grd Fri Jan 22 19:58:58 2016
@@ -1015,7 +1015,7 @@ Signing in anyway will merge Chrome information like b
</message>
<!-- ProcessSingleton -->
- <if expr="is_linux or is_macosx">
+ <if expr="is_linux or is_macosx or is_bsd">
<message name="IDS_PROFILE_IN_USE_POSIX" desc="Message shown when the browser cannot start because the profile is in use on a different host.">
The profile appears to be in use by another Google Chrome process (<ph name="PROCESS_ID">$1<ex>12345</ex></ph>) on another computer (<ph name="HOST_NAME">$2<ex>example.com</ex></ph>). 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.
</message>

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_app_resources_locale_settings_grd,v 1.2 2015/10/14 16:42:07 robert Exp $
--- chrome/app/resources/locale_settings.grd.orig.port Wed Oct 7 04:42:07 2015
+++ chrome/app/resources/locale_settings.grd Wed Oct 14 07:41:13 2015
@@ -234,7 +234,7 @@
55
</message>
- <if expr="is_win or is_linux or chromeos">
+ <if expr="is_win or is_linux or chromeos or is_bsd">
<!-- The width of the ash/ChromeOS system tray menu in pixels. -->
<message name="IDS_SYSTEM_TRAY_MENU_BUBBLE_WIDTH_PIXELS" use_name_for_id="true">
300

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_app_theme_theme_resources_grd,v 1.19 2016/01/23 18:49:31 robert Exp $
--- chrome/app/theme/theme_resources.grd.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/app/theme/theme_resources.grd Fri Jan 22 19:58:58 2016
@@ -472,7 +472,7 @@
<structure type="chrome_scaled_image" name="IDR_NOTIFICATION_PERIPHERAL_BATTERY_LOW" file="cros/notification_peripheral_battery_low.png" />
<structure type="chrome_scaled_image" name="IDR_PORTAL_DETECTION_ALERT" file="cros/captive_portal_icon.png" />
</if>
- <if expr="is_win or desktop_linux">
+ <if expr="is_win or desktop_linux or is_posix">
<structure type="chrome_scaled_image" name="IDR_NOTIFICATION_TRAY_DO_NOT_DISTURB_ATTENTION" file="common/notification_tray_do_not_disturb_attention.png" />
<structure type="chrome_scaled_image" name="IDR_NOTIFICATION_TRAY_DO_NOT_DISTURB_EMPTY" file="common/notification_tray_do_not_disturb_empty.png" />
<structure type="chrome_scaled_image" name="IDR_NOTIFICATION_TRAY_ATTENTION" file="common/notification_tray_attention.png" />

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-chrome_browser_about_flags_cc,v 1.23 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/about_flags.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/about_flags.cc Fri Jan 22 19:58:58 2016
@@ -755,7 +755,7 @@ const FeatureEntry kFeatureEntries[] = {
// On by default for the Mac (different implementation in WebKit).
kOsLinux | kOsWin,
SINGLE_VALUE_TYPE(switches::kEnableSmoothScrolling)},
-#if defined(USE_AURA) || defined(OS_LINUX)
+#if defined(USE_AURA) || defined(OS_LINUX) || defined(OS_BSD)
{"overlay-scrollbars",
IDS_FLAGS_ENABLE_OVERLAY_SCROLLBARS_NAME,
IDS_FLAGS_ENABLE_OVERLAY_SCROLLBARS_DESCRIPTION,
@@ -877,7 +877,7 @@ const FeatureEntry kFeatureEntries[] = {
SINGLE_VALUE_TYPE(switches::kEnableSpellingAutoCorrect)},
#endif
#if defined(ENABLE_SPELLCHECK) && \
- (defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS))
+ (defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_BSD))
{"enable-multilingual-spellchecker",
IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_NAME,
IDS_FLAGS_ENABLE_MULTILINGUAL_SPELLCHECKER_DESCRIPTION,

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_after_startup_task_utils_cc,v 1.1 2015/09/25 13:08:54 robert Exp $
--- chrome/browser/after_startup_task_utils.cc.orig.port Thu Sep 24 12:59:35 2015
+++ chrome/browser/after_startup_task_utils.cc Thu Sep 24 13:01:01 2015
@@ -89,7 +89,7 @@ void QueueTask(scoped_ptr<AfterStartupTask> queued_tas
void SetBrowserStartupIsComplete() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
-#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX)
+#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD)
// CurrentProcessInfo::CreationTime() is not available on all platforms.
const base::Time process_creation_time =
base::CurrentProcessInfo::CreationTime();

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_browser_resources_grd,v 1.24 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/browser_resources.grd.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/browser_resources.grd Fri Jan 22 19:58:58 2016
@@ -259,7 +259,7 @@
<include name="IDR_ABOUT_VOICESEARCH_JS" file="resources\about_voicesearch.js" type="BINDATA" />
<include name="IDR_PLUGIN_DB_JSON" file="resources\plugin_metadata\plugins_chromeos.json" type="BINDATA" />
</if>
- <if expr="desktop_linux or (is_android and enable_plugins)">
+ <if expr="desktop_linux or (is_android and enable_plugins) or is_posix">
<include name="IDR_PLUGIN_DB_JSON" file="resources\plugin_metadata\plugins_linux.json" type="BINDATA" />
</if>
<if expr="is_android">

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-chrome_browser_chrome_browser_main_cc,v 1.4 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/chrome_browser_main.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/chrome_browser_main.cc Fri Jan 22 19:58:58 2016
@@ -161,7 +161,7 @@
#include "chrome/browser/feedback/feedback_profile_observer.h"
#endif // defined(OS_ANDROID)
-#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"
#include "chrome/browser/sxs_linux.h"
#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
@@ -1050,7 +1050,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() {
}
#endif // !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
-#if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_MACOSX)
+#if defined(OS_LINUX) || defined(OS_MACOSX)
// Set the product channel for crash reports.
base::debug::SetCrashKeyValue(crash_keys::kChannel,
chrome::GetChannelString());
@@ -1402,7 +1402,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl(
return chrome::RESULT_CODE_MACHINE_LEVEL_INSTALL_EXISTS;
#endif // defined(OS_WIN)
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
if (sxs_linux::ShouldMigrateUserDataDir())
return sxs_linux::MigrateUserDataDir();
#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-chrome_browser_chrome_browser_main_linux_cc,v 1.1 2016/01/31 16:49:31 robert Exp $
--- chrome/browser/chrome_browser_main_linux.cc.orig.port Sun Jan 31 17:46:49 2016
+++ chrome/browser/chrome_browser_main_linux.cc Sat Jan 30 18:45:46 2016
@@ -61,12 +61,14 @@ void ChromeBrowserMainPartsLinux::PreProfileInit() {
void ChromeBrowserMainPartsLinux::PostProfileInit() {
ChromeBrowserMainPartsPosix::PostProfileInit();
+#if !defined(OS_BSD)
g_browser_process->metrics_service()->RecordBreakpadRegistration(
breakpad::IsCrashReporterEnabled());
+#endif
}
void ChromeBrowserMainPartsLinux::PostMainMessageLoopStart() {
-#if !defined(OS_CHROMEOS)
+#if !defined(OS_CHROMEOS) && !defined(OS_BSD)
bluez::DBusThreadManagerLinux::Initialize();
bluez::BluezDBusManager::Initialize(
bluez::DBusThreadManagerLinux::Get()->GetSystemBus(), false);
@@ -76,7 +78,7 @@ void ChromeBrowserMainPartsLinux::PostMainMessageLoopS
}
void ChromeBrowserMainPartsLinux::PostDestroyThreads() {
-#if !defined(OS_CHROMEOS)
+#if !defined(OS_CHROMEOS) && !defined(OS_BSD)
bluez::BluezDBusManager::Shutdown();
bluez::DBusThreadManagerLinux::Shutdown();
#endif

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-chrome_browser_chrome_browser_main_posix_cc,v 1.10 2014/09/11 19:04:52 robert Exp $
--- chrome/browser/chrome_browser_main_posix.cc.orig.port Wed Sep 10 22:14:04 2014
+++ chrome/browser/chrome_browser_main_posix.cc Wed Sep 10 22:14:59 2014
@@ -270,6 +270,11 @@ void ChromeBrowserMainPartsPosix::PostMainMessageLoopS
g_pipe_pid = getpid();
g_shutdown_pipe_read_fd = pipefd[0];
g_shutdown_pipe_write_fd = pipefd[1];
+#if defined(OS_OPENBSD)
+ // PTHREAD_STACK_MIN causes chromium to crash under FreeBSD,
+ // we request the default pthread stack size by specifying 0 here.
+ const size_t kShutdownDetectorThreadStackSize = 0;
+#else
#if !defined(ADDRESS_SANITIZER) && !defined(KEEP_SHADOW_STACKS)
const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 2;
#else
@@ -277,6 +282,7 @@ void ChromeBrowserMainPartsPosix::PostMainMessageLoopS
// shadow stacks) bloat the stack frames, so we need to increase the stack
// size to avoid hitting the guard page.
const size_t kShutdownDetectorThreadStackSize = PTHREAD_STACK_MIN * 4;
+#endif
#endif
// TODO(viettrungluu,willchan): crbug.com/29675 - This currently leaks, so
// if you change this, you'll probably need to change the suppression.

View File

@ -0,0 +1,57 @@
$OpenBSD: patch-chrome_browser_chrome_content_browser_client_cc,v 1.25 2016/01/29 16:56:10 robert Exp $
--- chrome/browser/chrome_content_browser_client.cc.orig.port Wed Jan 27 18:00:44 2016
+++ chrome/browser/chrome_content_browser_client.cc Fri Jan 29 17:39:15 2016
@@ -178,7 +178,7 @@
#include "chrome/browser/chromeos/system/input_device_settings.h"
#include "chromeos/chromeos_switches.h"
#include "components/user_manager/user_manager.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 "chrome/browser/android/new_tab_page_url_handler.h"
@@ -193,7 +193,7 @@
#include "chrome/browser/chrome_browser_main_posix.h"
#endif
-#if defined(OS_POSIX) && !defined(OS_MACOSX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD)
#include "base/debug/leak_annotations.h"
#include "components/crash/content/app/breakpad_linux.h"
#include "components/crash/content/browser/crash_handler_host_linux.h"
@@ -464,7 +464,7 @@ bool CertMatchesFilter(const net::X509Certificate& cer
return false;
}
-#if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
+#if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) && !defined(OS_BSD)
breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost(
const std::string& process_type) {
base::FilePath dumps_path;
@@ -721,7 +721,7 @@ content::BrowserMainParts* ChromeContentBrowserClient:
main_parts = new ChromeBrowserMainPartsMac(parameters);
#elif defined(OS_CHROMEOS)
main_parts = new chromeos::ChromeBrowserMainPartsChromeos(parameters);
-#elif defined(OS_LINUX)
+#elif defined(OS_LINUX) || defined(OS_BSD)
main_parts = new ChromeBrowserMainPartsLinux(parameters);
#elif defined(OS_ANDROID)
main_parts = new ChromeBrowserMainPartsAndroid(parameters);
@@ -1371,7 +1371,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 (breakpad::IsCrashReporterEnabled()) {
scoped_ptr<metrics::ClientInfo> client_info =
GoogleUpdateSettings::LoadMetricsClientInfo();
@@ -2498,7 +2498,7 @@ void ChromeContentBrowserClient::GetAdditionalMappedFi
PathService::Get(base::DIR_ANDROID_APP_DATA, &app_data_path);
DCHECK(!app_data_path.empty());
}
-#elif defined(OS_POSIX) && !defined(OS_MACOSX)
+#elif defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD)
void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
const base::CommandLine& command_line,
int child_process_id,

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_chrome_content_browser_client_h,v 1.17 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/chrome_content_browser_client.h.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/chrome_content_browser_client.h Fri Jan 22 19:58:58 2016
@@ -264,7 +264,7 @@ class ChromeContentBrowserClient : public content::Con
int child_process_id,
content::FileDescriptorInfo* mappings,
std::map<int, base::MemoryMappedFile::Region>* regions) override;
-#elif defined(OS_POSIX) && !defined(OS_MACOSX)
+#elif defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD)
void GetAdditionalMappedFilesForChildProcess(
const base::CommandLine& command_line,
int child_process_id,

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_custom_handlers_protocol_handler_registry_cc,v 1.3 2015/12/05 16:13:32 robert Exp $
--- chrome/browser/custom_handlers/protocol_handler_registry.cc.orig.port Fri Nov 13 12:04:14 2015
+++ chrome/browser/custom_handlers/protocol_handler_registry.cc Wed Dec 2 08:18:32 2015
@@ -42,7 +42,7 @@ const ProtocolHandler& LookupHandler(
// If true default protocol handlers will be removed if the OS level
// registration for a protocol is no longer Chrome.
bool ShouldRemoveHandlersNotInOS() {
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
// We don't do this on Linux as the OS registration there is not reliable,
// and Chrome OS doesn't have any notion of OS registration.
// TODO(benwells): When Linux support is more reliable remove this

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_defaults_cc,v 1.6 2015/12/05 16:13:32 robert Exp $
--- chrome/browser/defaults.cc.orig.port Fri Nov 13 12:04:14 2015
+++ chrome/browser/defaults.cc Wed Dec 2 08:18:32 2015
@@ -45,7 +45,7 @@ const bool kSyncAutoStarts = false;
const bool kShowOtherBrowsersInAboutMemory = true;
#endif
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
const bool kScrollEventChangesTab = true;
#else
const bool kScrollEventChangesTab = false;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_download_chrome_download_manager_delegate_cc,v 1.4 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/download/chrome_download_manager_delegate.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/download/chrome_download_manager_delegate.cc Fri Jan 22 19:58:58 2016
@@ -740,7 +740,7 @@ void ChromeDownloadManagerDelegate::OnDownloadTargetDe
bool ChromeDownloadManagerDelegate::IsOpenInBrowserPreferreredForFile(
const base::FilePath& path) {
-#if defined(OS_WIN) || defined(OS_LINUX) || \
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
if (path.MatchesExtension(FILE_PATH_LITERAL(".pdf"))) {
return !download_prefs_->ShouldOpenPdfInSystemReader();

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-chrome_browser_download_download_commands_cc,v 1.4 2015/10/14 16:42:07 robert Exp $
--- chrome/browser/download/download_commands.cc.orig.port Wed Oct 7 04:42:08 2015
+++ chrome/browser/download/download_commands.cc Wed Oct 14 07:41:13 2015
@@ -115,7 +115,7 @@ bool DownloadCommands::IsCommandChecked(Command comman
download_crx_util::IsExtensionDownload(*download_item_);
case ALWAYS_OPEN_TYPE:
#if defined(OS_WIN) || defined(OS_LINUX) || \
- (defined(OS_MACOSX) && !defined(OS_IOS))
+ (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_BSD)
if (CanOpenPdfInSystemViewer()) {
DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(
download_item_->GetBrowserContext());
@@ -158,7 +158,7 @@ void DownloadCommands::ExecuteCommand(Command command)
DownloadPrefs* prefs = DownloadPrefs::FromBrowserContext(
download_item_->GetBrowserContext());
#if defined(OS_WIN) || defined(OS_LINUX) || \
- (defined(OS_MACOSX) && !defined(OS_IOS))
+ (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_BSD)
if (CanOpenPdfInSystemViewer()) {
prefs->SetShouldOpenPdfInSystemReader(!is_checked);
DownloadItemModel(download_item_)
@@ -225,7 +225,7 @@ Browser* DownloadCommands::GetBrowser() const {
return browser_displayer.browser();
}
-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD)
bool DownloadCommands::IsDownloadPdf() const {
base::FilePath path = download_item_->GetTargetFilePath();
return path.MatchesExtension(FILE_PATH_LITERAL(".pdf"));
@@ -242,7 +242,7 @@ 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
}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_download_download_commands_h,v 1.2 2015/07/23 13:44:04 robert Exp $
--- chrome/browser/download/download_commands.h.orig.port Wed Jul 15 22:29:57 2015
+++ chrome/browser/download/download_commands.h Wed Jul 22 08:37:29 2015
@@ -40,7 +40,7 @@ class DownloadCommands {
void ExecuteCommand(Command command);
#if defined(OS_WIN) || defined(OS_LINUX) || \
- (defined(OS_MACOSX) && !defined(OS_IOS))
+ (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_BSD)
bool IsDownloadPdf() const;
bool CanOpenPdfInSystemViewer() const;
#endif

View File

@ -0,0 +1,66 @@
$OpenBSD: patch-chrome_browser_download_download_prefs_cc,v 1.2 2015/07/23 13:44:04 robert Exp $
--- chrome/browser/download/download_prefs.cc.orig.port Wed Jul 22 08:42:28 2015
+++ chrome/browser/download/download_prefs.cc Wed Jul 22 08:43:46 2015
@@ -51,7 +51,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;
@@ -131,7 +131,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profi
GetDefaultDownloadDirectoryForProfile()));
#endif // defined(OS_CHROMEOS)
-#if defined(OS_WIN) || defined(OS_LINUX) || \
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
should_open_pdf_in_system_reader_ =
prefs->GetBoolean(prefs::kOpenPdfDownloadInSystemReader);
@@ -208,7 +208,7 @@ void DownloadPrefs::RegisterProfilePrefs(
default_download_path);
registry->RegisterFilePathPref(prefs::kSaveFileDefaultDirectory,
default_download_path);
-#if defined(OS_WIN) || defined(OS_LINUX) || \
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
registry->RegisterBooleanPref(prefs::kOpenPdfDownloadInSystemReader, false);
#endif
@@ -286,7 +286,7 @@ bool DownloadPrefs::IsDownloadPathManaged() const {
}
bool DownloadPrefs::IsAutoOpenUsed() const {
-#if defined(OS_WIN) || defined(OS_LINUX) || \
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
if (ShouldOpenPdfInSystemReader())
return true;
@@ -301,7 +301,7 @@ bool DownloadPrefs::IsAutoOpenEnabledBasedOnExtension(
return false;
DCHECK(extension[0] == base::FilePath::kExtensionSeparator);
extension.erase(0, 1);
-#if defined(OS_WIN) || defined(OS_LINUX) || \
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
if (extension == FILE_PATH_LITERAL("pdf") && ShouldOpenPdfInSystemReader())
return true;
@@ -335,7 +335,7 @@ void DownloadPrefs::DisableAutoOpenBasedOnExtension(
SaveAutoOpenState();
}
-#if defined(OS_WIN) || defined(OS_LINUX) || \
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
void DownloadPrefs::SetShouldOpenPdfInSystemReader(bool should_open) {
if (should_open_pdf_in_system_reader_ == should_open)
@@ -357,7 +357,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons
#endif
void DownloadPrefs::ResetAutoOpen() {
-#if defined(OS_WIN) || defined(OS_LINUX) || \
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
SetShouldOpenPdfInSystemReader(false);
#endif

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-chrome_browser_download_download_prefs_h,v 1.2 2015/07/23 13:44:04 robert Exp $
--- chrome/browser/download/download_prefs.h.orig.port Wed Jul 15 22:29:57 2015
+++ chrome/browser/download/download_prefs.h Wed Jul 22 08:37:29 2015
@@ -77,7 +77,7 @@ class DownloadPrefs {
// Disables auto-open based on file extension.
void DisableAutoOpenBasedOnExtension(const base::FilePath& file_name);
-#if defined(OS_WIN) || defined(OS_LINUX) || \
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
// Store the user preference to disk. If |should_open| is true, also disable
// the built-in PDF plugin. If |should_open| is false, enable the PDF plugin.
@@ -109,7 +109,7 @@ class DownloadPrefs {
AutoOpenCompareFunctor> AutoOpenSet;
AutoOpenSet auto_open_;
-#if defined(OS_WIN) || defined(OS_LINUX) || \
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
bool should_open_pdf_in_system_reader_;
#endif

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_download_download_shelf_context_menu_cc,v 1.3 2015/05/24 15:51:53 robert Exp $
--- chrome/browser/download/download_shelf_context_menu.cc.orig.port Wed May 20 10:02:47 2015
+++ chrome/browser/download/download_shelf_context_menu.cc Wed May 20 10:03:00 2015
@@ -143,7 +143,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;

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-chrome_browser_download_download_status_updater_cc,v 1.1 2014/07/20 17:22:33 robert Exp $
--- chrome/browser/download/download_status_updater.cc.orig.port Sat Jul 19 03:32:36 2014
+++ chrome/browser/download/download_status_updater.cc Sat Jul 19 03:33:37 2014
@@ -9,7 +9,7 @@
#include "base/logging.h"
#include "base/stl_util.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(
#if defined(OS_ANDROID) || (defined(USE_AURA) && !defined(OS_WIN))
void DownloadStatusUpdater::UpdateAppIconDownloadProgress(
content::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;

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-chrome_browser_extensions_api_image_writer_private_image_writer_private_api_cc,v 1.7 2015/09/05 16:06:50 robert Exp $
--- chrome/browser/extensions/api/image_writer_private/image_writer_private_api.cc.orig.port Sat Aug 22 21:01:52 2015
+++ chrome/browser/extensions/api/image_writer_private/image_writer_private_api.cc Wed Sep 2 07:31:55 2015
@@ -166,10 +166,12 @@ ImageWriterPrivateListRemovableStorageDevicesFunction:
}
bool ImageWriterPrivateListRemovableStorageDevicesFunction::RunAsync() {
+#if !defined(OS_BSD)
RemovableStorageProvider::GetAllDevices(
base::Bind(
&ImageWriterPrivateListRemovableStorageDevicesFunction::OnDeviceListReady,
this));
+#endif
return true;
}

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-chrome_browser_extensions_api_messaging_message_service_cc,v 1.5 2015/12/05 16:13:32 robert Exp $
--- chrome/browser/extensions/api/messaging/message_service.cc.orig.port Fri Nov 13 12:04:14 2015
+++ chrome/browser/extensions/api/messaging/message_service.cc Wed Dec 2 08:18:32 2015
@@ -113,7 +113,7 @@ MessageService::PolicyPermission MessageService::IsNat
const char kReceivingEndDoesntExistError[] =
"Could not establish connection. Receiving end does not exist.";
-#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 kMissingPermissionError[] =
"Access to native messaging requires nativeMessaging permission.";
const char kProhibitedByPoliciesError[] =
@@ -422,7 +422,7 @@ void MessageService::OpenChannelToNativeApp(
if (!source)
return;
-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD)
Profile* profile = Profile::FromBrowserContext(source->GetBrowserContext());
ExtensionService* extension_service =
ExtensionSystem::Get(profile)->extension_service();

View File

@ -0,0 +1,67 @@
$OpenBSD: patch-chrome_browser_extensions_api_music_manager_private_device_id_linux_cc,v 1.3 2015/01/22 11:16:40 robert Exp $
--- chrome/browser/extensions/api/music_manager_private/device_id_linux.cc.orig.port Wed Dec 3 03:13:20 2014
+++ chrome/browser/extensions/api/music_manager_private/device_id_linux.cc Sat Dec 6 11:34:25 2014
@@ -4,6 +4,10 @@
#include "chrome/browser/extensions/api/music_manager_private/device_id.h"
+#if defined(OS_BSD)
+#include <sys/types.h>
+#include <net/if_dl.h>
+#endif
#include <sys/socket.h> // Must be included before ifaddrs.h.
#include <ifaddrs.h>
#include <net/if.h>
@@ -102,11 +106,33 @@ class MacAddressProcessor {
const char* const prefixes[],
size_t prefixes_count) {
const int MAC_LENGTH = 6;
+#if defined(OS_BSD)
+ struct ifaddrs *ifap, *ifinfo;
+#else
struct ifreq ifinfo;
+#endif
memset(&ifinfo, 0, sizeof(ifinfo));
- strncpy(ifinfo.ifr_name, ifaddr->ifa_name, sizeof(ifinfo.ifr_name) - 1);
+#if defined(OS_BSD)
+ int result = getifaddrs(&ifap);
+ if (result != 0)
+ return true;
+ result = 1; // no MAC found yet
+ for (ifinfo = ifap; ifinfo != NULL; ifinfo = ifinfo->ifa_next) {
+ struct sockaddr* sa = ifinfo->ifa_addr;
+ if (sa->sa_family == AF_LINK &&
+ !strncmp(ifinfo->ifa_name, ifaddr->ifa_name,
+ sizeof(ifinfo->ifa_name) - 1)) {
+ result = 0;
+ break;
+ }
+ }
+
+ char mac_address[6];
+ strncpy(mac_address, (const char*)LLADDR((struct sockaddr_dl*)ifinfo->ifa_addr), sizeof(mac_address));
+#else
+ strncpy(ifinfo.ifr_name, ifaddr->ifa_name, sizeof(ifinfo.ifr_name) - 1);
int sd = socket(AF_INET, SOCK_DGRAM, 0);
int result = ioctl(sd, SIOCGIFHWADDR, &ifinfo);
close(sd);
@@ -116,11 +142,17 @@ class MacAddressProcessor {
const char* mac_address =
static_cast<const char*>(ifinfo.ifr_hwaddr.sa_data);
+#endif
if (!is_valid_mac_address_.Run(mac_address, MAC_LENGTH))
return true;
+#if defined(OS_BSD)
+ if (!IsValidPrefix(ifinfo->ifa_name, prefixes, prefixes_count))
+ return true;
+#else
if (!IsValidPrefix(ifinfo.ifr_name, prefixes, prefixes_count))
return true;
+#endif
// Got one!
found_mac_address_ =

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_extensions_api_omnibox_omnibox_api_cc,v 1.1 2014/07/20 17:22:33 robert Exp $
--- chrome/browser/extensions/api/omnibox/omnibox_api.cc.orig.port Sat Jul 19 11:17:49 2014
+++ chrome/browser/extensions/api/omnibox/omnibox_api.cc Sat Jul 19 11:28:45 2014
@@ -39,7 +39,7 @@ const char kBackgroundTabDisposition[] = "newBackgroun
// Pref key for omnibox.setDefaultSuggestion.
const char kOmniboxDefaultSuggestion[] = "omnibox_default_suggestion";
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
static const int kOmniboxIconPaddingLeft = 2;
static const int kOmniboxIconPaddingRight = 2;
#elif defined(OS_MACOSX)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_extensions_bookmark_app_helper_cc,v 1.7 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/extensions/bookmark_app_helper.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/extensions/bookmark_app_helper.cc Fri Jan 22 19:58:58 2016
@@ -697,7 +697,7 @@ void BookmarkAppHelper::FinishInstallation(const Exten
chrome::HostDesktopType desktop = browser->host_desktop_type();
if (desktop != chrome::HOST_DESKTOP_TYPE_ASH) {
web_app::ShortcutLocations creation_locations;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
creation_locations.on_desktop = true;
#elif defined(OS_WIN)
// Create the shortcut on the desktop if it's not possible to pin to the

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_first_run_first_run_internal_posix_cc,v 1.1 2014/07/20 17:22:33 robert Exp $
--- chrome/browser/first_run/first_run_internal_posix.cc.orig.port Sat Jul 19 00:27:56 2014
+++ chrome/browser/first_run/first_run_internal_posix.cc Sat Jul 19 00:28:02 2014
@@ -22,7 +22,7 @@ namespace first_run {
namespace internal {
void DoPostImportPlatformSpecificTasks(Profile* profile) {
-#if !defined(OS_CHROMEOS)
+#if !defined(OS_CHROMEOS) && !defined(OS_BSD)
base::FilePath local_state_path;
PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path);
bool local_state_file_exists = base::PathExists(local_state_path);

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_gpu_gl_string_manager_cc,v 1.1 2013/10/29 06:51:34 robert Exp $
--- chrome/browser/gpu/gl_string_manager.cc.orig.port Sun Oct 20 17:01:50 2013
+++ chrome/browser/gpu/gl_string_manager.cc Sun Oct 20 17:02:02 2013
@@ -25,7 +25,7 @@ GLStringManager::~GLStringManager() {
void GLStringManager::Initialize() {
// On MacOSX or Windows, preliminary GPUInfo is enough.
-#if defined(OS_LINUX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
// We never remove this observer from GpuDataManager.
content::GpuDataManager::GetInstance()->AddObserver(this);

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_gpu_gpu_feature_checker_cc,v 1.1 2013/10/29 06:51:34 robert Exp $
--- chrome/browser/gpu/gpu_feature_checker.cc.orig.port Sun Oct 20 17:02:12 2013
+++ chrome/browser/gpu/gpu_feature_checker.cc Sun Oct 20 17:02:21 2013
@@ -33,7 +33,7 @@ void GPUFeatureChecker::CheckGPUFeatureAvailability()
CHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
bool finalized = true;
-#if defined(OS_LINUX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
// On Windows and Mac, so far we can always make the final WebGL blacklisting
// decision based on partial GPU info; on Linux, we need to launch the GPU
// process to collect full GPU info and make the final decision.

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-chrome_browser_media_galleries_fileapi_mtp_device_map_service_cc,v 1.2 2015/05/24 15:51:53 robert Exp $
--- chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc.orig.port Wed May 20 10:03:54 2015
+++ chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc Wed May 20 10:04:12 2015
@@ -37,10 +37,12 @@ void MTPDeviceMapService::RegisterMTPFileSystem(
// Note that this initializes the delegate asynchronously, but since
// the delegate will only be used from the IO thread, it is guaranteed
// to be created before use of it expects it to be there.
+#if !defined(OS_BSD)
CreateMTPDeviceAsyncDelegate(
device_location, read_only,
base::Bind(&MTPDeviceMapService::AddAsyncDelegate,
base::Unretained(this), device_location, read_only));
+#endif
mtp_device_usage_map_[key] = 0;
}

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-chrome_browser_media_galleries_media_file_system_registry_cc,v 1.13 2015/09/05 16:06:50 robert Exp $
--- chrome/browser/media_galleries/media_file_system_registry.cc.orig.port Sat Aug 22 21:01:52 2015
+++ chrome/browser/media_galleries/media_file_system_registry.cc Wed Sep 2 07:31:55 2015
@@ -764,7 +764,12 @@ class MediaFileSystemRegistry::MediaFileSystemContextI
// Constructor in 'private' section because depends on private class definition.
MediaFileSystemRegistry::MediaFileSystemRegistry()
: file_system_context_(new MediaFileSystemContextImpl) {
- StorageMonitor::GetInstance()->AddObserver(this);
+ /*
+ * This conditional is needed for shutdown. Destructors
+ * try to get the media file system registry.
+ */
+ if (StorageMonitor::GetInstance())
+ StorageMonitor::GetInstance()->AddObserver(this);
}
MediaFileSystemRegistry::~MediaFileSystemRegistry() {

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-chrome_browser_media_galleries_media_folder_finder_cc,v 1.2 2015/05/24 15:51:53 robert Exp $
--- chrome/browser/media_galleries/media_folder_finder.cc.orig.port Thu May 14 00:23:03 2015
+++ chrome/browser/media_galleries/media_folder_finder.cc Sat May 23 18:32:06 2015
@@ -50,10 +50,10 @@ const int kPrunedPaths[] = {
chrome::DIR_USER_APPLICATIONS,
chrome::DIR_USER_LIBRARY,
#endif
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
base::DIR_CACHE,
#endif
-#if defined(OS_WIN) || defined(OS_LINUX)
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD)
base::DIR_TEMP,
#endif
};

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-chrome_browser_memory_details_cc,v 1.29 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/memory_details.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/memory_details.cc Fri Jan 22 19:58:58 2016
@@ -31,7 +31,7 @@
#include "content/public/common/content_constants.h"
#include "ui/base/l10n/l10n_util.h"
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) && !defined(OS_BSD)
#include "content/public/browser/zygote_host_linux.h"
#endif
@@ -211,7 +211,7 @@ void MemoryDetails::CollectChildInfoOnIOThread(Collect
void MemoryDetails::CollectChildInfoOnUIThread() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) && !defined(OS_BSD)
const pid_t zygote_pid = content::ZygoteHost::GetInstance()->GetPid();
#endif
@@ -365,7 +365,7 @@ void MemoryDetails::CollectChildInfoOnUIThread() {
}
}
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) && !defined(OS_BSD)
if (process.pid == zygote_pid) {
process.process_type = content::PROCESS_TYPE_ZYGOTE;
}

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-chrome_browser_metrics_chrome_browser_main_extra_parts_metrics_cc,v 1.3 2015/07/23 13:44:04 robert Exp $
--- chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc.orig.port Wed Jul 15 22:29:58 2015
+++ chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc Wed Jul 22 08:37:29 2015
@@ -30,8 +30,10 @@
#include <cpu-features.h>
#endif // defined(OS_ANDROID) && defined(__arm__)
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
+#if !defined(OS_BSD)
#include <gnu/libc-version.h>
+#endif
#include "base/version.h"
#if defined(USE_X11)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_net_async_dns_field_trial_cc,v 1.3 2015/05/24 15:51:53 robert Exp $
--- chrome/browser/net/async_dns_field_trial.cc.orig.port Wed May 20 10:04:19 2015
+++ chrome/browser/net/async_dns_field_trial.cc Wed May 20 10:08:14 2015
@@ -67,7 +67,7 @@ bool ConfigureAsyncDnsFieldTrial() {
return false;
#endif
-#if defined(OS_CHROMEOS) || defined(OS_MACOSX)
+#if defined(OS_CHROMEOS) || defined(OS_MACOSX) || defined(OS_BSD)
const bool kDefault = true;
#else
const bool kDefault = false;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_notifications_message_center_notification_manager_cc,v 1.6 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/notifications/message_center_notification_manager.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/notifications/message_center_notification_manager.cc Fri Jan 22 19:58:58 2016
@@ -62,7 +62,7 @@ MessageCenterNotificationManager::MessageCenterNotific
blockers_.push_back(make_scoped_ptr(
new FullscreenNotificationBlocker(message_center)));
-#if defined(OS_WIN) || defined(OS_MACOSX) \
+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_BSD) \
|| (defined(OS_LINUX) && !defined(OS_CHROMEOS))
// On Windows, Linux and Mac, the notification manager owns the tray icon and
// views.Other platforms have global ownership and Create will return NULL.

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-chrome_browser_platform_util_linux_cc,v 1.2 2015/04/27 16:38:25 robert Exp $
--- chrome/browser/platform_util_linux.cc.orig.port Wed Apr 15 09:25:47 2015
+++ chrome/browser/platform_util_linux.cc Wed Apr 15 09:25:58 2015
@@ -28,7 +28,9 @@ void XDGUtil(const std::string& util,
base::LaunchOptions options;
options.current_directory = working_directory;
+#if !defined(OS_BSD)
options.allow_new_privs = true;
+#endif
// xdg-open can fall back on mailcap which eventually might plumb through
// to a command that needs a terminal. Set the environment variable telling
// it that we definitely don't have a terminal available and that it should

View File

@ -0,0 +1,35 @@
$OpenBSD: patch-chrome_browser_process_singleton_posix_cc,v 1.5 2015/12/05 16:13:32 robert Exp $
--- chrome/browser/process_singleton_posix.cc.orig.port Fri Nov 13 12:04:14 2015
+++ chrome/browser/process_singleton_posix.cc Wed Dec 2 08:18:32 2015
@@ -84,11 +84,11 @@
#include "net/base/net_util.h"
#include "ui/base/l10n/l10n_util.h"
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
#include "chrome/browser/ui/process_singleton_dialog_linux.h"
#endif
-#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(TOOLKIT_VIEWS) && (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
#include "ui/views/linux_ui/linux_ui.h"
#endif
@@ -313,7 +313,7 @@ bool DisplayProfileInUseError(const base::FilePath& lo
if (g_disable_prompt)
return false;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
base::string16 relaunch_button_text = l10n_util::GetStringUTF16(
IDS_PROFILE_IN_USE_LINUX_RELAUNCH);
return ShowProcessSingletonDialog(error, relaunch_button_text);
@@ -867,7 +867,7 @@ ProcessSingleton::NotifyResult ProcessSingleton::Notif
// The other process is shutting down, it's safe to start a new process.
return PROCESS_NONE;
} else if (strncmp(buf, kACKToken, arraysize(kACKToken) - 1) == 0) {
-#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(TOOLKIT_VIEWS) && (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
// Likely NULL in unit tests.
views::LinuxUI* linux_ui = views::LinuxUI::instance();
if (linux_ui)

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-chrome_browser_renderer_preferences_util_cc,v 1.13 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/renderer_preferences_util.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/renderer_preferences_util.cc Fri Jan 22 19:58:58 2016
@@ -14,7 +14,7 @@
#include "content/public/common/webrtc_ip_handling_policy.h"
#include "third_party/skia/include/core/SkColor.h"
-#if defined(OS_LINUX) || defined(OS_ANDROID)
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
#include "ui/gfx/font_render_params.h"
#endif
@@ -26,7 +26,7 @@
#include "ui/views/controls/textfield/textfield.h"
#endif
-#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(USE_AURA) && (defined(OS_LINUX) || defined(OS_BSD)) && !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"
@@ -94,7 +94,7 @@ void UpdateFromSystemSettings(content::RendererPrefere
prefs->caret_blink_interval = views::Textfield::GetCaretBlinkMs() / 1000.0;
#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()) {
@@ -116,7 +116,7 @@ void UpdateFromSystemSettings(content::RendererPrefere
}
#endif
-#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_WIN)
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_WIN) || defined(OS_BSD)
CR_DEFINE_STATIC_LOCAL(const gfx::FontRenderParams, params,
(gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), NULL)));
prefs->should_antialias_text = params.antialiasing;

View File

@ -0,0 +1,32 @@
$OpenBSD: patch-chrome_browser_resources_plugin_metadata_plugins_linux_json,v 1.5 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/resources/plugin_metadata/plugins_linux.json.orig.port Fri Jan 22 22:02:41 2016
+++ chrome/browser/resources/plugin_metadata/plugins_linux.json Fri Jan 22 22:02:59 2016
@@ -70,28 +70,6 @@
"displayurl": true,
"group_name_matcher": "Java*"
},
- "adobe-flash-player": {
- "mime_types": [
- "application/futuresplash",
- "application/x-shockwave-flash"
- ],
- "matching_mime_types": [
- "application/futuresplash"
- ],
- "versions": [
- {
- "version": "20.0.0.267",
- "status": "up_to_date",
- "reference": "https://helpx.adobe.com/security/products/flash-player/apsb16-01.html"
- }
- ],
- "lang": "en-US",
- "name": "Adobe Flash Player",
- "help_url": "https://support.google.com/chrome/?p=plugin_flash",
- "url": "https://support.google.com/chrome/answer/6258784",
- "displayurl": true,
- "group_name_matcher": "*Shockwave Flash*"
- },
"lightspark": {
"mime_types": [
"application/x-lightspark"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_safe_browsing_incident_reporting_incident_reporting_service_cc,v 1.4 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc Fri Jan 22 19:58:58 2016
@@ -730,7 +730,7 @@ void IncidentReportingService::OnEnvironmentDataCollec
environment_collection_pending_ = false;
// CurrentProcessInfo::CreationTime() is missing on some platforms.
-#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX)
+#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD)
base::TimeDelta uptime =
first_incident_time_ - base::CurrentProcessInfo::CreationTime();
environment_data->mutable_process()->set_uptime_msec(uptime.InMilliseconds());

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-chrome_browser_speech_tts_controller_impl_cc,v 1.4 2015/07/23 13:44:04 robert Exp $
--- chrome/browser/speech/tts_controller_impl.cc.orig.port Wed Jul 15 22:29:58 2015
+++ chrome/browser/speech/tts_controller_impl.cc Wed Jul 22 08:37:29 2015
@@ -364,9 +364,13 @@ int TtsControllerImpl::QueueSize() {
}
TtsPlatformImpl* TtsControllerImpl::GetPlatformImpl() {
+#if defined(OS_BSD)
+ return NULL;
+#else
if (!platform_impl_)
platform_impl_ = TtsPlatformImpl::GetInstance();
return platform_impl_;
+#endif
}
int TtsControllerImpl::GetMatchingVoice(

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ssl_bad_clock_blocking_page_cc,v 1.2 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/ssl/bad_clock_blocking_page.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/ssl/bad_clock_blocking_page.cc Fri Jan 22 19:58:58 2016
@@ -95,7 +95,7 @@ void LaunchDateAndTimeSettings() {
// iOS does not have a way to launch the date and time settings.
NOTREACHED();
-#elif defined(OS_LINUX)
+#elif defined(OS_LINUX) || defined(OS_BSD)
struct ClockCommand {
const char* pathname;
const char* argument;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_sync_profile_sync_components_factory_impl_cc,v 1.17 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/sync/profile_sync_components_factory_impl.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/sync/profile_sync_components_factory_impl.cc Fri Jan 22 19:58:58 2016
@@ -360,7 +360,7 @@ void ProfileSyncComponentsFactoryImpl::RegisterDesktop
}
#endif
-#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS)
+#if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_BSD)
// Dictionary sync is enabled by default.
if (!disabled_types.Has(syncer::DICTIONARY)) {
sync_service->RegisterDataTypeController(new UIDataTypeController(

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_task_manager_task_manager_cc,v 1.3 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/task_manager/task_manager.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/task_manager/task_manager.cc Fri Jan 22 19:58:58 2016
@@ -1203,7 +1203,7 @@ void TaskManagerModel::Refresh() {
values.is_cpu_usage_valid = true;
values.cpu_usage = metrics_iter->second->GetCPUUsage();
}
-#if defined(OS_MACOSX) || defined(OS_LINUX)
+#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD)
// TODO(port): Implement GetIdleWakeupsPerSecond() on other platforms,
// crbug.com/120488
if (!values.is_idle_wakeups_valid) {

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_tracing_crash_service_uploader_cc,v 1.4 2015/12/05 16:13:32 robert Exp $
--- chrome/browser/tracing/crash_service_uploader.cc.orig.port Tue Nov 24 21:00:54 2015
+++ chrome/browser/tracing/crash_service_uploader.cc Wed Dec 2 08:18:32 2015
@@ -147,6 +147,8 @@ void TraceCrashServiceUploader::DoUploadOnFileThread(
const char product[] = "Chrome_Android";
#elif defined(OS_CHROMEOS)
const char product[] = "Chrome_ChromeOS";
+#elif defined(OS_OPENBSD)
+ const char product[] = "Chrome_OpenBSD";
#else
#error Platform not supported.
#endif

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_app_list_app_list_service_cc,v 1.1 2015/09/25 13:08:54 robert Exp $
--- chrome/browser/ui/app_list/app_list_service.cc.orig.port Thu Sep 24 12:59:35 2015
+++ chrome/browser/ui/app_list/app_list_service.cc Thu Sep 24 13:05:18 2015
@@ -42,7 +42,7 @@ base::Time GetOriginalProcessStartTime(const base::Com
// base::CurrentProcessInfo::CreationTime() is only defined on some
// platforms.
-#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::CurrentProcessInfo::CreationTime();
#else
return base::Time();

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_ash_system_tray_delegate_common_cc,v 1.3 2015/04/27 16:38:25 robert Exp $
--- chrome/browser/ui/ash/system_tray_delegate_common.cc.orig.port Wed Apr 15 00:18:50 2015
+++ chrome/browser/ui/ash/system_tray_delegate_common.cc Wed Apr 15 08:32:50 2015
@@ -79,7 +79,7 @@ base::HourClockType SystemTrayDelegateCommon::GetHourC
}
void SystemTrayDelegateCommon::ShowChromeSlow() {
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
chrome::ScopedTabbedBrowserDisplayer displayer(
ProfileManager::GetPrimaryUserProfile(), chrome::HOST_DESKTOP_TYPE_ASH);
chrome::ShowSlow(displayer.browser());

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-chrome_browser_ui_aura_chrome_browser_main_extra_parts_aura_cc,v 1.7 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc Fri Jan 22 19:58:58 2016
@@ -19,7 +19,7 @@
#include "ui/gfx/screen.h"
#include "ui/views/widget/native_widget_aura.h"
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
#include "base/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/pref_names.h"
@@ -73,7 +73,7 @@ chrome::HostDesktopType GetInitialDesktop() {
command_line->HasSwitch(switches::kViewerLaunchViaAppId)) {
return chrome::HOST_DESKTOP_TYPE_ASH;
}
-#elif defined(OS_LINUX)
+#elif defined(OS_LINUX) || defined(OS_BSD)
const base::CommandLine* command_line =
base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kOpenAsh))
@@ -140,7 +140,7 @@ void ChromeBrowserMainExtraPartsAura::PreCreateThreads
}
void ChromeBrowserMainExtraPartsAura::PreProfileInit() {
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
// Now that we have some minimal ui initialized, check to see if we're
// running as root and bail if we are.
DetectRunningAsRoot();
@@ -154,7 +154,7 @@ void ChromeBrowserMainExtraPartsAura::PostMainMessageL
// after the metrics service is deleted.
}
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
void ChromeBrowserMainExtraPartsAura::DetectRunningAsRoot() {
if (getuid() == 0) {
const base::CommandLine& command_line =

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_aura_chrome_browser_main_extra_parts_aura_h,v 1.2 2015/01/22 11:16:40 robert Exp $
--- chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h.orig.port Wed Dec 3 03:13:21 2014
+++ chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h Sat Dec 6 11:34:25 2014
@@ -25,7 +25,7 @@ class ChromeBrowserMainExtraPartsAura : public ChromeB
void PostMainMessageLoopRun() override;
private:
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
// On the Linux desktop, we want to prevent the user from logging in as root,
// so that we don't destroy the profile.
void DetectRunningAsRoot();

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-chrome_browser_ui_browser_command_controller_cc,v 1.11 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/ui/browser_command_controller.cc.orig.port Wed Jan 20 21:01:19 2016
+++ chrome/browser/ui/browser_command_controller.cc Fri Jan 22 19:58:58 2016
@@ -71,7 +71,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/events/linux/text_edit_key_bindings_delegate_auralinux.h"
#endif
@@ -283,7 +283,7 @@ bool BrowserCommandController::IsReservedCommandOrKey(
if (window()->IsFullscreen() && command_id == IDC_FULLSCREEN)
return true;
-#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 =
@@ -476,7 +476,7 @@ void BrowserCommandController::ExecuteCommandWithDispo
break;
#endif
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
case IDC_USE_SYSTEM_TITLE_BAR: {
PrefService* prefs = browser_->profile()->GetPrefs();
prefs->SetBoolean(prefs::kUseCustomChromeFrame,
@@ -914,7 +914,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_USE_SYSTEM_TITLE_BAR, true);
#endif

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-chrome_browser_ui_browser_view_prefs_cc,v 1.2 2014/09/11 19:04:52 robert Exp $
--- chrome/browser/ui/browser_view_prefs.cc.orig.port Wed Sep 10 01:29:19 2014
+++ chrome/browser/ui/browser_view_prefs.cc Wed Sep 10 22:05:40 2014
@@ -9,7 +9,7 @@
#include "chrome/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
#include "ui/base/x/x11_util.h"
#endif
@@ -42,7 +42,7 @@ void RegisterBrowserViewLocalPrefs(PrefRegistrySimple*
void RegisterBrowserViewProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
bool custom_frame_default = false;
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
custom_frame_default = ui::GetCustomFramePrefDefault();
#endif

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_exclusive_access_exclusive_access_bubble_cc,v 1.1 2015/03/18 19:26:29 robert Exp $
--- chrome/browser/ui/exclusive_access/exclusive_access_bubble.cc.orig.port Wed Mar 11 07:33:06 2015
+++ chrome/browser/ui/exclusive_access/exclusive_access_bubble.cc Wed Mar 11 07:33:16 2015
@@ -18,7 +18,7 @@
// NOTE(koz): Linux doesn't use the thick shadowed border, so we add padding
// here.
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
const int ExclusiveAccessBubble::kPaddingPx = 8;
#else
const int ExclusiveAccessBubble::kPaddingPx = 15;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_panels_panel_manager_cc,v 1.5 2015/12/05 16:13:32 robert Exp $
--- chrome/browser/ui/panels/panel_manager.cc.orig.port Fri Nov 13 12:04:15 2015
+++ chrome/browser/ui/panels/panel_manager.cc Wed Dec 2 08:18:32 2015
@@ -136,7 +136,7 @@ bool PanelManager::ShouldUsePanels(const std::string&
// static
bool PanelManager::IsPanelStackingEnabled() {
// Stacked panel mode is not supported in linux-aura.
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
return false;
#else
return true;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_startup_bad_flags_prompt_cc,v 1.4 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/ui/startup/bad_flags_prompt.cc.orig.port Wed Jan 20 21:01:20 2016
+++ chrome/browser/ui/startup/bad_flags_prompt.cc Fri Jan 22 19:58:58 2016
@@ -71,7 +71,7 @@ void ShowBadFlagsPrompt(Browser* browser) {
// This flag gives extensions more powers.
extensions::switches::kExtensionsOnChromeURLs,
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
// Speech dispatcher is buggy, it can crash and it can make Chrome freeze.
// http://crbug.com/327295
switches::kEnableSpeechDispatcher,

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-chrome_browser_ui_startup_startup_browser_creator_cc,v 1.13 2015/12/05 16:13:32 robert Exp $
--- chrome/browser/ui/startup/startup_browser_creator.cc.orig.port Tue Nov 24 21:00:54 2015
+++ chrome/browser/ui/startup/startup_browser_creator.cc Wed Dec 2 08:18:32 2015
@@ -657,8 +657,10 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
}
#endif // OS_CHROMEOS
+#if 0 /* XXX */
#if defined(TOOLKIT_VIEWS) && defined(USE_X11)
ui::TouchFactory::SetTouchDeviceListFromCommandLine();
+#endif
#endif
#if defined(OS_MACOSX)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_toolbar_app_menu_model_cc,v 1.1 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/ui/toolbar/app_menu_model.cc.orig.port Fri Jan 22 22:04:59 2016
+++ chrome/browser/ui/toolbar/app_menu_model.cc Fri Jan 22 22:05:17 2016
@@ -779,7 +779,7 @@ bool AppMenuModel::IsCommandIdVisible(int command_id)
case IDC_UPGRADE_DIALOG:
return browser_defaults::kShowUpgradeMenuItem &&
UpgradeDetector::GetInstance()->notify_upgrade();
-#if !defined(OS_LINUX) || defined(USE_AURA)
+#if (!defined(OS_BSD) && !defined(OS_LINUX)) || defined(USE_AURA)
case IDC_BOOKMARK_PAGE:
return !chrome::ShouldRemoveBookmarkThisPageUI(browser_->profile());
case IDC_BOOKMARK_ALL_TABS:

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-chrome_browser_ui_views_accelerator_table_cc,v 1.5 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/ui/views/accelerator_table.cc.orig.port Wed Jan 20 21:01:20 2016
+++ chrome/browser/ui/views/accelerator_table.cc Fri Jan 22 19:58:58 2016
@@ -68,7 +68,7 @@ const AcceleratorMapping kAcceleratorMap[] = {
{ ui::VKEY_S, ui::EF_CONTROL_DOWN, IDC_SAVE_PAGE },
{ ui::VKEY_9, kPlatformModifier, IDC_SELECT_LAST_TAB },
{ ui::VKEY_NUMPAD9, kPlatformModifier, IDC_SELECT_LAST_TAB },
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
{ ui::VKEY_9, ui::EF_ALT_DOWN, IDC_SELECT_LAST_TAB },
{ ui::VKEY_NUMPAD9, ui::EF_ALT_DOWN, IDC_SELECT_LAST_TAB },
{ ui::VKEY_NEXT, ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN, IDC_MOVE_TAB_NEXT },
@@ -96,7 +96,7 @@ const AcceleratorMapping kAcceleratorMap[] = {
{ ui::VKEY_NUMPAD7, kPlatformModifier, IDC_SELECT_TAB_6 },
{ ui::VKEY_8, kPlatformModifier, IDC_SELECT_TAB_7 },
{ ui::VKEY_NUMPAD8, kPlatformModifier, IDC_SELECT_TAB_7 },
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
{ ui::VKEY_1, ui::EF_ALT_DOWN, IDC_SELECT_TAB_0 },
{ ui::VKEY_NUMPAD1, ui::EF_ALT_DOWN, IDC_SELECT_TAB_0 },
{ ui::VKEY_2, ui::EF_ALT_DOWN, IDC_SELECT_TAB_1 },
@@ -145,7 +145,7 @@ const AcceleratorMapping kAcceleratorMap[] = {
{ ui::VKEY_F11, ui::EF_NONE, IDC_FULLSCREEN },
// Platform-specific key maps.
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
{ ui::VKEY_BROWSER_BACK, ui::EF_NONE, IDC_BACK },
{ ui::VKEY_BROWSER_FORWARD, ui::EF_NONE, IDC_FORWARD },
{ ui::VKEY_BROWSER_HOME, ui::EF_NONE, IDC_HOME },

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_views_app_list_linux_app_list_linux_cc,v 1.1 2015/01/22 11:16:40 robert Exp $
--- chrome/browser/ui/views/app_list/linux/app_list_linux.cc.orig.port Sat Dec 27 12:59:28 2014
+++ chrome/browser/ui/views/app_list/linux/app_list_linux.cc Sat Dec 27 13:07:15 2014
@@ -91,7 +91,7 @@ void AppListLinux::MoveNearCursor(app_list::AppListVie
view->SetBubbleArrow(views::BubbleBorder::FLOAT);
AppListPositioner::ScreenEdge edge;
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
// In the Unity desktop environment, special case SCREEN_EDGE_LEFT. It is
// always on the left side in Unity, but ShelfLocationInDisplay will not
// detect this if the shelf is hidden.

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-chrome_browser_ui_views_apps_chrome_native_app_window_views_aura_cc,v 1.3 2015/09/05 16:06:50 robert Exp $
--- chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc.orig.port Sat Aug 22 21:01:52 2015
+++ chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc Wed Sep 2 07:31:55 2015
@@ -34,7 +34,7 @@
#include "ash/shell_window_ids.h"
#endif
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
#include "chrome/browser/shell_integration_linux.h"
#endif
@@ -141,7 +141,7 @@ void ChromeNativeAppWindowViewsAura::OnBeforeWidgetIni
const AppWindow::CreateParams& create_params,
views::Widget::InitParams* init_params,
views::Widget* widget) {
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
std::string app_name = web_app::GenerateApplicationNameFromExtensionId(
app_window()->extension_id());
// Set up a custom WM_CLASS for app windows. This allows task switchers in

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_views_ash_chrome_browser_main_extra_parts_ash_cc,v 1.1 2015/01/22 11:16:40 robert Exp $
--- chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc.orig.port Sat Dec 27 12:59:28 2014
+++ chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc Sat Dec 27 13:07:28 2014
@@ -75,7 +75,7 @@ void ChromeBrowserMainExtraPartsAsh::PreProfileInit()
if (chrome::ShouldOpenAshOnStartup()) {
chrome::OpenAsh(gfx::kNullAcceleratedWidget);
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
ash::Shell::GetInstance()->CreateShelf();
ash::Shell::GetInstance()->ShowShelf();
#endif

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-chrome_browser_ui_views_chrome_views_delegate_cc,v 1.12 2015/12/05 16:13:32 robert Exp $
--- chrome/browser/ui/views/chrome_views_delegate.cc.orig.port Tue Nov 24 21:00:54 2015
+++ chrome/browser/ui/views/chrome_views_delegate.cc Wed Dec 2 08:18:32 2015
@@ -48,7 +48,7 @@
#include "ui/views/widget/native_widget_aura.h"
#endif
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
#include "ui/views/linux_ui/linux_ui.h"
#endif
@@ -271,7 +271,7 @@ bool ChromeViewsDelegate::IsWindowInMetro(gfx::NativeW
return chrome::IsNativeViewInAsh(window);
}
-#elif defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#elif (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
gfx::ImageSkia* ChromeViewsDelegate::GetDefaultWindowIcon() const {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
return rb.GetImageSkiaNamed(IDR_PRODUCT_LOGO_64);
@@ -410,7 +410,7 @@ void ChromeViewsDelegate::OnBeforeWidgetInit(
#endif
}
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
bool ChromeViewsDelegate::WindowManagerProvidesTitleBar(bool maximized) {
// On Ubuntu Unity, the system always provides a title bar for maximized
// windows.

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-chrome_browser_ui_views_chrome_views_delegate_h,v 1.9 2015/12/05 16:13:32 robert Exp $
--- chrome/browser/ui/views/chrome_views_delegate.h.orig.port Fri Nov 13 12:04:15 2015
+++ chrome/browser/ui/views/chrome_views_delegate.h Wed Dec 2 08:18:32 2015
@@ -36,7 +36,7 @@ class ChromeViewsDelegate : public views::ViewsDelegat
HICON GetDefaultWindowIcon() const override;
HICON GetSmallWindowIcon() const override;
bool IsWindowInMetro(gfx::NativeWindow window) const override;
-#elif defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#elif (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
gfx::ImageSkia* GetDefaultWindowIcon() const override;
#endif
@@ -49,7 +49,7 @@ class ChromeViewsDelegate : public views::ViewsDelegat
void OnBeforeWidgetInit(
views::Widget::InitParams* params,
views::internal::NativeWidgetDelegate* delegate) override;
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
bool WindowManagerProvidesTitleBar(bool maximized) override;
#endif
ui::ContextFactory* GetContextFactory() override;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_views_exclusive_access_bubble_views_cc,v 1.2 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/ui/views/exclusive_access_bubble_views.cc.orig.port Wed Jan 20 21:01:20 2016
+++ chrome/browser/ui/views/exclusive_access_bubble_views.cc Fri Jan 22 19:58:58 2016
@@ -204,7 +204,7 @@ ExclusiveAccessBubbleViews::ExclusiveAccessView::Exclu
exit_instruction_(nullptr),
browser_fullscreen_exit_accelerator_(accelerator) {
views::BubbleBorder::Shadow shadow_type = views::BubbleBorder::BIG_SHADOW;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
// Use a smaller shadow on Linux (including ChromeOS) as the shadow assets can
// overlap each other in a fullscreen notification bubble.
// See http://crbug.com/462983.

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-chrome_browser_ui_views_first_run_dialog_cc,v 1.3 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/ui/views/first_run_dialog.cc.orig.port Thu Jan 14 02:49:22 2016
+++ chrome/browser/ui/views/first_run_dialog.cc Fri Jan 22 19:58:58 2016
@@ -119,12 +119,16 @@ void FirstRunDialog::OnClosed() {
bool FirstRunDialog::Accept() {
GetWidget()->Hide();
+#if !defined(OS_BSD)
if (report_crashes_ && report_crashes_->checked()) {
if (GoogleUpdateSettings::SetCollectStatsConsent(true))
breakpad::InitCrashReporter(std::string());
} else {
GoogleUpdateSettings::SetCollectStatsConsent(false);
}
+#else
+ GoogleUpdateSettings::SetCollectStatsConsent(false);
+#endif
if (make_default_ && make_default_->checked())
ShellIntegration::SetAsDefaultBrowser();

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-chrome_browser_ui_views_frame_browser_frame_cc,v 1.6 2015/05/24 15:51:53 robert Exp $
--- chrome/browser/ui/views/frame/browser_frame.cc.orig.port Sat May 23 00:59:48 2015
+++ chrome/browser/ui/views/frame/browser_frame.cc Sat May 23 01:05:57 2015
@@ -33,7 +33,7 @@
#include "ash/shell.h"
#endif
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
#include "chrome/browser/ui/views/frame/browser_command_handler_linux.h"
#endif
@@ -82,7 +82,7 @@ void BrowserFrame::InitBrowserFrame() {
non_client_view()->set_context_menu_controller(this);
}
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
browser_command_handler_.reset(new BrowserCommandHandlerLinux(browser_view_));
#endif
}

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_cc,v 1.16 2016/01/23 18:49:31 robert Exp $
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc.orig.port Fri Jan 22 22:05:32 2016
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc Fri Jan 22 22:05:50 2016
@@ -55,7 +55,7 @@
#include "chrome/browser/ui/views/profiles/supervised_user_avatar_label.h"
#endif
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
#include "ui/views/controls/menu/menu_runner.h"
#endif
@@ -336,7 +336,7 @@ void OpaqueBrowserFrameView::ButtonPressed(views::Butt
void OpaqueBrowserFrameView::OnMenuButtonClicked(views::View* source,
const gfx::Point& point) {
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
views::MenuRunner menu_runner(frame()->GetSystemMenuModel(),
views::MenuRunner::HAS_MNEMONICS);
ignore_result(menu_runner.RunMenuAt(browser_view()->GetWidget(),

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_layout_cc,v 1.3 2015/01/22 11:16:41 robert Exp $
--- chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc.orig.port Wed Dec 3 03:32:11 2014
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc Sat Dec 6 11:34:25 2014
@@ -87,7 +87,7 @@ const int kTabstripTopShadowThickness = 3;
// is no avatar icon.
const int kTabStripIndent = -6;
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
// Default extra space between the top of the frame and the top of the window
// caption buttons.
const int kExtraCaption = 2;

Some files were not shown because too many files have changed in this diff Show More