DescriptionRefactor 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.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125082
Patch Set 1 #Patch Set 2 : Use ui::ElideText() #
Total comments: 6
Patch Set 3 : Comments #Patch Set 4 : Kill some more code. #
Total comments: 5
Patch Set 5 : Persist gfx::Font on Mac, fix typo on GTK #Patch Set 6 : Update copyright headers #Messages
Total messages: 16 (0 generated)
|