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

Unified Diff: device/geolocation/wifi_data_provider_mac.cc

Issue 2181183004: Revert of Geolocation: move from content/browser to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « device/geolocation/wifi_data_provider_mac.h ('k') | device/geolocation/wifi_data_provider_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/wifi_data_provider_mac.cc
diff --git a/device/geolocation/wifi_data_provider_mac.cc b/device/geolocation/wifi_data_provider_mac.cc
deleted file mode 100644
index b48517ed67dbf661600f4d312689371290a98b83..0000000000000000000000000000000000000000
--- a/device/geolocation/wifi_data_provider_mac.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "device/geolocation/wifi_data_provider_mac.h"
-
-#include "device/geolocation/wifi_data_provider_common.h"
-#include "device/geolocation/wifi_data_provider_manager.h"
-
-namespace device {
-namespace {
-// The time periods, in milliseconds, between successive polls of the wifi data.
-const int kDefaultPollingInterval = 120000; // 2 mins
-const int kNoChangePollingInterval = 300000; // 5 mins
-const int kTwoNoChangePollingInterval = 600000; // 10 mins
-const int kNoWifiPollingIntervalMilliseconds = 20 * 1000; // 20s
-} // namespace
-
-// static
-WifiDataProvider* WifiDataProviderManager::DefaultFactoryFunction() {
- return new WifiDataProviderMac();
-}
-
-WifiDataProviderMac::WifiDataProviderMac() {
-}
-
-WifiDataProviderMac::~WifiDataProviderMac() {
-}
-
-WifiDataProviderMac::WlanApiInterface* WifiDataProviderMac::NewWlanApi() {
- WifiDataProviderMac::WlanApiInterface* core_wlan_api = NewCoreWlanApi();
- if (core_wlan_api)
- return core_wlan_api;
-
- DVLOG(1) << "WifiDataProviderMac : failed to initialize any wlan api";
- return NULL;
-}
-
-WifiPollingPolicy* WifiDataProviderMac::NewPollingPolicy() {
- return new GenericWifiPollingPolicy<kDefaultPollingInterval,
- kNoChangePollingInterval,
- kTwoNoChangePollingInterval,
- kNoWifiPollingIntervalMilliseconds>;
-}
-
-} // namespace device
« no previous file with comments | « device/geolocation/wifi_data_provider_mac.h ('k') | device/geolocation/wifi_data_provider_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698