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. |