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

Unified Diff: ash/common/system/tray_accessibility.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
Index: ash/common/system/tray_accessibility.cc
diff --git a/ash/common/system/tray_accessibility.cc b/ash/common/system/tray_accessibility.cc
index b078698e2128f9d349c498f37360b95f0e4107fc..16115fffdb883a85d04e415a80b8606b2200c025 100644
--- a/ash/common/system/tray_accessibility.cc
+++ b/ash/common/system/tray_accessibility.cc
@@ -78,13 +78,11 @@ class DefaultAccessibilityView : public TrayItemMore {
: TrayItemMore(owner, true) {
ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
if (MaterialDesignController::UseMaterialDesignSystemIcons()) {
- gfx::ImageSkia image_md =
- CreateVectorIcon(gfx::VectorIconId::SYSTEM_MENU_ACCESSIBILITY,
- kMenuIconSize, kMenuIconColor);
- SetImage(&image_md);
+ SetImage(gfx::CreateVectorIcon(
+ gfx::VectorIconId::SYSTEM_MENU_ACCESSIBILITY, kMenuIconColor));
} else {
- SetImage(bundle.GetImageNamed(IDR_AURA_UBER_TRAY_ACCESSIBILITY_DARK)
- .ToImageSkia());
+ SetImage(*bundle.GetImageNamed(IDR_AURA_UBER_TRAY_ACCESSIBILITY_DARK)
+ .ToImageSkia());
}
base::string16 label =
bundle.GetLocalizedString(IDS_ASH_STATUS_TRAY_ACCESSIBILITY);
« no previous file with comments | « ash/common/system/tray/tray_notification_view.cc ('k') | ash/system/chromeos/rotation/tray_rotation_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698