| 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/wifi_data_provider_common.h" | 5 #include "content/browser/geolocation/wifi_data_provider_common.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 is_first_scan_complete_ = true; | 98 is_first_scan_complete_ = true; |
| 99 NotifyListeners(); | 99 NotifyListeners(); |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 void WifiDataProviderCommon::ScheduleNextScan(int interval) { | 103 void WifiDataProviderCommon::ScheduleNextScan(int interval) { |
| 104 message_loop()->PostDelayedTask( | 104 message_loop()->PostDelayedTask( |
| 105 FROM_HERE, | 105 FROM_HERE, |
| 106 base::Bind(&WifiDataProviderCommon::DoWifiScanTask, | 106 base::Bind(&WifiDataProviderCommon::DoWifiScanTask, |
| 107 weak_factory_.GetWeakPtr()), | 107 weak_factory_.GetWeakPtr()), |
| 108 interval); | 108 base::TimeDelta::FromMilliseconds(interval)); |
| 109 } | 109 } |
| OLD | NEW |