| 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 b6c0362d2615c6e16786ff6729e3e94023404ed8..ad7f3109ee210e0d81c52292921a55ffefda7d15 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,
|
| @@ -243,7 +244,7 @@ chrome.fileBrowserPrivate = {
|
| mountType: type,
|
| authToken: 'dummy',
|
| mountPath: path,
|
| - sourceUrl: source
|
| + sourcePath: source
|
| });
|
| console.log('Created a mock mount at ' + path);
|
| },
|
| @@ -264,7 +265,7 @@ chrome.fileBrowserPrivate = {
|
| eventType: 'unmount',
|
| status: status,
|
| mountPath: mountPath,
|
| - sourceUrl: sourceUrl
|
| + sourcePath: sourcePath
|
| });
|
| }
|
|
|
|
|