diff options
author | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-06 02:49:12 +0000 |
---|---|---|
committer | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-06 02:49:12 +0000 |
commit | 9ffabfb5e3e3e3de923d60a4ad4d1337b6895345 (patch) | |
tree | 275a04d47b5af436751e52935d37d280817c28ee /chrome/browser/metrics/metrics_service_unittest.cc | |
parent | d5fbd900ab784c2fcc73e62b5496106487da2909 (diff) | |
download | chromium_src-9ffabfb5e3e3e3de923d60a4ad4d1337b6895345.zip chromium_src-9ffabfb5e3e3e3de923d60a4ad4d1337b6895345.tar.gz chromium_src-9ffabfb5e3e3e3de923d60a4ad4d1337b6895345.tar.bz2 |
Refactor dangerous download warning text generation into DownloadItemModel.
Previously, we had multiple copies of the logic for generating warning text for a dangerous or malicious download. Move all of these into DownloadModel. As an additional benefit, we no longer require UI code to interpret DownloadItem::GetDangerType().
BUG=116551
TEST=Start a dangerous, malicious, and extension download. Check whether the warning text is correct, and any embedded filename is elided if necessary.
Review URL: http://codereview.chromium.org/9569011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics/metrics_service_unittest.cc')
0 files changed, 0 insertions, 0 deletions