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

Unified Diff: chromeos/network/network_state.h

Issue 2844363003: [CrOS Tether] Add HasConnectedToHost property for Tether networks. (Closed)
Patch Set: stevenjb@ comment. Created 3 years, 8 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 | « chromeos/network/network_configuration_handler_unittest.cc ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chromeos/network/network_configuration_handler_unittest.cc ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698