Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5189)

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 2465723004: Make download warning icon and text more consistent (Closed)
Patch Set: address comments and vulcanize Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_downloads/vulcanized.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index f22135871709b79f713d6468c86e07f52fbd6b5f..5331e57caca1a1d2879db22212e863d7d266e752 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -972,7 +972,8 @@ gfx::ImageSkia DownloadItemView::GetWarningIcon() {
case content::DOWNLOAD_DANGER_TYPE_UNCOMMON_CONTENT:
case content::DOWNLOAD_DANGER_TYPE_DANGEROUS_HOST:
case content::DOWNLOAD_DANGER_TYPE_POTENTIALLY_UNWANTED:
- return gfx::CreateVectorIcon(gfx::VectorIconId::REMOVE_CIRCLE,
+ case content::DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE:
+ return gfx::CreateVectorIcon(gfx::VectorIconId::WARNING,
kWarningIconSize, gfx::kGoogleRed700);
case content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS:
@@ -981,10 +982,6 @@ gfx::ImageSkia DownloadItemView::GetWarningIcon() {
case content::DOWNLOAD_DANGER_TYPE_MAX:
NOTREACHED();
break;
-
- case content::DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE:
- return gfx::CreateVectorIcon(gfx::VectorIconId::WARNING, kWarningIconSize,
- gfx::kGoogleYellow700);
}
return gfx::ImageSkia();
}
« no previous file with comments | « chrome/browser/resources/md_downloads/vulcanized.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698