| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 })(); |
| OLD | NEW |