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

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

Issue 14756019: Adding new user menu section to the SystemTrayMenu & refactoring of user access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 years, 7 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/login_status.cc
diff --git a/ash/system/user/login_status.cc b/ash/system/user/login_status.cc
index 77fc04a70b8f1abf739e2668fd1a7ec94733f4dc..dc20bc7c742183b2b67c5167cc0b78ea9e116ec7 100644
--- a/ash/system/user/login_status.cc
+++ b/ash/system/user/login_status.cc
@@ -4,6 +4,8 @@
#include "ash/system/user/login_status.h"
+#include "ash/session_state_delegate.h"
+#include "ash/shell.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "grit/ash_strings.h"
@@ -26,7 +28,11 @@ base::string16 GetLocalizedSignOutStringForStatus(LoginStatus status,
message_id = IDS_ASH_STATUS_TRAY_EXIT_PUBLIC;
break;
default:
- message_id = IDS_ASH_STATUS_TRAY_SIGN_OUT;
+ if (ash::Shell::GetInstance()->session_state_delegate()->
+ NumberOfLoggedInUsers() > 1)
+ message_id = IDS_ASH_STATUS_TRAY_SIGN_OUT_ALL;
Nikita (slow) 2013/05/17 17:00:32 nit: Please add {} as condition doesn't fit on one
Mr4D (OOO till 08-26) 2013/05/17 18:45:09 Done.
+ else
+ message_id = IDS_ASH_STATUS_TRAY_SIGN_OUT;
break;
}
base::string16 message =

Powered by Google App Engine
This is Rietveld 408576698