aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_browser_BUILD.gn
blob: 8f33e4de17c7eac92e77aca4ff324aa521f05c22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- chrome/browser/BUILD.gn.orig	2021-09-24 04:25:57 UTC
+++ chrome/browser/BUILD.gn
@@ -2458,9 +2458,18 @@ static_library("browser") {
       deps += [ "//chromeos/services/libassistant/public/mojom" ]
     }
   }
-  if (is_linux || is_chromeos) {
+  if ((is_linux || is_chromeos) && !is_bsd) {
     deps += [ "//chrome/browser/error_reporting" ]
   }
+  if (is_bsd) {
+    sources -= [
+      "crash_upload_list/crash_upload_list.cc",
+      "crash_upload_list/crash_upload_list.h",
+    ]
+    deps -= [
+      "//components/crash/core/browser",
+    ]
+  }
   if (use_ozone) {
     deps += [
       "//ui/events/ozone",
@@ -5515,6 +5524,17 @@ static_library("browser") {
     ]
   }
 
+  if (is_bsd) {
+    sources -= [
+      "enterprise/signals/device_info_fetcher_linux.cc",
+      "enterprise/signals/device_info_fetcher_linux.h",
+    ]
+    sources += [
+      "enterprise/signals/device_info_fetcher_freebsd.cc",
+      "enterprise/signals/device_info_fetcher_freebsd.h",
+    ]
+  }
+
   if (is_posix) {
     sources += [
       "shutdown_signal_handlers_posix.cc",
@@ -5675,7 +5695,7 @@ static_library("browser") {
     ]
   }
 
-  if (is_posix && !is_mac) {
+  if (is_posix && !is_mac && !is_bsd) {
     # TODO(crbug.com/1226159): Complete crash reporting integration on Fuchsia.
     sources += [
       "//chrome/app/chrome_crash_reporter_client.cc",