mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 03:23:10 -04:00
with these changes, chromium now automatically selects which audio backend to use in the following order: pulse (if running) -> sndio -> alsa -> fake an additional command line option has been also implemented so that the user can force which backend to use: --audio-backend={auto,sndio,pulse,alsa} Security: https://vuxml.freebsd.org/freebsd/8247af0d-183b-11ef-9f97-a8a1599412c6.html PR: 246449
38 lines
1.5 KiB
C++
38 lines
1.5 KiB
C++
--- components/metrics/metrics_log.cc.orig 2024-05-21 18:07:39 UTC
|
|
+++ components/metrics/metrics_log.cc
|
|
@@ -56,7 +56,7 @@
|
|
#include "base/win/current_module.h"
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
#include "base/environment.h"
|
|
#include "base/nix/xdg_util.h"
|
|
#endif
|
|
@@ -146,7 +146,7 @@ void RecordCurrentTime(
|
|
}
|
|
}
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
metrics::SystemProfileProto::OS::XdgSessionType ToProtoSessionType(
|
|
base::nix::SessionType session_type) {
|
|
switch (session_type) {
|
|
@@ -415,7 +415,7 @@ void MetricsLog::RecordCoreSystemProfile(
|
|
// OperatingSystemVersion refers to the ChromeOS release version.
|
|
#if BUILDFLAG(IS_CHROMEOS_ASH)
|
|
os->set_kernel_version(base::SysInfo::KernelVersion());
|
|
-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
|
|
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
|
|
// Linux operating system version is copied over into kernel version to be
|
|
// consistent.
|
|
os->set_kernel_version(base::SysInfo::OperatingSystemVersion());
|
|
@@ -432,7 +432,7 @@ void MetricsLog::RecordCoreSystemProfile(
|
|
os->set_build_number(base::SysInfo::GetIOSBuildNumber());
|
|
#endif
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
std::unique_ptr<base::Environment> env = base::Environment::Create();
|
|
os->set_xdg_session_type(ToProtoSessionType(base::nix::GetSessionType(*env)));
|
|
os->set_xdg_current_desktop(
|