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

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

Issue 9693005: filemanager: Fix multipe file selection from the file picker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index 87ae07f5ee63b2591d4a9e984f73878ef93374c9..32ce47a27e158b739ad52bb7dc7f7b6233427bf8 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -3928,10 +3928,11 @@ FileManager.prototype = {
encodeURIComponent(localPaths[i]);
}
}
+ // Call doSelectFiles_ on a timeout, as it's unsafe to close a
+ // window from a callback.
+ setTimeout(self.doSelectFiles_.bind(self, fileUrls), 0);
});
} else { // All files are local.
- // Call doSelectFiles_ on a timeout, as it's unsafe to close a
- // window from a callback.
setTimeout(self.doSelectFiles_.bind(self, fileUrls), 0);
}
});
@@ -3943,7 +3944,7 @@ FileManager.prototype = {
*
* @param {Array.<string>} fileUrls Array of filename URLs.
*/
- FileManager.prototype.doSlectFiles_ = function(fileUrls) {
+ FileManager.prototype.doSelectFiles_ = function(fileUrls) {
chrome.fileBrowserPrivate.selectFiles(fileUrls);
this.onUnload_();
window.close();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698