| Index: chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc
|
| diff --git a/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc b/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc
|
| index 7d0a1d9dd9a3089b6672335742e2045b9c55f908..6c8afb7b832575924e6d1cc42a3f95647dbb3788 100644
|
| --- a/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc
|
| +++ b/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc
|
| @@ -13,7 +13,7 @@
|
| // static
|
| NTPResourceCache* AppResourceCacheFactory::GetForProfile(Profile* profile) {
|
| return static_cast<NTPResourceCache*>(
|
| - GetInstance()->GetServiceForProfile(profile, true));
|
| + GetInstance()->GetServiceForBrowserContext(profile, true));
|
| }
|
|
|
| // static
|
| @@ -22,8 +22,9 @@ AppResourceCacheFactory* AppResourceCacheFactory::GetInstance() {
|
| }
|
|
|
| AppResourceCacheFactory::AppResourceCacheFactory()
|
| - : ProfileKeyedServiceFactory("AppResourceCache",
|
| - ProfileDependencyManager::GetInstance()) {
|
| + : BrowserContextKeyedServiceFactory(
|
| + "AppResourceCache",
|
| + BrowserContextDependencyManager::GetInstance()) {
|
| #if defined(ENABLE_THEMES)
|
| DependsOn(ThemeServiceFactory::GetInstance());
|
| #endif
|
| @@ -31,7 +32,7 @@ AppResourceCacheFactory::AppResourceCacheFactory()
|
|
|
| AppResourceCacheFactory::~AppResourceCacheFactory() {}
|
|
|
| -ProfileKeyedService* AppResourceCacheFactory::BuildServiceInstanceFor(
|
| +BrowserContextKeyedService* AppResourceCacheFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* profile) const {
|
| return new NTPResourceCache(static_cast<Profile*>(profile));
|
| }
|
|
|