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

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

Issue 2807693002: Make LogoutButtonTray a regular View (Closed)
Patch Set: Rebased Created 3 years, 8 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/system/user/tray_user.h ('k') | ash/system/virtual_keyboard/virtual_keyboard_tray.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/user/tray_user.cc
diff --git a/ash/system/user/tray_user.cc b/ash/system/user/tray_user.cc
index c37e57b57f5ac0264c0de172beb3dbc764285d38..80ae36deafd2be4cbb6b8611b564698485311c05 100644
--- a/ash/system/user/tray_user.cc
+++ b/ash/system/user/tray_user.cc
@@ -5,7 +5,7 @@
#include "ash/system/user/tray_user.h"
#include "ash/session/session_controller.h"
-#include "ash/shelf/wm_shelf_util.h"
+#include "ash/shelf/wm_shelf.h"
#include "ash/shell.h"
#include "ash/shell_port.h"
#include "ash/strings/grit/ash_strings.h"
@@ -169,11 +169,11 @@ void TrayUser::UpdateAfterLoginStatusChange(LoginStatus status) {
UpdateLayoutOfItem();
}
-void TrayUser::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
+void TrayUser::UpdateAfterShelfAlignmentChange() {
// Inactive users won't have a layout.
if (!layout_view_)
return;
- if (IsHorizontalAlignment(alignment)) {
+ if (system_tray()->shelf()->IsHorizontalAlignment()) {
if (avatar_) {
avatar_->SetCornerRadii(0, kTrayRoundedBorderRadius,
kTrayRoundedBorderRadius, 0);
@@ -249,7 +249,7 @@ void TrayUser::UpdateAvatarImage(LoginStatus status) {
}
void TrayUser::UpdateLayoutOfItem() {
- UpdateAfterShelfAlignmentChange(system_tray()->shelf_alignment());
+ UpdateAfterShelfAlignmentChange();
}
} // namespace ash
« no previous file with comments | « ash/system/user/tray_user.h ('k') | ash/system/virtual_keyboard/virtual_keyboard_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698