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

Unified Diff: ui/file_manager/file_manager/common/js/util.js

Issue 971163002: Files.app: Let MetadataCacheModel use cached URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. 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 | ui/file_manager/file_manager/foreground/js/metadata/metadata_cache_set.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/common/js/util.js
diff --git a/ui/file_manager/file_manager/common/js/util.js b/ui/file_manager/file_manager/common/js/util.js
index 821407c8ef4e6a7573800591e85f25f13fb26d89..ff3428378107d5b70569dd31a0dc58bea812452e 100644
--- a/ui/file_manager/file_manager/common/js/util.js
+++ b/ui/file_manager/file_manager/common/js/util.js
@@ -767,7 +767,10 @@ util.getCurrentLocaleOrDefault = function() {
*/
util.entriesToURLs = function(entries) {
return entries.map(function(entry) {
- return entry.toURL();
+ // When building background.js, cachedUrl is not refered other than here.
+ // Thus closure compiler raises an error if we refer the property like
+ // entry.cachedUrl.
+ return entry['cachedUrl'] || entry.toURL();
});
};
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/metadata/metadata_cache_set.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698