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

Unified Diff: media/base/media_switches.cc

Issue 2816773002: Added switch for bypassing protected media identifier permission (Closed)
Patch Set: Added switch for bypassing permissions Created 3 years, 7 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/media_switches.cc
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
index 28e749dc8dbc8cbb2ae6cb3776e349355adfc14b..551b86cf0ec5a0090084809fb5e7ccd5fe1e8573 100644
--- a/media/base/media_switches.cc
+++ b/media/base/media_switches.cc
@@ -64,6 +64,15 @@ const char kWaveOutBuffers[] = "waveout-buffers";
const char kUseCras[] = "use-cras";
#endif
+// For automated testing of protected content, this switch will allow specific
+// domains to bypass the protected media identifier permission prompt. This
+// flag will have no effect if user-data-dir is not set.
+// Example:
+// --disable-infobar-for-protected-media-identifier-for-domain=a.com,b.ca
assareh1 2017/05/05 16:32:23 Can you clarify if port is required here?
assareh1 2017/05/05 16:32:23 Putting the crbug in the comment might be a good i
Vaage 2017/05/08 18:10:36 Done.
+// --user-data-dir=/test/only/profile/dir
+const char kDisableInfobarForProtectedMediaIdentifierForDomain[] =
+ "disable-infobar-for-protected-media-identifier-for-domain";
+
#if !defined(OS_ANDROID) || BUILDFLAG(ENABLE_PLUGINS)
// Use a media session for each tabs in a way that two tabs can't play on top of
// each other. This is different from the Media Session API as it is enabling a
« chrome/browser/ui/startup/bad_flags_prompt.cc ('K') | « media/base/media_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698