mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1511468 - make OnChannelReceivedMessage unconditionally defined; r=froydnj
This commit is contained in:
parent
e44a28ebd6
commit
811dea257a
@ -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.
|
||||
|
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user