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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index fcce8b3b44e4878747a2da04e027a54b3eade2d5..40c9e454046aeee2d51845f26bba61569d274849 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -2394,14 +2394,12 @@ void RenderFrameHostImpl::SetUpMojoIfNeeded() {
return;
interface_registry_.reset(new shell::InterfaceRegistry(nullptr));
- if (!GetProcess()->GetServiceRegistry())
+ if (!GetProcess()->GetRemoteInterfaces())
return;
RegisterMojoInterfaces();
mojom::FrameFactoryPtr frame_factory;
- GetProcess()->GetServiceRegistry()->ConnectToRemoteService(
- mojo::GetProxy(&frame_factory));
-
+ GetProcess()->GetRemoteInterfaces()->GetInterface(&frame_factory);
frame_factory->CreateFrame(routing_id_, GetProxy(&frame_),
frame_host_binding_.CreateInterfacePtrAndBind());
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698