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

Unified Diff: chromeos/network/network_state.cc

Issue 2844363003: [CrOS Tether] Add HasConnectedToHost property for Tether networks. (Closed)
Patch Set: Rebased. 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_state.h ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_state.cc
diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc
index 838faa0b3b8f1dfc9b6f01f6b71c7dc904403343..55775188273c64302a5c7be17255a5747ea5ce2e 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,
+ tether_has_connected_to_host());
dictionary->SetIntegerWithoutPathExpansion(kTetherSignalStrength,
signal_strength());
}
« no previous file with comments | « chromeos/network/network_state.h ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698