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

Side by Side Diff: chrome/browser/resources/about_version.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 * Callback from the backend with the list of variations to display. 6 * Callback from the backend with the list of variations to display.
7 * This call will build the variations section of the version page, or hide that 7 * This call will build the variations section of the version page, or hide that
8 * section if there are none to display. 8 * section if there are none to display.
9 * @param {!Array.<string>} variationsList The list of variations. 9 * @param {!Array<string>} variationsList The list of variations.
10 */ 10 */
11 function returnVariationInfo(variationsList) { 11 function returnVariationInfo(variationsList) {
12 $('variations-section').hidden = !variationsList.length; 12 $('variations-section').hidden = !variationsList.length;
13 $('variations-list').appendChild( 13 $('variations-list').appendChild(
14 parseHtmlSubset(variationsList.join('<br>'), ['BR'])); 14 parseHtmlSubset(variationsList.join('<br>'), ['BR']));
15 } 15 }
16 16
17 /** 17 /**
18 * Callback from the backend with the executable and profile paths to display. 18 * Callback from the backend with the executable and profile paths to display.
19 * @param {string} execPath The executable path to display. 19 * @param {string} execPath The executable path to display.
(...skipping 19 matching lines...) Expand all
39 function returnOsVersion(osVersion) { 39 function returnOsVersion(osVersion) {
40 $('os_version').textContent = osVersion; 40 $('os_version').textContent = osVersion;
41 } 41 }
42 42
43 /* All the work we do onload. */ 43 /* All the work we do onload. */
44 function onLoadWork() { 44 function onLoadWork() {
45 chrome.send('requestVersionInfo'); 45 chrome.send('requestVersionInfo');
46 } 46 }
47 47
48 document.addEventListener('DOMContentLoaded', onLoadWork); 48 document.addEventListener('DOMContentLoaded', onLoadWork);
OLDNEW
« no previous file with comments | « chrome/browser/resources/about_invalidations.js ('k') | chrome/browser/resources/bookmark_manager/js/bmm.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698