summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_util_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Don't change the extension of resources being downloaded,rvargas@google.com2010-10-131-22/+8
| | | | | | | | | | | | | | even if there's a mismatch between the current extension (saying it is executable) and the muime type (saying it is not). BUG=57080 TEST=unit_tests, DownloadUtil* Review URL: http://codereview.chromium.org/3694003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62419 0039d316-1c4b-4281-b951-d872f2087c98
* Make chrome aware of text/x-sh mime type.estade@chromium.org2010-09-301-2/+9
| | | | | | | | | | | Map it to .sh, also mark it as executable. Either one of these fixes alone would take care of this bug, but 2 fixes are better than 1! BUG=56855 TEST=manual (see bug) Review URL: http://codereview.chromium.org/3557003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61075 0039d316-1c4b-4281-b951-d872f2087c98
* Don't change the extension for downloads that already have benign extensions.estade@chromium.org2010-09-301-35/+11
| | | | | | | | | | | We still append extensions to extensionless downloads, and do some extension rewriting around dangerous extensions, but don't try to be smart about renaming, e.g., .txt to .zip BUG=57080 TEST=download_util_unittest Review URL: http://codereview.chromium.org/3453027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61070 0039d316-1c4b-4281-b951-d872f2087c98
* Expand tar.gz download workaround to work for tgz as well.estade@chromium.org2010-08-281-0/+6
| | | | | | | | | BUG=52250 TEST=included Review URL: http://codereview.chromium.org/3173048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57760 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DownloadUtilTest on Mac. Not sure what causes the difference.phajdan.jr@chromium.org2010-08-051-0/+8
| | | | | | | | | | | TBR=ahendrickson TEST=unit_tests BUG=48913 Review URL: http://codereview.chromium.org/3058052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55100 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up download code:phajdan.jr@chromium.org2010-08-051-0/+588
- move filename generation parts and related code out of DownloadManager download_util is not the best place for it, but it's better than DownloadManager which we're trying to minimize - clean up posting tasks to different threads. There's no need to create separate methods for that, it was cluttering the file needlessly - other minor cleanups, like using static_cast instead of C-style cast TEST=unit_tests, browser_tests, ui_tests BUG=48913 Review URL: http://codereview.chromium.org/3043048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55088 0039d316-1c4b-4281-b951-d872f2087c98