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

Unified Diff: chromeos/network/network_state.cc

Issue 788633003: chromeos networking: move from security to securityclass property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@local-master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/network_state.cc
diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc
index c71c1798a1be9828f1a3b33053e7e45601c4b69a..e191b139e77c0f3206d6f04874a59d85b4f0dd52 100644
--- a/chromeos/network/network_state.cc
+++ b/chromeos/network/network_state.cc
@@ -106,8 +106,8 @@ bool NetworkState::PropertyChanged(const std::string& key,
return false;
return olp->GetStringWithoutPathExpansion(shill::kPaymentPortalURL,
&payment_url_);
- } else if (key == shill::kSecurityProperty) {
- return GetStringValue(key, value, &security_);
+ } else if (key == shill::kSecurityClassProperty) {
+ return GetStringValue(key, value, &security_class_);
} else if (key == shill::kEapMethodProperty) {
return GetStringValue(key, value, &eap_method_);
} else if (key == shill::kNetworkTechnologyProperty) {
@@ -186,8 +186,8 @@ void NetworkState::GetStateProperties(base::DictionaryValue* dictionary) const {
// Properties shared by all types.
dictionary->SetStringWithoutPathExpansion(shill::kGuidProperty, guid());
- dictionary->SetStringWithoutPathExpansion(shill::kSecurityProperty,
- security());
+ dictionary->SetStringWithoutPathExpansion(shill::kSecurityClassProperty,
+ security_class());
if (visible()) {
if (!error().empty())
@@ -318,7 +318,7 @@ std::string NetworkState::GetSpecifier() const {
return std::string();
}
if (type() == shill::kTypeWifi)
- return name() + "_" + security_;
+ return name() + "_" + security_class_;
if (!name().empty())
return name();
return type(); // For unnamed networks such as ethernet.

Powered by Google App Engine
This is Rietveld 408576698