Bug 818393 - Part 2: Call barring DOM implementation. r=htsai, smaug.
authorSzu-Yu Chen [:aknow] <szchen@mozilla.com>
Tue, 21 May 2013 13:12:59 +0800
changeset 143905 5300a886b3c1491b6588519050d6ca686d4215e8
parent 143904 c5c2d7b04b97f68716e37c5ed78ab32bbe4f8a3e
child 143906 eb242dc69589bfa3a8fb9ce9a055497b8c6c8511
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershtsai, smaug
bugs818393
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 818393 - Part 2: Call barring DOM implementation. r=htsai, smaug. --- dom/network/src/MobileConnection.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
dom/network/src/MobileConnection.cpp
--- a/dom/network/src/MobileConnection.cpp
+++ b/dom/network/src/MobileConnection.cpp
@@ -387,16 +387,42 @@ MobileConnection::SetCallForwardingOptio
   if (!mProvider) {
     return NS_ERROR_FAILURE;
   }
 
   return mProvider->SetCallForwardingOption(GetOwner(), aCFInfo, aRequest);
 }
 
 NS_IMETHODIMP
+MobileConnection::GetCallBarringOption(const JS::Value& aOption,
+                                       nsIDOMDOMRequest** aRequest)
+{
+  *aRequest = nullptr;
+
+  if (!mProvider) {
+    return NS_ERROR_FAILURE;
+  }
+
+  return mProvider->GetCallBarringOption(GetOwner(), aOption, aRequest);
+}
+
+NS_IMETHODIMP
+MobileConnection::SetCallBarringOption(const JS::Value& aOption,
+                                       nsIDOMDOMRequest** aRequest)
+{
+  *aRequest = nullptr;
+
+  if (!mProvider) {
+    return NS_ERROR_FAILURE;
+  }
+
+  return mProvider->SetCallBarringOption(GetOwner(), aOption, aRequest);
+}
+
+NS_IMETHODIMP
 MobileConnection::GetCallWaitingOption(nsIDOMDOMRequest** aRequest)
 {
   *aRequest = nullptr;
 
   if (!CheckPermission("mobileconnection")) {
     return NS_OK;
   }