Index: chrome/browser/resources/file_manager/js/mock_chrome.js |
diff --git a/chrome/browser/resources/file_manager/js/mock_chrome.js b/chrome/browser/resources/file_manager/js/mock_chrome.js |
index 23b0c354267001a0e04f57bd63c3c2cd3435c329..702f447a7a25cba98e0ddb27fd4bd37de55795e3 100644 |
--- a/chrome/browser/resources/file_manager/js/mock_chrome.js |
+++ b/chrome/browser/resources/file_manager/js/mock_chrome.js |
@@ -226,12 +226,13 @@ chrome.fileBrowserPrivate = { |
}, |
- addMount: function(source, type, options) { |
+ addMount: function(source, type, options, callback) { |
chrome.fileBrowserPrivate.requestLocalFileSystem(function(filesystem) { |
var path = |
(type == 'gdata') ? |
'/gdata' : |
('/archive/archive' + (++chrome.fileBrowserPrivate.archiveCount_)); |
+ callback(source); |
util.getOrCreateDirectory(filesystem.root, path, function() { |
chrome.fileBrowserPrivate.mountPoints_.push({ |
mountPath: path, |
@@ -244,7 +245,7 @@ chrome.fileBrowserPrivate = { |
mountType: type, |
authToken: 'dummy', |
mountPath: path, |
- sourceUrl: source |
+ sourcePath: source |
}); |
}, 1000); |
console.log('Created a mock mount at ' + path); |
@@ -266,7 +267,7 @@ chrome.fileBrowserPrivate = { |
eventType: 'unmount', |
status: status, |
mountPath: mountPath, |
- sourceUrl: sourceUrl |
+ sourcePath: sourcePath |
}); |
} |