| 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 ac12b2649be4ee7be55a128da4cba7668c3946e4..53dacd1903f48c02a0a0ee2a26a08e461211a0c5 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -52,6 +52,7 @@
|
| #include "content/browser/renderer_host/render_widget_host_delegate.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/shared_worker/shared_worker_service_impl.h"
|
| #include "content/browser/websockets/websocket_manager.h"
|
| #include "content/browser/webui/web_ui_controller_factory_registry.h"
|
| @@ -2247,6 +2248,14 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
|
| }
|
| #endif
|
|
|
| + ScreenOrientationProvider* screen_orientation_provider =
|
| + delegate_ ? delegate_->GetScreenOrientationProvider() : nullptr;
|
| + if (screen_orientation_provider) {
|
| + GetInterfaceRegistry()->AddInterface(
|
| + base::Bind(&ScreenOrientationServiceImpl::Create,
|
| + base::Unretained(screen_orientation_provider)));
|
| + }
|
| +
|
| GetContentClient()->browser()->RegisterRenderFrameMojoInterfaces(
|
| GetInterfaceRegistry(), this);
|
| }
|
|
|