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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2472773005: Remove autoplay-muted-videos feature flag. (Closed)
Patch Set: update java code 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/public/common/web_preferences.cc ('k') | no next file » | 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 b045f2ecf2752308d38772f6df28142cd2a3c82f..956a194d1b0061b01718c4c102ba1838f4c6d82b 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1017,6 +1017,7 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
static_cast<WebSettings::ProgressBarCompletion>(
prefs.progress_bar_completion));
settings->setPreferHiddenVolumeControls(true);
+ settings->setSpellCheckEnabledByDefault(prefs.spellcheck_enabled_by_default);
// Force preload=none and disable autoplay on older or low end Android
// platforms because their media pipelines are not stable enough to handle
@@ -1025,10 +1026,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
base::android::BuildInfo::GetInstance()->sdk_int() <=
base::android::SDK_VERSION_JELLY_BEAN_MR2 ||
base::SysInfo::IsLowEndDevice();
+ // TODO(mlamouri): rename this setting "isLowEndDevice".
settings->setForcePreloadNoneForMediaElements(is_low_end_device);
- WebRuntimeFeatures::enableAutoplayMutedVideos(
- prefs.autoplay_muted_videos_enabled && !is_low_end_device);
- settings->setSpellCheckEnabledByDefault(prefs.spellcheck_enabled_by_default);
#endif
settings->setAutoplayExperimentMode(
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698