aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_browser_chrome__browser__main__linux.cc
blob: 0350cb5daff067eb582b30ebed031b35521b19bc (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
--- chrome/browser/chrome_browser_main_linux.cc.orig	2021-03-12 23:57:17 UTC
+++ chrome/browser/chrome_browser_main_linux.cc
@@ -82,6 +82,7 @@ void ChromeBrowserMainPartsLinux::PreProfileInit() {
 void ChromeBrowserMainPartsLinux::PostProfileInit() {
   ChromeBrowserMainPartsPosix::PostProfileInit();
 
+#if !defined(OS_BSD)
   bool breakpad_registered;
   if (crash_reporter::IsCrashpadEnabled()) {
     // If we're using crashpad, there's no breakpad and crashpad is always
@@ -99,10 +100,11 @@ void ChromeBrowserMainPartsLinux::PostProfileInit() {
   }
   g_browser_process->metrics_service()->RecordBreakpadRegistration(
       breakpad_registered);
+#endif
 }
 
 void ChromeBrowserMainPartsLinux::PostMainMessageLoopStart() {
-#if !BUILDFLAG(IS_CHROMEOS_ASH)
+#if !BUILDFLAG(IS_CHROMEOS_ASH) && !defined(OS_BSD)
   bluez::BluezDBusManager::Initialize(nullptr /* system_bus */);
 #endif
 
@@ -110,7 +112,7 @@ void ChromeBrowserMainPartsLinux::PostMainMessageLoopS
 }
 
 void ChromeBrowserMainPartsLinux::PostDestroyThreads() {
-#if !BUILDFLAG(IS_CHROMEOS_ASH)
+#if !BUILDFLAG(IS_CHROMEOS_ASH) && !defined(OS_BSD)
   bluez::BluezDBusManager::Shutdown();
   bluez::BluezDBusThreadManager::Shutdown();
 #endif