Skip to content

Commit

Permalink
Bug 888904 - Part 2: MobileConnection.cpp additions for supporting CL…
Browse files Browse the repository at this point in the history
…IR. r=smaug
  • Loading branch information
jaoo committed Jul 17, 2013
1 parent 0fa9303 commit 90976cb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions dom/network/src/MobileConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,39 @@ MobileConnection::SetCallWaitingOption(bool aEnabled,
return mProvider->SetCallWaitingOption(GetOwner(), aEnabled, aRequest);
}

NS_IMETHODIMP
MobileConnection::GetCallingLineIdRestriction(nsIDOMDOMRequest** aRequest)
{
*aRequest = nullptr;

if (!CheckPermission("mobileconnection")) {
return NS_OK;
}

if (!mProvider) {
return NS_ERROR_FAILURE;
}

return mProvider->GetCallingLineIdRestriction(GetOwner(), aRequest);
}

NS_IMETHODIMP
MobileConnection::SetCallingLineIdRestriction(unsigned short aClirMode,
nsIDOMDOMRequest** aRequest)
{
*aRequest = nullptr;

if (!CheckPermission("mobileconnection")) {
return NS_OK;
}

if (!mProvider) {
return NS_ERROR_FAILURE;
}

return mProvider->SetCallingLineIdRestriction(GetOwner(), aClirMode, aRequest);
}

// nsIMobileConnectionListener

NS_IMETHODIMP
Expand Down

0 comments on commit 90976cb

Please sign in to comment.