| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa_unittest.mm
|
| index b0d8d40342f30d13ad71f193033866bd9955cf1a..528969bd647b2fe8ec88e3a6e3f6689525b59940 100644
|
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa_unittest.mm
|
| @@ -223,7 +223,7 @@ TEST_F(BookmarkBarViewTest, BookmarkButtonDragAndDrop) {
|
| [info reset];
|
|
|
| BookmarkModel* bookmark_model =
|
| - BookmarkModelFactory::GetForProfile(profile());
|
| + BookmarkModelFactory::GetForBrowserContext(profile());
|
| const BookmarkNode* node =
|
| bookmark_model->AddURL(bookmark_model->bookmark_bar_node(),
|
| 0,
|
| @@ -264,7 +264,7 @@ TEST_F(BookmarkBarViewTest, BookmarkButtonDragAndDropAcrossProfiles) {
|
| other_profile->CreateBookmarkModel(true);
|
|
|
| BookmarkModel* bookmark_model =
|
| - BookmarkModelFactory::GetForProfile(profile());
|
| + BookmarkModelFactory::GetForBrowserContext(profile());
|
| bookmarks::test::WaitForBookmarkModelToLoad(bookmark_model);
|
|
|
| const BookmarkNode* node =
|
| @@ -285,7 +285,8 @@ TEST_F(BookmarkBarViewTest, BookmarkButtonDragAndDropAcrossProfiles) {
|
| [info setDragDataType:ui::ClipboardUtil::UTIForPasteboardType(
|
| kBookmarkButtonDragType)];
|
| [info setButton:dragged_button.get()];
|
| - [info setBookmarkModel:BookmarkModelFactory::GetForProfile(other_profile)];
|
| + [info setBookmarkModel:BookmarkModelFactory::GetForBrowserContext(
|
| + other_profile)];
|
| EXPECT_EQ([view_ draggingEntered:(id)info.get()], NSDragOperationMove);
|
| EXPECT_TRUE([view_ performDragOperation:(id)info.get()]);
|
| EXPECT_TRUE([info dragButtonToPong]);
|
|
|