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

Unified Diff: chrome/browser/signin/about_signin_internals_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/signin/about_signin_internals_factory.cc
diff --git a/chrome/browser/signin/about_signin_internals_factory.cc b/chrome/browser/signin/about_signin_internals_factory.cc
index 6d888991a3d81d30a53de6ba7595b87b4ef51a88..4ff1c098ce92fcf0d7f47a4533ba424b232e5c43 100644
--- a/chrome/browser/signin/about_signin_internals_factory.cc
+++ b/chrome/browser/signin/about_signin_internals_factory.cc
@@ -16,8 +16,9 @@
using namespace signin_internals_util;
AboutSigninInternalsFactory::AboutSigninInternalsFactory()
- : ProfileKeyedServiceFactory("AboutSigninInternals",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "AboutSigninInternals",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(SigninManagerFactory::GetInstance());
DependsOn(TokenServiceFactory::GetInstance());
}
@@ -28,7 +29,7 @@ AboutSigninInternalsFactory::~AboutSigninInternalsFactory() {}
AboutSigninInternals* AboutSigninInternalsFactory::GetForProfile(
Profile* profile) {
return static_cast<AboutSigninInternals*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -87,7 +88,8 @@ void AboutSigninInternalsFactory::RegisterUserPrefs(
}
}
-ProfileKeyedService* AboutSigninInternalsFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+AboutSigninInternalsFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
AboutSigninInternals* service = new AboutSigninInternals();
service->Initialize(static_cast<Profile*>(profile));

Powered by Google App Engine
This is Rietveld 408576698