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

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
Index: ash/system/user/tray_user.cc
diff --git a/ash/system/user/tray_user.cc b/ash/system/user/tray_user.cc
index a8d43c476af164cfc1ed540199fe602e9210f6b1..ffed059887f263a2a77d3a5dfb3388068a1a2cb1 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/strings/grit/ash_strings.h"
#include "ash/system/tray/system_tray.h"
@@ -170,11 +170,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);
@@ -250,7 +250,7 @@ void TrayUser::UpdateAvatarImage(LoginStatus status) {
}
void TrayUser::UpdateLayoutOfItem() {
- UpdateAfterShelfAlignmentChange(system_tray()->shelf_alignment());
+ UpdateAfterShelfAlignmentChange();
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698