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

Unified Diff: ash/system/chromeos/rotation/tray_rotation_lock.cc

Issue 2228183002: Updates to icons for Ash material design system tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: const ref Created 4 years, 4 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 | « ash/common/system/tray_accessibility.cc ('k') | ui/gfx/vector_icons/system_menu_accessibility.icon » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « ash/common/system/tray_accessibility.cc ('k') | ui/gfx/vector_icons/system_menu_accessibility.icon » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698