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

Unified Diff: chrome/browser/favicon/favicon_handler.cc

Issue 10828263: Moving FaviconService to a ProfileKeyedService. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: resyncing with library after revert Created 8 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
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/favicon/favicon_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_handler.cc
===================================================================
--- chrome/browser/favicon/favicon_handler.cc (revision 152993)
+++ chrome/browser/favicon/favicon_handler.cc (working copy)
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted_memory.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
+#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/icon_messages.h"
#include "content/public/browser/favicon_status.h"
@@ -157,7 +158,8 @@
}
FaviconService* FaviconHandler::GetFaviconService() {
- return profile_->GetFaviconService(Profile::EXPLICIT_ACCESS);
+ return FaviconServiceFactory::GetForProfile(
+ profile_, Profile::EXPLICIT_ACCESS);
}
bool FaviconHandler::UpdateFaviconCandidate(const GURL& url,
@@ -372,8 +374,8 @@
int icon_types,
CancelableRequestConsumerBase* consumer,
const FaviconService::FaviconDataCallback& callback) {
- GetFaviconService()->GetFaviconForURL(page_url, icon_types, consumer,
- callback);
+ GetFaviconService()->GetFaviconForURL(profile_, page_url, icon_types,
+ consumer, callback);
}
void FaviconHandler::SetHistoryFavicon(
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/favicon/favicon_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698