aboutsummaryrefslogtreecommitdiff
path: root/devel/electron33/files/patch-content_browser_utility__process__host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron33/files/patch-content_browser_utility__process__host.cc')
-rw-r--r--devel/electron33/files/patch-content_browser_utility__process__host.cc72
1 files changed, 0 insertions, 72 deletions
diff --git a/devel/electron33/files/patch-content_browser_utility__process__host.cc b/devel/electron33/files/patch-content_browser_utility__process__host.cc
deleted file mode 100644
index 94d444dea494..000000000000
--- a/devel/electron33/files/patch-content_browser_utility__process__host.cc
+++ /dev/null
@@ -1,72 +0,0 @@
---- content/browser/utility_process_host.cc.orig 2024-10-28 21:05:18 UTC
-+++ content/browser/utility_process_host.cc
-@@ -62,7 +62,7 @@
- #include "content/browser/v8_snapshot_files.h"
- #endif
-
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
- #include "base/files/file_util.h"
- #include "base/files/scoped_file.h"
- #include "base/pickle.h"
-@@ -75,7 +75,7 @@
- #include "services/network/public/mojom/network_service.mojom.h"
- #endif
-
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
- #include "base/task/sequenced_task_runner.h"
- #include "components/viz/host/gpu_client.h"
- #include "media/capture/capture_switches.h"
-@@ -86,7 +86,7 @@ namespace {
-
- namespace {
-
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
- base::ScopedFD PassNetworkContextParentDirs(
- std::vector<base::FilePath> network_context_parent_dirs) {
- base::Pickle pickle;
-@@ -151,7 +151,7 @@ UtilityProcessHost::UtilityProcessHost(std::unique_ptr
- started_(false),
- name_(u"utility process"),
- file_data_(std::make_unique<ChildProcessLauncherFileData>()),
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
- allowed_gpu_(false),
- gpu_client_(nullptr, base::OnTaskRunnerDeleter(nullptr)),
- #endif
-@@ -212,7 +212,7 @@ void UtilityProcessHost::SetAllowGpuClient() {
- #endif // BUILDFLAG(IS_WIN)
-
- void UtilityProcessHost::SetAllowGpuClient() {
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
- allowed_gpu_ = true;
- #endif
- }
-@@ -432,7 +432,7 @@ bool UtilityProcessHost::StartProcess() {
- file_data_->files_to_preload.merge(GetV8SnapshotFilesToPreload(*cmd_line));
- #endif // BUILDFLAG(IS_POSIX)
-
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
- // The network service should have access to the parent directories
- // necessary for its usage.
- if (sandbox_type_ == sandbox::mojom::Sandbox::kNetwork) {
-@@ -443,13 +443,13 @@ bool UtilityProcessHost::StartProcess() {
- }
- #endif // BUILDFLAG(IS_LINUX)
-
--#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_BSD)
- // Pass `kVideoCaptureUseGpuMemoryBuffer` flag to video capture service only
- // when the video capture use GPU memory buffer enabled.
- if (metrics_name_ == video_capture::mojom::VideoCaptureService::Name_) {
- bool pass_gpu_buffer_flag =
- switches::IsVideoCaptureUseGpuMemoryBufferEnabled();
--#if BUILDFLAG(IS_LINUX)
-+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
- // Check if NV12 GPU memory buffer supported at the same time.
- pass_gpu_buffer_flag =
- pass_gpu_buffer_flag &&