Index: chrome/browser/ui/browser_command_controller_unittest.cc |
diff --git a/chrome/browser/ui/browser_command_controller_unittest.cc b/chrome/browser/ui/browser_command_controller_unittest.cc |
index b9e5516b42f1e4bbba3de87f1614a6123981ff94..0a01689d4a68ffd3b7a5abf08f91509f44b856de 100644 |
--- a/chrome/browser/ui/browser_command_controller_unittest.cc |
+++ b/chrome/browser/ui/browser_command_controller_unittest.cc |
@@ -293,16 +293,17 @@ TEST_F(BrowserCommandControllerTest, |
// Set up a profile with an off the record profile. |
TestingProfile::Builder builder; |
- TestingProfile* profile2 = builder.Build().release(); |
- profile2->set_incognito(true); |
+ builder.SetIncognito(); |
+ scoped_ptr<TestingProfile> profile2 = builder.Build(); |
awong
2013/08/16 17:53:16
nit: initialize like
scoped_ptr<TestingProfile>
Andrew T Wilson (Slow)
2013/08/19 12:15:56
Done.
|
TestingProfile::Builder builder2; |
TestingProfile* profile1 = builder2.Build().release(); |
profile2->SetOriginalProfile(profile1); |
EXPECT_EQ(profile2->GetOriginalProfile(), profile1); |
- profile1->SetOffTheRecordProfile(profile2); |
+ profile1->SetOffTheRecordProfile(profile2.PassAs<Profile>()); |
// Create a new browser based on the off the record profile. |
- Browser::CreateParams profile_params(profile2, chrome::GetActiveDesktop()); |
+ Browser::CreateParams profile_params(profile1->GetOffTheRecordProfile(), |
+ chrome::GetActiveDesktop()); |
scoped_ptr<Browser> browser2( |
chrome::CreateBrowserWithTestWindowForParams(&profile_params)); |