• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git sandbox/policy/win/sandbox_win.cc sandbox/policy/win/sandbox_win.cc
2index 197e66eeb5b3b..f92f0659aa13f 100644
3--- sandbox/policy/win/sandbox_win.cc
4+++ sandbox/policy/win/sandbox_win.cc
5@@ -1155,6 +1155,13 @@ ResultCode SandboxWin::StartSandboxedProcess(
6     const base::HandlesToInheritVector& handles_to_inherit,
7     SandboxDelegate* delegate,
8     base::Process* process) {
9+  // Will be nullptr if SandboxInterfaceInfo was not initialized by the CEF
10+  // client, meaning that the sandbox is implicitly disabled.
11+  if (!g_broker_services) {
12+    return LaunchWithoutSandbox(cmd_line, handles_to_inherit, delegate,
13+                                process);
14+  }
15+
16   scoped_refptr<TargetPolicy> policy = g_broker_services->CreatePolicy();
17   ResultCode result = GeneratePolicyForSandboxedProcess(
18       cmd_line, process_type, handles_to_inherit, delegate, policy);
19