Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2391883006: Mojo-ify implementation of screen orientation locking/unlocking. (Closed)
Patch Set: Moved enum mojo definition to content/common due to dependency issue Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
}

Powered by Google App Engine
This is Rietveld 408576698