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

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

Issue 934683004: Fix closure compiler errors which are introduced by 931603002. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/directory_contents.js
diff --git a/ui/file_manager/file_manager/foreground/js/directory_contents.js b/ui/file_manager/file_manager/foreground/js/directory_contents.js
index dd80d56b9b2178e59872712e8569a563728d6860..f60a80dfff1cc8d54f5d22fad5e61cdf087ef998 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_contents.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_contents.js
@@ -686,7 +686,7 @@ DirectoryContents.prototype.setFileList = function(fileList) {
*/
DirectoryContents.prototype.createMetadataSnapshot = function() {
var snapshot = {};
- var entries = this.fileList_.slice();
+ var entries = /** @type {!Array<!Entry>} */ (this.fileList_.slice());
var metadata = this.context_.fileSystemMetadata.getCache(
entries, ['modificationTime']);
for (var i = 0; i < entries.length; i++) {
@@ -724,7 +724,7 @@ DirectoryContents.prototype.replaceContextFileList = function() {
// Check updated files and dispatch change events.
if (this.metadataSnapshot_) {
var updatedIndexes = [];
- var entries = this.fileList_.slice();
+ var entries = /** @type {!Array<!Entry>} */ (this.fileList_.slice());
var newMetadatas = this.context_.fileSystemMetadata.getCache(
entries, ['modificationTime']);
« 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