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

Unified Diff: chrome/browser/thumbnails/thumbnail_service_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/thumbnails/thumbnail_service_factory.cc
diff --git a/chrome/browser/thumbnails/thumbnail_service_factory.cc b/chrome/browser/thumbnails/thumbnail_service_factory.cc
index 9a2592e496c787c717536fbdc599c1b32c858194..8c7de7249259720917d7573bad71652f2332bd6a 100644
--- a/chrome/browser/thumbnails/thumbnail_service_factory.cc
+++ b/chrome/browser/thumbnails/thumbnail_service_factory.cc
@@ -13,9 +13,9 @@ using thumbnails::ThumbnailService;
using thumbnails::ThumbnailServiceImpl;
ThumbnailServiceFactory::ThumbnailServiceFactory()
- : RefcountedProfileKeyedServiceFactory(
+ : RefcountedBrowserContextKeyedServiceFactory(
"ThumbnailService",
- ProfileDependencyManager::GetInstance()) {
+ BrowserContextDependencyManager::GetInstance()) {
}
ThumbnailServiceFactory::~ThumbnailServiceFactory() {
@@ -25,7 +25,7 @@ ThumbnailServiceFactory::~ThumbnailServiceFactory() {
scoped_refptr<ThumbnailService> ThumbnailServiceFactory::GetForProfile(
Profile* profile) {
return static_cast<ThumbnailService*>(
- GetInstance()->GetServiceForProfile(profile, true).get());
+ GetInstance()->GetServiceForBrowserContext(profile, true).get());
}
// static
@@ -33,9 +33,9 @@ ThumbnailServiceFactory* ThumbnailServiceFactory::GetInstance() {
return Singleton<ThumbnailServiceFactory>::get();
}
-scoped_refptr<RefcountedProfileKeyedService>
+scoped_refptr<RefcountedBrowserContextKeyedService>
ThumbnailServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
- return scoped_refptr<RefcountedProfileKeyedService>(
+ return scoped_refptr<RefcountedBrowserContextKeyedService>(
new ThumbnailServiceImpl(static_cast<Profile*>(profile)));
}

Powered by Google App Engine
This is Rietveld 408576698