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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2487373003: Disable background video track behind a feature flag (Closed)
Patch Set: Updated test files Created 4 years, 1 month 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 da05c5ff6b54a849cce60518ba0aa959a9fc4018..6b4266047777810bd1a3fad1f7ceb12791c84a36 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1056,6 +1056,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
prefs.always_show_context_menu_on_touch);
settings->setHideDownloadUI(prefs.hide_download_ui);
+ WebRuntimeFeatures::enableBackgroundVideoTrackOptimization(
+ prefs.background_video_track_optimization_enabled);
#if defined(OS_MACOSX)
settings->setDoubleTapToZoomEnabled(true);

Powered by Google App Engine
This is Rietveld 408576698