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

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

Issue 14631019: Remove internal handlers from the Files.app's UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_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 9ab11763276ced18effca213ec8d02b34befedd9..fca74782f64a6741d89ee9eb90c20a0c66b9e3a9 100644
--- a/chrome/browser/resources/file_manager/js/file_tasks.js
+++ b/chrome/browser/resources/file_manager/js/file_tasks.js
@@ -137,13 +137,19 @@ FileTasks.prototype.processTasks_ = function(tasks) {
for (var i = 0; i < tasks.length; i++) {
var task = tasks[i];
+ var taskParts = task.taskId.split('|');
// Skip Drive App if the file is not on Drive.
if (!isOnDrive && task.driveApp)
continue;
+ // Skip internal Files.app's handlers.
+ if (taskParts[0] == id && (taskParts[2] == 'auto-open' ||
+ taskParts[2] == 'select' || taskParts[2] == 'open')) {
+ continue;
+ }
+
// Tweak images, titles of internal tasks.
- var taskParts = task.taskId.split('|');
if (taskParts[0] == id && taskParts[1] == 'file') {
if (taskParts[2] == 'play') {
// TODO(serya): This hack needed until task.iconUrl is working
« 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