Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6981)

Unified Diff: chrome/browser/geolocation/empty_device_data_provider.cc

Issue 556106: Add tests for the geolocation network provider... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/geolocation/empty_device_data_provider.cc
===================================================================
--- chrome/browser/geolocation/empty_device_data_provider.cc (revision 37850)
+++ chrome/browser/geolocation/empty_device_data_provider.cc (working copy)
@@ -6,6 +6,15 @@
// static
template<>
-RadioDataProviderImplBase *RadioDataProvider::DefaultFactoryFunction() {
+RadioDataProviderImplBase* RadioDataProvider::DefaultFactoryFunction() {
return new EmptyDeviceDataProvider<RadioData>();
}
+
+// Windows has a real wifi data provider.
+#if !defined(OS_WIN)
+// static
+template<>
+WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() {
+ return new EmptyDeviceDataProvider<WifiData>();
+}
+#endif
« no previous file with comments | « chrome/browser/geolocation/empty_device_data_provider.h ('k') | chrome/browser/geolocation/location_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698