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

Unified Diff: media/base/android/java/src/org/chromium/media/MediaSwitches.java

Issue 2843913003: 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: media/base/android/java/src/org/chromium/media/MediaSwitches.java
diff --git a/media/base/android/java/src/org/chromium/media/MediaSwitches.java b/media/base/android/java/src/org/chromium/media/MediaSwitches.java
new file mode 100644
index 0000000000000000000000000000000000000000..4cbdf4ff8c0d26b7511f6abe7eaebddec5f281d6
--- /dev/null
+++ b/media/base/android/java/src/org/chromium/media/MediaSwitches.java
@@ -0,0 +1,18 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
DaleCurtis 2017/04/26 19:39:21 2017
mlamouri (slow - plz ping) 2017/04/27 12:17:36 Done :)
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.media;
+
+/**
+ * Contains command line switches that are specific to the media layer.
+ */
+public abstract class MediaSwitches {
+ // Ignores all autoplay restrictions. It will ignore the current autoplay policy and all
+ // restrictions such as playback in a background tab. It should only be enabled for testing.
+ public static final String IGNORE_AUTOPLAY_RESTRICTIONS_FOR_TESTS =
+ "ignore-autoplay-restrictions";
+
+ // Prevents instantiation.
+ private MediaSwitches() {}
+}

Powered by Google App Engine
This is Rietveld 408576698