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..dd95cf6505ca0088870f6eb76a4300e48f896da7 100644 |
--- a/chromeos/network/network_change_notifier_chromeos.cc |
+++ b/chromeos/network/network_change_notifier_chromeos.cc |
@@ -13,6 +13,7 @@ |
#include "chromeos/network/network_event_log.h" |
#include "chromeos/network/network_state.h" |
#include "chromeos/network/network_state_handler.h" |
+#include "chromeos/network/shill_property_util.h" |
#include "net/base/network_change_notifier.h" |
#include "net/dns/dns_config_service_posix.h" |
#include "third_party/cros_system_api/dbus/service_constants.h" |
@@ -196,7 +197,7 @@ void NetworkChangeNotifierChromeos::UpdateState( |
net::NetworkChangeNotifier::ConnectionType |
NetworkChangeNotifierChromeos::ConnectionTypeFromShill( |
const std::string& type, const std::string& technology) { |
- if (type == flimflam::kTypeEthernet) |
+ if (NetworkTypePattern::Ethernet().MatchesType(type)) |
return CONNECTION_ETHERNET; |
else if (type == flimflam::kTypeWifi) |
return CONNECTION_WIFI; |