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/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "third_party/cros_system_api/dbus/service_constants.h" | 10 #include "third_party/cros_system_api/dbus/service_constants.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 DeviceState::DeviceState(const std::string& path) | 14 DeviceState::DeviceState(const std::string& path) |
15 : ManagedState(MANAGED_TYPE_DEVICE, path), | 15 : ManagedState(MANAGED_TYPE_DEVICE, path), |
16 provider_requires_roaming_(false), | 16 provider_requires_roaming_(false), |
17 support_network_scan_(false), | 17 support_network_scan_(false), |
18 scanning_(false), | 18 scanning_(false), |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 return GetBooleanValue(key, value, &sim_present_); | 72 return GetBooleanValue(key, value, &sim_present_); |
73 } | 73 } |
74 return false; | 74 return false; |
75 } | 75 } |
76 | 76 |
77 bool DeviceState::IsSimAbsent() const { | 77 bool DeviceState::IsSimAbsent() const { |
78 return technology_family_ == flimflam::kTechnologyFamilyGsm && !sim_present_; | 78 return technology_family_ == flimflam::kTechnologyFamilyGsm && !sim_present_; |
79 } | 79 } |
80 | 80 |
81 } // namespace chromeos | 81 } // namespace chromeos |
OLD | NEW |