Chromium Code Reviews| 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 09d1f1198bc983d993fdb14b44645f0cfb03ec1f..63fd7a6d3df767746add5c77c6a9623963598133 100644 |
| --- a/content/browser/frame_host/render_frame_host_impl.cc |
| +++ b/content/browser/frame_host/render_frame_host_impl.cc |
| @@ -32,6 +32,7 @@ |
| #include "content/browser/renderer_host/render_view_host_impl.h" |
| #include "content/browser/renderer_host/render_widget_host_impl.h" |
| #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| +#include "content/browser/screen_orientation/screen_orientation_service_impl.h" |
| #include "content/browser/transition_request_manager.h" |
| #include "content/common/accessibility_messages.h" |
| #include "content/common/desktop_notification_messages.h" |
| @@ -188,6 +189,10 @@ RenderFrameHostImpl::RenderFrameHostImpl(RenderViewHostImpl* render_view_host, |
| this)); |
| if (GetProcess()->GetServiceRegistry()) { |
| + GetServiceRegistry()->AddService<ScreenOrientationService>( |
|
qsr
2014/09/22 13:01:48
You might want to extract this into a registration
|
| + base::Bind(&ScreenOrientationServiceImpl::Create, |
| + base::Unretained(delegate_->GetAsWebContents()))); |
| + |
| RenderFrameSetupPtr setup; |
| GetProcess()->GetServiceRegistry()->ConnectToRemoteService(&setup); |
| mojo::ServiceProviderPtr service_provider; |