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 "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "chrome/browser/policy/profile_policy_connector.h" | 9 #include "chrome/browser/policy/profile_policy_connector.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 void ProfilePolicyConnectorFactory::BrowserContextDestroyed( | 134 void ProfilePolicyConnectorFactory::BrowserContextDestroyed( |
135 content::BrowserContext* context) { | 135 content::BrowserContext* context) { |
136 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context)); | 136 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context)); |
137 if (it != connectors_.end()) | 137 if (it != connectors_.end()) |
138 connectors_.erase(it); | 138 connectors_.erase(it); |
139 BrowserContextKeyedBaseFactory::BrowserContextDestroyed(context); | 139 BrowserContextKeyedBaseFactory::BrowserContextDestroyed(context); |
140 } | 140 } |
141 | 141 |
142 void ProfilePolicyConnectorFactory::RegisterProfilePrefs( | 142 void ProfilePolicyConnectorFactory::RegisterProfilePrefs( |
143 user_prefs::PrefRegistrySyncable* registry) { | 143 user_prefs::PrefRegistrySyncable* registry) { |
144 #if defined(OS_ANDROID) | 144 #if defined(OS_ANDROID) || defined(OS_IOS) |
145 registry->RegisterListPref( | 145 registry->RegisterListPref( |
146 prefs::kManagedBookmarks, | 146 prefs::kManagedBookmarks, |
147 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 147 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
148 #endif | 148 #endif |
149 } | 149 } |
150 | 150 |
151 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory( | 151 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory( |
152 content::BrowserContext* context) {} | 152 content::BrowserContext* context) {} |
153 | 153 |
154 void ProfilePolicyConnectorFactory::CreateServiceNow( | 154 void ProfilePolicyConnectorFactory::CreateServiceNow( |
155 content::BrowserContext* context) {} | 155 content::BrowserContext* context) {} |
156 | 156 |
157 } // namespace policy | 157 } // namespace policy |
OLD | NEW |