| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/geolocation/empty_device_data_provider.h" | 5 #include "chrome/browser/geolocation/empty_device_data_provider.h" |
| 6 | 6 |
| 7 // static | 7 // static |
| 8 template<> | 8 template<> |
| 9 RadioDataProviderImplBase* RadioDataProvider::DefaultFactoryFunction() { | 9 RadioDataProviderImplBase *RadioDataProvider::DefaultFactoryFunction() { |
| 10 return new EmptyDeviceDataProvider<RadioData>(); | 10 return new EmptyDeviceDataProvider<RadioData>(); |
| 11 } | 11 } |
| 12 | |
| 13 // Windows has a real wifi data provider. | |
| 14 #if !defined(OS_WIN) | |
| 15 // static | |
| 16 template<> | |
| 17 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() { | |
| 18 return new EmptyDeviceDataProvider<WifiData>(); | |
| 19 } | |
| 20 #endif | |
| OLD | NEW |