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

Unified Diff: ui/webui/resources/cr_elements/network/cr_onc_types.js

Issue 2838323002: [CrOS Tether] Add tether settings section to the MD settings page. (Closed)
Patch Set: Fix Closure compiler error. 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 | « ui/webui/resources/cr_elements/network/cr_network_icon.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/network/cr_onc_types.js
diff --git a/ui/webui/resources/cr_elements/network/cr_onc_types.js b/ui/webui/resources/cr_elements/network/cr_onc_types.js
index 06303bd60a20561a8f579f324f0179c3e32c7598..fd0e2befd07922ce97a10728a839ac69ad2cfbbb 100644
--- a/ui/webui/resources/cr_elements/network/cr_onc_types.js
+++ b/ui/webui/resources/cr_elements/network/cr_onc_types.js
@@ -22,6 +22,7 @@
* @type {{
* OncTypeCellular: string,
* OncTypeEthernet: string,
+ * OncTypeTether: string,
* OncTypeVPN: string,
* OncTypeWiFi: string,
* OncTypeWiMAX: string,
@@ -211,7 +212,7 @@ CrOnc.getActiveValue = function(property) {
};
/**
- * Return the acitve value for a managed or unmanaged string property.
+ * Return the active value for a managed or unmanaged string property.
* @param {!CrOnc.ManagedProperty|string|undefined} property
* @return {string}
*/
@@ -308,6 +309,8 @@ CrOnc.getSignalStrength = function(properties) {
var type = properties.Type;
if (type == CrOnc.Type.CELLULAR && properties.Cellular)
return properties.Cellular.SignalStrength || 0;
+ if (type == CrOnc.Type.TETHER && properties.Tether)
+ return properties.Tether.SignalStrength || 0;
if (type == CrOnc.Type.WI_FI && properties.WiFi)
return properties.WiFi.SignalStrength || 0;
if (type == CrOnc.Type.WI_MAX && properties.WiMAX)
« no previous file with comments | « ui/webui/resources/cr_elements/network/cr_network_icon.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698