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

Unified Diff: chromeos/network/onc/onc_signature.cc

Issue 2818593003: [CrOS Tether] Add tether network properties (battery percentage, carrier, and signal strength) to t… (Closed)
Patch Set: Ran git cl format. 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/onc/onc_signature.h ('k') | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_signature.cc
diff --git a/chromeos/network/onc/onc_signature.cc b/chromeos/network/onc/onc_signature.cc
index b4a0cfcb73f02c8d08e99d7c1cbf36334e5f0b6f..7887edb72fa44245e4f1602681f3ac2a86c52f97 100644
--- a/chromeos/network/onc/onc_signature.cc
+++ b/chromeos/network/onc/onc_signature.cc
@@ -166,6 +166,12 @@ const OncFieldSignature ethernet_fields[] = {
{::onc::ethernet::kEAP, &kEAPSignature},
{NULL}};
+const OncFieldSignature tether_fields[] = {
+ {::onc::tether::kBatteryPercentage, &kIntegerSignature},
+ {::onc::tether::kCarrier, &kStringSignature},
+ {::onc::tether::kSignalStrength, &kIntegerSignature},
+ {NULL}};
+
const OncFieldSignature ipconfig_fields[] = {
{::onc::ipconfig::kGateway, &kStringSignature},
{::onc::ipconfig::kIPAddress, &kStringSignature},
@@ -328,6 +334,7 @@ const OncFieldSignature network_with_state_fields[] = {
{::onc::network_config::kRestrictedConnectivity, &kBoolSignature},
{::onc::network_config::kSavedIPConfig, &kSavedIPConfigSignature},
{::onc::network_config::kSource, &kStringSignature},
+ {::onc::network_config::kTether, &kTetherSignature},
{::onc::network_config::kWiFi, &kWiFiWithStateSignature},
{::onc::network_config::kWimax, &kWiMAXWithStateSignature},
{NULL}};
@@ -392,6 +399,8 @@ const OncValueSignature kVPNSignature = {base::Value::Type::DICTIONARY,
vpn_fields, NULL};
const OncValueSignature kEthernetSignature = {base::Value::Type::DICTIONARY,
ethernet_fields, NULL};
+const OncValueSignature kTetherSignature = {base::Value::Type::DICTIONARY,
+ tether_fields, NULL};
const OncValueSignature kIPConfigSignature = {base::Value::Type::DICTIONARY,
ipconfig_fields, NULL};
const OncValueSignature kSavedIPConfigSignature = {
« no previous file with comments | « chromeos/network/onc/onc_signature.h ('k') | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698