| Index: chrome/browser/profiles/profile_manager_unittest.cc
|
| ===================================================================
|
| --- chrome/browser/profiles/profile_manager_unittest.cc (revision 122340)
|
| +++ chrome/browser/profiles/profile_manager_unittest.cc (working copy)
|
| @@ -501,13 +501,16 @@
|
| ProfileManager* profile_manager = g_browser_process->profile_manager();
|
|
|
| // Successfully create the profiles.
|
| - Profile* profile1 = profile_manager->GetProfile(dest_path1);
|
| + TestingProfile* profile1 =
|
| + static_cast<TestingProfile*>(profile_manager->GetProfile(dest_path1));
|
| ASSERT_TRUE(profile1);
|
|
|
| - TestingProfile* profile2 =
|
| - static_cast<TestingProfile*>(profile_manager->GetProfile(dest_path2));
|
| + // incognito profiles should not be managed by the profile manager but by the
|
| + // original profile.
|
| + TestingProfile* profile2 = new TestingProfile();
|
| ASSERT_TRUE(profile2);
|
| profile2->set_incognito(true);
|
| + profile1->SetOffTheRecordProfile(profile2);
|
|
|
| std::vector<Profile*> last_opened_profiles =
|
| profile_manager->GetLastOpenedProfiles();
|
|
|