diff options
author | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-14 05:22:42 +0000 |
---|---|---|
committer | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-14 05:22:42 +0000 |
commit | 53e0b68bbd6e982d148289c55e37af88075da55d (patch) | |
tree | 0f2f0b6a7631b08821e85ef81dd2244f23bf1742 /ash/system | |
parent | 368cd73cfca90a4f8496f84b870d86c83eeeed18 (diff) | |
download | chromium_src-53e0b68bbd6e982d148289c55e37af88075da55d.zip chromium_src-53e0b68bbd6e982d148289c55e37af88075da55d.tar.gz chromium_src-53e0b68bbd6e982d148289c55e37af88075da55d.tar.bz2 |
Only add a logout button to the currently active user card
BUG=291154
TEST=visual
Review URL: https://chromiumcodereview.appspot.com/23437035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system')
-rw-r--r-- | ash/system/user/tray_user.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/system/user/tray_user.cc b/ash/system/user/tray_user.cc index efae178..c33f28d 100644 --- a/ash/system/user/tray_user.cc +++ b/ash/system/user/tray_user.cc @@ -648,7 +648,8 @@ UserView::UserView(SystemTrayItem* owner, // The logout button must be added before the user card so that the user card // can correctly calculate the remaining available width. // Note that only the current multiprofile user gets a button. - AddLogoutButton(!multiprofile_index_ ? login : ash::user::LOGGED_IN_LOCKED); + if (!multiprofile_index_) + AddLogoutButton(login); AddUserCard(owner, login); } |