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

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

Issue 770723004: Files.app: Remove unused 'internal' type from MetadataCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/file_manager.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 aaf7d41b0041651d0a1fb5ab7051a18a70653fbe..a3fdad6c9d1a0a188f77a06f0dd4c8d99012f43a 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_contents.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_contents.js
@@ -317,32 +317,18 @@ DriveMetadataSearchContentScanner.prototype.scan = function(
* This class manages filters and determines a file should be shown or not.
* When filters are changed, a 'changed' event is fired.
*
- * @param {MetadataCache} metadataCache Metadata cache service.
* @param {boolean} showHidden If files starting with '.' or ending with
* '.crdownlaod' are shown.
* @constructor
* @extends {cr.EventTarget}
*/
-function FileFilter(metadataCache, showHidden) {
- /**
- * @type {MetadataCache}
- * @private
- */
- this.metadataCache_ = metadataCache;
-
+function FileFilter(showHidden) {
/**
* @type {Object.<string, Function>}
* @private
*/
this.filters_ = {};
this.setFilterHidden(!showHidden);
-
- // Do not show entries marked as 'deleted'.
- this.addFilter('deleted', function(entry) {
- var internal = /** @type {{deleted}} */
- (this.metadataCache_.getCached(entry, 'internal'));
- return !(internal && internal.deleted);
- }.bind(this));
}
/*
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/file_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698