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

Side by Side Diff: chrome/browser/policy/profile_policy_connector_factory.cc

Issue 307993005: Enable the ManagedBookmarks policy on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "chrome/common/pref_names.h"
12 #include "components/keyed_service/content/browser_context_dependency_manager.h" 11 #include "components/keyed_service/content/browser_context_dependency_manager.h"
13 #include "components/pref_registry/pref_registry_syncable.h"
14 12
15 #if defined(ENABLE_CONFIGURATION_POLICY) 13 #if defined(ENABLE_CONFIGURATION_POLICY)
16 #include "chrome/browser/policy/schema_registry_service.h" 14 #include "chrome/browser/policy/schema_registry_service.h"
17 #include "chrome/browser/policy/schema_registry_service_factory.h" 15 #include "chrome/browser/policy/schema_registry_service_factory.h"
18 #if defined(OS_CHROMEOS) 16 #if defined(OS_CHROMEOS)
19 #include "chrome/browser/chromeos/login/users/user.h" 17 #include "chrome/browser/chromeos/login/users/user.h"
20 #include "chrome/browser/chromeos/login/users/user_manager.h" 18 #include "chrome/browser/chromeos/login/users/user_manager.h"
21 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" 19 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h"
22 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h" 20 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h"
23 #include "chrome/browser/chromeos/profiles/profile_helper.h" 21 #include "chrome/browser/chromeos/profiles/profile_helper.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 130 }
133 131
134 void ProfilePolicyConnectorFactory::BrowserContextDestroyed( 132 void ProfilePolicyConnectorFactory::BrowserContextDestroyed(
135 content::BrowserContext* context) { 133 content::BrowserContext* context) {
136 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context)); 134 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context));
137 if (it != connectors_.end()) 135 if (it != connectors_.end())
138 connectors_.erase(it); 136 connectors_.erase(it);
139 BrowserContextKeyedBaseFactory::BrowserContextDestroyed(context); 137 BrowserContextKeyedBaseFactory::BrowserContextDestroyed(context);
140 } 138 }
141 139
142 void ProfilePolicyConnectorFactory::RegisterProfilePrefs(
143 user_prefs::PrefRegistrySyncable* registry) {
144 #if defined(OS_ANDROID) || defined(OS_IOS)
145 registry->RegisterListPref(
146 prefs::kManagedBookmarks,
147 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
148 #endif
149 }
150
151 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory( 140 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory(
152 content::BrowserContext* context) {} 141 content::BrowserContext* context) {}
153 142
154 void ProfilePolicyConnectorFactory::CreateServiceNow( 143 void ProfilePolicyConnectorFactory::CreateServiceNow(
155 content::BrowserContext* context) {} 144 content::BrowserContext* context) {}
156 145
157 } // namespace policy 146 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698