blob: 5470909708492d930ab7ddc8427d69509d135d2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- electron/chromium_src/chrome/browser/process_singleton_posix.cc.orig 2021-01-22 23:55:24 UTC
+++ electron/chromium_src/chrome/browser/process_singleton_posix.cc
@@ -93,7 +93,7 @@
#include "content/public/browser/browser_thread.h"
#include "net/base/network_interfaces.h"
-#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(TOOLKIT_VIEWS) && ((defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD))
#include "ui/views/linux_ui/linux_ui.h"
#endif
@@ -859,7 +859,7 @@ ProcessSingleton::NotifyResult ProcessSingleton::Notif
// The other process is shutting down, it's safe to start a new process.
return PROCESS_NONE;
} else if (strncmp(buf, kACKToken, base::size(kACKToken) - 1) == 0) {
-#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(TOOLKIT_VIEWS) && ((defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD))
// Likely NULL in unit tests.
views::LinuxUI* linux_ui = views::LinuxUI::instance();
if (linux_ui)
|