Chromium Code Reviews| Index: chromeos/network/network_state.cc |
| diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc |
| index a50c7d59fe8ec356874bbf34ef43eb26951220b9..db00b7d725e9f7db0b6b3a7f67abe1886959d569 100644 |
| --- a/chromeos/network/network_state.cc |
| +++ b/chromeos/network/network_state.cc |
| @@ -130,12 +130,22 @@ bool NetworkState::InitialPropertiesReceived( |
| if (!properties.HasKey(shill::kTypeProperty)) { |
| NET_LOG_ERROR("NetworkState has no type", |
| shill_property_util::GetNetworkIdFromProperties(properties)); |
| - } else { |
| - changed |= UpdateName(properties); |
| + return false; |
|
pneubeck (no reviews)
2014/05/15 18:28:37
the return value is ignored by the caller.
in part
stevenjb
2014/05/15 20:12:41
It is used in one of the places it gets called fro
pneubeck (no reviews)
2014/05/16 13:18:55
Ops. My search was not exhaustive, sorry.
|
| } |
| + // Ensure that the network has a valid name. |
| + changed |= UpdateName(properties); |
| + |
| + // Set the ca_cert_nss_ property. |
|
pneubeck (no reviews)
2014/05/15 18:28:38
ca_cert_nss_ -> has_ca_cert_nss_
stevenjb
2014/05/15 20:12:41
Done.
|
| bool had_ca_cert_nss = has_ca_cert_nss_; |
| has_ca_cert_nss_ = IsCaCertNssSet(properties); |
| changed |= had_ca_cert_nss != has_ca_cert_nss_; |
| + |
| + // By convention, all visible WiFi networks have a SignalStrength > 0. |
| + if (type() == shill::kTypeWifi) { |
| + if (signal_strength_ <= 0) |
| + signal_strength_ = 1; |
| + } |
| + |
| return changed; |
| } |