Descriptioncros: Fix CrashRestoreComplexTest failure
CrashRestoreComplexTest restores session for non-existent user.
The first session is created with browser_restart flag set. User
manager currently runs RegularUserLoggedInAsEphemeral for such
situation. This caused the first user not returned in UserManager's
GetUsers call and causes ProfileHelper::GetUserByProfile to return
nullptr. This CL fixes the case by using GetLoggedInUsers instead of
GetUsers in GetUserByProfile. This would not happen in production
where only known users could go through crash-n-restore path though.
BUG=648964
Committed: https://crrev.com/97cdab276ba8b839254e978a44d8f5ac79f0e322
Cr-Commit-Position: refs/heads/master@{#439632}
Patch Set 1 #Patch Set 2 : add comment #
Dependent Patchsets: Messages
Total messages: 15 (9 generated)
|