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

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: Test for empty EAP field and cl format 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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 getAdvancedFields_: function() { 827 getAdvancedFields_: function() {
828 /** @type {!Array<string>} */ var fields = []; 828 /** @type {!Array<string>} */ var fields = [];
829 fields.push('MacAddress'); 829 fields.push('MacAddress');
830 var type = this.networkProperties.Type; 830 var type = this.networkProperties.Type;
831 if (type == CrOnc.Type.CELLULAR && !!this.networkProperties.Cellular) { 831 if (type == CrOnc.Type.CELLULAR && !!this.networkProperties.Cellular) {
832 fields.push( 832 fields.push(
833 'Cellular.Carrier', 'Cellular.Family', 'Cellular.NetworkTechnology', 833 'Cellular.Carrier', 'Cellular.Family', 'Cellular.NetworkTechnology',
834 'Cellular.ServingOperator.Code'); 834 'Cellular.ServingOperator.Code');
835 } else if (type == CrOnc.Type.WI_FI) { 835 } else if (type == CrOnc.Type.WI_FI) {
836 fields.push( 836 fields.push(
837 'WiFi.SSID', 'WiFi.BSSID', 'WiFi.Security', 'WiFi.SignalStrength', 837 'WiFi.SSID', 'WiFi.BSSID', 'WiFi.SignalStrength', 'WiFi.Security',
838 'WiFi.Frequency'); 838 'WiFi.EAP.Outer', 'WiFi.EAP.Inner', 'WiFi.EAP.SubjectMatch',
839 'WiFi.EAP.Identity', 'WiFi.EAP.AnonymousIdentity', 'WiFi.Frequency');
839 } else if (type == CrOnc.Type.WI_MAX) { 840 } else if (type == CrOnc.Type.WI_MAX) {
840 fields.push('WiFi.SignalStrength'); 841 fields.push('WiFi.SignalStrength');
841 } 842 }
842 return fields; 843 return fields;
843 }, 844 },
844 845
845 /** 846 /**
846 * @return {!Array<string>} The fields to display in the device section. 847 * @return {!Array<string>} The fields to display in the device section.
847 * @private 848 * @private
848 */ 849 */
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 */ 953 */
953 allPropertiesMatch_: function(curValue, newValue) { 954 allPropertiesMatch_: function(curValue, newValue) {
954 for (var key in newValue) { 955 for (var key in newValue) {
955 if (newValue[key] != curValue[key]) 956 if (newValue[key] != curValue[key])
956 return false; 957 return false;
957 } 958 }
958 return true; 959 return true;
959 } 960 }
960 }); 961 });
961 })(); 962 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698