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

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

Powered by Google App Engine
This is Rietveld 408576698