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
parent dbca0c72ec
commit 477384f63e

View File

@ -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;