From 431a6df64d09eb5adb053e6486fd25f0917feffb Mon Sep 17 00:00:00 2001 From: Edgar Chen Date: Tue, 30 Jul 2013 17:11:03 +0800 Subject: [PATCH] Bug 899484 - Part 1: Use sendChromeMessage to send message instead of using sendDOMMessage. r=hsinyi --- dom/system/gonk/ril_worker.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dom/system/gonk/ril_worker.js b/dom/system/gonk/ril_worker.js index c251bd7b107..78112560986 100644 --- a/dom/system/gonk/ril_worker.js +++ b/dom/system/gonk/ril_worker.js @@ -1616,7 +1616,7 @@ let RIL = { if (roamingMode === -1) { options.errorMsg = GECKO_ERROR_INVALID_PARAMETER; - this.sendDOMMessage(options); + this.sendChromeMessage(options); return; } @@ -5649,22 +5649,22 @@ RIL[REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE] = null; RIL[REQUEST_CDMA_SET_ROAMING_PREFERENCE] = function REQUEST_CDMA_SET_ROAMING_PREFERENCE(length, options) { if (options.rilRequestError) { options.errorMsg = RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]; - this.sendDOMMessage(options); + this.sendChromeMessage(options); return; } - this.sendDOMMessage(options); + this.sendChromeMessage(options); }; RIL[REQUEST_CDMA_QUERY_ROAMING_PREFERENCE] = function REQUEST_CDMA_QUERY_ROAMING_PREFERENCE(length, options) { if (options.rilRequestError) { options.errorMsg = RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]; - this.sendDOMMessage(options); + this.sendChromeMessage(options); return; } let mode = Buf.readUint32List(); options.mode = CDMA_ROAMING_PREFERENCE_TO_GECKO[mode[0]]; - this.sendDOMMessage(options); + this.sendChromeMessage(options); }; RIL[REQUEST_SET_TTY_MODE] = null; RIL[REQUEST_QUERY_TTY_MODE] = null;