| Index: chromeos/network/shill_property_util.cc
|
| diff --git a/chromeos/network/shill_property_util.cc b/chromeos/network/shill_property_util.cc
|
| index 405de1e3877dbd6b62288a55b0ce5b9536a6c6fa..75a94f7fdc7761efc02df87350de2e122d49d28b 100644
|
| --- a/chromeos/network/shill_property_util.cc
|
| +++ b/chromeos/network/shill_property_util.cc
|
| @@ -57,16 +57,6 @@ bool CopyStringFromDictionary(const base::DictionaryValue& source,
|
| return true;
|
| }
|
|
|
| -// This is the same normalization that Shill applies to security types for the
|
| -// sake of comparing/identifying WiFi networks. See Shill's
|
| -// WiFiService::GetSecurityClass.
|
| -std::string GetSecurityClass(const std::string& security) {
|
| - if (security == shill::kSecurityRsn || security == shill::kSecurityWpa)
|
| - return shill::kSecurityPsk;
|
| - else
|
| - return security;
|
| -}
|
| -
|
| } // namespace
|
|
|
| void SetSSID(const std::string ssid, base::DictionaryValue* properties) {
|
| @@ -255,15 +245,9 @@ bool CopyIdentifyingProperties(const base::DictionaryValue& service_properties,
|
| success &= !type.empty();
|
| dest->SetStringWithoutPathExpansion(shill::kTypeProperty, type);
|
| if (type == shill::kTypeWifi) {
|
| - std::string security;
|
| - service_properties.GetStringWithoutPathExpansion(shill::kSecurityProperty,
|
| - &security);
|
| - if (security.empty()) {
|
| - success = false;
|
| - } else {
|
| - dest->SetStringWithoutPathExpansion(shill::kSecurityProperty,
|
| - GetSecurityClass(security));
|
| - }
|
| + success &=
|
| + CopyStringFromDictionary(
|
| + service_properties, shill::kSecurityClassProperty, dest);
|
| success &=
|
| CopyStringFromDictionary(service_properties, shill::kWifiHexSsid, dest);
|
| success &= CopyStringFromDictionary(
|
|
|