| Index: mojo/edk/system/core.cc
|
| diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc
|
| index 17f7bf5f7a6b92aabd88c4fee333318ddfb16112..eed6f3278e97d26adb7e88409a3a7e793f740616 100644
|
| --- a/mojo/edk/system/core.cc
|
| +++ b/mojo/edk/system/core.cc
|
| @@ -81,12 +81,24 @@ scoped_refptr<Dispatcher> Core::GetDispatcher(MojoHandle handle) {
|
|
|
| void Core::AddChild(base::ProcessHandle process_handle,
|
| ScopedPlatformHandle platform_handle) {
|
| - GetNodeController()->ConnectToChild(process_handle,
|
| - std::move(platform_handle));
|
| + GetNodeController()->ConnectToChild(
|
| + process_handle, std::move(platform_handle), "");
|
| +}
|
| +
|
| +void Core::AddChild(base::ProcessHandle process_handle,
|
| + ScopedPlatformHandle platform_handle,
|
| + const std::string& secret) {
|
| + GetNodeController()->ConnectToChild(
|
| + process_handle, std::move(platform_handle), secret);
|
| }
|
|
|
| void Core::InitChild(ScopedPlatformHandle platform_handle) {
|
| - GetNodeController()->ConnectToParent(std::move(platform_handle));
|
| + GetNodeController()->ConnectToParent(std::move(platform_handle), "");
|
| +}
|
| +
|
| +void Core::InitChild(ScopedPlatformHandle platform_handle,
|
| + const std::string& secret) {
|
| + GetNodeController()->ConnectToParent(std::move(platform_handle), secret);
|
| }
|
|
|
| MojoHandle Core::AddDispatcher(scoped_refptr<Dispatcher> dispatcher) {
|
|
|