| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 var preferNetwork = priority > 0; | 188 var preferNetwork = priority > 0; |
| 189 if (preferNetwork != this.preferNetwork_) | 189 if (preferNetwork != this.preferNetwork_) |
| 190 this.preferNetwork_ = preferNetwork; | 190 this.preferNetwork_ = preferNetwork; |
| 191 | 191 |
| 192 // Set the IPAddress property to the IPV4 Address. | 192 // Set the IPAddress property to the IPV4 Address. |
| 193 var ipv4 = | 193 var ipv4 = |
| 194 CrOnc.getIPConfigForType(this.networkProperties, CrOnc.IPType.IPV4); | 194 CrOnc.getIPConfigForType(this.networkProperties, CrOnc.IPType.IPV4); |
| 195 this.IPAddress_ = (ipv4 && ipv4.IPAddress) || ''; | 195 this.IPAddress_ = (ipv4 && ipv4.IPAddress) || ''; |
| 196 | 196 |
| 197 // Update the detail page title. | 197 // Update the detail page title. |
| 198 this.parentNode.pageTitle = | 198 this.parentNode.pageTitle = CrOnc.getNetworkName(this.networkProperties); |
| 199 CrOnc.getNetworkName(this.networkProperties, this); | |
| 200 }, | 199 }, |
| 201 | 200 |
| 202 /** @private */ | 201 /** @private */ |
| 203 autoConnectChanged_: function() { | 202 autoConnectChanged_: function() { |
| 204 if (!this.networkProperties || !this.guid) | 203 if (!this.networkProperties || !this.guid) |
| 205 return; | 204 return; |
| 206 var onc = this.getEmptyNetworkProperties_(); | 205 var onc = this.getEmptyNetworkProperties_(); |
| 207 CrOnc.setTypeProperty(onc, 'AutoConnect', this.autoConnect_); | 206 CrOnc.setTypeProperty(onc, 'AutoConnect', this.autoConnect_); |
| 208 this.setNetworkProperties_(onc); | 207 this.setNetworkProperties_(onc); |
| 209 }, | 208 }, |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 */ | 827 */ |
| 829 allPropertiesMatch_: function(curValue, newValue) { | 828 allPropertiesMatch_: function(curValue, newValue) { |
| 830 for (let key in newValue) { | 829 for (let key in newValue) { |
| 831 if (newValue[key] != curValue[key]) | 830 if (newValue[key] != curValue[key]) |
| 832 return false; | 831 return false; |
| 833 } | 832 } |
| 834 return true; | 833 return true; |
| 835 } | 834 } |
| 836 }); | 835 }); |
| 837 })(); | 836 })(); |
| OLD | NEW |