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

Unified Diff: chrome/browser/managed_mode/managed_user_registration_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/managed_mode/managed_user_registration_service_factory.cc
diff --git a/chrome/browser/managed_mode/managed_user_registration_service_factory.cc b/chrome/browser/managed_mode/managed_user_registration_service_factory.cc
index 6142194659eab8fdad2a2bfdf669ecbcf5927b34..e5b302a24dd1ff45157bab969e5e2863aeec4172 100644
--- a/chrome/browser/managed_mode/managed_user_registration_service_factory.cc
+++ b/chrome/browser/managed_mode/managed_user_registration_service_factory.cc
@@ -11,7 +11,7 @@
ManagedUserRegistrationService*
ManagedUserRegistrationServiceFactory::GetForProfile(Profile* profile) {
return static_cast<ManagedUserRegistrationService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -21,20 +21,21 @@ ManagedUserRegistrationServiceFactory::GetInstance() {
}
// static
-ProfileKeyedService* ManagedUserRegistrationServiceFactory::BuildInstanceFor(
- Profile* profile) {
+BrowserContextKeyedService*
+ManagedUserRegistrationServiceFactory::BuildInstanceFor(Profile* profile) {
return new ManagedUserRegistrationService();
}
ManagedUserRegistrationServiceFactory::ManagedUserRegistrationServiceFactory()
- : ProfileKeyedServiceFactory("ManagedUserRegistrationService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "ManagedUserRegistrationService",
+ BrowserContextDependencyManager::GetInstance()) {
}
ManagedUserRegistrationServiceFactory::
~ManagedUserRegistrationServiceFactory() {}
-ProfileKeyedService*
+BrowserContextKeyedService*
ManagedUserRegistrationServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return BuildInstanceFor(static_cast<Profile*>(profile));

Powered by Google App Engine
This is Rietveld 408576698