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

Unified Diff: chrome/browser/media/encrypted_media_browsertest.cc

Issue 865793003: Replace "enable-encrypted-media" flag with "disable-encrypted-media". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore old value to histograms.xml Created 5 years, 11 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/media/encrypted_media_browsertest.cc
diff --git a/chrome/browser/media/encrypted_media_browsertest.cc b/chrome/browser/media/encrypted_media_browsertest.cc
index 38362afab1c4225a45cb932a3e50cf3ef99f99a0..771eeae4223d01400626d8f0885990ce4f9f886c 100644
--- a/chrome/browser/media/encrypted_media_browsertest.cc
+++ b/chrome/browser/media/encrypted_media_browsertest.cc
@@ -337,13 +337,13 @@ class ECKEncryptedMediaTest : public EncryptedMediaTestBase {
// Tests encrypted media playback using ExternalClearKey key system in
// decrypt-and-decode mode for unprefixed EME.
-// TODO(jrummell): Merge with ECKEncryptedMediaTest once unprefixed is
-// enabled by default.
+// TODO(jrummell): Make ECKEncryptedMediaTest run the unprefixed tests and add
+// a prefixed class to run the prefixed tests. (Once prefixed is disabled by
+// default, we will need a subclass to enable it from the command line.)
class ECKUnprefixedEncryptedMediaTest : public EncryptedMediaTestBase {
protected:
void SetUpCommandLine(base::CommandLine* command_line) override {
EncryptedMediaTestBase::SetUpCommandLine(command_line);
- command_line->AppendSwitch(switches::kEnableEncryptedMedia);
SetUpCommandLineForKeySystem(kExternalClearKeyKeySystem, command_line);
}
};
@@ -354,7 +354,6 @@ class WVEncryptedMediaTest : public EncryptedMediaTestBase {
protected:
void SetUpCommandLine(base::CommandLine* command_line) override {
EncryptedMediaTestBase::SetUpCommandLine(command_line);
- command_line->AppendSwitch(switches::kEnableEncryptedMedia);
SetUpCommandLineForKeySystem(kWidevineKeySystem, command_line);
}
};
@@ -437,9 +436,6 @@ class EncryptedMediaTest
void SetUpCommandLine(base::CommandLine* command_line) override {
EncryptedMediaTestBase::SetUpCommandLine(command_line);
SetUpCommandLineForKeySystem(CurrentKeySystem(), command_line);
-
- if (CurrentEmeVersion() == UNPREFIXED)
- command_line->AppendSwitch(switches::kEnableEncryptedMedia);
}
};
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('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