DescriptionMake 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.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124027
Patch Set 1 #
Messages
Total messages: 7 (0 generated)
|