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 239164 1e9e14b2eedd6902062beab334c6b98a0f0c0435
parent 239163 91470d5fbfde5cb63794ad4e6c8d3a9a87b5cf52
child 239165 15f35dca4924770a8fed5bcbdf17e0fdaa379f73
push id7472
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 20:36:27 +0000
treeherdermozilla-aurora@300ca104f8fb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs1115758
milestone37.0a1
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;
   },