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

Unified Diff: chrome/browser/resources/file_manager/foreground/js/directory_contents.js

Issue 140893006: [Files.app] Show dot files in the Drive volume. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: 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.
*/

Powered by Google App Engine
This is Rietveld 408576698