Index: chrome/browser/importer/external_process_importer_host.cc |
diff --git a/chrome/browser/importer/external_process_importer_host.cc b/chrome/browser/importer/external_process_importer_host.cc |
index 6552f7f268f8e8fbbbda7f0812216913e43979f8..479cdd4791bc3306218af6d8f16a901d69317198 100644 |
--- a/chrome/browser/importer/external_process_importer_host.cc |
+++ b/chrome/browser/importer/external_process_importer_host.cc |
@@ -94,7 +94,7 @@ void ExternalProcessImporterHost::NotifyImportEnded() { |
ExternalProcessImporterHost::~ExternalProcessImporterHost() { |
if (installed_bookmark_observer_) { |
DCHECK(profile_); |
- BookmarkModelFactory::GetForProfile(profile_)->RemoveObserver(this); |
+ BookmarkModelFactory::GetForBrowserContext(profile_)->RemoveObserver(this); |
} |
} |
@@ -192,7 +192,7 @@ void ExternalProcessImporterHost::CheckForLoadedModels(uint16_t items) { |
// BookmarkModel should be loaded before adding IE favorites. So we observe |
// the BookmarkModel if needed, and start the task after it has been loaded. |
if ((items & importer::FAVORITES) && !writer_->BookmarkModelIsLoaded()) { |
- BookmarkModelFactory::GetForProfile(profile_)->AddObserver(this); |
+ BookmarkModelFactory::GetForBrowserContext(profile_)->AddObserver(this); |
waiting_for_bookmarkbar_model_ = true; |
installed_bookmark_observer_ = true; |
} |