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

Unified Diff: chrome/browser/geolocation/wifi_data_provider_mac.cc

Issue 2971006: Landing patch 2825039 (Closed)
Patch Set: Tests passed Created 10 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
Index: chrome/browser/geolocation/wifi_data_provider_mac.cc
diff --git a/chrome/browser/geolocation/wifi_data_provider_mac.cc b/chrome/browser/geolocation/wifi_data_provider_mac.cc
index 1e7b521f570c8cad9978d5409c1fea4879a897f7..f99b45f3a4a955eadbf4550d3b4126788ced0c4a 100644
--- a/chrome/browser/geolocation/wifi_data_provider_mac.cc
+++ b/chrome/browser/geolocation/wifi_data_provider_mac.cc
@@ -20,6 +20,7 @@ namespace {
const int kDefaultPollingInterval = 120000; // 2 mins
const int kNoChangePollingInterval = 300000; // 5 mins
const int kTwoNoChangePollingInterval = 600000; // 10 mins
+const int kNoWifiPollingIntervalMilliseconds = 20 * 1000; // 20s
// Provides the wifi API binding for use when running on OSX 10.5 machines using
// the Apple80211 framework.
@@ -178,5 +179,6 @@ MacWifiDataProvider::WlanApiInterface* MacWifiDataProvider::NewWlanApi() {
PollingPolicyInterface* MacWifiDataProvider::NewPollingPolicy() {
return new GenericPollingPolicy<kDefaultPollingInterval,
kNoChangePollingInterval,
- kTwoNoChangePollingInterval>;
+ kTwoNoChangePollingInterval,
+ kNoWifiPollingIntervalMilliseconds>;
}
« no previous file with comments | « chrome/browser/geolocation/wifi_data_provider_linux.cc ('k') | chrome/browser/geolocation/wifi_data_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698