chore: remove crashpad related sandbox policy (#37013)
This commit is contained in:
parent
a59f11fdb1
commit
a30a9c7c4f
2 changed files with 0 additions and 22 deletions
|
@ -120,10 +120,6 @@
|
||||||
#include "ui/native_theme/native_theme.h"
|
#include "ui/native_theme/native_theme.h"
|
||||||
#include "v8/include/v8.h"
|
#include "v8/include/v8.h"
|
||||||
|
|
||||||
#if BUILDFLAG(IS_WIN)
|
|
||||||
#include "sandbox/win/src/sandbox_policy.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if BUILDFLAG(USE_NSS_CERTS)
|
#if BUILDFLAG(USE_NSS_CERTS)
|
||||||
#include "net/ssl/client_cert_store_nss.h"
|
#include "net/ssl/client_cert_store_nss.h"
|
||||||
#elif BUILDFLAG(IS_WIN)
|
#elif BUILDFLAG(IS_WIN)
|
||||||
|
@ -1435,19 +1431,6 @@ void ElectronBrowserClient::OverrideURLLoaderFactoryParams(
|
||||||
browser_context, origin, is_for_isolated_world, factory_params);
|
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::
|
void ElectronBrowserClient::
|
||||||
RegisterAssociatedInterfaceBindersForRenderFrameHost(
|
RegisterAssociatedInterfaceBindersForRenderFrameHost(
|
||||||
content::RenderFrameHost&
|
content::RenderFrameHost&
|
||||||
|
|
|
@ -242,11 +242,6 @@ class ElectronBrowserClient : public content::ContentBrowserClient,
|
||||||
const url::Origin& origin,
|
const url::Origin& origin,
|
||||||
bool is_for_isolated_world,
|
bool is_for_isolated_world,
|
||||||
network::mojom::URLLoaderFactoryParams* factory_params) override;
|
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(
|
void RegisterAssociatedInterfaceBindersForRenderFrameHost(
|
||||||
content::RenderFrameHost& render_frame_host,
|
content::RenderFrameHost& render_frame_host,
|
||||||
blink::AssociatedInterfaceRegistry& associated_registry) override;
|
blink::AssociatedInterfaceRegistry& associated_registry) override;
|
||||||
|
|
Loading…
Add table
Reference in a new issue