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

Unified Diff: ash/system/tray/system_tray.cc

Issue 19267013: ash: Status Tray User Icon Update (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 5 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/resources/ash_resources.grd ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index e3fcf788000688e5837f93680e52b610954fd0e1..11a8322d8a0d8d0da7c67012d3992e9abe585ebb 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -285,6 +285,11 @@ void SystemTray::UpdateAfterLoginStatusChange(user::LoginStatus login_status) {
(*it)->UpdateAfterLoginStatusChange(login_status);
}
+ // Items default to SHELF_ALIGNMENT_BOTTOM. Update them if the initial
+ // position of the shelf differs.
+ if (shelf_alignment() != SHELF_ALIGNMENT_BOTTOM)
+ UpdateAfterShelfAlignmentChange(shelf_alignment());
+
SetVisible(true);
PreferredSizeChanged();
}
« no previous file with comments | « ash/resources/ash_resources.grd ('k') | ash/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698