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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2844923002: Replace InterfaceRegistry on RenderFrameHostImpl with BinderRegistry (Closed)
Patch Set: . Created 3 years, 8 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 553ca5e5ac954fb93e345e7124ea6cec9c6be855..aa7d4907e3aea8876681cc63c4f3f46027b884d8 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1004,10 +1004,12 @@ void RenderProcessHostImpl::InitializeChannelProxy() {
// Establish a ServiceManager connection for the new render service instance.
pending_connection_.reset(new mojo::edk::PendingProcessConnection);
- child_connection_.reset(new ChildConnection(
+ service_manager::Identity child_identity(
mojom::kRendererServiceName,
- base::StringPrintf("%d_%d", id_, instance_id_++),
- pending_connection_.get(), connector, io_task_runner));
+ BrowserContext::GetServiceUserIdFor(GetBrowserContext()),
+ base::StringPrintf("%d_%d", id_, instance_id_++));
+ child_connection_.reset(new ChildConnection(
+ child_identity, pending_connection_.get(), connector, io_task_runner));
// Send an interface request to bootstrap the IPC::Channel. Note that this
// request will happily sit on the pipe until the process is launched and
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/webui/web_ui_mojo_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698