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

Unified Diff: chrome/browser/prefs/chrome_pref_service_factory.cc

Issue 335833003: Rename "managed (mode|user)" to "supervised user" (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (+ a few other cleanups) Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/chrome_pref_service_factory.h ('k') | chrome/browser/profiles/avatar_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/chrome_pref_service_factory.cc
diff --git a/chrome/browser/prefs/chrome_pref_service_factory.cc b/chrome/browser/prefs/chrome_pref_service_factory.cc
index 6945d9638f4ee4618258f0ead427c9f7a2832e65..951726a800f6c579a017cec2c4f13c44ac07b1ac 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.cc
+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc
@@ -54,7 +54,7 @@
#endif
#if defined(ENABLE_MANAGED_USERS)
-#include "chrome/browser/managed_mode/supervised_user_pref_store.h"
+#include "chrome/browser/supervised_user/supervised_user_pref_store.h"
#endif
#if defined(OS_WIN)
@@ -347,7 +347,7 @@ scoped_ptr<ProfilePrefStoreManager> CreateProfilePrefStoreManager(
void PrepareFactory(
PrefServiceSyncableFactory* factory,
policy::PolicyService* policy_service,
- ManagedUserSettingsService* managed_user_settings,
+ SupervisedUserSettingsService* supervised_user_settings,
scoped_refptr<PersistentPrefStore> user_pref_store,
const scoped_refptr<PrefStore>& extension_prefs,
bool async) {
@@ -366,9 +366,10 @@ void PrepareFactory(
#endif // ENABLE_CONFIGURATION_POLICY
#if defined(ENABLE_MANAGED_USERS)
- if (managed_user_settings) {
+ if (supervised_user_settings) {
factory->set_supervised_user_prefs(
- make_scoped_refptr(new SupervisedUserPrefStore(managed_user_settings)));
+ make_scoped_refptr(
+ new SupervisedUserPrefStore(supervised_user_settings)));
}
#endif
@@ -407,7 +408,7 @@ scoped_ptr<PrefService> CreateLocalState(
PrepareFactory(
&factory,
policy_service,
- NULL, // managed_user_settings
+ NULL, // supervised_user_settings
new JsonPrefStore(
pref_filename, pref_io_task_runner, scoped_ptr<PrefFilter>()),
NULL, // extension_prefs
@@ -420,7 +421,7 @@ scoped_ptr<PrefServiceSyncable> CreateProfilePrefs(
base::SequencedTaskRunner* pref_io_task_runner,
TrackedPreferenceValidationDelegate* validation_delegate,
policy::PolicyService* policy_service,
- ManagedUserSettingsService* managed_user_settings,
+ SupervisedUserSettingsService* supervised_user_settings,
const scoped_refptr<PrefStore>& extension_prefs,
const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry,
bool async) {
@@ -429,7 +430,7 @@ scoped_ptr<PrefServiceSyncable> CreateProfilePrefs(
PrepareFactory(
&factory,
policy_service,
- managed_user_settings,
+ supervised_user_settings,
scoped_refptr<PersistentPrefStore>(
CreateProfilePrefStoreManager(profile_path)->CreateProfilePrefStore(
pref_io_task_runner, validation_delegate)),
« no previous file with comments | « chrome/browser/prefs/chrome_pref_service_factory.h ('k') | chrome/browser/profiles/avatar_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698