summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/avatar_menu_button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/avatar_menu_button.cc')
-rw-r--r--chrome/browser/ui/views/avatar_menu_button.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/views/avatar_menu_button.cc b/chrome/browser/ui/views/avatar_menu_button.cc
index 154c97f..532f795 100644
--- a/chrome/browser/ui/views/avatar_menu_button.cc
+++ b/chrome/browser/ui/views/avatar_menu_button.cc
@@ -69,7 +69,7 @@ void DrawTaskBarDecoration(gfx::NativeWindow window, const gfx::Image* image) {
profiles::kAvatarIconWidth - x * 2, profiles::kAvatarIconHeight));
source_bitmap = &squarer_bitmap;
} else {
- // The image's size has changed. Resize what we have.
+ // The bitmaps size has changed. Resize what we have.
source_bitmap = bitmap;
}
// Since the target size is so small, we use our best resizer. Never pass
@@ -108,7 +108,7 @@ void AvatarMenuButton::OnPaint(gfx::Canvas* canvas) {
if (old_height_ != height() || button_icon_.isNull()) {
old_height_ = height();
button_icon_ = *profiles::GetAvatarIconForTitleBar(
- *icon_, is_gaia_picture_, width(), height()).ToImageSkia();
+ *icon_, is_gaia_picture_, width(), height()).ToSkBitmap();
}
// Scale the image to fit the width of the button.
@@ -141,7 +141,7 @@ bool AvatarMenuButton::HitTest(const gfx::Point& point) const {
void AvatarMenuButton::SetAvatarIcon(const gfx::Image& icon,
bool is_gaia_picture) {
icon_.reset(new gfx::Image(icon));
- button_icon_ = gfx::ImageSkia();
+ button_icon_ = SkBitmap();
is_gaia_picture_ = is_gaia_picture;
SchedulePaint();
}