mirror of
https://git.freebsd.org/ports.git
synced 2025-06-13 00:30:33 -04:00
Finally, after a long wait, an electron port for FreeBSD lands in the portstree. A huge thanks to everyone contributed to this huge effort and to the maintainer that is willing to take the burden of the maintainership!
34 lines
1.5 KiB
C++
34 lines
1.5 KiB
C++
--- chrome/browser/process_singleton_posix.cc.orig 2019-03-15 06:37:04 UTC
|
|
+++ chrome/browser/process_singleton_posix.cc
|
|
@@ -91,11 +91,11 @@
|
|
#include "net/base/network_interfaces.h"
|
|
#include "ui/base/l10n/l10n_util.h"
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_BSD)
|
|
#include "chrome/browser/ui/process_singleton_dialog_linux.h"
|
|
#endif
|
|
|
|
-#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
+#if defined(TOOLKIT_VIEWS) && (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
|
|
#include "ui/views/linux_ui/linux_ui.h"
|
|
#endif
|
|
|
|
@@ -323,7 +323,7 @@ bool DisplayProfileInUseError(const base::FilePath& lo
|
|
if (g_disable_prompt)
|
|
return g_user_opted_unlock_in_use_profile;
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_BSD)
|
|
base::string16 relaunch_button_text = l10n_util::GetStringUTF16(
|
|
IDS_PROFILE_IN_USE_LINUX_RELAUNCH);
|
|
return ShowProcessSingletonDialog(error, relaunch_button_text);
|
|
@@ -903,7 +903,7 @@ ProcessSingleton::NotifyResult ProcessSingleton::Notif
|
|
SendRemoteProcessInteractionResultHistogram(REMOTE_PROCESS_SHUTTING_DOWN);
|
|
return PROCESS_NONE;
|
|
} else if (strncmp(buf, kACKToken, arraysize(kACKToken) - 1) == 0) {
|
|
-#if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
+#if defined(TOOLKIT_VIEWS) && (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
|
|
// Likely NULL in unit tests.
|
|
views::LinuxUI* linux_ui = views::LinuxUI::instance();
|
|
if (linux_ui)
|