aboutsummaryrefslogblamecommitdiff
path: root/www/chromium/files/patch-services_on__device__model_on__device__model__service.h
blob: f69be4084f46c089377a39f977f2be1946a7eb05 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                                                                       
                                                      
                  









                                                             
                                                                        







                                                                               
--- services/on_device_model/on_device_model_service.h.orig	2024-05-21 18:07:39 UTC
+++ services/on_device_model/on_device_model_service.h
@@ -22,6 +22,10 @@
 #include "sandbox/policy/linux/sandbox_linux.h"
 #endif
 
+#if BUILDFLAG(IS_BSD)
+#include "sandbox/policy/sandbox.h"
+#endif
+
 namespace on_device_model {
 
 class COMPONENT_EXPORT(ON_DEVICE_MODEL) OnDeviceModelService
@@ -31,7 +35,7 @@ class COMPONENT_EXPORT(ON_DEVICE_MODEL) OnDeviceModelS
   // These are defined separately in pre_sandbox_init.cc for explicit security
   // review coverage.
   [[nodiscard]] static bool PreSandboxInit();
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
   static void AddSandboxLinuxOptions(
       sandbox::policy::SandboxLinux::Options& options);
 #endif