| Index: chrome/browser/resources/file_manager/js/path_util.js
|
| diff --git a/chrome/browser/resources/file_manager/js/path_util.js b/chrome/browser/resources/file_manager/js/path_util.js
|
| index fb31fb10038f1ae5559d1b6690d078a4cc03a0c8..afad6691c251975f377eba354e2695cd8bed68d4 100644
|
| --- a/chrome/browser/resources/file_manager/js/path_util.js
|
| +++ b/chrome/browser/resources/file_manager/js/path_util.js
|
| @@ -131,6 +131,18 @@ PathUtil.isRootPath = function(path) {
|
| };
|
|
|
| /**
|
| + * @param {string} path A root path.
|
| + * @return {boolean} True if the given path is root and user can unmount it.
|
| + */
|
| +PathUtil.isUnmountableByUser = function(path) {
|
| + if (!PathUtil.isRootPath(path))
|
| + return false;
|
| +
|
| + var type = PathUtil.getRootType(path);
|
| + return (type == RootType.ARCHIVE || type == RootType.REMOVABLE);
|
| +};
|
| +
|
| +/**
|
| * @param {string} parent_path The parent path.
|
| * @param {string} child_path The child path.
|
| * @return {boolean} True if |parent_path| is parent file path of |child_path|.
|
|
|