Make CrOS file manager determine .tar.gz/.tar.bz2 file type properly.
This CL modifies the FileType.getType function in the CrOS file manager extension to use RegExp patterns to check for the type of a given file URI, such that it determines .tar.bz and .tar.bz2 properly. BUG=chromium-os:26952 TEST=Tested the following: 1. Verify that CrOS file manager correctly shows all the file types listed in FileType.types. 2. Use the built-in JavaScript profiler to profile FileType.getType with 1000 .html files (the last entry in FileType.types), and make sure that there is no noticable slowdown in FileType.getType. Review URL: http://codereview.chromium.org/9478014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124027 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment