Commit 2d480872 authored by Ken Rockot's avatar Ken Rockot Committed by Commit Bot

[cloud-print] Fix service utility process launch

Fixes a bug which breaks sandboxed service utility process launching.
The launcher was invalidating the child process's Mojo channel handle
before launch.

Bug: 882158
Change-Id: I406bc3adcf9be2e74dda87f536151b4f05ac3319
Reviewed-on: https://chromium-review.googlesource.com/1220266Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Ken Rockot <rockot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590401}
parent 61d3f56f
...@@ -428,8 +428,6 @@ bool ServiceUtilityProcessHost::Launch(base::CommandLine* cmd_line, ...@@ -428,8 +428,6 @@ bool ServiceUtilityProcessHost::Launch(base::CommandLine* cmd_line,
if (sandbox) { if (sandbox) {
mojo::PlatformChannel channel; mojo::PlatformChannel channel;
mojo::PlatformChannelEndpoint client_endpoint =
channel.TakeRemoteEndpoint();
base::HandlesToInheritVector handles; base::HandlesToInheritVector handles;
channel.PrepareToPassRemoteEndpoint(&handles, cmd_line); channel.PrepareToPassRemoteEndpoint(&handles, cmd_line);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment