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

Unified Diff: ui/file_manager/file_manager/foreground/js/progress_center_item_group.js

Issue 651403002: Fix trivial type-check errors in file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and correct a comment. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/progress_center_item_group.js
diff --git a/ui/file_manager/file_manager/foreground/js/progress_center_item_group.js b/ui/file_manager/file_manager/foreground/js/progress_center_item_group.js
index 21119cbe0b6d8a830b82d738503e33ba300b4b75..d556a8104115e4b532897533ff01ea3a0672103d 100644
--- a/ui/file_manager/file_manager/foreground/js/progress_center_item_group.js
+++ b/ui/file_manager/file_manager/foreground/js/progress_center_item_group.js
@@ -106,10 +106,10 @@ Object.freeze(ProgressCenterItemGroup.State);
* contains is used as a summarized item. But If all the group returns null, the
* progress center panel generates the summarized item by using the method.
*
- * @param {Array.<ProgressCenterItemGroup>} var_groups List of groups.
+ * @param {...ProgressCenterItemGroup} var_args List of groups.
* @return {ProgressCenterItem} Summarized item.
*/
-ProgressCenterItemGroup.getSummarizedErrorItem = function(var_groups) {
+ProgressCenterItemGroup.getSummarizedErrorItem = function(var_args) {
var groups = Array.prototype.slice.call(arguments);
var errorItems = [];
for (var i = 0; i < groups.length; i++) {

Powered by Google App Engine
This is Rietveld 408576698