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

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: rebase, resolve conflicts, update new test data (shill_wifi_dhcp.json) Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/network_state.h ('k') | chromeos/network/network_state_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_state.cc
diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc
index d0d4b38e9669de5be3849935324732d456665228..bd0f0d7b35910ca2d62047c53976b79ff979397e 100644
--- a/chromeos/network/network_state.cc
+++ b/chromeos/network/network_state.cc
@@ -78,8 +78,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) {
@@ -153,8 +153,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())
@@ -285,7 +285,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.
« no previous file with comments | « chromeos/network/network_state.h ('k') | chromeos/network/network_state_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698