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

Side by Side Diff: content/browser/geolocation/empty_wifi_data_provider.cc

Issue 59323007: Make dbus-based wifi data provider optional on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reorder gyp variable Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_wifi_data_provider.h" 5 #include "content/browser/geolocation/empty_wifi_data_provider.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 EmptyWifiDataProvider::EmptyWifiDataProvider() { 9 EmptyWifiDataProvider::EmptyWifiDataProvider() {
10 } 10 }
11 11
12 EmptyWifiDataProvider::~EmptyWifiDataProvider() { 12 EmptyWifiDataProvider::~EmptyWifiDataProvider() {
13 } 13 }
14 14
15 bool EmptyWifiDataProvider::GetData(WifiData* data) { 15 bool EmptyWifiDataProvider::GetData(WifiData* data) {
16 DCHECK(data); 16 DCHECK(data);
17 // This is all the data we can get - nothing. 17 // This is all the data we can get - nothing.
18 return true; 18 return true;
19 } 19 }
20 20
21 // Only define for platforms that lack a real wifi data provider.
22 #if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_LINUX)
23 // static 21 // static
24 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() { 22 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() {
25 return new EmptyWifiDataProvider(); 23 return new EmptyWifiDataProvider();
26 } 24 }
27 #endif
28 25
29 } // namespace content 26 } // namespace content
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698