Bug 1657404 - Change PGamepadTestChannel to "refcounted protocol" r=handyman

Differential Revision: https://phabricator.services.mozilla.com/D93023
This commit is contained in:
Chris Martin
2020-10-14 20:33:55 +00:00
parent 9ba2f15664
commit eb7c7502cd
7 changed files with 11 additions and 36 deletions

View File

@@ -605,20 +605,6 @@ bool BackgroundChildImpl::DeallocPMIDIManagerChild(PMIDIManagerChild* aActor) {
return true;
}
dom::PGamepadTestChannelChild*
BackgroundChildImpl::AllocPGamepadTestChannelChild() {
MOZ_CRASH("PGamepadTestChannelChild actor should be manually constructed!");
return nullptr;
}
bool BackgroundChildImpl::DeallocPGamepadTestChannelChild(
PGamepadTestChannelChild* aActor) {
MOZ_ASSERT(aActor);
RefPtr<dom::GamepadTestChannelChild> child(
dont_AddRef(static_cast<dom::GamepadTestChannelChild*>(aActor)));
return true;
}
mozilla::dom::PClientManagerChild*
BackgroundChildImpl::AllocPClientManagerChild() {
return mozilla::dom::AllocClientManagerChild();