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

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

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
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 1f11c56e75f519c9c7122a5caf842319156c81f9..b64a24acd1d04ddff0257585e1dd76c37b67f7ed 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -2394,13 +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());
@@ -2409,8 +2408,8 @@ void RenderFrameHostImpl::SetUpMojoIfNeeded() {
shell::mojom::InterfaceProviderPtr remote_interfaces;
shell::mojom::InterfaceProviderRequest remote_interfaces_request =
GetProxy(&remote_interfaces);
- remote_interfaces_.reset(
- new shell::InterfaceProvider(std::move(remote_interfaces)));
+ remote_interfaces_.reset(new shell::InterfaceProvider);
+ remote_interfaces_->Bind(std::move(remote_interfaces));
frame_->GetInterfaceProvider(std::move(remote_interfaces_request));
#if defined(OS_ANDROID)
« 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