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 f62cf8320202c8cecfe3caa4b1504b320f58ca25..db981b63dbf96e5b1ed0ecef3245acdfa099c79e 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -440,7 +440,8 @@ |
// is disabled with a command-line switch or the equivalent field trial is |
// is set to "Enabled". |
prefs.user_gesture_required_for_media_playback = |
- !command_line.HasSwitch(switches::kIgnoreAutoplayRestrictionsForTests) && |
+ !command_line.HasSwitch( |
+ switches::kDisableGestureRequirementForMediaPlayback) && |
command_line.GetSwitchValueASCII(switches::kAutoplayPolicy) != |
switches::autoplay::kNoUserGestureRequiredPolicy; |