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 |