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

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

Issue 148193002: Removed most of path utility functions in Files app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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_model.js
diff --git a/chrome/browser/resources/file_manager/foreground/js/directory_model.js b/chrome/browser/resources/file_manager/foreground/js/directory_model.js
index d5570b5ef0ca3e99e1ff8742d7db87f073f00190..4b8c248456f8965bfac7ebf0901d5f904c5d446d 100644
--- a/chrome/browser/resources/file_manager/foreground/js/directory_model.js
+++ b/chrome/browser/resources/file_manager/foreground/js/directory_model.js
@@ -780,27 +780,6 @@ DirectoryModel.prototype.onVolumeInfoListUpdated_ = function(event) {
};
/**
- * Check if the root of the given path is mountable or not.
- *
- * @param {string} path Path.
- * @return {boolean} Return true, if the given path is under mountable root.
- * Otherwise, return false.
- */
-DirectoryModel.isMountableRoot = function(path) {
- var rootType = PathUtil.getRootType(path);
- switch (rootType) {
- case RootType.DOWNLOADS:
- return false;
- case RootType.ARCHIVE:
- case RootType.REMOVABLE:
- case RootType.DRIVE:
- return true;
- default:
- throw new Error('Unknown root type!');
- }
-};
-
-/**
* Performs search and displays results. The search type is dependent on the
* current directory. If we are currently on drive, server side content search
* over drive mount point. If the current directory is not on the drive, file

Powered by Google App Engine
This is Rietveld 408576698