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 "content/browser/geolocation/wifi_data.h" | 5 #include "content/browser/geolocation/wifi_data.h" |
6 | 6 |
| 7 #include <algorithm> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 | 10 |
9 namespace content { | 11 namespace content { |
10 | 12 |
11 AccessPointData::AccessPointData() | 13 AccessPointData::AccessPointData() |
12 : radio_signal_strength(kint32min), | 14 : radio_signal_strength(kint32min), |
13 channel(kint32min), | 15 channel(kint32min), |
14 signal_to_noise(kint32min) { | 16 signal_to_noise(kint32min) { |
15 } | 17 } |
16 | 18 |
(...skipping 24 matching lines...) Expand all Loading... |
41 ++num_common; | 43 ++num_common; |
42 } | 44 } |
43 } | 45 } |
44 DCHECK(num_common <= min_ap_count); | 46 DCHECK(num_common <= min_ap_count); |
45 | 47 |
46 // Test how many have changed. | 48 // Test how many have changed. |
47 return max_ap_count > num_common + difference_threadhold; | 49 return max_ap_count > num_common + difference_threadhold; |
48 } | 50 } |
49 | 51 |
50 } // namespace content | 52 } // namespace content |
OLD | NEW |