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/onc/onc_signature.h" | 5 #include "chromeos/network/onc/onc_signature.h" |
| 6 | 6 |
| 7 #include "components/onc/onc_constants.h" | 7 #include "components/onc/onc_constants.h" |
| 8 #include "third_party/cros_system_api/dbus/service_constants.h" | 8 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 9 | 9 |
| 10 using base::Value; | 10 using base::Value; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 256 const OncFieldSignature sim_lock_status_fields[] = { | 256 const OncFieldSignature sim_lock_status_fields[] = { |
| 257 {::onc::sim_lock_status::kLockEnabled, &kBoolSignature}, | 257 {::onc::sim_lock_status::kLockEnabled, &kBoolSignature}, |
| 258 {::onc::sim_lock_status::kLockType, &kStringSignature}, | 258 {::onc::sim_lock_status::kLockType, &kStringSignature}, |
| 259 {::onc::sim_lock_status::kRetriesLeft, &kDoubleSignature}, | 259 {::onc::sim_lock_status::kRetriesLeft, &kDoubleSignature}, |
| 260 {NULL}}; | 260 {NULL}}; |
| 261 | 261 |
| 262 const OncFieldSignature cellular_fields[] = { | 262 const OncFieldSignature cellular_fields[] = { |
| 263 {::onc::kRecommended, &kRecommendedSignature}, | 263 {::onc::kRecommended, &kRecommendedSignature}, |
| 264 {::onc::cellular::kAPN, &kCellularApnSignature}, | 264 {::onc::cellular::kAPN, &kCellularApnSignature}, |
| 265 {::onc::cellular::kAPNList, &kCellularApnListSignature}, | 265 {::onc::cellular::kAPNList, &kCellularApnListSignature}, |
| 266 {::onc::vpn::kAutoConnect, &kBoolSignature}, | 266 {::onc::cellular::kCarrier, &kStringSignature}, |
| 267 {::onc::cellular::kAutoConnect, &kBoolSignature}, | |
|
pneubeck (no reviews)
2015/03/27 18:26:46
please also fix all usages, e.g.:
https://code.goo
stevenjb
2015/03/27 23:18:04
Done.
| |
| 267 {NULL}}; | 268 {NULL}}; |
| 268 | 269 |
| 269 const OncFieldSignature cellular_with_state_fields[] = { | 270 const OncFieldSignature cellular_with_state_fields[] = { |
| 270 {::onc::cellular::kActivationType, &kStringSignature}, | 271 {::onc::cellular::kActivationType, &kStringSignature}, |
| 271 {::onc::cellular::kActivationState, &kStringSignature}, | 272 {::onc::cellular::kActivationState, &kStringSignature}, |
| 272 {::onc::cellular::kAllowRoaming, &kBoolSignature}, | 273 {::onc::cellular::kAllowRoaming, &kBoolSignature}, |
| 273 {::onc::cellular::kCarrier, &kStringSignature}, | |
| 274 {::onc::cellular::kESN, &kStringSignature}, | 274 {::onc::cellular::kESN, &kStringSignature}, |
| 275 {::onc::cellular::kFamily, &kStringSignature}, | 275 {::onc::cellular::kFamily, &kStringSignature}, |
| 276 {::onc::cellular::kFirmwareRevision, &kStringSignature}, | 276 {::onc::cellular::kFirmwareRevision, &kStringSignature}, |
| 277 {::onc::cellular::kFoundNetworks, &kCellularFoundNetworkListSignature}, | 277 {::onc::cellular::kFoundNetworks, &kCellularFoundNetworkListSignature}, |
| 278 {::onc::cellular::kHardwareRevision, &kStringSignature}, | 278 {::onc::cellular::kHardwareRevision, &kStringSignature}, |
| 279 {::onc::cellular::kHomeProvider, &kCellularProviderSignature}, | 279 {::onc::cellular::kHomeProvider, &kCellularProviderSignature}, |
| 280 {::onc::cellular::kICCID, &kStringSignature}, | 280 {::onc::cellular::kICCID, &kStringSignature}, |
| 281 {::onc::cellular::kIMEI, &kStringSignature}, | 281 {::onc::cellular::kIMEI, &kStringSignature}, |
| 282 {::onc::cellular::kIMSI, &kStringSignature}, | 282 {::onc::cellular::kIMSI, &kStringSignature}, |
| 283 {::onc::cellular::kLastGoodAPN, &kCellularApnSignature}, | 283 {::onc::cellular::kLastGoodAPN, &kCellularApnSignature}, |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 527 if (&signature == entry->value_signature && | 527 if (&signature == entry->value_signature && |
| 528 onc_field_name == entry->field_name) { | 528 onc_field_name == entry->field_name) { |
| 529 return true; | 529 return true; |
| 530 } | 530 } |
| 531 } | 531 } |
| 532 return false; | 532 return false; |
| 533 } | 533 } |
| 534 | 534 |
| 535 } // namespace onc | 535 } // namespace onc |
| 536 } // namespace chromeos | 536 } // namespace chromeos |
| OLD | NEW |