blob: 3b82d95948ae0a7998e2c5243d12a563588d8bf3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- content/common/user_agent.cc.orig 2022-03-25 21:59:56 UTC
+++ content/common/user_agent.cc
@@ -245,6 +245,16 @@ std::string BuildOSCpuInfoFromOSVersionAndCpuType(cons
"Android %s", os_version.c_str()
#elif BUILDFLAG(IS_FUCHSIA)
"Fuchsia"
+#elif BUILDFLAG(IS_BSD)
+#if defined(__x86_64__)
+ "Linux x86_64; %s %s",
+#elif defined(__aarch64__)
+ "Linux aarch64; %s %s",
+#else
+ "Linux i686; %s %s",
+#endif
+ unixinfo.sysname, // e.g. Linux
+ cpu_type.c_str() // e.g. i686
#elif BUILDFLAG(IS_POSIX)
"%s %s",
unixinfo.sysname, // e.g. Linux
|