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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2039773003: [Android] Added a runtime flag to enable autoplay of muted videos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed the flag to autoplay-muted-videos Created 4 years, 6 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
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/LayoutTests/media/autoplay-muted.html » ('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 59343cf0b87a57494012857cfe3f341a1100cd2f..7eecd9666b2950603ec5e8a310d1f5bd3a185ef9 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1131,6 +1131,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
prefs.resue_global_for_unowned_main_frame);
settings->setPreferHiddenVolumeControls(true);
settings->setShrinksViewportContentToFit(true);
+ WebRuntimeFeatures::enableAutoplayMutedVideos(
+ prefs.autoplay_muted_videos_enabled);
#endif
settings->setAutoplayExperimentMode(
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/LayoutTests/media/autoplay-muted.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698