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

Unified Diff: chrome/browser/resources/file_manager/background/js/volume_manager.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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/common/js/path_util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/background/js/volume_manager.js
diff --git a/chrome/browser/resources/file_manager/background/js/volume_manager.js b/chrome/browser/resources/file_manager/background/js/volume_manager.js
index e55c9e7c84ce95b0e2d50b3cf5b0f541286bd330..ff9c1baeeb4e9b8feccf194de43c4292ae940fef 100644
--- a/chrome/browser/resources/file_manager/background/js/volume_manager.js
+++ b/chrome/browser/resources/file_manager/background/js/volume_manager.js
@@ -42,19 +42,19 @@ function VolumeInfo(
if (volumeType === util.VolumeType.DRIVE) {
this.fakeEntries[RootType.DRIVE_OFFLINE] = {
- fullPath: RootDirectory.DRIVE_OFFLINE,
+ fullPath: '/drive_offline',
isDirectory: true,
rootType: RootType.DRIVE_OFFLINE,
toURL: function() { return 'fake-entry://' + this.fullPath; }
};
this.fakeEntries[RootType.DRIVE_SHARED_WITH_ME] = {
- fullPath: RootDirectory.DRIVE_SHARED_WITH_ME,
+ fullPath: '/drive_shared_with_me',
isDirectory: true,
rootType: RootType.DRIVE_SHARED_WITH_ME,
toURL: function() { return 'fake-entry://' + this.fullPath; }
};
this.fakeEntries[RootType.DRIVE_RECENT] = {
- fullPath: RootDirectory.DRIVE_RECENT,
+ fullPath: '/drive_recent',
isDirectory: true,
rootType: RootType.DRIVE_RECENT,
toURL: function() { return 'fake-entry://' + this.fullPath; }
@@ -630,27 +630,6 @@ VolumeManager.prototype.unmount = function(volumeInfo,
};
/**
- * Resolves the absolute path to its entry. Shouldn't be used outside of the
- * Files app's initialization.
- * @param {string} path The path to be resolved.
- * @param {function(Entry)} successCallback Called with the resolved entry on
- * success.
- * @param {function(FileError)} errorCallback Called on error.
- */
-VolumeManager.prototype.resolveAbsolutePath = function(
- path, successCallback, errorCallback) {
- // Make sure the path is in the mounted volume.
- var volumeInfo = this.getVolumeInfo(path);
- if (!volumeInfo || !volumeInfo.root) {
- errorCallback(util.createDOMError(util.FileError.NOT_FOUND_ERR));
- return;
- }
-
- webkitResolveLocalFileSystemURL(
- util.makeFilesystemUrl(path), successCallback, errorCallback);
-};
-
-/**
* Obtains the information of the volume that containing an entry pointed by the
* specified path.
* TODO(hirono): Stop to use path to get a volume info.
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/common/js/path_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698