summaryrefslogtreecommitdiff
path: root/devel/electron5/files/patch-content_browser_browser__main__loop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron5/files/patch-content_browser_browser__main__loop.cc')
-rw-r--r--devel/electron5/files/patch-content_browser_browser__main__loop.cc46
1 files changed, 0 insertions, 46 deletions
diff --git a/devel/electron5/files/patch-content_browser_browser__main__loop.cc b/devel/electron5/files/patch-content_browser_browser__main__loop.cc
deleted file mode 100644
index 9b715ca09eb2..000000000000
--- a/devel/electron5/files/patch-content_browser_browser__main__loop.cc
+++ /dev/null
@@ -1,46 +0,0 @@
---- content/browser/browser_main_loop.cc.orig 2019-04-09 12:48:20 UTC
-+++ content/browser/browser_main_loop.cc
-@@ -250,6 +250,13 @@
- #include "mojo/public/cpp/bindings/lib/test_random_mojo_delays.h"
- #endif
-
-+#if defined(OS_BSD)
-+#include "content/browser/sandbox_host_linux.h"
-+#include "services/service_manager/zygote/common/common_sandbox_support_linux.h"
-+#include "content/public/common/common_sandbox_support_linux.h"
-+#include "services/service_manager/sandbox/sandbox.h"
-+#endif
-+
- // One of the linux specific headers defines this as a macro.
- #ifdef DestroyAll
- #undef DestroyAll
-@@ -585,6 +592,11 @@ int BrowserMainLoop::EarlyInitialization() {
- // by now since a thread to start the ServiceManager has been created
- // before the browser main loop starts.
- DCHECK(SandboxHostLinux::GetInstance()->IsInitialized());
-+#elif defined(OS_BSD)
-+ SandboxHostLinux::GetInstance()->Init();
-+ base::FileHandleMappingVector fds_to_map;
-+ const int sfd = SandboxHostLinux::GetInstance()->GetChildSocket();
-+ fds_to_map.push_back(std::make_pair(sfd, service_manager::GetSandboxFD()));
- #endif
-
- #if defined(USE_X11)
-@@ -629,7 +641,7 @@ int BrowserMainLoop::EarlyInitialization() {
- #endif // defined(OS_ANDROID) || defined(OS_CHROMEOS)
-
- #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_CHROMEOS) || \
-- defined(OS_ANDROID)
-+ defined(OS_ANDROID) || defined(OS_BSD)
- // We use quite a few file descriptors for our IPC as well as disk the disk
- // cache,and the default limit on the Mac is low (256), so bump it up.
-
-@@ -639,7 +651,7 @@ int BrowserMainLoop::EarlyInitialization() {
- // an arbitrarily high number. See https://crbug.com/539567
- base::IncreaseFdLimitTo(8192);
- #endif // defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_CHROMEOS) ||
-- // defined(OS_ANDROID)
-+ // defined(OS_ANDROID) || defined(OS_BSD)
-
- #if defined(OS_WIN)
- net::EnsureWinsockInit();