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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_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_button_cell_unittest.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm
index d83d85f93472c36b44a9e72c3626a7cca05b329f..04b14932e0bf339a844f82061f6acec2305cc0c5 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm
@@ -99,7 +99,7 @@ TEST_F(BookmarkButtonCellTest, MouseEnterStuff) {
[cell setMenu:[[[NSMenu alloc] initWithTitle:@"foo"] autorelease]];
EXPECT_FALSE([cell menu]);
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile());
const BookmarkNode* node = model->bookmark_bar_node();
[cell setEmpty:NO];
[cell setBookmarkNode:node];
@@ -110,7 +110,7 @@ TEST_F(BookmarkButtonCellTest, MouseEnterStuff) {
}
TEST_F(BookmarkButtonCellTest, BookmarkNode) {
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile());
base::scoped_nsobject<BookmarkButtonCell> cell(
[[BookmarkButtonCell alloc] initTextCell:@"Testing"]);
@@ -160,7 +160,7 @@ TEST_F(BookmarkButtonCellTest, Awake) {
// Subfolder arrow details.
TEST_F(BookmarkButtonCellTest, FolderArrow) {
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile());
const BookmarkNode* bar = model->bookmark_bar_node();
const BookmarkNode* node = model->AddURL(bar, bar->child_count(),
base::ASCIIToUTF16("title"),
@@ -184,7 +184,7 @@ TEST_F(BookmarkButtonCellTest, FolderArrow) {
}
TEST_F(BookmarkButtonCellTest, VerticalTextOffset) {
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile());
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile());
const BookmarkNode* bar = model->bookmark_bar_node();
const BookmarkNode* node = model->AddURL(bar, bar->child_count(),
base::ASCIIToUTF16("title"),

Powered by Google App Engine
This is Rietveld 408576698