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); |
dgozman
2012/11/08 13:49:28
We used this before for metrics and default task h
Vladislav Kaznacheev
2012/11/08 14:00:18
So this is why we did that! FWIW I could not find
|
- |
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)); |
}; |