| OLD | NEW |
| 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 "device/geolocation/wifi_data.h" | 5 #include "content/browser/geolocation/wifi_data.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 #include <limits> | 11 #include <limits> |
| 12 | 12 |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 | 14 |
| 15 namespace device { | 15 namespace content { |
| 16 | 16 |
| 17 AccessPointData::AccessPointData() | 17 AccessPointData::AccessPointData() |
| 18 : radio_signal_strength(std::numeric_limits<int32_t>::min()), | 18 : radio_signal_strength(std::numeric_limits<int32_t>::min()), |
| 19 channel(std::numeric_limits<int32_t>::min()), | 19 channel(std::numeric_limits<int32_t>::min()), |
| 20 signal_to_noise(std::numeric_limits<int32_t>::min()) {} | 20 signal_to_noise(std::numeric_limits<int32_t>::min()) {} |
| 21 | 21 |
| 22 AccessPointData::~AccessPointData() {} | 22 AccessPointData::~AccessPointData() {} |
| 23 | 23 |
| 24 WifiData::WifiData() {} | 24 WifiData::WifiData() {} |
| 25 | 25 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 47 other.access_point_data.end()) { | 47 other.access_point_data.end()) { |
| 48 ++num_common; | 48 ++num_common; |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 DCHECK(num_common <= min_ap_count); | 51 DCHECK(num_common <= min_ap_count); |
| 52 | 52 |
| 53 // Test how many have changed. | 53 // Test how many have changed. |
| 54 return max_ap_count > num_common + difference_threadhold; | 54 return max_ap_count > num_common + difference_threadhold; |
| 55 } | 55 } |
| 56 | 56 |
| 57 } // namespace device | 57 } // namespace content |
| OLD | NEW |