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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm

Issue 2216713002: Use BookmarkModelFactory::GetForBrowserContext everywhere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks
Patch Set: Replace in .mm files Created 4 years, 4 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/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();

Powered by Google App Engine
This is Rietveld 408576698