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

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

Issue 839773002: Plumbing from WebPresentationClient to the Presentation Mojo service for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Swapped handling the event and requesting a new one Created 5 years, 11 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 edd4788a91f20d40b4396032a2dd9ae778b1068d..c6b86cec0dee62e94b2c47778fe513a7f9a76863 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -28,6 +28,7 @@
#include "content/browser/geolocation/geolocation_service_context.h"
#include "content/browser/permissions/permission_service_context.h"
#include "content/browser/permissions/permission_service_impl.h"
+#include "content/browser/presentation/presentation_service_impl.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"
@@ -1207,6 +1208,9 @@ void RenderFrameHostImpl::RegisterMojoServices() {
GetServiceRegistry()->AddService<PermissionService>(
base::Bind(&PermissionServiceContext::CreateService,
base::Unretained(permission_service_context_.get())));
+
+ GetServiceRegistry()->AddService<presentation::PresentationService>(
+ base::Bind(&PresentationServiceImpl::CreateService));
}
void RenderFrameHostImpl::SetState(RenderFrameHostImplState rfh_state) {
« no previous file with comments | « no previous file | content/browser/presentation/OWNERS » ('j') | content/browser/presentation/presentation_service_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698