mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 19:09:49 +00:00
Bug 1017950 - wrap telephony related code with MOZ_B2G_RIL flag. r=hsinyi
This commit is contained in:
parent
9a13e15024
commit
a68e97ba67
@ -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;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user