[content shell] implement testRunner.overridePreference
[chromium-blink-merge.git] / content / browser / geolocation / empty_device_data_provider.cc
blob57e25b0a5046acbd0c5d16a4291a6a4ad567a1ce
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/browser/geolocation/empty_device_data_provider.h"
7 namespace content {
9 // Only define for platforms that lack a real wifi data provider.
10 #if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_LINUX)
11 // static
12 template<>
13 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() {
14 return new EmptyDeviceDataProvider<WifiData>();
16 #endif
18 } // namespace content