Bug 1115758 - Part 5: Add nsITelephonyService.cancelUSSD (ril). r=hsinyi
authorSzu-Yu Chen [:aknow] <szchen@mozilla.com>
Wed, 07 Jan 2015 15:28:44 +0800
changeset 248252 1e9e14b2eedd6902062beab334c6b98a0f0c0435
parent 248251 91470d5fbfde5cb63794ad4e6c8d3a9a87b5cf52
child 248253 15f35dca4924770a8fed5bcbdf17e0fdaa379f73
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs1115758
milestone37.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 1115758 - Part 5: Add nsITelephonyService.cancelUSSD (ril). r=hsinyi
dom/telephony/gonk/TelephonyService.js
--- a/dom/telephony/gonk/TelephonyService.js
+++ b/dom/telephony/gonk/TelephonyService.js
@@ -1061,16 +1061,26 @@ TelephonyService.prototype = {
       if (!response.success) {
         aCallback.notifyError(response.errorMsg);
       } else {
         aCallback.notifySuccess();
       }
     });
   },
 
+  cancelUSSD: function(aClientId, aCallback) {
+    this._sendToRilWorker(aClientId, "cancelUSSD", {}, response => {
+      if (!response.success) {
+        aCallback.notifyError(response.errorMsg);
+      } else {
+        aCallback.notifySuccess();
+      }
+    });
+  },
+
   get microphoneMuted() {
     return gAudioService.microphoneMuted;
   },
 
   set microphoneMuted(aMuted) {
     gAudioService.microphoneMuted = aMuted;
   },