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

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

Issue 1769163002: Add a instance groups to Connect(), and introduce an Identity struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/frame_host/frame_mojo_shell.cc ('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 69f1cc5ccb98d741efbcd2a8537e3bfa3fcf561e..e762c225d3193f51300522164beabbd1ec316a1c 100644
--- a/content/browser/mojo/mojo_shell_client_host.cc
+++ b/content/browser/mojo/mojo_shell_client_host.cc
@@ -124,8 +124,11 @@ std::string RegisterChildWithExternalShell(
factory.Bind(mojo::InterfacePtrInfo<mojo::shell::mojom::ShellClientFactory>(
std::move(request_pipe), 0u));
- shell->CreateInstance(std::move(factory), url,
- mojo::shell::mojom::kInheritUserID,
+ mojo::shell::mojom::IdentityPtr target(mojo::shell::mojom::Identity::New());
+ target->name = url;
+ target->user_id = mojo::shell::mojom::kInheritUserID;
+ target->instance = "";
+ shell->CreateInstance(std::move(factory), std::move(target),
CreateCapabilityFilterForRenderer(),
std::move(request), base::Bind(&OnConnectionComplete));
« no previous file with comments | « content/browser/frame_host/frame_mojo_shell.cc ('k') | content/browser/mojo/mojo_shell_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698