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

Unified Diff: services/shell/runner/common/client_util.cc

Issue 2019973002: [mojo-edk] Bind a child token to child launches and port reservations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 | « services/shell/runner/common/client_util.h ('k') | services/shell/runner/host/child_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/runner/common/client_util.cc
diff --git a/services/shell/runner/common/client_util.cc b/services/shell/runner/common/client_util.cc
index 9a79c0e88db11b40e8d14eda633fa1aebe05af09..7a7192ccd460f8503ffd03827f178fb9c179abce 100644
--- a/services/shell/runner/common/client_util.cc
+++ b/services/shell/runner/common/client_util.cc
@@ -13,13 +13,14 @@
namespace shell {
mojom::ShellClientPtr PassShellClientRequestOnCommandLine(
- base::CommandLine* command_line) {
+ base::CommandLine* command_line, const std::string& child_token) {
std::string token = mojo::edk::GenerateRandomToken();
command_line->AppendSwitchASCII(switches::kPrimordialPipeToken, token);
mojom::ShellClientPtr client;
client.Bind(
- mojom::ShellClientPtrInfo(mojo::edk::CreateParentMessagePipe(token), 0));
+ mojom::ShellClientPtrInfo(
+ mojo::edk::CreateParentMessagePipe(token, child_token), 0));
return client;
}
« no previous file with comments | « services/shell/runner/common/client_util.h ('k') | services/shell/runner/host/child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698