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 "chrome/browser/profiles/profile_dependency_manager.h" | 10 #include "chrome/browser/profiles/profile_dependency_manager.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 void ProfilePolicyConnectorFactory::ProfileDestroyed( | 102 void ProfilePolicyConnectorFactory::ProfileDestroyed( |
103 content::BrowserContext* context) { | 103 content::BrowserContext* context) { |
104 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context)); | 104 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context)); |
105 if (it != connectors_.end()) | 105 if (it != connectors_.end()) |
106 connectors_.erase(it); | 106 connectors_.erase(it); |
107 ProfileKeyedBaseFactory::ProfileDestroyed(context); | 107 ProfileKeyedBaseFactory::ProfileDestroyed(context); |
108 } | 108 } |
109 | 109 |
110 void ProfilePolicyConnectorFactory::RegisterUserPrefs( | 110 void ProfilePolicyConnectorFactory::RegisterUserPrefs( |
111 PrefRegistrySyncable* registry) { | 111 user_prefs::PrefRegistrySyncable* registry) { |
112 #if defined(OS_CHROMEOS) | 112 #if defined(OS_CHROMEOS) |
113 registry->RegisterBooleanPref(prefs::kUsedPolicyCertificatesOnce, | 113 registry->RegisterBooleanPref( |
114 false, | 114 prefs::kUsedPolicyCertificatesOnce, |
115 PrefRegistrySyncable::UNSYNCABLE_PREF); | 115 false, |
| 116 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
116 #endif | 117 #endif |
117 } | 118 } |
118 | 119 |
119 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory( | 120 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory( |
120 content::BrowserContext* context) {} | 121 content::BrowserContext* context) {} |
121 | 122 |
122 void ProfilePolicyConnectorFactory::CreateServiceNow( | 123 void ProfilePolicyConnectorFactory::CreateServiceNow( |
123 content::BrowserContext* context) {} | 124 content::BrowserContext* context) {} |
124 | 125 |
125 } // namespace policy | 126 } // namespace policy |
OLD | NEW |