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

Unified Diff: chrome/browser/ui/webui/signin/login_ui_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/ui/webui/signin/login_ui_service_factory.cc
diff --git a/chrome/browser/ui/webui/signin/login_ui_service_factory.cc b/chrome/browser/ui/webui/signin/login_ui_service_factory.cc
index 4242a41d709f847aaff684c68c5f73a243326630..e502476e083fea34699d430a9becf28e9df4aa11 100644
--- a/chrome/browser/ui/webui/signin/login_ui_service_factory.cc
+++ b/chrome/browser/ui/webui/signin/login_ui_service_factory.cc
@@ -11,8 +11,9 @@
#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
LoginUIServiceFactory::LoginUIServiceFactory()
- : ProfileKeyedServiceFactory("LoginUIServiceFactory",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "LoginUIServiceFactory",
+ BrowserContextDependencyManager::GetInstance()) {
}
LoginUIServiceFactory::~LoginUIServiceFactory() {}
@@ -20,7 +21,7 @@ LoginUIServiceFactory::~LoginUIServiceFactory() {}
// static
LoginUIService* LoginUIServiceFactory::GetForProfile(Profile* profile) {
return static_cast<LoginUIService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -28,7 +29,7 @@ LoginUIServiceFactory* LoginUIServiceFactory::GetInstance() {
return Singleton<LoginUIServiceFactory>::get();
}
-ProfileKeyedService* LoginUIServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* LoginUIServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new LoginUIService(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698