OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 5 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/policy/profile_policy_connector.h" | 8 #include "chrome/browser/policy/profile_policy_connector.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 10 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 | 102 |
103 void ProfilePolicyConnectorFactory::BrowserContextDestroyed( | 103 void ProfilePolicyConnectorFactory::BrowserContextDestroyed( |
104 content::BrowserContext* context) { | 104 content::BrowserContext* context) { |
105 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context)); | 105 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context)); |
106 if (it != connectors_.end()) | 106 if (it != connectors_.end()) |
107 connectors_.erase(it); | 107 connectors_.erase(it); |
108 BrowserContextKeyedBaseFactory::BrowserContextDestroyed(context); | 108 BrowserContextKeyedBaseFactory::BrowserContextDestroyed(context); |
109 } | 109 } |
110 | 110 |
111 void ProfilePolicyConnectorFactory::RegisterUserPrefs( | 111 void ProfilePolicyConnectorFactory::RegisterProfilePrefs( |
112 user_prefs::PrefRegistrySyncable* registry) { | 112 user_prefs::PrefRegistrySyncable* registry) { |
113 #if defined(OS_CHROMEOS) | 113 #if defined(OS_CHROMEOS) |
114 registry->RegisterBooleanPref( | 114 registry->RegisterBooleanPref( |
115 prefs::kUsedPolicyCertificatesOnce, | 115 prefs::kUsedPolicyCertificatesOnce, |
116 false, | 116 false, |
117 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 117 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
118 #endif | 118 #endif |
119 } | 119 } |
120 | 120 |
121 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory( | 121 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory( |
122 content::BrowserContext* context) {} | 122 content::BrowserContext* context) {} |
123 | 123 |
124 void ProfilePolicyConnectorFactory::CreateServiceNow( | 124 void ProfilePolicyConnectorFactory::CreateServiceNow( |
125 content::BrowserContext* context) {} | 125 content::BrowserContext* context) {} |
126 | 126 |
127 } // namespace policy | 127 } // namespace policy |
OLD | NEW |