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

Unified Diff: chrome/browser/policy/cloud/user_policy_signin_service_factory.h

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/policy/cloud/user_policy_signin_service_factory.h
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_factory.h b/chrome/browser/policy/cloud/user_policy_signin_service_factory.h
index 0a75dd595f5e87f8f30be106290c77d7b601eba7..9f925ecdd0211ccf285f132bad403bbd64313ea7 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_factory.h
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_factory.h
@@ -20,7 +20,8 @@ class UserPolicySigninService;
// Singleton that owns all UserPolicySigninServices and creates/deletes them as
// new Profiles are created/shutdown.
-class UserPolicySigninServiceFactory : public ProfileKeyedServiceFactory {
+class UserPolicySigninServiceFactory
+ : public BrowserContextKeyedServiceFactory {
public:
// Returns an instance of the UserPolicySigninServiceFactory singleton.
static UserPolicySigninServiceFactory* GetInstance();
@@ -30,12 +31,12 @@ class UserPolicySigninServiceFactory : public ProfileKeyedServiceFactory {
static UserPolicySigninService* GetForProfile(Profile* profile);
protected:
- // ProfileKeyedServiceFactory implementation.
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory implementation.
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
// Overridden to cause this object to be created when the profile is created.
- virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
+ virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
// Register the preferences related to cloud-based user policy.
virtual void RegisterUserPrefs(

Powered by Google App Engine
This is Rietveld 408576698