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

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

Issue 2758004: Adding support for .txt files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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/platform_util_chromeos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/media_common.js
===================================================================
--- chrome/browser/resources/media_common.js (revision 49178)
+++ chrome/browser/resources/media_common.js (working copy)
@@ -7,7 +7,7 @@
}
function pathIsAudioFile(path) {
- return /\.(mp3|m4a)$/i.test(path);
+ return /\.(mp3|m4a|wav)$/i.test(path);
}
function pathIsImageFile(path) {
@@ -15,5 +15,5 @@
}
function pathIsHtmlFile(path) {
- return /\.(htm|html)$/i.test(path);
+ return /\.(htm|html|txt)$/i.test(path);
}
« no previous file with comments | « chrome/browser/platform_util_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698