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

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 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
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 cr.exportPath('options'); 5 cr.exportPath('options');
6 6
7 /** 7 /**
8 * @typedef {{actionLinkText: (string|undefined), 8 * @typedef {{actionLinkText: (string|undefined),
9 * childUser: (boolean|undefined), 9 * childUser: (boolean|undefined),
10 * hasError: (boolean|undefined), 10 * hasError: (boolean|undefined),
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 showSingleProfileView || OptionsPage.isSettingsApp(); 1467 showSingleProfileView || OptionsPage.isSettingsApp();
1468 $('profiles-delete').textContent = showSingleProfileView ? 1468 $('profiles-delete').textContent = showSingleProfileView ?
1469 loadTimeData.getString('profilesDeleteSingle') : 1469 loadTimeData.getString('profilesDeleteSingle') :
1470 loadTimeData.getString('profilesDelete'); 1470 loadTimeData.getString('profilesDelete');
1471 if (OptionsPage.isSettingsApp()) 1471 if (OptionsPage.isSettingsApp())
1472 $('profiles-app-list-switch').hidden = showSingleProfileView; 1472 $('profiles-app-list-switch').hidden = showSingleProfileView;
1473 }, 1473 },
1474 1474
1475 /** 1475 /**
1476 * Adds all |profiles| to the list. 1476 * Adds all |profiles| to the list.
1477 * @param {Array.<!options.Profile>} profiles An array of profile info 1477 * @param {Array<!options.Profile>} profiles An array of profile info
1478 * objects. 1478 * objects.
1479 * @private 1479 * @private
1480 */ 1480 */
1481 setProfilesInfo_: function(profiles) { 1481 setProfilesInfo_: function(profiles) {
1482 this.setProfileViewSingle_(profiles.length); 1482 this.setProfileViewSingle_(profiles.length);
1483 // add it to the list, even if the list is hidden so we can access it 1483 // add it to the list, even if the list is hidden so we can access it
1484 // later. 1484 // later.
1485 $('profiles-list').dataModel = new ArrayDataModel(profiles); 1485 $('profiles-list').dataModel = new ArrayDataModel(profiles);
1486 1486
1487 // Received new data. If showing the "manage" overlay, keep it up to 1487 // Received new data. If showing the "manage" overlay, keep it up to
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
2249 } 2249 }
2250 button.textContent = loadTimeData.getString(strId); 2250 button.textContent = loadTimeData.getString(strId);
2251 }; 2251 };
2252 } 2252 }
2253 2253
2254 // Export 2254 // Export
2255 return { 2255 return {
2256 BrowserOptions: BrowserOptions 2256 BrowserOptions: BrowserOptions
2257 }; 2257 };
2258 }); 2258 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/autofill_options_list.js ('k') | chrome/browser/resources/options/certificate_tree.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698