Bug 1017950 - wrap telephony related code with MOZ_B2G_RIL flag. r=hsinyi
authorJessica Jong <jjong@mozilla.com>
Tue, 17 Jun 2014 01:14:00 +0200
changeset 203138 304c91c291a7742ee6845956afb9e591496fd5b5
parent 203137 fdce987716ca1b4f00cddb91f62bfb05f570d538
child 203139 06074b86c4805b4685a31bc44cc30141c9dba6fa
push id6561
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 21:23:20 +0000
treeherdermozilla-aurora@428d4d3c8588 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs1017950
milestone33.0a1
Bug 1017950 - wrap telephony related code with MOZ_B2G_RIL flag. r=hsinyi
dom/system/gonk/NetworkManager.js
--- a/dom/system/gonk/NetworkManager.js
+++ b/dom/system/gonk/NetworkManager.js
@@ -361,23 +361,25 @@ NetworkManager.prototype = {
         }
         return interfaces;
       }
     }
   },
 
   getNetworkId: function(network) {
     let id = "device";
+#ifdef MOZ_B2G_RIL
     if (this.isNetworkTypeMobile(network.type)) {
       if (!(network instanceof Ci.nsIRilNetworkInterface)) {
         throw Components.Exception("Mobile network not an nsIRilNetworkInterface",
                                    Cr.NS_ERROR_INVALID_ARG);
       }
       id = "ril" + network.serviceId;
     }
+#endif
 
     return id + "-" + network.type;
   },
 
   // nsINetworkManager
 
   registerNetworkInterface: function(network) {
     if (!(network instanceof Ci.nsINetworkInterface)) {