diff --git a/shell/browser/electron_browser_client.cc b/shell/browser/electron_browser_client.cc index 45dc1f66dd294..7165ff4d32ed1 100644 --- a/shell/browser/electron_browser_client.cc +++ b/shell/browser/electron_browser_client.cc @@ -120,10 +120,6 @@ #include "ui/native_theme/native_theme.h" #include "v8/include/v8.h" -#if BUILDFLAG(IS_WIN) -#include "sandbox/win/src/sandbox_policy.h" -#endif - #if BUILDFLAG(USE_NSS_CERTS) #include "net/ssl/client_cert_store_nss.h" #elif BUILDFLAG(IS_WIN) @@ -1435,19 +1431,6 @@ void ElectronBrowserClient::OverrideURLLoaderFactoryParams( browser_context, origin, is_for_isolated_world, factory_params); } -#if BUILDFLAG(IS_WIN) -bool ElectronBrowserClient::PreSpawnChild(sandbox::TargetPolicy* policy, - sandbox::mojom::Sandbox sandbox_type, - ChildSpawnFlags flags) { - sandbox::ResultCode result = policy->GetConfig()->AddRule( - sandbox::SubSystem::kFiles, sandbox::Semantics::kFilesAllowAny, - L"\\??\\pipe\\crashpad_*"); - if (result != sandbox::SBOX_ALL_OK) - return false; - return true; -} -#endif // BUILDFLAG(IS_WIN) - void ElectronBrowserClient:: RegisterAssociatedInterfaceBindersForRenderFrameHost( content::RenderFrameHost& diff --git a/shell/browser/electron_browser_client.h b/shell/browser/electron_browser_client.h index a410ef9781f94..cac12e8582be0 100644 --- a/shell/browser/electron_browser_client.h +++ b/shell/browser/electron_browser_client.h @@ -242,11 +242,6 @@ class ElectronBrowserClient : public content::ContentBrowserClient, const url::Origin& origin, bool is_for_isolated_world, network::mojom::URLLoaderFactoryParams* factory_params) override; -#if BUILDFLAG(IS_WIN) - bool PreSpawnChild(sandbox::TargetPolicy* policy, - sandbox::mojom::Sandbox sandbox_type, - ChildSpawnFlags flags) override; -#endif void RegisterAssociatedInterfaceBindersForRenderFrameHost( content::RenderFrameHost& render_frame_host, blink::AssociatedInterfaceRegistry& associated_registry) override;