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 63c83bb5b96b1715c548d9b2209ecb8a64626253..1ddaf388a72480c30f3a2760e568640ab65f7140 100644 |
--- a/chrome/browser/resources/file_manager/foreground/js/directory_model.js |
+++ b/chrome/browser/resources/file_manager/foreground/js/directory_model.js |
@@ -193,27 +193,6 @@ DirectoryModel.prototype.getCurrentDirEntry = function() { |
}; |
/** |
- * TODO(hirono): Remove the method. |
hirono
2013/12/27 07:16:28
Thanks!
|
- * @return {string} URL of the current directory. or null if unavailable. |
- */ |
-DirectoryModel.prototype.getCurrentDirectoryURL = function() { |
- var entry = this.currentDirContents_.getDirectoryEntry(); |
- if (!entry) |
- return null; |
- return util.isFakeEntry(entry) ? |
- util.makeFilesystemUrl(entry.fullPath) : entry.toURL(); |
-}; |
- |
-/** |
- * @return {string} Path for the current directory, or empty string if the |
- * current directory is not yet set. |
- */ |
-DirectoryModel.prototype.getCurrentDirPath = function() { |
- var entry = this.currentDirContents_.getDirectoryEntry(); |
- return entry ? entry.fullPath : ''; |
-}; |
- |
-/** |
* @return {Array.<string>} File paths of selected files. |
* @private |
*/ |
@@ -904,8 +883,8 @@ DirectoryModel.prototype.onVolumeInfoListUpdated_ = function(event) { |
// since the current directory is initializing now. |
// TODO(mtomasz): DEFAULT_MOUNT_POINT is deprecated. Use VolumeManager:: |
// getDefaultVolume() after it is implemented. |
- if (this.getCurrentDirPath() && |
- !this.volumeManager_.getVolumeInfo(this.getCurrentDirPath())) |
+ if (this.getCurrentDirEntry() && |
+ !this.volumeManager_.getVolumeInfo(this.getCurrentDirEntry())) |
this.changeDirectory(PathUtil.DEFAULT_MOUNT_POINT); |
}; |