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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2510353004: Deprecating AutoplayExperimentHelper (Closed)
Patch Set: rebased Created 4 years 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 | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index a178f9a6d846766336c6f325b513ef6e7ab040f1..4e00e0974ed3cb8cdd9867e5cb097d6bcd76884d 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -434,22 +434,14 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
// On Android, user gestures are normally required, unless that requirement
// is disabled with a command-line switch or the equivalent field trial is
// is set to "Enabled".
- const std::string autoplay_group_name = base::FieldTrialList::FindFullName(
- "MediaElementAutoplay");
prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch(
- switches::kDisableGestureRequirementForMediaPlayback) &&
- (autoplay_group_name.empty() || autoplay_group_name != "Enabled");
+ switches::kDisableGestureRequirementForMediaPlayback);
prefs.progress_bar_completion = GetProgressBarCompletionPolicy();
prefs.use_solid_color_scrollbars = true;
#endif
- // Handle autoplay gesture override experiment.
- // Note that anything but a well-formed string turns the experiment off.
- prefs.autoplay_experiment_mode = base::FieldTrialList::FindFullName(
- "MediaElementGestureOverrideExperiment");
-
prefs.touch_event_api_enabled =
!command_line.HasSwitch(switches::kTouchEvents) ||
command_line.GetSwitchValueASCII(switches::kTouchEvents) !=
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698