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

Side by Side Diff: content/browser/geolocation/wifi_data.cc

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data.h ('k') | content/browser/geolocation/wifi_data_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698