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

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: Fix test. 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..b175124f30bd20abde9001dac816eb5d19819056 100644
--- a/ui/file_manager/file_manager/common/js/util.js
+++ b/ui/file_manager/file_manager/common/js/util.js
@@ -767,7 +767,7 @@ util.getCurrentLocaleOrDefault = function() {
*/
util.entriesToURLs = function(entries) {
return entries.map(function(entry) {
- return entry.toURL();
+ return entry['cachedUrl'] || entry.toURL();
fukino 2015/03/05 03:46:02 Coudl you use entry.cachedUrl for consistency and
hirono 2015/03/05 03:47:12 Closure compiler generates error for entry.cachedU
});
};
« 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