aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_system_sys__info__freebsd.cc
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2020-06-26 00:43:51 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2020-06-26 00:43:51 +0000
commita30c5559c66f4b76b51025624afb893aa1a639a0 (patch)
tree8a19e32e59f2bba08bc43feb49660511e7280a55 /www/chromium/files/patch-base_system_sys__info__freebsd.cc
parentf1294dde326d35331b947dbd5fbaedf9e383d7e8 (diff)
downloadports-a30c5559c66f4b76b51025624afb893aa1a639a0.tar.gz
ports-a30c5559c66f4b76b51025624afb893aa1a639a0.zip
www/chromium: Update to 83.0.4103.106 and fix synchronization
PR: 244185, 246387 Reported by: bourne.identity@hotmail.com Approved by: chromium@ (rene), cem Obtained from: Robert Nagy via OpenBSD port MFH: 2020Q2 Security: https://www.vuxml.org/freebsd/6a5d15b6-b661-11ea-8015-e09467587c17.html Differential Revision: https://reviews.freebsd.org/D25449
Notes
Notes: svn path=/head/; revision=540411
Diffstat (limited to 'www/chromium/files/patch-base_system_sys__info__freebsd.cc')
-rw-r--r--www/chromium/files/patch-base_system_sys__info__freebsd.cc22
1 files changed, 19 insertions, 3 deletions
diff --git a/www/chromium/files/patch-base_system_sys__info__freebsd.cc b/www/chromium/files/patch-base_system_sys__info__freebsd.cc
index 12994422dc08..9a5dd310f92a 100644
--- a/www/chromium/files/patch-base_system_sys__info__freebsd.cc
+++ b/www/chromium/files/patch-base_system_sys__info__freebsd.cc
@@ -1,6 +1,11 @@
---- base/system/sys_info_freebsd.cc.orig 2019-12-16 21:50:40 UTC
+--- base/system/sys_info_freebsd.cc.orig 2020-06-15 18:59:42 UTC
+++ base/system/sys_info_freebsd.cc
-@@ -13,26 +13,59 @@
+@@ -9,30 +9,76 @@
+ #include <sys/sysctl.h>
+
+ #include "base/logging.h"
++#include "base/strings/string_util.h"
+
namespace base {
int64_t SysInfo::AmountOfPhysicalMemoryImpl() {
@@ -62,6 +67,17 @@
}
+
return static_cast<uint64_t>(limit);
++}
++
++SysInfo::HardwareInfo SysInfo::GetHardwareInfoSync() {
++ HardwareInfo info;
++ // Set the manufacturer to "FreeBSD" and the model to
++ // an empty string.
++ info.manufacturer = "FreeBSD";
++ info.model = HardwareModelName();
++ DCHECK(IsStringUTF8(info.manufacturer));
++ DCHECK(IsStringUTF8(info.model));
++ return info;
}
--
+
} // namespace base