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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_tasks.js

Issue 541593003: Small improvement on handling of (Windows) executables in Files.app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: ui/file_manager/file_manager/foreground/js/file_tasks.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_tasks.js b/ui/file_manager/file_manager/foreground/js/file_tasks.js
index e26c6963381f4f9f33a4ebebb88a1db4f5a2ed3f..a4cf023df4e9597a3007569c3a9d4d38cf556fd4 100644
--- a/ui/file_manager/file_manager/foreground/js/file_tasks.js
+++ b/ui/file_manager/file_manager/foreground/js/file_tasks.js
@@ -63,7 +63,7 @@ FileTasks.VIDEO_PLAYER_ID = 'jcgeabjmjgoblfofpppfkcoakmfobdko';
* @return {string} URL
*/
FileTasks.createWebStoreLink = function(extension, mimeType) {
- if (!extension)
+ if (!extension || FileTasks.EXECUTABLE_EXTENSIONS.indexOf(extension) !== -1)
return FileTasks.CHROME_WEB_STORE_URL;
if (extension[0] === '.')
@@ -327,6 +327,7 @@ FileTasks.prototype.executeDefaultInternal_ = function(entries, opt_callback) {
var titleMessageId;
switch (extension) {
case '.exe':
+ case '.msi':
textMessageId = 'NO_ACTION_FOR_EXECUTABLE';
break;
case '.dmg':
« 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