Bug 1447982 - Remove unused MediaEnginePrefs from AllocationHandle. r=padenot

MozReview-Commit-ID: 3gIU7MCddWG

--HG--
extra : rebase_source : f894d4dcefe229cd8b3aa170c9dd617b4a2b6314
This commit is contained in:
Andreas Pehrson 2018-03-26 12:15:56 +02:00
parent 1776ec7eae
commit cb8419331d
2 changed files with 1 additions and 4 deletions

View File

@ -44,20 +44,17 @@ public:
AllocationHandle() = delete;
AllocationHandle(const dom::MediaTrackConstraints& aConstraints,
const ipc::PrincipalInfo& aPrincipalInfo,
const MediaEnginePrefs& aPrefs,
const nsString& aDeviceId)
: mId(GetUniqueId())
, mDeviceId(aDeviceId)
, mPrincipalInfo(aPrincipalInfo)
, mConstraints(aConstraints)
, mPrefs(aPrefs)
{}
const uint64_t mId;
const nsString mDeviceId;
const ipc::PrincipalInfo mPrincipalInfo;
NormalizedConstraints mConstraints;
MediaEnginePrefs mPrefs;
};
} // namespace mozilla

View File

@ -586,7 +586,7 @@ MediaEngineWebRTCMicrophoneSource::Allocate(const dom::MediaTrackConstraints &aC
AssertIsOnOwningThread();
MOZ_ASSERT(aOutHandle);
auto handle = MakeRefPtr<AllocationHandle>(aConstraints, aPrincipalInfo,
aPrefs, aDeviceId);
aDeviceId);
LOG(("Mic source %p allocation %p Allocate()", this, handle.get()));