зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1597452 - Remove unused mozilla::MediaManager::StopMediaStreams. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D60483 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
e878e5b81b
Коммит
59fae540a5
|
@ -3941,21 +3941,6 @@ void MediaManager::IterateWindowListeners(nsPIDOMWindowInner* aWindow,
|
|||
}
|
||||
}
|
||||
|
||||
void MediaManager::StopMediaStreams() {
|
||||
nsCOMPtr<nsIArray> array;
|
||||
GetActiveMediaCaptureWindows(getter_AddRefs(array));
|
||||
uint32_t len;
|
||||
array->GetLength(&len);
|
||||
for (uint32_t i = 0; i < len; i++) {
|
||||
nsCOMPtr<nsPIDOMWindowInner> win;
|
||||
array->QueryElementAt(i, NS_GET_IID(nsPIDOMWindowInner),
|
||||
getter_AddRefs(win));
|
||||
if (win) {
|
||||
OnNavigation(win->WindowID());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool MediaManager::IsActivelyCapturingOrHasAPermission(uint64_t aWindowId) {
|
||||
// Does page currently have a gUM stream active?
|
||||
|
||||
|
|
|
@ -329,7 +329,6 @@ class MediaManager final : public nsIMediaManagerService, public nsIObserver {
|
|||
void IterateWindowListeners(nsPIDOMWindowInner* aWindow,
|
||||
const FunctionType& aCallback);
|
||||
|
||||
void StopMediaStreams();
|
||||
void RemoveMediaDevicesCallback(uint64_t aWindowID);
|
||||
void DeviceListChanged();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче