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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.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_editor_base_controller.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm
index dd75c04a06337a1903318b44fb0d5f840f9aec6f..43648fb1bdcb773e151c6482ce66613d3c965343 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm
@@ -342,7 +342,7 @@ NSString* const kOkEnabledName = @"okEnabled";
#pragma mark Folder Tree Management
- (BookmarkModel*)bookmarkModel {
- return BookmarkModelFactory::GetForProfile(profile_);
+ return BookmarkModelFactory::GetForBrowserContext(profile_);
}
- (Profile*)profile {
@@ -481,7 +481,7 @@ NSString* const kOkEnabledName = @"okEnabled";
// of ancestor nodes. Then crawl down the folderTreeArray looking
// for each ancestor in order while building up the selectionPath.
std::stack<const BookmarkNode*> nodeStack;
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile_);
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile_);
const BookmarkNode* rootNode = model->root_node();
const BookmarkNode* node = desiredNode;
while (node != rootNode) {
@@ -539,7 +539,7 @@ NSString* const kOkEnabledName = @"okEnabled";
- (void)buildFolderTree {
// Build up a tree of the current folder configuration.
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile_);
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile_);
const BookmarkNode* rootNode = model->root_node();
NSMutableArray* baseArray = [self addChildFoldersFromNode:rootNode];
DCHECK(baseArray);

Powered by Google App Engine
This is Rietveld 408576698