зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1017950 - wrap telephony related code with MOZ_B2G_RIL flag. r=hsinyi
This commit is contained in:
Родитель
9a13e15024
Коммит
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;
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче