Index: chrome/browser/importer/profile_writer.cc |
diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc |
index eb02768c21e850cf2591cba9e13ecc720c6c845b..c34281c12ae774a9a850f83bed1dc735d4a7f30f 100644 |
--- a/chrome/browser/importer/profile_writer.cc |
+++ b/chrome/browser/importer/profile_writer.cc |
@@ -226,8 +226,10 @@ void ProfileWriter::AddBookmarks( |
void ProfileWriter::AddFavicons( |
const std::vector<ImportedFaviconUsage>& favicons) { |
- FaviconServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS)-> |
- SetImportedFavicons(favicons); |
+ HistoryService* history_service = |
+ HistoryServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS); |
+ if (history_service) |
+ history_service->SetImportedFavicons(favicons); |
} |
typedef std::map<std::string, TemplateURL*> HostPathMap; |