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

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

Issue 1013973002: [Files.app] Use dictionary-way to access Entry.cachedUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/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 f3b8ba3d979d50d78c7f71b62b29e64f42455de9..95266c38cc09e1265621f7094603612b01f31d90 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_contents.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_contents.js
@@ -912,7 +912,9 @@ DirectoryContents.prototype.onNewEntries_ = function(refresh, entries) {
// Caching URL to reduce a number of calls of toURL in sort.
// This is a temporary solution. We need to fix a root cause of slow toURL.
// See crbug.com/370908 for detail.
- entriesFiltered.forEach(function(entry) { entry.cachedUrl = entry.toURL(); });
+ entriesFiltered.forEach(function(entry) {
+ entry['cachedUrl'] = entry.toURL();
+ });
if (entriesFiltered.length === 0)
return;
« 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