Chromium Code Reviews| 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..515a1118853a570ac8821c3efee70a0d5ffe2c35 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 (1 < ash::Shell::GetInstance()->session_state_delegate()-> |
|
James Cook
2013/05/17 14:03:25
nit: chromium-style prefers "foo == 1" to "1 == fo
Mr4D (OOO till 08-26)
2013/05/17 16:26:40
Done.
|
| + NumberOfLoggedInUsers()) |
| + message_id = IDS_ASH_STATUS_TRAY_SIGN_OUT_ALL; |
| + else |
| + message_id = IDS_ASH_STATUS_TRAY_SIGN_OUT; |
| break; |
| } |
| base::string16 message = |