| Index: chrome/browser/profiles/profile_manager_unittest.cc
|
| diff --git a/chrome/browser/profiles/profile_manager_unittest.cc b/chrome/browser/profiles/profile_manager_unittest.cc
|
| index fb11395b154d4bcebd2e5848fb13aaf6d75c3174..a3595c2dd77e2e40f83aae6dc145bac9bcf031c4 100644
|
| --- a/chrome/browser/profiles/profile_manager_unittest.cc
|
| +++ b/chrome/browser/profiles/profile_manager_unittest.cc
|
| @@ -320,8 +320,10 @@ TEST_F(ProfileManagerTest, UserProfileLoading) {
|
| ProfileManager::GetActiveUserProfile()->IsSameProfile(signin_profile));
|
| EXPECT_TRUE(
|
| ProfileManager::GetPrimaryUserProfile()->IsSameProfile(signin_profile));
|
| - EXPECT_TRUE(
|
| - ProfileManager::GetLastUsedProfile()->IsSameProfile(signin_profile));
|
| +
|
| + // GetLastUsedProfile() after login but before a user profile is loaded is
|
| + // fatal.
|
| + EXPECT_DEATH_IF_SUPPORTED(ProfileManager::GetLastUsedProfile(), ".*");
|
|
|
| // Simulate UserSessionManager loads the profile.
|
| Profile* const user_profile =
|
|
|