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

Unified Diff: chromeos/network/network_change_notifier_chromeos.cc

Issue 23712002: Cleanup network type matching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added unit tests and rebased. Created 7 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
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 706dcfd71c518585a12258bce0f5e63663c732ee..67067b3f776b78f78cc7aae16ddfc6055a5aa953 100644
--- a/chromeos/network/network_change_notifier_chromeos.cc
+++ b/chromeos/network/network_change_notifier_chromeos.cc
@@ -196,7 +196,7 @@ void NetworkChangeNotifierChromeos::UpdateState(
net::NetworkChangeNotifier::ConnectionType
NetworkChangeNotifierChromeos::ConnectionTypeFromShill(
const std::string& type, const std::string& technology) {
- if (type == flimflam::kTypeEthernet)
+ if (type == flimflam::kTypeEthernet || type == shill::kTypeEthernetEap)
stevenjb 2013/09/04 20:40:39 We should probably use MatchType here, just to kee
pneubeck (no reviews) 2013/09/05 08:28:34 Done.
return CONNECTION_ETHERNET;
else if (type == flimflam::kTypeWifi)
return CONNECTION_WIFI;

Powered by Google App Engine
This is Rietveld 408576698