Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1036)

Unified Diff: content/common/sandbox_win.cc

Issue 2950153002: Improve process launch handle sharing API. (Closed)
Patch Set: Merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/zygote_host/zygote_host_impl_linux.cc ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_win.cc
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
index bf52c336b8ed3738e814ef2e74f0cfe0ed39b906..4719a0e9121a38d89d30d8a1dae7bd99a149d51c 100644
--- a/content/common/sandbox_win.cc
+++ b/content/common/sandbox_win.cc
@@ -745,11 +745,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;
*process = base::LaunchProcess(*cmd_line, options);
return sandbox::SBOX_ALL_OK;
}
« no previous file with comments | « content/browser/zygote_host/zygote_host_impl_linux.cc ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698