Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/device_state.h" | 5 #include "chromeos/network/device_state.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "chromeos/network/network_event_log.h" | 10 #include "chromeos/network/network_event_log.h" |
| 11 #include "chromeos/network/shill_property_util.h" | 11 #include "chromeos/network/shill_property_util.h" |
| 12 #include "chromeos/network/tether_constants.h" | |
|
Ryan Hansberry
2017/04/20 01:38:35
Is this include necessary?
Kyle Horimoto
2017/04/20 02:16:07
Done.
| |
| 12 #include "third_party/cros_system_api/dbus/service_constants.h" | 13 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 13 | 14 |
| 14 namespace chromeos { | 15 namespace chromeos { |
| 15 | 16 |
| 16 DeviceState::DeviceState(const std::string& path) | 17 DeviceState::DeviceState(const std::string& path) |
| 17 : ManagedState(MANAGED_TYPE_DEVICE, path), | 18 : ManagedState(MANAGED_TYPE_DEVICE, path), |
| 18 allow_roaming_(false), | 19 allow_roaming_(false), |
| 19 provider_requires_roaming_(false), | 20 provider_requires_roaming_(false), |
| 20 support_network_scan_(false), | 21 support_network_scan_(false), |
| 21 scanning_(false), | 22 scanning_(false), |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 } | 148 } |
| 148 } | 149 } |
| 149 return std::string(); | 150 return std::string(); |
| 150 } | 151 } |
| 151 | 152 |
| 152 bool DeviceState::IsSimAbsent() const { | 153 bool DeviceState::IsSimAbsent() const { |
| 153 return technology_family_ == shill::kTechnologyFamilyGsm && !sim_present_; | 154 return technology_family_ == shill::kTechnologyFamilyGsm && !sim_present_; |
| 154 } | 155 } |
| 155 | 156 |
| 156 } // namespace chromeos | 157 } // namespace chromeos |
| OLD | NEW |