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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2738893002: Add flag for enabling/disabling video fullscreen detection (Closed)
Patch Set: Created 3 years, 9 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_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 09fd4bb6ba8b2fbc9c40e7addaf4b58e77fcb138..1a0dfa031f779c7856d1735c97cc09c53505130c 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1016,6 +1016,9 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
settings->setExpensiveBackgroundThrottlingMaxDelay(
prefs.expensive_background_throttling_max_delay);
+ WebRuntimeFeatures::enableVideoFullscreenDetection(
+ prefs.video_fullscreen_detection_enabled);
+
#if defined(OS_ANDROID)
settings->setAllowCustomScrollbarInMainFrame(false);
settings->setTextAutosizingEnabled(prefs.text_autosizing_enabled);

Powered by Google App Engine
This is Rietveld 408576698