From a68e97ba6740691147eb1af3e42947461a590228 Mon Sep 17 00:00:00 2001 From: Jessica Jong Date: Tue, 17 Jun 2014 01:14:00 +0200 Subject: [PATCH] Bug 1017950 - wrap telephony related code with MOZ_B2G_RIL flag. r=hsinyi --- dom/system/gonk/NetworkManager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom/system/gonk/NetworkManager.js b/dom/system/gonk/NetworkManager.js index ab54867312da..8a087e1b551a 100644 --- a/dom/system/gonk/NetworkManager.js +++ b/dom/system/gonk/NetworkManager.js @@ -366,6 +366,7 @@ NetworkManager.prototype = { 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", @@ -373,6 +374,7 @@ NetworkManager.prototype = { } id = "ril" + network.serviceId; } +#endif return id + "-" + network.type; },