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

Unified Diff: chrome/browser/resources/settings/internet_page/internet_detail_page.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
Index: chrome/browser/resources/settings/internet_page/internet_detail_page.js
diff --git a/chrome/browser/resources/settings/internet_page/internet_detail_page.js b/chrome/browser/resources/settings/internet_page/internet_detail_page.js
index cd6ed56bbf9848e41ed1311b83f62905bf7d45b0..5bc8e2202532597473247b6056df96a270a990ef 100644
--- a/chrome/browser/resources/settings/internet_page/internet_detail_page.js
+++ b/chrome/browser/resources/settings/internet_page/internet_detail_page.js
@@ -129,6 +129,7 @@ Polymer({
value: {
CELLULAR: CrOnc.Type.CELLULAR,
ETHERNET: CrOnc.Type.ETHERNET,
+ TETHER: CrOnc.Type.TETHER,
VPN: CrOnc.Type.VPN,
WIFI: CrOnc.Type.WI_FI,
WIMAX: CrOnc.Type.WI_MAX,
@@ -801,6 +802,10 @@ Polymer({
fields.push(
'Cellular.ActivationState', 'Cellular.RoamingState',
'RestrictedConnectivity', 'Cellular.ServingOperator.Name');
+ } else if (type == CrOnc.Type.TETHER && !!this.networkProperties.Tether) {
+ fields.push(
+ 'Tether.BatteryPercentage', 'Tether.SignalStrength',
+ 'Tether.Carrier');
} else if (type == CrOnc.Type.VPN && !!this.networkProperties.VPN) {
var vpnType = CrOnc.getActiveValue(this.networkProperties.VPN.Type);
if (vpnType == 'ThirdPartyVPN') {

Powered by Google App Engine
This is Rietveld 408576698