| Index: chrome/browser/ui/bookmarks/bookmark_context_menu_controller_unittest.cc
|
| diff --git a/chrome/browser/ui/bookmarks/bookmark_context_menu_controller_unittest.cc b/chrome/browser/ui/bookmarks/bookmark_context_menu_controller_unittest.cc
|
| index 5206a3e576bdc904a0d5e22de8d5634ef97eaaf8..2d64f64ff896dc8e8eff5290e1250fc4cbdcf241 100644
|
| --- a/chrome/browser/ui/bookmarks/bookmark_context_menu_controller_unittest.cc
|
| +++ b/chrome/browser/ui/bookmarks/bookmark_context_menu_controller_unittest.cc
|
| @@ -240,14 +240,8 @@ TEST_F(BookmarkContextMenuControllerTest, MultipleFoldersWithURLs) {
|
|
|
| // Tests the enabled state of open incognito.
|
| TEST_F(BookmarkContextMenuControllerTest, DisableIncognito) {
|
| - // Create an incognito Profile. It must be associated with the original
|
| - // Profile, so that GetOriginalProfile() works as expected.
|
| - TestingProfile::Builder builder;
|
| - builder.SetIncognito();
|
| - scoped_ptr<TestingProfile> testing_incognito = builder.Build();
|
| - testing_incognito->SetOriginalProfile(profile_.get());
|
| - TestingProfile* incognito = testing_incognito.get();
|
| - profile_->SetOffTheRecordProfile(testing_incognito.PassAs<Profile>());
|
| + TestingProfile* incognito =
|
| + TestingProfile::Builder().BuildIncognito(profile_.get());
|
|
|
| incognito->CreateBookmarkModel(true);
|
| BookmarkModel* model = BookmarkModelFactory::GetForProfile(incognito);
|
|
|