Bug 1515873 - Remove aWindowId arg from MediaManager::GetBackend. r=jib

It is unused.

Differential Revision: https://phabricator.services.mozilla.com/D15630

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2019-01-03 05:18:09 +00:00
Родитель dcb4011f3a
Коммит e72c999524
2 изменённых файлов: 5 добавлений и 5 удалений

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

@ -1845,7 +1845,7 @@ RefPtr<MediaManager::MgrPromise> MediaManager::EnumerateRawDevices(
if (realDeviceRequested) {
MediaManager* manager = MediaManager::GetIfExists();
MOZ_RELEASE_ASSERT(manager); // Must exist while media thread is alive
realBackend = manager->GetBackend(aWindowId);
realBackend = manager->GetBackend();
}
if (hasVideo) {
@ -2173,9 +2173,9 @@ int MediaManager::AddDeviceChangeCallback(DeviceChangeCallback* aCallback) {
MOZ_RELEASE_ASSERT(manager); // Must exist while media thread is alive
// this is needed in case persistent permission is given but no gUM()
// or enumeration() has created the real backend yet
manager->GetBackend(0);
manager->GetBackend();
if (fakeDeviceChangeEventOn)
manager->GetBackend(0)->SetFakeDeviceChangeEvents();
manager->GetBackend()->SetFakeDeviceChangeEvents();
}));
return DeviceChangeCallback::AddDeviceChangeCallback(aCallback);
@ -3345,7 +3345,7 @@ nsresult MediaManager::GetUserMediaDevices(
return NS_ERROR_UNEXPECTED;
}
MediaEngine* MediaManager::GetBackend(uint64_t aWindowId) {
MediaEngine* MediaManager::GetBackend() {
MOZ_ASSERT(MediaManager::IsInMediaThread());
// Plugin backends as appropriate. The default engine also currently
// includes picture support for Android.

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

@ -177,7 +177,7 @@ class MediaManager final : public nsIMediaManagerService,
NS_DECL_NSIMEDIAMANAGERSERVICE
media::Parent<media::NonE10s>* GetNonE10sParent();
MediaEngine* GetBackend(uint64_t aWindowId = 0);
MediaEngine* GetBackend();
WindowTable* GetActiveWindows() {
MOZ_ASSERT(NS_IsMainThread());