NS_IMETHODIMP SmsRequestParent::NotifySendMessageFailed(int32_t aError, nsISupports *aMessage) { NS_ENSURE_TRUE(!mActorDestroyed, NS_ERROR_FAILURE); ContentParent *parent = static_cast<ContentParent*>(Manager()->Manager()); MobileMessageData data; if (!GetMobileMessageDataFromMessage(parent, aMessage, data)) { return SendReply(ReplyMessageSendFail(aError, OptionalMobileMessageData(void_t()))); } return SendReply(ReplyMessageSendFail(aError, OptionalMobileMessageData(data))); }
NS_IMETHODIMP SmsRequest::NotifySendMessageFailed(int32_t aError) { if (mParent) { return SendMessageReply(MessageReply(ReplyMessageSendFail(aError))); } return NotifyError(aError); }
NS_IMETHODIMP SmsRequestParent::NotifySendMessageFailed(int32_t aError) { return SendReply(ReplyMessageSendFail(aError)); }