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

Unified Diff: chrome/browser/resources/file_manager/js/sidebar.js

Issue 12683006: Files.app: prevent unlimited recursive directory traversal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/sidebar.js
diff --git a/chrome/browser/resources/file_manager/js/sidebar.js b/chrome/browser/resources/file_manager/js/sidebar.js
index f6d87448e38d0083b117abd58daf250d5cfd2b80..8ebc29342de17e3e8475647488485d9c21855801 100644
--- a/chrome/browser/resources/file_manager/js/sidebar.js
+++ b/chrome/browser/resources/file_manager/js/sidebar.js
@@ -164,7 +164,7 @@ DirectoryItem.prototype.decorate = function(
volumeManager.unmount(path, function() {}, function() {});
}.bind(this));
- if ('expanded' in parentDirItem || parentDirItem.expanded)
+ if (parentDirItem.expanded)
this.updateSubDirectories_();
};
@@ -268,6 +268,13 @@ DirectoryTree.decorate = function(el, directoryModel) {
DirectoryTree.prototype = {
__proto__: cr.ui.Tree.prototype,
+
+ // DirectoryTree is always expanded.
+ get expanded() { return true; },
+ /**
+ * @param {boolean} value Not used.
+ */
+ set expanded(value) {}
};
/**
« 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