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

Unified Diff: chrome/browser/policy/profile_policy_connector_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/policy/profile_policy_connector_factory.cc
diff --git a/chrome/browser/policy/profile_policy_connector_factory.cc b/chrome/browser/policy/profile_policy_connector_factory.cc
index ad609b5ae3b5b64d938d04c96bcfeb21592b136c..26a87a2abb197d66eaa12e6b865d36c9b70999e5 100644
--- a/chrome/browser/policy/profile_policy_connector_factory.cc
+++ b/chrome/browser/policy/profile_policy_connector_factory.cc
@@ -52,8 +52,9 @@ void ProfilePolicyConnectorFactory::SetServiceForTesting(
}
ProfilePolicyConnectorFactory::ProfilePolicyConnectorFactory()
- : ProfileKeyedBaseFactory("ProfilePolicyConnector",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedBaseFactory(
+ "ProfilePolicyConnector",
+ BrowserContextDependencyManager::GetInstance()) {
#if defined(ENABLE_CONFIGURATION_POLICY)
#if defined(OS_CHROMEOS)
DependsOn(UserCloudPolicyManagerFactoryChromeOS::GetInstance());
@@ -89,7 +90,7 @@ scoped_ptr<ProfilePolicyConnector>
return scoped_ptr<ProfilePolicyConnector>(connector);
}
-void ProfilePolicyConnectorFactory::ProfileShutdown(
+void ProfilePolicyConnectorFactory::BrowserContextShutdown(
content::BrowserContext* context) {
Profile* profile = static_cast<Profile*>(context);
if (profile->IsOffTheRecord())
@@ -99,12 +100,12 @@ void ProfilePolicyConnectorFactory::ProfileShutdown(
it->second->Shutdown();
}
-void ProfilePolicyConnectorFactory::ProfileDestroyed(
+void ProfilePolicyConnectorFactory::BrowserContextDestroyed(
content::BrowserContext* context) {
ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context));
if (it != connectors_.end())
connectors_.erase(it);
- ProfileKeyedBaseFactory::ProfileDestroyed(context);
+ BrowserContextKeyedBaseFactory::BrowserContextDestroyed(context);
}
void ProfilePolicyConnectorFactory::RegisterUserPrefs(

Powered by Google App Engine
This is Rietveld 408576698