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

Unified Diff: chrome/browser/about_flags.cc

Issue 2496593002: Adding an experimental flag to block autoplay with sound in cross-origin iframes (Closed)
Patch Set: nits 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 | « chrome/app/generated_resources.grd ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 32b2ef74231fabda1e73e9d60f19f0205fc852d2..9bedfd3abce82874138d2ed2099a79b3fe2ee630 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1122,6 +1122,14 @@ const FeatureEntry kFeatureEntries[] = {
IDS_FLAGS_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK_DESCRIPTION, kOsAll,
SINGLE_DISABLE_VALUE_TYPE(
switches::kDisableGestureRequirementForMediaPlayback)},
+#if !defined(OS_ANDROID)
+ {"cross-origin-media-playback-requires-user-gesture",
+ IDS_FLAGS_CROSS_ORIGIN_MEDIA_PLAYBACK_REQUIRES_USER_GESTURE_NAME,
+ IDS_FLAGS_CROSS_ORIGIN_MEDIA_PLAYBACK_REQUIRES_USER_GESTURE_DESCRIPTION,
+ kOsDesktop, FEATURE_VALUE_TYPE(
+ features::kCrossOriginMediaPlaybackRequiresUserGesture)},
+#endif // !defined(OS_ANDROID)
+
#if defined(OS_CHROMEOS)
{"enable-virtual-keyboard", IDS_FLAGS_VIRTUAL_KEYBOARD_NAME,
IDS_FLAGS_VIRTUAL_KEYBOARD_DESCRIPTION, kOsCrOS,
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698