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

Unified Diff: content/common/sandbox_win.cc

Issue 790003002: Update sandbox_win and delegate_execute to use the new version of LaunchProcess. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | win8/delegate_execute/command_execute_impl.cc » ('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 fd04f762a692d9af0ba3bb6d21d2d6aadc208a3c..1481961350677bd650d1f81c091ca8fe81efa517 100644
--- a/content/common/sandbox_win.cc
+++ b/content/common/sandbox_win.cc
@@ -605,11 +605,11 @@ base::Process StartSandboxedProcess(
if ((delegate && !delegate->ShouldSandbox()) ||
browser_command_line.HasSwitch(switches::kNoSandbox) ||
cmd_line->HasSwitch(switches::kNoSandbox)) {
- base::ProcessHandle handle = 0;
- base::LaunchProcess(*cmd_line, base::LaunchOptions(), &handle);
+ base::Process process =
+ base::LaunchProcess(*cmd_line, base::LaunchOptions());
// TODO(rvargas) crbug.com/417532: Don't share a raw handle.
- g_broker_services->AddTargetPeer(handle);
- return base::Process(handle);
+ g_broker_services->AddTargetPeer(process.Handle());
+ return process.Pass();
}
sandbox::TargetPolicy* policy = g_broker_services->CreatePolicy();
« no previous file with comments | « no previous file | win8/delegate_execute/command_execute_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698