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

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

Issue 11377054: Packaged Files app: open files from Downloads tab (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 1 month 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 | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | 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_tasks.js
diff --git a/chrome/browser/resources/file_manager/js/file_tasks.js b/chrome/browser/resources/file_manager/js/file_tasks.js
index 6117ec56371cd9e282192bd7db70e63f9a076ec4..656f18ab93f566fde7d6c1a2ff3380dbd0b6c64d 100644
--- a/chrome/browser/resources/file_manager/js/file_tasks.js
+++ b/chrome/browser/resources/file_manager/js/file_tasks.js
@@ -197,14 +197,14 @@ FileTasks.prototype.executeDefault_ = function() {
FileTasks.prototype.execute_ = function(taskId, opt_urls) {
var urls = opt_urls || this.urls_;
this.checkAvailability_(function() {
- chrome.fileBrowserPrivate.executeTask(taskId, urls);
-
var task_parts = taskId.split('|');
if (task_parts[0] == util.platform.getAppId() && task_parts[1] == 'file') {
// For internal tasks we do not listen to the event to avoid
// handling the same task instance from multiple tabs.
// So, we manually execute the task.
this.executeInternalTask_(task_parts[2], urls);
+ } else {
+ chrome.fileBrowserPrivate.executeTask(taskId, urls);
}
}.bind(this));
};
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698