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

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

Issue 10556041: [File Manager] Avoiding confusion between "Watch" and "Open" actions for video files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 6 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 | « chrome/browser/chromeos/extensions/file_manager_util.h ('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_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 97b7961cf329a8eb2a419720c4315ed70275cd8c..fcad9d5fbfee3ccbf33fda5135441542e0f2e0e8 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -2527,16 +2527,10 @@ FileManager.prototype = {
chrome.extension.getURL('images/filetype_archive.png');
task.title = str('MOUNT_ARCHIVE');
} else if (task_parts[1] == 'gallery') {
- // If a single video is selected the Gallery is redundant.
- if (selection.urls.length == 1 && FileType.isVideo(selection.urls[0]))
- continue;
task.title = str('ACTION_OPEN');
task.iconUrl =
chrome.extension.getURL('images/filetype_image.png');
} else if (task_parts[1] == 'watch') {
- // Hide "Watch" action for multiple selection.
- if (selection.urls.length > 1)
- continue;
task.iconUrl =
chrome.extension.getURL('images/filetype_video.png');
task.title = str('ACTION_WATCH');
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698