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 4685581b5ad358d1bf932b468480bff2b720f862..e3bb94413a095dcdff2bf71cbc485497b0ba2ee6 100644 |
--- a/chrome/browser/profiles/profile_manager_unittest.cc |
+++ b/chrome/browser/profiles/profile_manager_unittest.cc |
@@ -760,13 +760,6 @@ TEST_F(ProfileManagerTest, LastOpenedProfilesDoesNotContainIncognito) { |
static_cast<TestingProfile*>(profile_manager->GetProfile(dest_path1)); |
ASSERT_TRUE(profile1); |
- // Incognito profiles should not be managed by the profile manager but by the |
- // original profile. |
- TestingProfile::Builder builder; |
- builder.SetIncognito(); |
- scoped_ptr<TestingProfile> profile2 = builder.Build(); |
- profile1->SetOffTheRecordProfile(profile2.PassAs<Profile>()); |
- |
std::vector<Profile*> last_opened_profiles = |
profile_manager->GetLastOpenedProfiles(); |
ASSERT_EQ(0U, last_opened_profiles.size()); |