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

Unified Diff: chrome/browser/resources/file_manager/js/harness.js

Issue 7764011: File Manager: Assorted fixes and polish (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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/js/harness.js
diff --git a/chrome/browser/resources/file_manager/js/harness.js b/chrome/browser/resources/file_manager/js/harness.js
index 9c6ff361cfa6ce3217c4e1ce7252821875844963..5dda51d3149d493899d5dc90042bd48eb62df7a8 100644
--- a/chrome/browser/resources/file_manager/js/harness.js
+++ b/chrome/browser/resources/file_manager/js/harness.js
@@ -18,8 +18,8 @@ var harness = {
function onFilesystem(filesystem) {
console.log('Filesystem found.');
self.filesystem = filesystem;
- util.getOrCreateDirectory('/Downloads', function () {});
- util.getOrCreateDirectory('/media', function () {});
+ util.getOrCreateDirectory(filesystem.root, '/Downloads', function () {});
+ util.getOrCreateDirectory(filesystem.root, '/media', function () {});
};
window.webkitRequestFileSystem(window.PERSISTENT, 16 * 1024 * 1024,
@@ -131,7 +131,7 @@ var harness = {
currentSrc = files.shift();
var destPath = harness.fileManager.currentDirEntry_.fullPath + '/' +
currentSrc.name.replace(/\^\^/g, '/');
- util.getOrCreateFile(destPath, onFileFound,
+ util.getOrCreateFile(self.filesystem.root, destPath, onFileFound,
util.flog('Error finding path: ' + destPath));
}

Powered by Google App Engine
This is Rietveld 408576698