summaryrefslogtreecommitdiffstats
path: root/chrome/browser/geolocation/empty_device_data_provider.cc
diff options
context:
space:
mode:
authorjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 10:15:23 +0000
committerjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 10:15:23 +0000
commit41b5abb4d9dfb1c4b3ace49e3e6d78a9897bf17f (patch)
treee1c6046824991e4a93853cf2b2450757388c7012 /chrome/browser/geolocation/empty_device_data_provider.cc
parentb0434b276715f15f645ae0957572dbbacabe94a9 (diff)
downloadchromium_src-41b5abb4d9dfb1c4b3ace49e3e6d78a9897bf17f.zip
chromium_src-41b5abb4d9dfb1c4b3ace49e3e6d78a9897bf17f.tar.gz
chromium_src-41b5abb4d9dfb1c4b3ace49e3e6d78a9897bf17f.tar.bz2
Port the gears OSX wifi data provider into chrome
Pulls in the custom header file uesd to access these functions in gears BUG=11246 TEST=unit_tests.exe --gtest_filer=Geoloc* Review URL: http://codereview.chromium.org/600146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/geolocation/empty_device_data_provider.cc')
-rw-r--r--chrome/browser/geolocation/empty_device_data_provider.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/geolocation/empty_device_data_provider.cc b/chrome/browser/geolocation/empty_device_data_provider.cc
index 0a4df8b..4cb34f5 100644
--- a/chrome/browser/geolocation/empty_device_data_provider.cc
+++ b/chrome/browser/geolocation/empty_device_data_provider.cc
@@ -4,14 +4,15 @@
#include "chrome/browser/geolocation/empty_device_data_provider.h"
+// No platform has (cellular) radio data provider yet.
// static
template<>
RadioDataProviderImplBase* RadioDataProvider::DefaultFactoryFunction() {
return new EmptyDeviceDataProvider<RadioData>();
}
-// Windows has a real wifi data provider.
-#if !defined(OS_WIN)
+// Only define for platforms that lack a real wifi data provider.
+#if !defined(OS_WIN) && !defined(OS_MACOSX)
// static
template<>
WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() {