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 8e6dff68f781c09c66bcc9e570dea23f4e085ae7..f82e30fae323bb5aed8715aa39c8894a49bd63c4 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -53,6 +53,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_provider.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" |
@@ -2356,6 +2357,10 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() { |
base::Bind(&PermissionServiceContext::CreateService, |
base::Unretained(permission_service_context_.get()))); |
+ GetInterfaceRegistry()->AddInterface<device::mojom::ScreenOrientation>( |
+ base::Bind(&ScreenOrientationProvider::BindRequest, |
+ base::Unretained(this))); |
+ |
GetInterfaceRegistry()->AddInterface(base::Bind( |
&PresentationServiceImpl::CreateMojoService, base::Unretained(this))); |