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

Side by Side Diff: chromeos/network/network_util.cc

Issue 2624843003: Add support for cellular geolocation (Closed)
Patch Set: Update device tests to use correct dict key Created 3 years, 10 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
« no previous file with comments | « chromeos/network/network_util.h ('k') | chromeos/timezone/timezone_resolver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chromeos/network/network_util.h" 5 #include "chromeos/network/network_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 18 matching lines...) Expand all
29 : signal_strength(0), 29 : signal_strength(0),
30 signal_to_noise(0), 30 signal_to_noise(0),
31 channel(0) { 31 channel(0) {
32 } 32 }
33 33
34 WifiAccessPoint::WifiAccessPoint(const WifiAccessPoint& other) = default; 34 WifiAccessPoint::WifiAccessPoint(const WifiAccessPoint& other) = default;
35 35
36 WifiAccessPoint::~WifiAccessPoint() { 36 WifiAccessPoint::~WifiAccessPoint() {
37 } 37 }
38 38
39 CellTower::CellTower() {}
40
41 CellTower::CellTower(const CellTower& other) = default;
42
43 CellTower::~CellTower() {}
44
39 CellularScanResult::CellularScanResult() { 45 CellularScanResult::CellularScanResult() {
40 } 46 }
41 47
42 CellularScanResult::CellularScanResult(const CellularScanResult& other) = 48 CellularScanResult::CellularScanResult(const CellularScanResult& other) =
43 default; 49 default;
44 50
45 CellularScanResult::~CellularScanResult() { 51 CellularScanResult::~CellularScanResult() {
46 } 52 }
47 53
48 namespace network_util { 54 namespace network_util {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 std::string TranslateShillTypeToONC(const std::string& shill_type) { 228 std::string TranslateShillTypeToONC(const std::string& shill_type) {
223 if (shill_type == shill::kTypeEthernet) 229 if (shill_type == shill::kTypeEthernet)
224 return ::onc::network_type::kEthernet; 230 return ::onc::network_type::kEthernet;
225 std::string onc_type; 231 std::string onc_type;
226 onc::TranslateStringToONC(onc::kNetworkTypeTable, shill_type, &onc_type); 232 onc::TranslateStringToONC(onc::kNetworkTypeTable, shill_type, &onc_type);
227 return onc_type; 233 return onc_type;
228 } 234 }
229 235
230 } // namespace network_util 236 } // namespace network_util
231 } // namespace chromeos 237 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_util.h ('k') | chromeos/timezone/timezone_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698