Bug 1511468 - make OnChannelReceivedMessage unconditionally defined; r=froydnj

This commit is contained in:
Jan Varga 2018-11-30 22:23:30 +01:00
parent e44a28ebd6
commit 811dea257a
2 changed files with 0 additions and 7 deletions

View File

@ -1164,9 +1164,7 @@ void MessageChannel::OnMessageReceivedFromLink(Message&& aMsg) {
if (MaybeInterceptSpecialIOMessage(aMsg)) return;
#ifdef EARLY_BETA_OR_EARLIER
mListener->OnChannelReceivedMessage(aMsg);
#endif
// Regardless of the Interrupt stack, if we're awaiting a sync reply,
// we know that it needs to be immediately handled to unblock us.

View File

@ -555,12 +555,7 @@ class IToplevelProtocol : public IProtocol {
return false;
}
// This method is only used for collecting telemetry bits in various places,
// and we shouldn't pay the overhead of having it in protocol vtables when
// it's not being used.
#ifdef EARLY_BETA_OR_EARLIER
virtual void OnChannelReceivedMessage(const Message& aMsg) {}
#endif
bool IsMainThreadProtocol() const { return mIsMainThreadProtocol; }
void SetIsMainThreadProtocol() { mIsMainThreadProtocol = NS_IsMainThread(); }