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

Unified Diff: net/base/network_change_notifier_win.cc

Issue 1306653003: Add connection type to NCN::MaxBandwidthChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra space in comment Created 5 years, 3 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 | « net/base/network_change_notifier_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier_win.cc
diff --git a/net/base/network_change_notifier_win.cc b/net/base/network_change_notifier_win.cc
index e893329b3bd62cf570fe04be32aeceba8512c669..27f230fcfe43046d8d0059ef066153059c44f4c2 100644
--- a/net/base/network_change_notifier_win.cc
+++ b/net/base/network_change_notifier_win.cc
@@ -318,6 +318,11 @@ void NetworkChangeNotifierWin::NotifyParentOfConnectionTypeChange() {
last_announced_offline_ = current_offline;
NotifyObserversOfConnectionTypeChange();
+ double max_bandwidth_mbps = 0.0;
+ ConnectionType connection_type = CONNECTION_NONE;
+ GetCurrentMaxBandwidthAndConnectionType(&max_bandwidth_mbps,
+ &connection_type);
+ NotifyObserversOfMaxBandwidthChange(max_bandwidth_mbps, connection_type);
}
} // namespace net
« no previous file with comments | « net/base/network_change_notifier_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698