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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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/ui/webui/ntp/ntp_resource_cache_factory.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc
index c1165e8151373edb650ddaf28b35863d006b651b..0a7025fdf125b974fbd0959b8dd586a391722ba8 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc
@@ -13,7 +13,7 @@
// static
NTPResourceCache* NTPResourceCacheFactory::GetForProfile(Profile* profile) {
return static_cast<NTPResourceCache*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -22,8 +22,9 @@ NTPResourceCacheFactory* NTPResourceCacheFactory::GetInstance() {
}
NTPResourceCacheFactory::NTPResourceCacheFactory()
- : ProfileKeyedServiceFactory("NTPResourceCache",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "NTPResourceCache",
+ BrowserContextDependencyManager::GetInstance()) {
#if defined(ENABLE_THEMES)
DependsOn(ThemeServiceFactory::GetInstance());
#endif
@@ -31,7 +32,7 @@ NTPResourceCacheFactory::NTPResourceCacheFactory()
NTPResourceCacheFactory::~NTPResourceCacheFactory() {}
-ProfileKeyedService* NTPResourceCacheFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* NTPResourceCacheFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new NTPResourceCache(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698