diff options
Diffstat (limited to 'devel/electron32/files/patch-content_browser_browser__main__loop.cc')
-rw-r--r-- | devel/electron32/files/patch-content_browser_browser__main__loop.cc | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/devel/electron32/files/patch-content_browser_browser__main__loop.cc b/devel/electron32/files/patch-content_browser_browser__main__loop.cc deleted file mode 100644 index 18548609ed7d..000000000000 --- a/devel/electron32/files/patch-content_browser_browser__main__loop.cc +++ /dev/null @@ -1,37 +0,0 @@ ---- content/browser/browser_main_loop.cc.orig 2024-08-14 20:54:59 UTC -+++ content/browser/browser_main_loop.cc -@@ -254,6 +254,12 @@ - #include "mojo/public/cpp/bindings/lib/test_random_mojo_delays.h" - #endif - -+#if BUILDFLAG(IS_BSD) -+#include "content/browser/sandbox_host_linux.h" -+#include "content/public/common/zygote/sandbox_support_linux.h" -+#include "sandbox/policy/sandbox.h" -+#endif -+ - // One of the linux specific headers defines this as a macro. - #ifdef DestroyAll - #undef DestroyAll -@@ -549,6 +555,12 @@ 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 BUILDFLAG(IS_BSD) -+ base::FileHandleMappingVector additional_remapped_fds; -+ base::LaunchOptions options; -+ SandboxHostLinux::GetInstance()->Init(); -+ const int sfd = SandboxHostLinux::GetInstance()->GetChildSocket(); -+ options.fds_to_remap.push_back(std::make_pair(sfd, GetSandboxFD())); - #endif - - // GLib's spawning of new processes is buggy, so it's important that at this -@@ -586,7 +598,7 @@ int BrowserMainLoop::EarlyInitialization() { - base::PlatformThread::SetCurrentThreadType(base::ThreadType::kCompositing); - - #if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \ -- BUILDFLAG(IS_ANDROID) -+ BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) - // We use quite a few file descriptors for our IPC as well as disk the disk - // cache, and the default limit on Apple is low (256), so bump it up. - |