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

Unified Diff: chrome/browser/background/background_contents_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/background/background_contents_service_factory.cc
diff --git a/chrome/browser/background/background_contents_service_factory.cc b/chrome/browser/background/background_contents_service_factory.cc
index 44287bc6e1faaa09c2039b022fc1bf1119afe162..674c3c1d08f8e4b2e08ec986887b0ed0070977a1 100644
--- a/chrome/browser/background/background_contents_service_factory.cc
+++ b/chrome/browser/background/background_contents_service_factory.cc
@@ -17,7 +17,7 @@
BackgroundContentsService* BackgroundContentsServiceFactory::GetForProfile(
Profile* profile) {
return static_cast<BackgroundContentsService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -27,14 +27,16 @@ BackgroundContentsServiceFactory* BackgroundContentsServiceFactory::
}
BackgroundContentsServiceFactory::BackgroundContentsServiceFactory()
- : ProfileKeyedServiceFactory("BackgroundContentsService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "BackgroundContentsService",
+ BrowserContextDependencyManager::GetInstance()) {
}
BackgroundContentsServiceFactory::~BackgroundContentsServiceFactory() {
}
-ProfileKeyedService* BackgroundContentsServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+BackgroundContentsServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new BackgroundContentsService(static_cast<Profile*>(profile),
CommandLine::ForCurrentProcess());
@@ -53,7 +55,8 @@ BackgroundContentsServiceFactory::GetBrowserContextToUse(
return chrome::GetBrowserContextOwnInstanceInIncognito(context);
}
-bool BackgroundContentsServiceFactory::ServiceIsCreatedWithProfile() const {
+bool
+BackgroundContentsServiceFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698