Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc |
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc |
index a02c7c7da1c1d48ab445ed3f800b488c3d2ea877..2c95d51e3f52e65cc20deb8b0f487fd9a98237b7 100644 |
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc |
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc |
@@ -840,9 +840,10 @@ void SystemTrayDelegateChromeOS::UserAddedToSession( |
void SystemTrayDelegateChromeOS::UserChangedSupervisedStatus( |
user_manager::User* user) { |
Profile* user_profile = ProfileHelper::Get()->GetProfileByUser(user); |
- DCHECK(user_profile); |
- if (session_started_ && user_profile_ == user_profile) { |
+ if (session_started_ && |
+ user_profile != NULL && |
Marc Treib
2014/12/10 12:42:36
Maybe add a comment explaining when user_profile c
|
+ user_profile_ == user_profile) { |
ash::Shell::GetInstance()->UpdateAfterLoginStatusChange( |
GetUserLoginStatus()); |
} |