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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2487373003: Disable background video track behind a feature flag (Closed)
Patch Set: Rebase + comment fix 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
« no previous file with comments | « content/renderer/media/webmediaplayer_ms_unittest.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 c9c736d8444579b359552cae6bbc015be340a4f8..613853c618a7bc1ef942a600bc5aee6174c2f9e4 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1059,6 +1059,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);
« no previous file with comments | « content/renderer/media/webmediaplayer_ms_unittest.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698