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

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

Issue 101243003: Remove getCurrentDirectoryURL and getCurrentDirPath from directory_model.js (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/foreground/js/directory_tree.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/foreground/js/directory_tree.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698