| Index: chromeos/network/network_change_notifier_chromeos.cc
|
| diff --git a/chromeos/network/network_change_notifier_chromeos.cc b/chromeos/network/network_change_notifier_chromeos.cc
|
| index 52ee616a184938c032d185b6cbc694b5e43e2b66..110c2ceaa33a1347cb1888fc97114abc88bfb885 100644
|
| --- a/chromeos/network/network_change_notifier_chromeos.cc
|
| +++ b/chromeos/network/network_change_notifier_chromeos.cc
|
| @@ -102,7 +102,10 @@ NetworkChangeNotifierChromeos::GetCurrentConnectionType() const {
|
| return connection_type_;
|
| }
|
|
|
| -double NetworkChangeNotifierChromeos::GetCurrentMaxBandwidth() const {
|
| +double NetworkChangeNotifierChromeos::GetCurrentMaxBandwidthAndConnectionType(
|
| + ConnectionType* connection_type) const {
|
| + if (connection_type != nullptr)
|
| + *connection_type = connection_type_;
|
| return max_bandwidth_mbps_;
|
| }
|
|
|
| @@ -129,9 +132,10 @@ void NetworkChangeNotifierChromeos::DefaultNetworkChanged(
|
| NetworkChangeNotifier::NotifyObserversOfIPAddressChange();
|
| if (dns_changed)
|
| dns_config_service_->OnNetworkChange();
|
| - if (max_bandwidth_changed)
|
| + if (max_bandwidth_changed || connection_type_changed) {
|
| NetworkChangeNotifier::NotifyObserversOfMaxBandwidthChange(
|
| - max_bandwidth_mbps_);
|
| + connection_type_, max_bandwidth_mbps_);
|
| + }
|
| }
|
|
|
| void NetworkChangeNotifierChromeos::UpdateState(
|
|
|