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

Side by Side Diff: services/service_manager/runner/host/service_process_launcher.cc

Issue 2735113003: Changing SpawnChild to return a struct.
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/service_manager/runner/host/service_process_launcher.h" 5 #include "services/service_manager/runner/host/service_process_launcher.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 if (child_process_.IsValid()) { 191 if (child_process_.IsValid()) {
192 DVLOG(0) << "Launched child process pid=" << child_process_.Pid() 192 DVLOG(0) << "Launched child process pid=" << child_process_.Pid()
193 << ", instance=" << target_.instance() 193 << ", instance=" << target_.instance()
194 << ", name=" << target_.name() 194 << ", name=" << target_.name()
195 << ", user_id=" << target_.user_id(); 195 << ", user_id=" << target_.user_id();
196 196
197 if (mojo_ipc_channel_.get()) { 197 if (mojo_ipc_channel_.get()) {
198 mojo_ipc_channel_->ChildProcessLaunched(); 198 mojo_ipc_channel_->ChildProcessLaunched();
199 process_connection_.Connect(child_process_.Handle(), 199 process_connection_.Connect(
200 mojo_ipc_channel_->PassServerHandle()); 200 child_process_.Handle(),
201 mojo::edk::ConnectionParam(mojo_ipc_channel_->PassServerHandle()));
201 } 202 }
202 } 203 }
203 start_child_process_event_.Signal(); 204 start_child_process_event_.Signal();
204 } 205 }
205 206
206 } // namespace service_manager 207 } // namespace service_manager
OLDNEW
« no previous file with comments | « mojo/public/cpp/system/platform_handle.cc ('k') | services/service_manager/tests/service_manager/service_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698