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

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

Issue 23301010: Place sign out button on ash tray bubble in lockscreen state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | 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 94a85ea07a55b7705989b9ca44110e4d070dc461..42bb55a8d2be08d76d83c47cfca60cf82c37a30c 100644
--- a/ash/system/user/tray_user.cc
+++ b/ash/system/user/tray_user.cc
@@ -761,11 +761,6 @@ void UserView::ButtonPressed(views::Button* sender, const ui::Event& event) {
}
void UserView::AddLogoutButton(ash::user::LoginStatus login) {
- // A user should not be able to modify logged-in state when screen is
- // locked.
- if (login == ash::user::LOGGED_IN_LOCKED)
- return;
-
const base::string16 title = ash::user::GetLocalizedSignOutStringForStatus(
login, true);
TrayPopupLabelButton* logout_button = new TrayPopupLabelButton(this, title);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698