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_translation_tables.h" | 5 #include "chromeos/network/onc/onc_translation_tables.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "components/onc/onc_constants.h" | 10 #include "components/onc/onc_constants.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 { ::onc::wifi::kHiddenSSID, shill::kWifiHiddenSsid}, | 113 { ::onc::wifi::kHiddenSSID, shill::kWifiHiddenSsid}, |
114 { ::onc::wifi::kPassphrase, shill::kPassphraseProperty}, | 114 { ::onc::wifi::kPassphrase, shill::kPassphraseProperty}, |
115 // This field is converted during translation, see onc_translator_*. | 115 // This field is converted during translation, see onc_translator_*. |
116 // { ::onc::wifi::kSSID, shill::kWifiHexSsid}, | 116 // { ::onc::wifi::kSSID, shill::kWifiHexSsid}, |
117 // This field is converted during translation, see onc_translator_*. | 117 // This field is converted during translation, see onc_translator_*. |
118 // { ::onc::wifi::kSecurity, shill::kSecurityProperty }, | 118 // { ::onc::wifi::kSecurity, shill::kSecurityProperty }, |
119 { ::onc::wifi::kSignalStrength, shill::kSignalStrengthProperty}, | 119 { ::onc::wifi::kSignalStrength, shill::kSignalStrengthProperty}, |
120 {NULL}}; | 120 {NULL}}; |
121 | 121 |
122 const FieldTranslationEntry cellular_apn_fields[] = { | 122 const FieldTranslationEntry cellular_apn_fields[] = { |
123 { ::onc::cellular_apn::kName, shill::kApnProperty}, | 123 { ::onc::cellular_apn::kAccessPointName, shill::kApnProperty}, |
| 124 { ::onc::cellular_apn::kName, shill::kApnNameProperty}, |
124 { ::onc::cellular_apn::kUsername, shill::kApnUsernameProperty}, | 125 { ::onc::cellular_apn::kUsername, shill::kApnUsernameProperty}, |
125 { ::onc::cellular_apn::kPassword, shill::kApnPasswordProperty}, | 126 { ::onc::cellular_apn::kPassword, shill::kApnPasswordProperty}, |
126 { ::onc::cellular_apn::kLocalizedName, shill::kApnLocalizedNameProperty}, | 127 { ::onc::cellular_apn::kLocalizedName, shill::kApnLocalizedNameProperty}, |
127 { ::onc::cellular_apn::kLanguage, shill::kApnLanguageProperty}, | 128 { ::onc::cellular_apn::kLanguage, shill::kApnLanguageProperty}, |
128 {NULL}}; | 129 {NULL}}; |
129 | 130 |
130 const FieldTranslationEntry cellular_found_network_fields[] = { | 131 const FieldTranslationEntry cellular_found_network_fields[] = { |
131 { ::onc::cellular_found_network::kNetworkId, shill::kNetworkIdProperty}, | 132 { ::onc::cellular_found_network::kNetworkId, shill::kNetworkIdProperty}, |
132 { ::onc::cellular_found_network::kStatus, shill::kStatusProperty}, | 133 { ::onc::cellular_found_network::kStatus, shill::kStatusProperty}, |
133 { ::onc::cellular_found_network::kTechnology, shill::kTechnologyProperty}, | 134 { ::onc::cellular_found_network::kTechnology, shill::kTechnologyProperty}, |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 continue; | 368 continue; |
368 *onc_value = table[i].onc_value; | 369 *onc_value = table[i].onc_value; |
369 return true; | 370 return true; |
370 } | 371 } |
371 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; | 372 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; |
372 return false; | 373 return false; |
373 } | 374 } |
374 | 375 |
375 } // namespace onc | 376 } // namespace onc |
376 } // namespace chromeos | 377 } // namespace chromeos |
OLD | NEW |