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

Unified Diff: net/base/network_change_notifier_win.cc

Issue 2872433004: [NetworkChangeNotifier] Get connection type from interface list for Windows (Closed)
Patch Set: Created 3 years, 7 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.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 06261fcbf10d0f33670033e6adb3b61bb007cb65..42727f474b5a1fce3818c2581e5bc3edd87106f1 100644
--- a/net/base/network_change_notifier_win.cc
+++ b/net/base/network_change_notifier_win.cc
@@ -200,8 +200,8 @@ NetworkChangeNotifierWin::RecomputeCurrentConnectionType() const {
<< "WSALookupServiceEnd() failed with: " << result;
// TODO(droger): Return something more detailed than CONNECTION_UNKNOWN.
- return found_connection ? NetworkChangeNotifier::CONNECTION_UNKNOWN :
- NetworkChangeNotifier::CONNECTION_NONE;
+ return found_connection ? ConnectionTypeFromInterfaces()
+ : NetworkChangeNotifier::CONNECTION_NONE;
}
NetworkChangeNotifier::ConnectionType
« no previous file with comments | « net/base/network_change_notifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698