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

Unified Diff: content/browser/mojo/mojo_child_connection.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 | « content/browser/mojo/mojo_child_connection.h ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_child_connection.cc
diff --git a/content/browser/mojo/mojo_child_connection.cc b/content/browser/mojo/mojo_child_connection.cc
index 333271a651e8878b59e9f5703ebf78241fce721d..29570ab084094b33b0632781c531699e5dd5c5f5 100644
--- a/content/browser/mojo/mojo_child_connection.cc
+++ b/content/browser/mojo/mojo_child_connection.cc
@@ -17,10 +17,11 @@
namespace content {
MojoChildConnection::MojoChildConnection(const std::string& application_name,
- const std::string& instance_id)
+ const std::string& instance_id,
+ const std::string& child_token)
: shell_client_token_(mojo::edk::GenerateRandomToken()) {
mojo::ScopedMessagePipeHandle shell_client_pipe =
- mojo::edk::CreateParentMessagePipe(shell_client_token_);
+ mojo::edk::CreateParentMessagePipe(shell_client_token_, child_token);
// Some process types get created before the main message loop. In this case
// the shell request pipe will simply be closed, and the child can detect
« no previous file with comments | « content/browser/mojo/mojo_child_connection.h ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698