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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2547533002: Add flags to enable screen orientation lock for fullscreen video on Android. (Closed)
Patch Set: rebased Created 4 years 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
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 1c416ec0db0dd08513e016cc8d9401ca84905dce..26af9751fe2bee57a0c4a5cbd45e6c5af9b712ae 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1040,6 +1040,9 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
base::SysInfo::IsLowEndDevice();
// TODO(mlamouri): rename this setting "isLowEndDevice".
settings->setForcePreloadNoneForMediaElements(is_low_end_device);
+
+ WebRuntimeFeatures::enableVideoFullscreenOrientationLock(
+ prefs.video_fullscreen_orientation_lock_enabled);
#endif
settings->setViewportEnabled(prefs.viewport_enabled);
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698