| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/geolocation/empty_device_data_provider.h" | 5 #include "content/browser/geolocation/empty_device_data_provider.h" |
| 6 | 6 |
| 7 // No platform has (cellular) radio data provider yet. | |
| 8 // static | |
| 9 template<> | |
| 10 RadioDataProviderImplBase* RadioDataProvider::DefaultFactoryFunction() { | |
| 11 return new EmptyDeviceDataProvider<RadioData>(); | |
| 12 } | |
| 13 | |
| 14 // Only define for platforms that lack a real wifi data provider. | 7 // Only define for platforms that lack a real wifi data provider. |
| 15 #if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_LINUX) | 8 #if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_LINUX) |
| 16 // static | 9 // static |
| 17 template<> | 10 template<> |
| 18 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() { | 11 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() { |
| 19 return new EmptyDeviceDataProvider<WifiData>(); | 12 return new EmptyDeviceDataProvider<WifiData>(); |
| 20 } | 13 } |
| 21 #endif | 14 #endif |
| OLD | NEW |