Index: chromeos/network/network_state.h |
diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h |
index 995207d3f3473da9a479eb518e4b17e46a7e0dbb..4230e564aecc52b6b7b61e941ce52e0514cfec62 100644 |
--- a/chromeos/network/network_state.h |
+++ b/chromeos/network/network_state.h |
@@ -114,6 +114,17 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState { |
} |
const std::string& carrier() const { return carrier_; } |
void set_carrier(const std::string& carrier) { carrier_ = carrier; } |
+ // Returns whether the current device has already connected to the tether host |
+ // device providing the hotspot corresponding to this NetworkState. |
+ // Note: this means that the current device has already connected to the |
+ // tether host, but it does not necessarily mean that the current device has |
+ // connected to the Tether network corresponding to this NetworkState. |
stevenjb
2017/04/27 19:45:52
Comment should be above the member.
Kyle Horimoto
2017/04/27 19:51:50
Done.
|
+ bool has_connected_as_tether_client() const { |
+ return has_connected_as_tether_client_; |
+ } |
+ void set_has_connected_as_tether_client(bool has_connected_as_tether_client) { |
+ has_connected_as_tether_client_ = has_connected_as_tether_client; |
+ } |
const std::string& tether_guid() const { return tether_guid_; } |
void set_tether_guid(const std::string& guid) { tether_guid_ = guid; } |
@@ -229,6 +240,7 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState { |
// Tether properties. |
std::string carrier_; |
int battery_percentage_; |
+ bool has_connected_as_tether_client_; |
// TODO(pneubeck): Remove this once (Managed)NetworkConfigurationHandler |
// provides proxy configuration. crbug.com/241775 |