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

Unified Diff: chrome/browser/ui/views/download/download_item_view_md.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_item_view_md.cc
diff --git a/chrome/browser/ui/views/download/download_item_view_md.cc b/chrome/browser/ui/views/download/download_item_view_md.cc
index 03c8aab39736401f4e8ade0b5d79c2f3fd6da241..5b60ca8d2ad9e0bbf417da6730cdf086a814f1d9 100644
--- a/chrome/browser/ui/views/download/download_item_view_md.cc
+++ b/chrome/browser/ui/views/download/download_item_view_md.cc
@@ -826,10 +826,10 @@ void DownloadItemViewMd::SetDropdownState(State new_state) {
return;
// TODO(estade): theme this color instead of using a constant.
- gfx::ImageSkia image =
- gfx::CreateVectorIcon(new_state == PUSHED ? gfx::VectorIconId::FIND_NEXT
- : gfx::VectorIconId::FIND_PREV,
- 16, gfx::kChromeIconGrey);
+ gfx::ImageSkia image = gfx::CreatePrimaryVectorIcon(
+ new_state == PUSHED ? gfx::VectorIconId::FIND_NEXT
+ : gfx::VectorIconId::FIND_PREV,
+ gfx::kChromeIconGrey);
dropdown_button_->SetImage(views::CustomButton::STATE_NORMAL, &image);
dropdown_state_ = new_state;
SchedulePaint();

Powered by Google App Engine
This is Rietveld 408576698