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.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/values.h" | |
11 #include "chromeos/network/network_event_log.h" | 10 #include "chromeos/network/network_event_log.h" |
12 #include "chromeos/network/shill_property_util.h" | 11 #include "chromeos/network/shill_property_util.h" |
13 #include "third_party/cros_system_api/dbus/service_constants.h" | 12 #include "third_party/cros_system_api/dbus/service_constants.h" |
14 | 13 |
15 namespace chromeos { | 14 namespace chromeos { |
16 | 15 |
17 DeviceState::DeviceState(const std::string& path) | 16 DeviceState::DeviceState(const std::string& path) |
18 : ManagedState(MANAGED_TYPE_DEVICE, path), | 17 : ManagedState(MANAGED_TYPE_DEVICE, path), |
19 allow_roaming_(false), | 18 allow_roaming_(false), |
20 provider_requires_roaming_(false), | 19 provider_requires_roaming_(false), |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 ip_configs_.SetWithoutPathExpansion(ip_config_path, ip_config); | 137 ip_configs_.SetWithoutPathExpansion(ip_config_path, ip_config); |
139 } | 138 } |
140 ip_config->MergeDictionary(&properties); | 139 ip_config->MergeDictionary(&properties); |
141 } | 140 } |
142 | 141 |
143 bool DeviceState::IsSimAbsent() const { | 142 bool DeviceState::IsSimAbsent() const { |
144 return technology_family_ == shill::kTechnologyFamilyGsm && !sim_present_; | 143 return technology_family_ == shill::kTechnologyFamilyGsm && !sim_present_; |
145 } | 144 } |
146 | 145 |
147 } // namespace chromeos | 146 } // namespace chromeos |
OLD | NEW |