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

Unified Diff: content/renderer/render_frame_impl.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/public/test/test_mojo_app.cc ('k') | content/test/data/web_ui_mojo_shell_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 82e5f3c7d7c56356a2a91f83b494eee776317cac..6b89e3b6cc5b4d6f112a3a9c76b56e17d6793018 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -6088,8 +6088,11 @@ mojo::shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication(
if (!connector_)
GetServiceRegistry()->ConnectToRemoteService(mojo::GetProxy(&connector_));
mojo::shell::mojom::InterfaceProviderPtr interface_provider;
- connector_->Connect(url.spec(), mojo::shell::mojom::kInheritUserID,
- GetProxy(&interface_provider), nullptr,
+ mojo::shell::mojom::IdentityPtr target(mojo::shell::mojom::Identity::New());
+ target->name = url.spec();
+ target->user_id = mojo::shell::mojom::kInheritUserID;
+ target->instance = "";
+ connector_->Connect(std::move(target), GetProxy(&interface_provider), nullptr,
base::Bind(&OnGotInstanceID));
return interface_provider;
}
« no previous file with comments | « content/public/test/test_mojo_app.cc ('k') | content/test/data/web_ui_mojo_shell_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698