| 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
|
|
|