| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index 348f57da7bff23781c8704f4fb9fb3bf66a4aae0..4daca94dea84faa7e7315af015ab7b46f1a719e6 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -4510,7 +4510,11 @@ bool RenderFrameImpl::allowWebGL(bool default_value) {
|
| blink::WebScreenOrientationClient*
|
| RenderFrameImpl::webScreenOrientationClient() {
|
| if (!screen_orientation_dispatcher_)
|
| - screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this);
|
| + // Connect to the remote service and give the proxy thus obtained to the
|
| + // dispatcher.
|
| + GetRemoteInterfaces()->GetInterface(&screen_orientation_service_);
|
| + screen_orientation_dispatcher_ =
|
| + new ScreenOrientationDispatcher(screen_orientation_service_.get());
|
| return screen_orientation_dispatcher_;
|
| }
|
|
|
|
|