| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * This partially describes the network list entries passed to | 6 * This partially describes the network list entries passed to |
| 7 * refreshNetworkData. The contents of those lists actually match | 7 * refreshNetworkData. The contents of those lists actually match |
| 8 * CrOnc.NetworkConfigType with the addition of the policyManaged property. | 8 * CrOnc.NetworkConfigType with the addition of the policyManaged property. |
| 9 * TODO(stevenjb): Use networkingPrivate.getNetworks. | 9 * TODO(stevenjb): Use networkingPrivate.getNetworks. |
| 10 * @typedef {{ | 10 * @typedef {{ |
| (...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 * list of entries. | 1293 * list of entries. |
| 1294 * @private | 1294 * @private |
| 1295 */ | 1295 */ |
| 1296 function createAddVPNConnectionEntries_() { | 1296 function createAddVPNConnectionEntries_() { |
| 1297 var entries = []; | 1297 var entries = []; |
| 1298 var providers = options.VPNProviders.getProviders(); | 1298 var providers = options.VPNProviders.getProviders(); |
| 1299 for (var i = 0; i < providers.length; ++i) { | 1299 for (var i = 0; i < providers.length; ++i) { |
| 1300 entries.push({ | 1300 entries.push({ |
| 1301 label: loadTimeData.getStringF('addConnectionVPNTemplate', | 1301 label: loadTimeData.getStringF('addConnectionVPNTemplate', |
| 1302 providers[i].name), | 1302 providers[i].name), |
| 1303 command: createVPNConnectionCallback_(providers[i].extensionID), | 1303 command: createVPNConnectionCallback_( |
| 1304 providers[i].extensionID || undefined), |
| 1304 data: {} | 1305 data: {} |
| 1305 }); | 1306 }); |
| 1306 } | 1307 } |
| 1307 return entries; | 1308 return entries; |
| 1308 } | 1309 } |
| 1309 | 1310 |
| 1310 /** | 1311 /** |
| 1311 * Whether the Network list is disabled. Only used for display purpose. | 1312 * Whether the Network list is disabled. Only used for display purpose. |
| 1312 */ | 1313 */ |
| 1313 cr.defineProperty(NetworkList, 'disabled', cr.PropertyKind.BOOL_ATTR); | 1314 cr.defineProperty(NetworkList, 'disabled', cr.PropertyKind.BOOL_ATTR); |
| 1314 | 1315 |
| 1315 // Export | 1316 // Export |
| 1316 return { | 1317 return { |
| 1317 NetworkList: NetworkList | 1318 NetworkList: NetworkList |
| 1318 }; | 1319 }; |
| 1319 }); | 1320 }); |
| OLD | NEW |