Index: net/base/network_change_notifier_mac.cc |
diff --git a/net/base/network_change_notifier_mac.cc b/net/base/network_change_notifier_mac.cc |
index f8caee80f6584ca5730d9c84d8deb16879d1ce9b..4468c0bc226112d28b2b795d4bebec0bacdb8c94 100644 |
--- a/net/base/network_change_notifier_mac.cc |
+++ b/net/base/network_change_notifier_mac.cc |
@@ -257,8 +257,13 @@ void NetworkChangeNotifierMac::ReachabilityCallback( |
old_type = notifier_mac->connection_type_; |
notifier_mac->connection_type_ = new_type; |
} |
- if (old_type != new_type) |
+ if (old_type != new_type) { |
NotifyObserversOfConnectionTypeChange(); |
+ double max_bandwidth_mbps = |
+ NetworkChangeNotifier::GetMaxBandwidthForConnectionSubtype( |
+ new_type == CONNECTION_NONE ? SUBTYPE_NONE : SUBTYPE_UNKNOWN); |
+ NotifyObserversOfMaxBandwidthChange(max_bandwidth_mbps, new_type); |
+ } |
#if defined(OS_IOS) |
// On iOS, the SCDynamicStore API does not exist, and we use the reachability |