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

Unified Diff: chrome/browser/importer/profile_writer.cc

Issue 2216713002: Use BookmarkModelFactory::GetForBrowserContext everywhere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks
Patch Set: Eliminate Profile::FromBrowserContext in some places 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/importer/profile_writer.cc
diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc
index 9e817ecb6794683ade303f2a038c79ed5b6e773a..642bbf31567c2c7bcaf189d08041fd459c3a7396 100644
--- a/chrome/browser/importer/profile_writer.cc
+++ b/chrome/browser/importer/profile_writer.cc
@@ -84,7 +84,7 @@ void ShowBookmarkBar(Profile* profile) {
ProfileWriter::ProfileWriter(Profile* profile) : profile_(profile) {}
bool ProfileWriter::BookmarkModelIsLoaded() const {
- return BookmarkModelFactory::GetForProfile(profile_)->loaded();
+ return BookmarkModelFactory::GetForBrowserContext(profile_)->loaded();
}
bool ProfileWriter::TemplateURLServiceIsLoaded() const {
@@ -127,7 +127,7 @@ void ProfileWriter::AddBookmarks(
if (bookmarks.empty())
return;
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile_);
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile_);
DCHECK(model->loaded());
// If the bookmark bar is currently empty, we should import directly to it.

Powered by Google App Engine
This is Rietveld 408576698