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

Unified Diff: content/browser/renderer_host/render_view_host_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 | « chrome/browser/about_flags.cc ('k') | content/public/common/web_preferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index da25e25dba061bf6d295ac506f2598c0685f23fc..c65b5cb297e377bd7450ebee13e60199d29eaa03 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -462,6 +462,9 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
#if defined(OS_ANDROID)
prefs.device_supports_mouse = false;
+
+ prefs.video_fullscreen_orientation_lock_enabled =
+ base::FeatureList::IsEnabled(media::kVideoFullscreenOrientationLock);
#endif
prefs.pointer_events_max_touch_points = ui::MaxTouchPoints();
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/web_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698