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

Unified Diff: chrome/browser/policy/profile_policy_connector_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/profile_policy_connector_factory.h
diff --git a/chrome/browser/policy/profile_policy_connector_factory.h b/chrome/browser/policy/profile_policy_connector_factory.h
index 399b8f2c22aa44a474bb38d1a1bf83f0cddc93ad..04ca3e43d2c61d832bc10272b72469487c04eb9e 100644
--- a/chrome/browser/policy/profile_policy_connector_factory.h
+++ b/chrome/browser/policy/profile_policy_connector_factory.h
@@ -30,7 +30,7 @@ class ProfilePolicyConnector;
// policy providers and other policy components.
// TODO(joaodasilva): convert this class to a proper PKS once the PrefService,
// which depends on this class, becomes a PKS too.
-class ProfilePolicyConnectorFactory : public ProfileKeyedBaseFactory {
+class ProfilePolicyConnectorFactory : public BrowserContextKeyedBaseFactory {
public:
// Returns the ProfilePolicyConnectorFactory singleton.
static ProfilePolicyConnectorFactory* GetInstance();
@@ -51,7 +51,7 @@ class ProfilePolicyConnectorFactory : public ProfileKeyedBaseFactory {
// Overrides the |connector| for the given |profile|; use only in tests.
// Once this class becomes a proper PKS then it can reuse the testing
- // methods of ProfileKeyedServiceFactory.
+ // methods of BrowserContextKeyedServiceFactory.
void SetServiceForTesting(Profile* profile,
ProfilePolicyConnector* connector);
@@ -68,9 +68,11 @@ class ProfilePolicyConnectorFactory : public ProfileKeyedBaseFactory {
bool force_immediate_load,
base::SequencedTaskRunner* sequenced_task_runner);
- // ProfileKeyedBaseFactory:
- virtual void ProfileShutdown(content::BrowserContext* context) OVERRIDE;
- virtual void ProfileDestroyed(content::BrowserContext* context) OVERRIDE;
+ // BrowserContextKeyedBaseFactory:
+ virtual void BrowserContextShutdown(
+ content::BrowserContext* context) OVERRIDE;
+ virtual void BrowserContextDestroyed(
+ content::BrowserContext* context) OVERRIDE;
virtual void RegisterUserPrefs(
user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
virtual void SetEmptyTestingFactory(

Powered by Google App Engine
This is Rietveld 408576698