| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 * @private | 229 * @private |
| 230 */ | 230 */ |
| 231 onExtensionDisabled_: function(extension) { | 231 onExtensionDisabled_: function(extension) { |
| 232 this.onExtensionRemoved_(extension.id); | 232 this.onExtensionRemoved_(extension.id); |
| 233 }, | 233 }, |
| 234 | 234 |
| 235 /** | 235 /** |
| 236 * @param {!chrome.networkingPrivate.GlobalPolicy} globalPolicy | 236 * @param {!chrome.networkingPrivate.GlobalPolicy} globalPolicy |
| 237 * @return {boolean} | 237 * @return {boolean} |
| 238 */ | 238 */ |
| 239 allowAddConnection_(globalPolicy) { | 239 allowAddConnection_: function(globalPolicy) { |
| 240 return !globalPolicy.AllowOnlyPolicyNetworksToConnect; | 240 return !globalPolicy.AllowOnlyPolicyNetworksToConnect; |
| 241 }, | 241 }, |
| 242 | 242 |
| 243 /** | 243 /** |
| 244 * @param {!chrome.networkingPrivate.ThirdPartyVPNProperties} provider | 244 * @param {!chrome.networkingPrivate.ThirdPartyVPNProperties} provider |
| 245 * @return {string} | 245 * @return {string} |
| 246 */ | 246 */ |
| 247 getAddThirdParrtyVpnLabel_: function(provider) { | 247 getAddThirdParrtyVpnLabel_: function(provider) { |
| 248 return this.i18n('internetAddThirdPartyVPN', provider.ProviderName); | 248 return this.i18n('internetAddThirdPartyVPN', provider.ProviderName); |
| 249 } | 249 } |
| 250 }); | 250 }); |
| OLD | NEW |