| 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 const FieldTranslationEntry wifi_fields[] = { | 113 const FieldTranslationEntry wifi_fields[] = { |
| 114 {::onc::wifi::kAutoConnect, shill::kAutoConnectProperty}, | 114 {::onc::wifi::kAutoConnect, shill::kAutoConnectProperty}, |
| 115 {::onc::wifi::kBSSID, shill::kWifiBSsid}, | 115 {::onc::wifi::kBSSID, shill::kWifiBSsid}, |
| 116 // This dictionary is converted during translation, see onc_translator_*. | 116 // This dictionary is converted during translation, see onc_translator_*. |
| 117 // { ::onc::wifi::kEAP, shill::kEap*}, | 117 // { ::onc::wifi::kEAP, shill::kEap*}, |
| 118 {::onc::wifi::kFrequency, shill::kWifiFrequency}, | 118 {::onc::wifi::kFrequency, shill::kWifiFrequency}, |
| 119 {::onc::wifi::kFrequencyList, shill::kWifiFrequencyListProperty}, | 119 {::onc::wifi::kFrequencyList, shill::kWifiFrequencyListProperty}, |
| 120 {::onc::wifi::kHexSSID, shill::kWifiHexSsid}, | 120 {::onc::wifi::kHexSSID, shill::kWifiHexSsid}, |
| 121 {::onc::wifi::kHiddenSSID, shill::kWifiHiddenSsid}, | 121 {::onc::wifi::kHiddenSSID, shill::kWifiHiddenSsid}, |
| 122 {::onc::wifi::kPassphrase, shill::kPassphraseProperty}, | 122 {::onc::wifi::kPassphrase, shill::kPassphraseProperty}, |
| 123 {::onc::wifi::kRoamThreshold, shill::kWifiRoamThresholdProperty}, |
| 123 // This field is converted during translation, see onc_translator_*. | 124 // This field is converted during translation, see onc_translator_*. |
| 124 // { ::onc::wifi::kSecurity, shill::kSecurityClassProperty }, | 125 // { ::onc::wifi::kSecurity, shill::kSecurityClassProperty }, |
| 125 {::onc::wifi::kSignalStrength, shill::kSignalStrengthProperty}, | 126 {::onc::wifi::kSignalStrength, shill::kSignalStrengthProperty}, |
| 126 {NULL}}; | 127 {NULL}}; |
| 127 | 128 |
| 128 const FieldTranslationEntry wimax_fields[] = { | 129 const FieldTranslationEntry wimax_fields[] = { |
| 129 {::onc::wimax::kAutoConnect, shill::kAutoConnectProperty}, | 130 {::onc::wimax::kAutoConnect, shill::kAutoConnectProperty}, |
| 130 // This dictionary is converted during translation, see onc_translator_*. | 131 // This dictionary is converted during translation, see onc_translator_*. |
| 131 // { ::onc::wimax::kEAP, shill::kEap*}, | 132 // { ::onc::wimax::kEAP, shill::kEap*}, |
| 132 {::onc::wimax::kSignalStrength, shill::kSignalStrengthProperty}, | 133 {::onc::wimax::kSignalStrength, shill::kSignalStrengthProperty}, |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 continue; | 428 continue; |
| 428 *onc_value = table[i].onc_value; | 429 *onc_value = table[i].onc_value; |
| 429 return true; | 430 return true; |
| 430 } | 431 } |
| 431 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; | 432 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; |
| 432 return false; | 433 return false; |
| 433 } | 434 } |
| 434 | 435 |
| 435 } // namespace onc | 436 } // namespace onc |
| 436 } // namespace chromeos | 437 } // namespace chromeos |
| OLD | NEW |