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

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

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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
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 "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
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.h ('k') | chrome/browser/policy/url_blacklist_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698