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

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

Issue 1331203003: Set autoplay gesture override experiment based on finch trial group. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated histograms.xml. Created 5 years, 3 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 | « 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 19033a8ecdfa24d7156bc34187e4d0aa82ada488..8e0cb9f838fb6c3555fdfddbc5acd4005e62ed13 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -445,6 +445,11 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
prefs.user_gesture_required_for_media_playback = !command_line.HasSwitch(
switches::kDisableGestureRequirementForMediaPlayback) &&
(autoplay_group_name.empty() || autoplay_group_name != "Enabled");
+
+ // 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");
#endif
prefs.touch_enabled = ui::AreTouchEventsEnabled();
« 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