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

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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
Index: chrome/browser/favicon/favicon_service_factory.cc
diff --git a/chrome/browser/favicon/favicon_service_factory.cc b/chrome/browser/favicon/favicon_service_factory.cc
index f3f7d8312aebb5fcf3d628ad46aa5c18ef5e62df..e59733f4487f510bf34dc3db18a6a18bdfa14f30 100644
--- a/chrome/browser/favicon/favicon_service_factory.cc
+++ b/chrome/browser/favicon/favicon_service_factory.cc
@@ -44,9 +44,9 @@ FaviconServiceFactory::FaviconServiceFactory()
FaviconServiceFactory::~FaviconServiceFactory() {}
ProfileKeyedService* FaviconServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
+ content::BrowserContext* profile) const {
HistoryService* history_service = HistoryServiceFactory::GetForProfile(
- profile, Profile::EXPLICIT_ACCESS);
+ static_cast<Profile*>(profile), Profile::EXPLICIT_ACCESS);
return new FaviconService(history_service);
}

Powered by Google App Engine
This is Rietveld 408576698