From 3ecaaca13d734af89cd38ecc49fe2883aedbcd1d Mon Sep 17 00:00:00 2001 From: Yoshi Huang Date: Tue, 24 Jul 2012 15:15:25 +0800 Subject: [PATCH] Bug 776480 - B2G RIL: missing handler for ipc message 'RIL:GetRadioState. r=philikon --- dom/system/gonk/RILContentHelper.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 = {