diff options
Diffstat (limited to 'chromeos/network/network_state_handler.cc')
-rw-r--r-- | chromeos/network/network_state_handler.cc | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/chromeos/network/network_state_handler.cc b/chromeos/network/network_state_handler.cc index be8696e..e623b0e 100644 --- a/chromeos/network/network_state_handler.cc +++ b/chromeos/network/network_state_handler.cc @@ -433,20 +433,16 @@ void NetworkStateHandler::UpdateNetworkServiceProperty( detail += " = " + vstr; network_event_log::AddEntry(kLogModule, "NetworkPropertyUpdated", detail); - if (network->connection_state() != prev_connection_state) + if (network->connection_state() != prev_connection_state) { OnNetworkConnectionStateChanged(network); - NetworkPropertiesUpdated(network); -} + } + else if (network->path() == default_network_path_ && + key != flimflam::kSignalStrengthProperty) { + // WiFi signal strength updates are too noisy, so don't + // trigger default network updates for those changes. + OnDefaultNetworkChanged(); + } -void NetworkStateHandler::UpdateNetworkServiceIPAddress( - const std::string& service_path, - const std::string& ip_address) { - NetworkState* network = GetModifiableNetworkState(service_path); - if (!network) - return; - std::string detail = network->name() + ".IPAddress = " + ip_address; - network_event_log::AddEntry(kLogModule, "NetworkIPChanged", detail); - network->set_ip_address(ip_address); NetworkPropertiesUpdated(network); } |