Index: ash/common/frame/caption_buttons/frame_caption_button.cc |
diff --git a/ash/common/frame/caption_buttons/frame_caption_button.cc b/ash/common/frame/caption_buttons/frame_caption_button.cc |
index 74f1ef9021b7730b9562410a2811f3e395458508..d496f1b3535d21e4c7c7fc6150d133d26da468aa 100644 |
--- a/ash/common/frame/caption_buttons/frame_caption_button.cc |
+++ b/ash/common/frame/caption_buttons/frame_caption_button.cc |
@@ -56,10 +56,9 @@ |
void FrameCaptionButton::SetImage(CaptionButtonIcon icon, |
Animate animate, |
- const gfx::VectorIcon& icon_definition) { |
+ gfx::VectorIconId icon_image_id) { |
gfx::ImageSkia new_icon_image = gfx::CreateVectorIcon( |
- icon_definition, |
- use_light_images_ ? SK_ColorWHITE : gfx::kChromeIconGrey); |
+ icon_image_id, use_light_images_ ? SK_ColorWHITE : gfx::kChromeIconGrey); |
// The early return is dependent on |animate| because callers use SetImage() |
// with ANIMATE_NO to progress the crossfade animation to the end. |
@@ -73,7 +72,7 @@ |
crossfade_icon_image_ = icon_image_; |
icon_ = icon; |
- icon_definition_ = &icon_definition; |
+ icon_image_id_ = icon_image_id; |
icon_image_ = new_icon_image; |
if (animate == ANIMATE_YES) { |