| Index: ash/system/chromeos/rotation/tray_rotation_lock.cc
|
| diff --git a/ash/system/chromeos/rotation/tray_rotation_lock.cc b/ash/system/chromeos/rotation/tray_rotation_lock.cc
|
| index 0a44b74a7f70da5c5e286d0d7deca734f920d569..db14deb68ec7b71d592adc82fb8fa87781153ca6 100644
|
| --- a/ash/system/chromeos/rotation/tray_rotation_lock.cc
|
| +++ b/ash/system/chromeos/rotation/tray_rotation_lock.cc
|
| @@ -84,15 +84,13 @@ void RotationLockDefaultView::UpdateImage() {
|
| const gfx::VectorIconId icon_id =
|
| rotation_locked ? gfx::VectorIconId::SYSTEM_MENU_ROTATION_LOCK_LOCKED
|
| : gfx::VectorIconId::SYSTEM_MENU_ROTATION_LOCK_AUTO;
|
| - gfx::ImageSkia image_md =
|
| - CreateVectorIcon(icon_id, kMenuIconSize, kMenuIconColor);
|
| - SetImage(&image_md);
|
| + SetImage(gfx::CreateVectorIcon(icon_id, kMenuIconSize, kMenuIconColor));
|
| } else {
|
| ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
|
| const int resource_id = rotation_locked
|
| ? IDR_AURA_UBER_TRAY_AUTO_ROTATION_LOCKED_DARK
|
| : IDR_AURA_UBER_TRAY_AUTO_ROTATION_DARK;
|
| - SetImage(bundle.GetImageNamed(resource_id).ToImageSkia());
|
| + SetImage(*bundle.GetImageNamed(resource_id).ToImageSkia());
|
| }
|
|
|
| base::string16 label = l10n_util::GetStringUTF16(
|
|
|