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

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

Issue 352013002: Revert 279557 "Support exposing Mojo services between render fra..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/content/browser/frame_host/render_frame_host_impl.cc
===================================================================
--- trunk/src/content/browser/frame_host/render_frame_host_impl.cc (revision 279559)
+++ trunk/src/content/browser/frame_host/render_frame_host_impl.cc (working copy)
@@ -18,7 +18,6 @@
#include "content/browser/frame_host/render_frame_proxy_host.h"
#include "content/browser/renderer_host/input/input_router.h"
#include "content/browser/renderer_host/input/timeout_monitor.h"
-#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/transition_request_manager.h"
@@ -26,7 +25,6 @@
#include "content/common/frame_messages.h"
#include "content/common/input_messages.h"
#include "content/common/inter_process_time_ticks_converter.h"
-#include "content/common/render_frame_setup.mojom.h"
#include "content/common/swapped_out_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
@@ -164,16 +162,6 @@
g_routing_id_frame_map.Get().insert(std::make_pair(
RenderFrameHostID(GetProcess()->GetID(), routing_id_),
this));
-
- if (GetProcess()->GetServiceRegistry()) {
- RenderFrameSetupPtr setup;
- GetProcess()->GetServiceRegistry()->GetRemoteInterface(&setup);
- mojo::IInterfaceProviderPtr service_provider;
- setup->GetServiceProviderForFrame(routing_id_,
- mojo::Get(&service_provider));
- service_registry_.BindRemoteServiceProvider(
- service_provider.PassMessagePipe());
- }
}
RenderFrameHostImpl::~RenderFrameHostImpl() {
@@ -254,11 +242,6 @@
return render_view_host_;
}
-ServiceRegistry* RenderFrameHostImpl::GetServiceRegistry() {
- static_cast<RenderProcessHostImpl*>(GetProcess())->EnsureMojoActivated();
- return &service_registry_;
-}
-
bool RenderFrameHostImpl::Send(IPC::Message* message) {
if (IPC_MESSAGE_ID_CLASS(message->type()) == InputMsgStart) {
return render_view_host_->input_router()->SendInput(
« no previous file with comments | « trunk/src/content/browser/frame_host/render_frame_host_impl.h ('k') | trunk/src/content/browser/mojo/mojo_application_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698