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

Unified Diff: chrome/browser/resources/file_manager/foreground/js/folder_shortcuts_data_model.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
Index: chrome/browser/resources/file_manager/foreground/js/folder_shortcuts_data_model.js
diff --git a/chrome/browser/resources/file_manager/foreground/js/folder_shortcuts_data_model.js b/chrome/browser/resources/file_manager/foreground/js/folder_shortcuts_data_model.js
index e8a09c09c5cd0e8fc5e01732d2b53292da08b6f4..22eb22e174129b02174311ce56a3e0c19ae21313 100644
--- a/chrome/browser/resources/file_manager/foreground/js/folder_shortcuts_data_model.js
+++ b/chrome/browser/resources/file_manager/foreground/js/folder_shortcuts_data_model.js
@@ -31,7 +31,9 @@ function FolderShortcutsDataModel(volumeManager) {
var path = list[index];
group.add(function(path, callback) {
// TODO(mtomasz): Migrate to URL.
- volumeManager.resolveAbsolutePath(path, function(entry) {
+ // TODO(mtomasz): Do not resolve, if volumeInfo for Drive is missing.
+ var url = util.makeFilesystemUrl(path);
+ webkitResolveLocalFileSystemURL(url, function(entry) {
if (entry.fullPath in this.pendingPaths_)
delete this.pendingPaths_[entry.fullPath];
this.addInternal_(entry);

Powered by Google App Engine
This is Rietveld 408576698