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

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

Issue 690283002: Add null check for entries of volume items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/ui/directory_tree.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 6e73c08784e7e742ca2a7c87b70f454938677b3d..71561aa1f28dcb8135fdec9ae9d574a507254bc9 100644
--- a/ui/file_manager/file_manager/common/js/util.js
+++ b/ui/file_manager/file_manager/common/js/util.js
@@ -719,9 +719,9 @@ util.comparePath = function(entry1, entry2) {
* Checks if the child entry is a descendant of another entry. If the entries
* point to the same file or directory, then returns false.
*
- * @param {DirectoryEntry|Object} ancestorEntry The ancestor directory entry.
+ * @param {!DirectoryEntry|!Object} ancestorEntry The ancestor directory entry.
* Can be a fake.
- * @param {Entry|Object} childEntry The child entry. Can be a fake.
+ * @param {!Entry|!Object} childEntry The child entry. Can be a fake.
* @return {boolean} True if the child entry is contained in the ancestor path.
*/
util.isDescendantEntry = function(ancestorEntry, childEntry) {
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/ui/directory_tree.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698