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

Unified Diff: chrome/browser/ui/webui/ntp/app_resource_cache_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/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 d2590a693738e6da45b712642ecc9b1a5a0fd745..1097342f036160403abe83aaac70411e0870b96c 100644
--- a/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc
+++ b/chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc
@@ -31,8 +31,8 @@ AppResourceCacheFactory::AppResourceCacheFactory()
AppResourceCacheFactory::~AppResourceCacheFactory() {}
ProfileKeyedService* AppResourceCacheFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new NTPResourceCache(profile);
+ content::BrowserContext* profile) const {
+ return new NTPResourceCache(static_cast<Profile*>(profile));
}
bool AppResourceCacheFactory::ServiceRedirectedInIncognito() const {
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_resource_cache_factory.h ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698