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

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

Issue 199233002: Moved the ManagedBookmarksPolicyHandler to a shared file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/managed_bookmarks_policy_handler.cc ('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"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/managed_bookmarks_policy_handler.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698