| Index: chrome/browser/resources/file_manager/foreground/js/directory_contents.js
|
| diff --git a/chrome/browser/resources/file_manager/foreground/js/directory_contents.js b/chrome/browser/resources/file_manager/foreground/js/directory_contents.js
|
| index a964a6691a47fa03d8ac42f6775092f15637f996..9b38610e6878167b0850fd41bf8d33a86ce3e74a 100644
|
| --- a/chrome/browser/resources/file_manager/foreground/js/directory_contents.js
|
| +++ b/chrome/browser/resources/file_manager/foreground/js/directory_contents.js
|
| @@ -323,11 +323,10 @@ DriveMetadataSearchContentScanner.prototype.scan = function(
|
| * When filters are changed, a 'changed' event is fired.
|
| *
|
| * @param {MetadataCache} metadataCache Metadata cache service.
|
| - * @param {boolean} showHidden If files starting with '.' are shown.
|
| * @constructor
|
| * @extends {cr.EventTarget}
|
| */
|
| -function FileFilter(metadataCache, showHidden) {
|
| +function FileFilter(metadataCache) {
|
| /**
|
| * @type {MetadataCache}
|
| * @private
|
| @@ -339,7 +338,6 @@ function FileFilter(metadataCache, showHidden) {
|
| * @private
|
| */
|
| this.filters_ = {};
|
| - this.setFilterHidden(!showHidden);
|
|
|
| // Do not show entries marked as 'deleted'.
|
| this.addFilter('deleted', function(entry) {
|
| @@ -372,27 +370,6 @@ FileFilter.prototype.removeFilter = function(name) {
|
| };
|
|
|
| /**
|
| - * @param {boolean} value If do not show hidden files.
|
| - */
|
| -FileFilter.prototype.setFilterHidden = function(value) {
|
| - if (value) {
|
| - this.addFilter(
|
| - 'hidden',
|
| - function(entry) { return entry.name.substr(0, 1) !== '.'; }
|
| - );
|
| - } else {
|
| - this.removeFilter('hidden');
|
| - }
|
| -};
|
| -
|
| -/**
|
| - * @return {boolean} If the files with names starting with "." are not shown.
|
| - */
|
| -FileFilter.prototype.isFilterHiddenOn = function() {
|
| - return 'hidden' in this.filters_;
|
| -};
|
| -
|
| -/**
|
| * @param {Entry} entry File entry.
|
| * @return {boolean} True if the file should be shown, false otherwise.
|
| */
|
|
|