Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(537)

Side by Side Diff: chrome/browser/resources/options/chromeos/network_list.js

Issue 1021103002: Fix closure compiler in network_list.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698