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

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_factory.h

Issue 2743463002: WIP: Pref service user prefs. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « chrome/browser/prefs/DEPS ('k') | chrome/browser/prefs/chrome_pref_service_factory.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 std::unique_ptr<PrefService> CreateLocalState( 76 std::unique_ptr<PrefService> CreateLocalState(
77 const base::FilePath& pref_filename, 77 const base::FilePath& pref_filename,
78 base::SequencedTaskRunner* pref_io_task_runner, 78 base::SequencedTaskRunner* pref_io_task_runner,
79 policy::PolicyService* policy_service, 79 policy::PolicyService* policy_service,
80 const scoped_refptr<PrefRegistry>& pref_registry, 80 const scoped_refptr<PrefRegistry>& pref_registry,
81 bool async); 81 bool async);
82 82
83 std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs( 83 std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs(
84 const base::FilePath& pref_filename, 84 const base::FilePath& pref_filename,
85 base::SequencedTaskRunner* pref_io_task_runner, 85 base::SequencedTaskRunner* pref_io_task_runner,
86 prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate, 86 std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>*
87 validation_delegate,
87 policy::PolicyService* policy_service, 88 policy::PolicyService* policy_service,
88 SupervisedUserSettingsService* supervised_user_settings, 89 SupervisedUserSettingsService* supervised_user_settings,
89 const scoped_refptr<PrefStore>& extension_prefs, 90 const scoped_refptr<PrefStore>& extension_prefs,
90 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, 91 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry,
91 bool async, 92 bool async,
92 service_manager::Connector* connector); 93 service_manager::Connector* connector);
93 94
94 // Call before startup tasks kick in to ignore the presence of a domain when 95 // Call before startup tasks kick in to ignore the presence of a domain when
95 // determining the active SettingsEnforcement group. For testing only. 96 // determining the active SettingsEnforcement group. For testing only.
96 void DisableDomainCheckForTesting(); 97 void DisableDomainCheckForTesting();
(...skipping 11 matching lines...) Expand all
108 // Clears the time of the last preference reset event, if any, for the provided 109 // Clears the time of the last preference reset event, if any, for the provided
109 // profile. 110 // profile.
110 void ClearResetTime(Profile* profile); 111 void ClearResetTime(Profile* profile);
111 112
112 // Register user prefs used by chrome preference system. 113 // Register user prefs used by chrome preference system.
113 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 114 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
114 115
115 } // namespace chrome_prefs 116 } // namespace chrome_prefs
116 117
117 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 118 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/DEPS ('k') | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698