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

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 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
});
}

Powered by Google App Engine
This is Rietveld 408576698