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

Side by Side Diff: chrome/browser/resources/settings/internet_page/internet_detail_page.js

Issue 2853563002: ONC: Translate EAP from Shill to ONC (Closed)
Patch Set: Use params Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-internet-detail' is the settings subpage containing details 7 * 'settings-internet-detail' is the settings subpage containing details
8 * for a network. 8 * for a network.
9 */ 9 */
10 (function() { 10 (function() {
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 getAdvancedFields_: function() { 832 getAdvancedFields_: function() {
833 /** @type {!Array<string>} */ var fields = []; 833 /** @type {!Array<string>} */ var fields = [];
834 fields.push('MacAddress'); 834 fields.push('MacAddress');
835 var type = this.networkProperties.Type; 835 var type = this.networkProperties.Type;
836 if (type == CrOnc.Type.CELLULAR && !!this.networkProperties.Cellular) { 836 if (type == CrOnc.Type.CELLULAR && !!this.networkProperties.Cellular) {
837 fields.push( 837 fields.push(
838 'Cellular.Carrier', 'Cellular.Family', 'Cellular.NetworkTechnology', 838 'Cellular.Carrier', 'Cellular.Family', 'Cellular.NetworkTechnology',
839 'Cellular.ServingOperator.Code'); 839 'Cellular.ServingOperator.Code');
840 } else if (type == CrOnc.Type.WI_FI) { 840 } else if (type == CrOnc.Type.WI_FI) {
841 fields.push( 841 fields.push(
842 'WiFi.SSID', 'WiFi.BSSID', 'WiFi.Security', 'WiFi.SignalStrength', 842 'WiFi.SSID', 'WiFi.BSSID', 'WiFi.SignalStrength', 'WiFi.Security',
843 'WiFi.Frequency'); 843 'WiFi.EAP.Outer', 'WiFi.EAP.Inner', 'WiFi.EAP.SubjectMatch',
844 'WiFi.EAP.Identity', 'WiFi.EAP.AnonymousIdentity', 'WiFi.Frequency');
844 } else if (type == CrOnc.Type.WI_MAX) { 845 } else if (type == CrOnc.Type.WI_MAX) {
845 fields.push('WiFi.SignalStrength'); 846 fields.push('WiFi.SignalStrength');
846 } 847 }
847 return fields; 848 return fields;
848 }, 849 },
849 850
850 /** 851 /**
851 * @return {!Array<string>} The fields to display in the device section. 852 * @return {!Array<string>} The fields to display in the device section.
852 * @private 853 * @private
853 */ 854 */
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 */ 958 */
958 allPropertiesMatch_: function(curValue, newValue) { 959 allPropertiesMatch_: function(curValue, newValue) {
959 for (var key in newValue) { 960 for (var key in newValue) {
960 if (newValue[key] != curValue[key]) 961 if (newValue[key] != curValue[key])
961 return false; 962 return false;
962 } 963 }
963 return true; 964 return true;
964 } 965 }
965 }); 966 });
966 })(); 967 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698