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

Unified Diff: chrome/browser/ui/webui/ntp/app_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/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));
}

Powered by Google App Engine
This is Rietveld 408576698