| 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-page' is the settings page containing internet | 7 * 'settings-internet-page' is the settings page containing internet |
| 8 * settings. | 8 * settings. |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 /** | 308 /** |
| 309 * chrome.management.onDisabled event. | 309 * chrome.management.onDisabled event. |
| 310 * @param {{id: string}} extension | 310 * @param {{id: string}} extension |
| 311 * @private | 311 * @private |
| 312 */ | 312 */ |
| 313 onExtensionDisabled_: function(extension) { | 313 onExtensionDisabled_: function(extension) { |
| 314 this.onExtensionRemoved_(extension.id); | 314 this.onExtensionRemoved_(extension.id); |
| 315 }, | 315 }, |
| 316 | 316 |
| 317 /** | 317 /** |
| 318 * @param {!chrome.networkingPrivate.DeviceStateProperties} deviceState |
| 319 * @return {boolean} |
| 320 * @private |
| 321 */ |
| 322 deviceIsEnabled_: function(deviceState) { |
| 323 return deviceState.State == |
| 324 chrome.networkingPrivate.DeviceStateType.ENABLED; |
| 325 }, |
| 326 |
| 327 /** |
| 318 * @param {!chrome.networkingPrivate.GlobalPolicy} globalPolicy | 328 * @param {!chrome.networkingPrivate.GlobalPolicy} globalPolicy |
| 319 * @return {boolean} | 329 * @return {boolean} |
| 320 */ | 330 */ |
| 321 allowAddConnection_: function(globalPolicy) { | 331 allowAddConnection_: function(globalPolicy) { |
| 322 return !globalPolicy.AllowOnlyPolicyNetworksToConnect; | 332 return !globalPolicy.AllowOnlyPolicyNetworksToConnect; |
| 323 }, | 333 }, |
| 324 | 334 |
| 325 /** | 335 /** |
| 326 * @param {!chrome.networkingPrivate.ThirdPartyVPNProperties} provider | 336 * @param {!chrome.networkingPrivate.ThirdPartyVPNProperties} provider |
| 327 * @return {string} | 337 * @return {string} |
| 328 */ | 338 */ |
| 329 getAddThirdParrtyVpnLabel_: function(provider) { | 339 getAddThirdParrtyVpnLabel_: function(provider) { |
| 330 return this.i18n('internetAddThirdPartyVPN', provider.ProviderName); | 340 return this.i18n('internetAddThirdPartyVPN', provider.ProviderName); |
| 331 } | 341 } |
| 332 }); | 342 }); |
| OLD | NEW |