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

Unified Diff: chromeos/network/network_state.h

Issue 2919683002: Treat tethered networks as mobile networks (Closed)
Patch Set: Clean up code 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
Index: chromeos/network/network_state.h
diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h
index d43c56273e7c02f1a7947d0889342e8f00777698..05558ceb7a9ea94a78d8b866bf29e8dd54835914 100644
--- a/chromeos/network/network_state.h
+++ b/chromeos/network/network_state.h
@@ -100,6 +100,8 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
const std::string& roaming() const { return roaming_; }
const std::string& payment_url() const { return payment_url_; }
bool cellular_out_of_credits() const { return cellular_out_of_credits_; }
+ const std::string& tethering_state() const { return tethering_state_; }
+ bool IsUsingMobileData() const;
xiyuan 2017/06/01 20:18:27 nit: This is not an accessor. Move it up ?
weidongg 2017/06/01 20:41:00 Done.
// VPN property accessors
const std::string& vpn_provider_type() const { return vpn_provider_type_; }
@@ -226,6 +228,7 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
std::string roaming_;
std::string payment_url_;
bool cellular_out_of_credits_ = false;
+ std::string tethering_state_;
// VPN properties, used to construct the display name and to show the correct
// configuration dialog.
@@ -235,6 +238,7 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
// Tether properties.
std::string carrier_;
int battery_percentage_;
+
// 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

Powered by Google App Engine
This is Rietveld 408576698