Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: chromeos/network/onc/onc_translation_tables.cc

Issue 1087353002: Add an ONC property for setting per-network roam threshold (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revised ONC spec doc Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | chromeos/test/data/network/shill_wifi_psk.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | chromeos/test/data/network/shill_wifi_psk.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698