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

Unified Diff: chrome/browser/flag_descriptions.cc

Issue 2837023002: Create autoplay policy flag and merge cross-origin autoplay blocking into it. (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: chrome/browser/flag_descriptions.cc
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 0d952353bfd79c551530e55f5f021f6752df96a3..1f037e05bd3118dc712693c545d1c51d31150502 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -645,17 +645,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.";
@@ -3033,4 +3022,16 @@ const char kEnableIdleTimeSpellCheckingDescription[] =
"Make spell-checking code run only when the browser is idle, so that input "
"latency is reduced, especially when editing long articles, emails, etc.";
+const char kAutoplayPolicyName[] = "Autoplay policy";
+
+const char kAutoplayPolicyDescription[] =
+ "Policy used when deciding if audio or video is allowed to autoplay.";
+
+const char kAutoplayPolicyNoRestrictions[] = "No restrictions apply.";
+
+const char kAutoplayPolicyUserGestureRequired[] = "User gesture is required.";
+
+const char kAutoplayPolicyCrossOriginUserGestureRequired[] =
+ "User gesture is required for cross-origin iframes.";
+
} // namespace flag_descriptions

Powered by Google App Engine
This is Rietveld 408576698