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

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: falling back to adding a boolean flag Created 4 years, 1 month 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: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 557f7348a2382e8dfe8534d423cbcd42a1a54578..2de2293fbb2abaf2f0544207277675f5a9bf0e93 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1121,6 +1121,14 @@ const FeatureEntry kFeatureEntries[] = {
IDS_FLAGS_GESTURE_REQUIREMENT_FOR_MEDIA_PLAYBACK_DESCRIPTION, kOsAll,
SINGLE_DISABLE_VALUE_TYPE(
switches::kDisableGestureRequirementForMediaPlayback)},
+#if !defined(OS_ANDROID)
+ {"gesture-requirement-for-cross-origin-media-playback",
mlamouri (slow - plz ping) 2016/11/18 14:33:10 You use "cross-origin-media-playback-requires-user
Zhiqiang Zhang (Slow) 2016/11/21 18:06:23 Done.
+ 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,

Powered by Google App Engine
This is Rietveld 408576698