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

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

Issue 2851453003: Revert of Rename kDisableGestureRequirementForMediaPlayback and make it a test-only flag. (Closed)
Patch Set: Created 3 years, 8 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
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;

Powered by Google App Engine
This is Rietveld 408576698