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

Side by Side Diff: chrome/browser/chromeos/policy/policy_cert_service_factory.cc

Issue 271793003: components: Extract pref_registry component out of user_prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/chromeos/policy/policy_cert_service_factory.h" 5 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "base/prefs/pref_registry_simple.h" 8 #include "base/prefs/pref_registry_simple.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/prefs/scoped_user_pref_update.h" 10 #include "base/prefs/scoped_user_pref_update.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/chromeos/login/user_manager.h" 12 #include "chrome/browser/chromeos/login/user_manager.h"
13 #include "chrome/browser/chromeos/policy/policy_cert_service.h" 13 #include "chrome/browser/chromeos/policy/policy_cert_service.h"
14 #include "chrome/browser/chromeos/policy/policy_cert_verifier.h" 14 #include "chrome/browser/chromeos/policy/policy_cert_verifier.h"
15 #include "chrome/browser/chromeos/policy/user_network_configuration_updater_fact ory.h" 15 #include "chrome/browser/chromeos/policy/user_network_configuration_updater_fact ory.h"
16 #include "chrome/browser/lifetime/application_lifetime.h" 16 #include "chrome/browser/lifetime/application_lifetime.h"
17 #include "chrome/browser/profiles/incognito_helpers.h" 17 #include "chrome/browser/profiles/incognito_helpers.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "components/keyed_service/content/browser_context_dependency_manager.h" 20 #include "components/keyed_service/content/browser_context_dependency_manager.h"
21 #include "components/user_prefs/pref_registry_syncable.h" 21 #include "components/pref_registry/pref_registry_syncable.h"
22 22
23 namespace policy { 23 namespace policy {
24 24
25 // static 25 // static
26 PolicyCertService* PolicyCertServiceFactory::GetForProfile(Profile* profile) { 26 PolicyCertService* PolicyCertServiceFactory::GetForProfile(Profile* profile) {
27 return static_cast<PolicyCertService*>( 27 return static_cast<PolicyCertService*>(
28 GetInstance()->GetServiceForBrowserContext(profile, false)); 28 GetInstance()->GetServiceForBrowserContext(profile, false));
29 } 29 }
30 30
31 // static 31 // static
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 prefs::kUsedPolicyCertificatesOnce, 142 prefs::kUsedPolicyCertificatesOnce,
143 false, 143 false,
144 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 144 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
145 } 145 }
146 146
147 bool PolicyCertServiceFactory::ServiceIsNULLWhileTesting() const { 147 bool PolicyCertServiceFactory::ServiceIsNULLWhileTesting() const {
148 return true; 148 return true;
149 } 149 }
150 150
151 } // namespace policy 151 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698