| Index: chrome/browser/chromeos/login/session/user_session_manager.cc
|
| diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc
|
| index abb9800fe02076957094ae59cd1ff309fa824b9d..6430ca7599385c5e82684ebe5c0f898b91d0d6d1 100644
|
| --- a/chrome/browser/chromeos/login/session/user_session_manager.cc
|
| +++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
|
| @@ -548,6 +548,16 @@ void UserSessionManager::RestoreAuthenticationSession(Profile* user_profile) {
|
|
|
| const user_manager::User* user =
|
| ProfileHelper::Get()->GetUserByProfile(user_profile);
|
| +
|
| + const SigninManagerBase* signin_manager =
|
| + SigninManagerFactory::GetForProfile(user_profile);
|
| + const bool account_id_valid =
|
| + signin_manager && !signin_manager->GetAuthenticatedAccountId().empty();
|
| + if (!account_id_valid)
|
| + LOG(ERROR) << "No account is associated with sign-in manager on restore.";
|
| + UMA_HISTOGRAM_BOOLEAN("UserSessionManager.RestoreOnCrash.AccountIdValid",
|
| + account_id_valid);
|
| +
|
| DCHECK(user);
|
| if (!net::NetworkChangeNotifier::IsOffline()) {
|
| pending_signin_restore_sessions_.erase(user->GetAccountId().GetUserEmail());
|
|
|