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

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

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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 "components/browser_context_keyed_service/browser_context_dependency_ma nager.h" 10 #include "components/browser_context_keyed_service/browser_context_dependency_ma nager.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 void ProfilePolicyConnectorFactory::BrowserContextDestroyed( 103 void ProfilePolicyConnectorFactory::BrowserContextDestroyed(
104 content::BrowserContext* context) { 104 content::BrowserContext* context) {
105 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context)); 105 ConnectorMap::iterator it = connectors_.find(static_cast<Profile*>(context));
106 if (it != connectors_.end()) 106 if (it != connectors_.end())
107 connectors_.erase(it); 107 connectors_.erase(it);
108 BrowserContextKeyedBaseFactory::BrowserContextDestroyed(context); 108 BrowserContextKeyedBaseFactory::BrowserContextDestroyed(context);
109 } 109 }
110 110
111 void ProfilePolicyConnectorFactory::RegisterUserPrefs( 111 void ProfilePolicyConnectorFactory::RegisterProfilePrefs(
112 user_prefs::PrefRegistrySyncable* registry) { 112 user_prefs::PrefRegistrySyncable* registry) {
113 #if defined(OS_CHROMEOS) 113 #if defined(OS_CHROMEOS)
114 registry->RegisterBooleanPref( 114 registry->RegisterBooleanPref(
115 prefs::kUsedPolicyCertificatesOnce, 115 prefs::kUsedPolicyCertificatesOnce,
116 false, 116 false,
117 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 117 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
118 #endif 118 #endif
119 } 119 }
120 120
121 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory( 121 void ProfilePolicyConnectorFactory::SetEmptyTestingFactory(
122 content::BrowserContext* context) {} 122 content::BrowserContext* context) {}
123 123
124 void ProfilePolicyConnectorFactory::CreateServiceNow( 124 void ProfilePolicyConnectorFactory::CreateServiceNow(
125 content::BrowserContext* context) {} 125 content::BrowserContext* context) {}
126 126
127 } // namespace policy 127 } // 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