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

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

Issue 407513002: Revert of Bypass the favicon_service when importing favicons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « chrome/browser/history/history_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/profile_writer.cc
diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc
index c34281c12ae774a9a850f83bed1dc735d4a7f30f..eb02768c21e850cf2591cba9e13ecc720c6c845b 100644
--- a/chrome/browser/importer/profile_writer.cc
+++ b/chrome/browser/importer/profile_writer.cc
@@ -226,10 +226,8 @@
void ProfileWriter::AddFavicons(
const std::vector<ImportedFaviconUsage>& favicons) {
- HistoryService* history_service =
- HistoryServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS);
- if (history_service)
- history_service->SetImportedFavicons(favicons);
+ FaviconServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS)->
+ SetImportedFavicons(favicons);
}
typedef std::map<std::string, TemplateURL*> HostPathMap;
« no previous file with comments | « chrome/browser/history/history_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698