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

Unified Diff: chromeos/network/network_state.h

Issue 2919683002: Treat tethered networks as mobile networks (Closed)
Patch Set: Created 3 years, 7 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 | « chrome/browser/ui/webui/settings/about_handler.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 d43c56273e7c02f1a7947d0889342e8f00777698..9a14ff5ee520f79e52a061f7bb5bb2ee019bed5e 100644
--- a/chromeos/network/network_state.h
+++ b/chromeos/network/network_state.h
@@ -112,6 +112,10 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
void set_battery_percentage(int battery_percentage) {
battery_percentage_ = battery_percentage;
}
+ const std::string& tethering_state() const { return tethering_state_; }
+ void set_tethering_state(std::string tethering_state) {
+ tethering_state_ = tethering_state;
+ }
stevenjb 2017/06/01 16:03:36 1. We shouldn't need a setter for this. 2. "tether
weidongg 2017/06/01 18:14:29 Aha, that's much cleaner. Thanks. BTW, does it mea
stevenjb 2017/06/01 20:03:00 They are different things. You can still connect t
const std::string& carrier() const { return carrier_; }
void set_carrier(const std::string& carrier) { carrier_ = carrier; }
bool tether_has_connected_to_host() const {
@@ -235,6 +239,7 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
// Tether properties.
std::string carrier_;
int battery_percentage_;
+ std::string tethering_state_;
stevenjb 2017/06/01 16:03:36 Blank line here (but also move this after line 232
weidongg 2017/06/01 18:14:29 Done.
// 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
« no previous file with comments | « chrome/browser/ui/webui/settings/about_handler.cc ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698