diff --git a/dom/system/gonk/RILContentHelper.js b/dom/system/gonk/RILContentHelper.js index ba02ff0ed3fc..18ca9ac8c545 100644 --- a/dom/system/gonk/RILContentHelper.js +++ b/dom/system/gonk/RILContentHelper.js @@ -140,17 +140,17 @@ function RILContentHelper() { this.initMessageListener(RIL_IPC_MSG_NAMES); Services.obs.addObserver(this, "xpcom-shutdown", false); - // Request initial state. - let radioState = cpmm.QueryInterface(Ci.nsISyncMessageSender) - .sendSyncMessage("RIL:GetRadioState")[0]; + // Request initial context. + let rilContext = cpmm.QueryInterface(Ci.nsISyncMessageSender) + .sendSyncMessage("RIL:GetRilContext")[0]; - if (!radioState) { - debug("Received null radioState from chrome process."); + if (!rilContext) { + debug("Received null rilContext from chrome process."); return; } - this.cardState = radioState.cardState; - this.updateConnectionInfo(radioState.voice, this.voiceConnectionInfo); - this.updateConnectionInfo(radioState.data, this.dataConnectionInfo); + this.cardState = rilContext.cardState; + this.updateConnectionInfo(rilContext.voice, this.voiceConnectionInfo); + this.updateConnectionInfo(rilContext.data, this.dataConnectionInfo); } RILContentHelper.prototype = {