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

Unified Diff: chrome/browser/flag_descriptions.cc

Issue 2837023002: Create autoplay policy flag and merge cross-origin autoplay blocking into it. (Closed)
Patch Set: fix tests 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
« no previous file with comments | « chrome/browser/flag_descriptions.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/flag_descriptions.cc
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index dc668e722631e6dedbf48e3a48cefe948613896b..aa43666a09105d430d9a83f4baf58ca79d5ebe58 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -654,17 +654,6 @@ const char kGestureRequirementForMediaPlaybackDescription[] =
"User gesture requirement for playing media elements. Disabling this "
"will allow autoplay to work.";
-#if !defined(OS_ANDROID)
-
-const char kCrossOriginMediaPlaybackRequiresUserGestureName[] =
- "Media playback in cross-origin iframes requires user gesture";
-
-const char kCrossOriginMediaPlaybackRequiresUserGestureDescription[] =
- "Playing media elements in cross-origin iframes requires user gesture. "
- "Disabling this will allow autoplay in cross-origin iframes to work.";
-
-#endif // !defined(OS_ANDROID)
-
const char kPassiveDocumentEventListenersDescription[] =
"Forces touchstart, and touchmove event listeners on document level "
"targets (which haven't requested otherwise) to be treated as passive.";
@@ -3047,4 +3036,17 @@ const char kEnableOmniboxClipboardProviderDescription[] =
#endif // defined(OS_ANDROID)
+const char kAutoplayPolicyName[] = "Autoplay policy";
+
+const char kAutoplayPolicyDescription[] =
+ "Policy used when deciding if audio or video is allowed to autoplay.";
+
+const char kAutoplayPolicyNoUserGestureRequired[] =
+ "No user gesture is required.";
+
+const char kAutoplayPolicyUserGestureRequired[] = "User gesture is required.";
+
+const char kAutoplayPolicyCrossOriginUserGestureRequired[] =
+ "User gesture is required for cross-origin iframes.";
+
} // namespace flag_descriptions
« no previous file with comments | « chrome/browser/flag_descriptions.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698