Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5561)

Unified Diff: chrome/browser/ui/browser_command_controller_unittest.cc

Issue 181403006: Make TestingProfile auto-create incognito profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove broken and no-longer-applicable test Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698