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

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

Issue 1010163002: Files.app: Fix closure error which will raised by the updated compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Define FakeEntry record type and use it. 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
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 95266c38cc09e1265621f7094603612b01f31d90..8e8f53f02d99b53152bf941f0e2dcf769fa0bc2e 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_contents.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_contents.js
@@ -598,7 +598,8 @@ FileListContext.createPrefetchPropertyNames_ = function() {
* @param {FileListContext} context The file list context.
* @param {boolean} isSearch True for search directory contents, otherwise
* false.
- * @param {DirectoryEntry} directoryEntry The entry of the current directory.
+ * @param {DirectoryEntry|FakeEntry} directoryEntry The entry of the current
+ * directory.
* @param {function():ContentScanner} scannerFactory The factory to create
* ContentScanner instance.
* @constructor
@@ -736,8 +737,8 @@ DirectoryContents.prototype.isSearch = function() {
};
/**
- * @return {DirectoryEntry} A DirectoryEntry for current directory. In case of
- * search -- the top directory from which search is run.
+ * @return {DirectoryEntry|FakeEntry} A DirectoryEntry for current directory.
+ * In case of search -- the top directory from which search is run.
*/
DirectoryContents.prototype.getDirectoryEntry = function() {
return this.directoryEntry_;
@@ -1047,9 +1048,8 @@ DirectoryContents.createForLocalSearch = function(
* on Drive File System.
*
* @param {FileListContext} context File list context.
- * @param {DirectoryEntry} fakeDirectoryEntry Fake directory entry representing
- * the set of result entries. This serves as a top directory for the
- * search.
+ * @param {!FakeEntry} fakeDirectoryEntry Fake directory entry representing the
+ * set of result entries. This serves as a top directory for the search.
* @param {!DriveMetadataSearchContentScanner.SearchType} searchType The type of
* the search. The scanner will restricts the entries based on the given
* type.

Powered by Google App Engine
This is Rietveld 408576698