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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 1214693005: Introduce some util code for drawing vector assets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile? Created 5 years, 5 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
« no previous file with comments | « chrome/browser/resources_util_unittest.cc ('k') | ui/gfx/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index d1945be97a86dc5fc214a8f77426e6823344af9e..e27975e4e2799de4a67934389db6ca079b1c9209 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -235,8 +235,9 @@ class EditableProfilePhoto : public views::LabelButton {
const SkColor kBackgroundColor = SkColorSetARGB(65, 255, 255, 255);
photo_overlay_->set_background(
views::Background::CreateSolidBackground(kBackgroundColor));
- photo_overlay_->SetImage(*ui::ResourceBundle::GetSharedInstance().
- GetImageSkiaNamed(IDR_ICON_PROFILES_EDIT_CAMERA));
+ photo_overlay_->SetVectorIcon(gfx::VectorIconId::PHOTO_CAMERA,
+ SkColorSetRGB(0x33, 0x33, 0x33),
+ gfx::Size(48, 48));
photo_overlay_->SetSize(bounds.size());
photo_overlay_->SetVisible(false);
« no previous file with comments | « chrome/browser/resources_util_unittest.cc ('k') | ui/gfx/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698