Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm |
index c91486867fc7d5300ddd8b2c540978c4051e820a..ea9e7f7f4bbfcf374f7de35fc7ce217d8a06ded9 100644 |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm |
@@ -82,7 +82,8 @@ class BookmarkBubbleControllerTest : public CocoaProfileTest { |
[controller_ close]; |
controller_ = nil; |
} |
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile()); |
+ BookmarkModel* model = |
+ BookmarkModelFactory::GetForBrowserContext(profile()); |
bookmarks::ManagedBookmarkService* managed = |
ManagedBookmarkServiceFactory::GetForProfile(profile()); |
controller_ = [[BookmarkBubbleController alloc] |
@@ -101,7 +102,7 @@ class BookmarkBubbleControllerTest : public CocoaProfileTest { |
} |
BookmarkModel* GetBookmarkModel() { |
- return BookmarkModelFactory::GetForProfile(profile()); |
+ return BookmarkModelFactory::GetForBrowserContext(profile()); |
} |
const BookmarkNode* CreateTestBookmark() { |
@@ -391,7 +392,7 @@ TEST_F(BookmarkBubbleControllerTest, PopUpSelectionChanged) { |
// the user clicking the star, then sending the "cancel" command to represent |
// them pressing escape. The bookmark should not be there. |
TEST_F(BookmarkBubbleControllerTest, EscapeRemovesNewBookmark) { |
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile()); |
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile()); |
bookmarks::ManagedBookmarkService* managed = |
ManagedBookmarkServiceFactory::GetForProfile(profile()); |
const BookmarkNode* node = CreateTestBookmark(); |