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

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

Issue 10231010: gdata: Apply correct mount label when mounting archives in GData (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 8 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/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
});
}
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | chrome/common/extensions/api/fileBrowserPrivate.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698