Bug 977454 - export network location provider on b2g. r=khuey

This commit is contained in:
Doug Turner 2014-02-25 16:06:01 -08:00
Родитель 7ca508c03d
Коммит 26813fb129
5 изменённых файлов: 12 добавлений и 13 удалений

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

@ -375,6 +375,8 @@
@BINPATH@/components/nsLoginInfo.js
@BINPATH@/components/nsLoginManager.js
@BINPATH@/components/nsLoginManagerPrompter.js
@BINPATH@/components/NetworkGeolocationProvider.manifest
@BINPATH@/components/NetworkGeolocationProvider.js
#ifdef MOZ_WEBRTC
@BINPATH@/components/PeerConnection.js
@BINPATH@/components/PeerConnection.manifest

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

@ -8099,12 +8099,7 @@ dnl option to disable necko's wifi scanner
dnl
case "$OS_TARGET" in
Android)
if test -n "$gonkdir"; then
NECKO_WIFI=1
fi
;;
Darwin|SunOS|WINNT)
Android|Darwin|SunOS|WINNT)
NECKO_WIFI=1
;;
Linux)

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

@ -694,6 +694,10 @@ nsresult nsGeolocationService::Init()
}
#endif
if (Preferences::GetBool("geo.provider.use_mls", false)) {
mProvider = do_GetService("@mozilla.org/geolocation/mls-provider;1");
}
// Override platform-specific providers with the default (network)
// provider while testing. Our tests are currently not meant to exercise
// the provider, and some tests rely on the network provider being used.

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

@ -1,2 +1,3 @@
component {77DA64D3-7458-4920-9491-86CC9914F904} NetworkGeolocationProvider.js
contract @mozilla.org/geolocation/provider;1 {77DA64D3-7458-4920-9491-86CC9914F904}
contract @mozilla.org/geolocation/mls-provider;1 {77DA64D3-7458-4920-9491-86CC9914F904}

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

@ -38,13 +38,10 @@ UNIFIED_SOURCES += [
'OSFileConstants.cpp',
]
# On Systems that have build in geolocation providers,
# we really do not need these.
if CONFIG['OS_TARGET'] != 'Android' or CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
EXTRA_COMPONENTS += [
'NetworkGeolocationProvider.js',
'NetworkGeolocationProvider.manifest',
]
EXTRA_COMPONENTS += [
'NetworkGeolocationProvider.js',
'NetworkGeolocationProvider.manifest',
]
FAIL_ON_WARNINGS = True