Index: content/common/sandbox_win.cc |
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
index 3963c6e33d9f211c96d5a76046f72d077398b38b..42474c35cf6cf48b4a92f130046f40e1b7faa19b 100644 |
--- a/content/common/sandbox_win.cc |
+++ b/content/common/sandbox_win.cc |
@@ -741,12 +741,7 @@ sandbox::ResultCode StartSandboxedProcess( |
browser_command_line.HasSwitch(switches::kNoSandbox) || |
cmd_line->HasSwitch(switches::kNoSandbox)) { |
base::LaunchOptions options; |
- |
- base::HandlesToInheritVector handles = handles_to_inherit; |
- if (!handles_to_inherit.empty()) { |
- options.inherit_handles = true; |
- options.handles_to_inherit = &handles; |
- } |
+ options.handles_to_inherit = handles_to_inherit; |
base::Process unsandboxed_process = base::LaunchProcess(*cmd_line, options); |
*process = std::move(unsandboxed_process); |