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

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: . Created 5 years, 6 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/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 1606b2ff9b4c8a34940dc2d160071501bf45ae65..c55720416ec2ea653f96eb6fd8a61ed10909b66b 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -236,8 +236,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::PHOTO_CAMERA,
+ SkColorSetRGB(0x33, 0x33, 0x33));
+ photo_overlay_->SetImageSize(gfx::Size(48, 48));
photo_overlay_->SetSize(bounds.size());
photo_overlay_->SetVisible(false);

Powered by Google App Engine
This is Rietveld 408576698