| Index: chromeos/network/network_state.cc
|
| diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc
|
| index dff74c4c3968a324842b1ae2bc6d4f602afa471c..8db653504654229489ed249b5a9afd47fc830e6f 100644
|
| --- a/chromeos/network/network_state.cc
|
| +++ b/chromeos/network/network_state.cc
|
| @@ -201,6 +201,8 @@ bool NetworkState::PropertyChanged(const std::string& key,
|
|
|
| vpn_provider_type_ = vpn_provider_type;
|
| return true;
|
| + } else if (key == shill::kTetheringProperty) {
|
| + return GetStringValue(key, value, &tethering_state_);
|
| }
|
| return false;
|
| }
|
| @@ -364,6 +366,11 @@ void NetworkState::set_connection_state(const std::string connection_state) {
|
| connection_state_ = connection_state;
|
| }
|
|
|
| +bool NetworkState::IsUsingMobileData() const {
|
| + return type() == shill::kTypeCellular || type() == chromeos::kTypeTether ||
|
| + tethering_state() == shill::kTetheringConfirmedState;
|
| +}
|
| +
|
| bool NetworkState::IsDynamicWep() const {
|
| return security_class_ == shill::kSecurityWep &&
|
| eap_key_mgmt_ == shill::kKeyManagementIEEE8021X;
|
|
|