Bug 1173225 - Add pref to control whether we trial create a GMPVideoDecoder. r=edwin

This commit is contained in:
Chris Pearce 2015-06-10 14:42:04 +12:00
Родитель dbca0c72ec
Коммит 477384f63e
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -60,6 +60,10 @@ TrialCreatePrefName(const nsAString& aKeySystem)
GMPVideoDecoderTrialCreator::TrialCreateState
GMPVideoDecoderTrialCreator::GetCreateTrialState(const nsAString& aKeySystem)
{
if (Preferences::GetBool("media.gmp.always-trial-create", false)) {
return Pending;
}
const char* pref = TrialCreatePrefName(aKeySystem);
if (!pref) {
return Pending;