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

Unified Diff: chrome/browser/resources/file_manager/background/js/volume_manager.js

Issue 130263003: Remove fullPath from util.isSameEntry(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. 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/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 a2f63a64f88990a8fd3847ebf3a5d9c1b6378d9d..eeb58782213f2f3dd26eec62f777b27b18ac260f 100644
--- a/chrome/browser/resources/file_manager/background/js/volume_manager.js
+++ b/chrome/browser/resources/file_manager/background/js/volume_manager.js
@@ -42,25 +42,29 @@ function VolumeInfo(
fullPath: RootDirectory.DRIVE + '/' + DriveSubRootDirectory.ROOT,
isDirectory: true,
rootType: RootType.DRIVE,
- label: PathUtil.getRootLabel(RootType.DRIVE)
+ label: PathUtil.getRootLabel(RootType.DRIVE),
+ toURL: function() { return 'fake-entry://' + this.fullPath; }
};
this.fakeEntries[RootType.DRIVE_OFFLINE] = {
fullPath: RootDirectory.DRIVE_OFFLINE,
isDirectory: true,
rootType: RootType.DRIVE_OFFLINE,
- label: PathUtil.getRootLabel(RootType.DRIVE_OFFLINE)
+ label: PathUtil.getRootLabel(RootType.DRIVE_OFFLINE),
+ toURL: function() { return 'fake-entry://' + this.fullPath; }
};
this.fakeEntries[RootType.DRIVE_SHARED_WITH_ME] = {
fullPath: RootDirectory.DRIVE_SHARED_WITH_ME,
isDirectory: true,
rootType: RootType.DRIVE_SHARED_WITH_ME,
- label: PathUtil.getRootLabel(RootType.DRIVE_SHARED_WITH_ME)
+ label: PathUtil.getRootLabel(RootType.DRIVE_SHARED_WITH_ME),
+ toURL: function() { return 'fake-entry://' + this.fullPath; }
};
this.fakeEntries[RootType.DRIVE_RECENT] = {
fullPath: RootDirectory.DRIVE_RECENT,
isDirectory: true,
rootType: RootType.DRIVE_RECENT,
- label: PathUtil.getRootLabel(RootType.DRIVE_RECENT)
+ label: PathUtil.getRootLabel(RootType.DRIVE_RECENT),
+ toURL: function() { return 'fake-entry://' + this.fullPath; }
};
}
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/common/js/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698