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

Unified Diff: chromeos/network/network_state.cc

Issue 2844363003: [CrOS Tether] Add HasConnectedToHost property for Tether networks. (Closed)
Patch Set: 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
Index: chromeos/network/network_state.cc
diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc
index 838faa0b3b8f1dfc9b6f01f6b71c7dc904403343..3ea195db3fd90593d5ff1c46775d74f370baf7f6 100644
--- a/chromeos/network/network_state.cc
+++ b/chromeos/network/network_state.cc
@@ -267,6 +267,8 @@ void NetworkState::GetStateProperties(base::DictionaryValue* dictionary) const {
dictionary->SetIntegerWithoutPathExpansion(kTetherBatteryPercentage,
battery_percentage());
dictionary->SetStringWithoutPathExpansion(kTetherCarrier, carrier());
+ dictionary->SetBooleanWithoutPathExpansion(
+ kTetherHasConnectedToHost, has_connected_as_tether_client());
dictionary->SetIntegerWithoutPathExpansion(kTetherSignalStrength,
signal_strength());
}

Powered by Google App Engine
This is Rietveld 408576698