| 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));
|
| }
|
|
|