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

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

Issue 1406613002: For some vector icons, get the size from the vector definition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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
Index: chrome/browser/ui/views/download/download_shelf_view.cc
diff --git a/chrome/browser/ui/views/download/download_shelf_view.cc b/chrome/browser/ui/views/download/download_shelf_view.cc
index 59ae5ce76b95cfa128e5a130d00d74d97b7a77f7..726f4c50dbc1e3ac20160b5268544b93f42a9d28 100644
--- a/chrome/browser/ui/views/download/download_shelf_view.cc
+++ b/chrome/browser/ui/views/download/download_shelf_view.cc
@@ -172,8 +172,8 @@ DownloadShelfView::DownloadShelfView(Browser* browser, BrowserView* parent)
close_button_->SetBorder(views::Border::CreateEmptyBorder(4, 4, 4, 4));
close_button_->SetImageAlignment(views::ImageButton::ALIGN_CENTER,
views::ImageButton::ALIGN_MIDDLE);
- gfx::ImageSkia image = gfx::CreateVectorIcon(gfx::VectorIconId::BAR_CLOSE,
- 16, gfx::kChromeIconGrey);
+ gfx::ImageSkia image = gfx::CreatePrimaryVectorIcon(
+ gfx::VectorIconId::BAR_CLOSE, gfx::kChromeIconGrey);
close_button_->SetImage(views::CustomButton::STATE_NORMAL, &image);
}
AddChildView(show_all_view_);

Powered by Google App Engine
This is Rietveld 408576698