Bug 994461 - Part 2: GPS changes for IccInfo WebIDL. r=kchen

This commit is contained in:
Edgar Chen 2014-09-05 14:54:29 +08:00
Родитель 02486c284f
Коммит 751d1a07fa
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -34,7 +34,7 @@
#include "prtime.h" #include "prtime.h"
#ifdef MOZ_B2G_RIL #ifdef MOZ_B2G_RIL
#include "nsIDOMIccInfo.h" #include "nsIIccInfo.h"
#include "nsIMobileConnectionInfo.h" #include "nsIMobileConnectionInfo.h"
#include "nsIMobileConnectionService.h" #include "nsIMobileConnectionService.h"
#include "nsIMobileCellInfo.h" #include "nsIMobileCellInfo.h"
@ -459,10 +459,10 @@ GonkGPSGeolocationProvider::RequestSetID(uint32_t flags)
} }
if (flags & AGPS_RIL_REQUEST_SETID_MSISDN) { if (flags & AGPS_RIL_REQUEST_SETID_MSISDN) {
nsCOMPtr<nsIDOMMozIccInfo> iccInfo; nsCOMPtr<nsIIccInfo> iccInfo;
rilCtx->GetIccInfo(getter_AddRefs(iccInfo)); rilCtx->GetIccInfo(getter_AddRefs(iccInfo));
if (iccInfo) { if (iccInfo) {
nsCOMPtr<nsIDOMMozGsmIccInfo> gsmIccInfo = do_QueryInterface(iccInfo); nsCOMPtr<nsIGsmIccInfo> gsmIccInfo = do_QueryInterface(iccInfo);
if (gsmIccInfo) { if (gsmIccInfo) {
type = AGPS_SETID_TYPE_MSISDN; type = AGPS_SETID_TYPE_MSISDN;
gsmIccInfo->GetMsisdn(id); gsmIccInfo->GetMsisdn(id);
@ -494,7 +494,7 @@ GonkGPSGeolocationProvider::SetReferenceLocation()
location.type = AGPS_REF_LOCATION_TYPE_UMTS_CELLID; location.type = AGPS_REF_LOCATION_TYPE_UMTS_CELLID;
if (rilCtx) { if (rilCtx) {
nsCOMPtr<nsIDOMMozIccInfo> iccInfo; nsCOMPtr<nsIIccInfo> iccInfo;
rilCtx->GetIccInfo(getter_AddRefs(iccInfo)); rilCtx->GetIccInfo(getter_AddRefs(iccInfo));
if (iccInfo) { if (iccInfo) {
nsresult result; nsresult result;