| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index 3b19fa3896b671fcd89d73ebb4dd2ad2a9d67e6b..da676c47e281a5c37803f7245e39c67231987662 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -87,7 +87,6 @@
|
| #include "content/renderer/render_widget_fullscreen_pepper.h"
|
| #include "content/renderer/renderer_webapplicationcachehost_impl.h"
|
| #include "content/renderer/renderer_webcolorchooser_impl.h"
|
| -#include "content/renderer/screen_orientation/screen_orientation_dispatcher.h"
|
| #include "content/renderer/shared_worker_repository.h"
|
| #include "content/renderer/v8_value_converter_impl.h"
|
| #include "content/renderer/websharedworker_proxy.h"
|
| @@ -3185,8 +3184,13 @@ void RenderFrameImpl::initializeChildFrame(const blink::WebRect& frame_rect,
|
|
|
| blink::WebScreenOrientationClient*
|
| RenderFrameImpl::webScreenOrientationClient() {
|
| - if (!screen_orientation_dispatcher_)
|
| - screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this);
|
| + if (!screen_orientation_dispatcher_) {
|
| + // Connect to the remote service and give the proxy thus obtained to the
|
| + // dispatcher.
|
| + GetServiceRegistry()->ConnectToRemoteService(&screen_orientation_service_);
|
| + screen_orientation_dispatcher_ =
|
| + new ScreenOrientationDispatcher(screen_orientation_service_.get());
|
| + }
|
| return screen_orientation_dispatcher_;
|
| }
|
|
|
|
|