| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm
|
| index fcb01b33b19e73b35ddc3ee3ecc9adfbf70a95d6..089d304b65bfc1539e229280fadce908c5cb94f5 100644
|
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm
|
| @@ -67,7 +67,7 @@ class BookmarkBarFolderViewTest : public CocoaProfileTest {
|
| view_.reset([[BookmarkBarFolderView alloc] init]);
|
|
|
| mock_controller_.reset(GetMockController(
|
| - YES, BookmarkModelFactory::GetForProfile(profile())));
|
| + YES, BookmarkModelFactory::GetForBrowserContext(profile())));
|
|
|
| mock_button_.reset(GetMockButton(mock_controller_.get()));
|
| [view_ awakeFromNib];
|
| @@ -129,7 +129,7 @@ class BookmarkBarFolderViewTest : public CocoaProfileTest {
|
|
|
| id GetMockButton(id mock_controller) {
|
| BookmarkModel* bookmark_model =
|
| - BookmarkModelFactory::GetForProfile(profile());
|
| + BookmarkModelFactory::GetForBrowserContext(profile());
|
| const BookmarkNode* node =
|
| bookmark_model->AddURL(bookmark_model->bookmark_bar_node(),
|
| 0,
|
| @@ -167,10 +167,10 @@ TEST_F(BookmarkBarFolderViewTest, BookmarkButtonDragAndDropAcrossProfiles) {
|
| testing_profile_manager()->CreateTestingProfile("other");
|
| other_profile->CreateBookmarkModel(true);
|
| bookmarks::test::WaitForBookmarkModelToLoad(
|
| - BookmarkModelFactory::GetForProfile(other_profile));
|
| + BookmarkModelFactory::GetForBrowserContext(other_profile));
|
|
|
| mock_controller_.reset(GetMockController(
|
| - YES, BookmarkModelFactory::GetForProfile(other_profile)));
|
| + YES, BookmarkModelFactory::GetForBrowserContext(other_profile)));
|
| [view_ setController:mock_controller_];
|
|
|
| id drag_info = GetFakeDragInfoForType(
|
| @@ -212,7 +212,7 @@ TEST_F(BookmarkBarFolderViewTest, BookmarkButtonDropIndicator) {
|
| EXPECT_TRUE([view_ dropIndicatorShown]);
|
| EXPECT_EQ([view_ dropIndicatorPosition], kFakeIndicatorPos);
|
| mock_controller_.reset(GetMockController(
|
| - NO, BookmarkModelFactory::GetForProfile(profile())));
|
| + NO, BookmarkModelFactory::GetForBrowserContext(profile())));
|
| [view_ setController:mock_controller_];
|
| [[[mock_controller_ expect] andReturnUnsignedInteger:NSDragOperationNone]
|
| draggingEntered:drag_info];
|
|
|