NS_IMETHODIMP IccListener::NotifyIccInfoChanged() { // mOwner would be set to nullptr only in the dtor of BluetoothRilListener NS_ENSURE_TRUE(mOwner, NS_ERROR_FAILURE); BluetoothHfpManager* hfp = BluetoothHfpManager::Get(); NS_ENSURE_TRUE(hfp, NS_ERROR_FAILURE); hfp->HandleIccInfoChanged(mOwner->mClientId); return NS_OK; }