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

Unified Diff: ash/system/user/tray_user.cc

Issue 1645503004: [exp] ash: sysui for mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ash-in-mus
Patch Set: . Created 4 years, 11 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/system/user/tray_user.cc
diff --git a/ash/system/user/tray_user.cc b/ash/system/user/tray_user.cc
index 7d988e0e2c4684307cd65c7fbf975c237ee3ab06..06fe448986d5ab184f7fa5fe22961ad8b4589166 100644
--- a/ash/system/user/tray_user.cc
+++ b/ash/system/user/tray_user.cc
@@ -272,12 +272,7 @@ void TrayUser::UpdateAvatarImage(user::LoginStatus status) {
}
void TrayUser::UpdateLayoutOfItem() {
- RootWindowController* controller = GetRootWindowController(
- system_tray()->GetWidget()->GetNativeWindow()->GetRootWindow());
- if (controller && controller->shelf()) {
- UpdateAfterShelfAlignmentChange(
- controller->GetShelfLayoutManager()->GetAlignment());
- }
+ UpdateAfterShelfAlignmentChange(system_tray()->shelf_alignment());
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698