Chromium Code Reviews| Index: chrome/browser/resources/file_manager/foreground/js/directory_model.js |
| diff --git a/chrome/browser/resources/file_manager/foreground/js/directory_model.js b/chrome/browser/resources/file_manager/foreground/js/directory_model.js |
| index 5ea32a7099bd17fb44bb9aca46cc80cce22c0cd3..179f84c99a1997611a3c862ff652df9ae137aad3 100644 |
| --- a/chrome/browser/resources/file_manager/foreground/js/directory_model.js |
| +++ b/chrome/browser/resources/file_manager/foreground/js/directory_model.js |
| @@ -939,9 +939,11 @@ DirectoryModel.prototype.selectEntry = function(entry) { |
| }; |
| /** |
| - * @param {Array.<string>} urls Array of URLs. |
| + * @param {Array.<string>} entries Array of URLs. |
|
hirono
2013/12/09 06:53:50
nit: Please fix the comment.
mtomasz
2013/12/10 02:37:34
Done.
|
| */ |
| -DirectoryModel.prototype.selectUrls = function(urls) { |
| +DirectoryModel.prototype.selectEntries = function(entries) { |
| + // URLs are needed here, since we are comparing Entries by URLs. |
| + var urls = util.entriesToURLs(entries); |
| var fileList = this.getFileList(); |
| this.fileListSelection_.beginChange(); |
| this.fileListSelection_.unselectAll(); |