| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/chromeos/cros/network_library.h" | 5 #include "chrome/browser/chromeos/cros/network_library.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 //////////////////////////////////////////////////////////////////////////////// | 188 //////////////////////////////////////////////////////////////////////////////// |
| 189 // CellularNetwork | 189 // CellularNetwork |
| 190 | 190 |
| 191 bool CellularNetwork::StartActivation() const { | 191 bool CellularNetwork::StartActivation() const { |
| 192 // TODO(ers, jglasgow): Kick of device activation process. | 192 // TODO(ers, jglasgow): Kick of device activation process. |
| 193 return true; | 193 return true; |
| 194 } | 194 } |
| 195 | 195 |
| 196 void CellularNetwork::Clear() { | 196 void CellularNetwork::Clear() { |
| 197 WirelessNetwork::Clear(); | 197 WirelessNetwork::Clear(); |
| 198 activation_state_ = ACTIVATION_STATE_UNKNOWN; |
| 199 roaming_state_ = ROAMING_STATE_UNKNOWN; |
| 200 network_technology_ = NETWORK_TECHNOLOGY_UNKNOWN; |
| 201 operator_name_.clear(); |
| 202 operator_code_.clear(); |
| 203 payment_url_.clear(); |
| 204 meid_.clear(); |
| 205 imei_.clear(); |
| 206 imsi_.clear(); |
| 207 esn_.clear(); |
| 208 mdn_.clear(); |
| 209 min_.clear(); |
| 210 model_id_.clear(); |
| 211 manufacturer_.clear(); |
| 212 firmware_revision_.clear(); |
| 213 hardware_revision_.clear(); |
| 214 last_update_.clear(); |
| 215 prl_version_ = 0; |
| 198 } | 216 } |
| 199 | 217 |
| 200 void CellularNetwork::ConfigureFromService(const ServiceInfo& service) { | 218 void CellularNetwork::ConfigureFromService(const ServiceInfo& service) { |
| 201 WirelessNetwork::ConfigureFromService(service); | 219 WirelessNetwork::ConfigureFromService(service); |
| 202 activation_state_ = service.activation_state; | 220 activation_state_ = service.activation_state; |
| 203 network_technology_ = service.network_technology; | 221 network_technology_ = service.network_technology; |
| 204 roaming_state_ = service.roaming_state; | 222 roaming_state_ = service.roaming_state; |
| 205 restricted_pool_ = service.restricted_pool; | 223 restricted_pool_ = service.restricted_pool; |
| 206 // Carrier Info | 224 // Carrier Info |
| 207 if (service.carrier_info) { | 225 if (service.carrier_info) { |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 return new NetworkLibraryStubImpl(); | 1111 return new NetworkLibraryStubImpl(); |
| 1094 else | 1112 else |
| 1095 return new NetworkLibraryImpl(); | 1113 return new NetworkLibraryImpl(); |
| 1096 } | 1114 } |
| 1097 | 1115 |
| 1098 } // namespace chromeos | 1116 } // namespace chromeos |
| 1099 | 1117 |
| 1100 // Allows InvokeLater without adding refcounting. This class is a Singleton and | 1118 // Allows InvokeLater without adding refcounting. This class is a Singleton and |
| 1101 // won't be deleted until it's last InvokeLater is run. | 1119 // won't be deleted until it's last InvokeLater is run. |
| 1102 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImpl); | 1120 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImpl); |
| OLD | NEW |