pkgsrc-wip/chromium/patches/patch-headless_lib_browser_...

23 lines
1018 B
C++

$NetBSD$
--- headless/lib/browser/headless_content_browser_client.cc.orig 2020-07-08 21:41:48.000000000 +0000
+++ headless/lib/browser/headless_content_browser_client.cc
@@ -158,7 +158,7 @@ HeadlessContentBrowserClient::GetGenerat
return content::GeneratedCodeCacheSettings(true, 0, context->GetPath());
}
-#if defined(OS_POSIX) && !defined(OS_MACOSX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD)
void HeadlessContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
const base::CommandLine& command_line,
int child_process_id,
@@ -241,7 +241,7 @@ void HeadlessContentBrowserClient::Appen
process_type, child_process_id);
}
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
// Processes may only query perf_event_open with the BPF sandbox disabled.
if (old_command_line.HasSwitch(::switches::kEnableThreadInstructionCount) &&
old_command_line.HasSwitch(service_manager::switches::kNoSandbox)) {