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

Unified Diff: content/browser/mojo/mojo_shell_client_host.cc

Issue 1738663002: Hook embedded shell up to MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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_shell_client_host.h ('k') | content/browser/mojo/mojo_shell_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_shell_client_host.cc
diff --git a/content/browser/mojo/mojo_shell_client_host.cc b/content/browser/mojo/mojo_shell_client_host.cc
index 86a6737eec6f1f636e1ba63eacbefdb8e1124609..6a7b70798cfb4554ce33871dd2ebfbfb8219a78c 100644
--- a/content/browser/mojo/mojo_shell_client_host.cc
+++ b/content/browser/mojo/mojo_shell_client_host.cc
@@ -111,6 +111,7 @@ class PIDSender : public RenderProcessHostObserver {
} // namespace
void RegisterChildWithExternalShell(int child_process_id,
+ int instance_id,
RenderProcessHost* render_process_host) {
// Some process types get created before the main message loop.
if (!MojoShellConnection::Get())
@@ -143,8 +144,8 @@ void RegisterChildWithExternalShell(int child_process_id,
// specification is best determined (not here, this is a common
// chokepoint for all process types) and how to wire it through.
// http://crbug.com/555393
- std::string url =
- base::StringPrintf("exe:chrome_renderer%d", child_process_id);
+ std::string url = base::StringPrintf(
+ "exe:chrome_renderer%d_%d", child_process_id, instance_id);
mojo::shell::mojom::PIDReceiverPtr pid_receiver;
mojo::InterfaceRequest<mojo::shell::mojom::PIDReceiver> request =
« no previous file with comments | « content/browser/mojo/mojo_shell_client_host.h ('k') | content/browser/mojo/mojo_shell_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698