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 16450fd407d21e7bfc7291136bb2931a98ced739..5a12f2bd3466518dd1640dcdb8597e6fc93a6c2b 100644 |
--- a/chrome/browser/ui/browser_command_controller_unittest.cc |
+++ b/chrome/browser/ui/browser_command_controller_unittest.cc |
@@ -240,16 +240,8 @@ TEST_F(BrowserCommandControllerTest, AvatarMenuAlwaysDisabledInIncognitoMode) { |
ASSERT_TRUE(testing_profile_manager.SetUp()); |
// Set up a profile with an off the record profile. |
- TestingProfile::Builder otr_builder; |
- otr_builder.SetIncognito(); |
- scoped_ptr<TestingProfile> otr_profile(otr_builder.Build()); |
- |
TestingProfile::Builder normal_builder; |
scoped_ptr<TestingProfile> original_profile = normal_builder.Build(); |
- otr_profile->SetOriginalProfile(original_profile.get()); |
- EXPECT_EQ(otr_profile->GetOriginalProfile(), original_profile.get()); |
- |
- original_profile->SetOffTheRecordProfile(otr_profile.PassAs<Profile>()); |
// Create a new browser based on the off the record profile. |
Browser::CreateParams profile_params( |