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

Side by Side Diff: chrome/browser/chromeos/login/users/multi_profile_user_controller.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/login/users/multi_profile_user_controller.h" 5 #include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/prefs/pref_change_registrar.h" 9 #include "base/prefs/pref_change_registrar.h"
10 #include "base/prefs/pref_registry_simple.h" 10 #include "base/prefs/pref_registry_simple.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // static 67 // static
68 void MultiProfileUserController::RegisterPrefs( 68 void MultiProfileUserController::RegisterPrefs(
69 PrefRegistrySimple* registry) { 69 PrefRegistrySimple* registry) {
70 registry->RegisterDictionaryPref(prefs::kCachedMultiProfileUserBehavior); 70 registry->RegisterDictionaryPref(prefs::kCachedMultiProfileUserBehavior);
71 } 71 }
72 72
73 // static 73 // static
74 void MultiProfileUserController::RegisterProfilePrefs( 74 void MultiProfileUserController::RegisterProfilePrefs(
75 user_prefs::PrefRegistrySyncable* registry) { 75 user_prefs::PrefRegistrySyncable* registry) {
76 registry->RegisterStringPref( 76 registry->RegisterStringPref(prefs::kMultiProfileUserBehavior,
77 prefs::kMultiProfileUserBehavior, 77 kBehaviorUnrestricted);
78 kBehaviorUnrestricted,
79 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
80 registry->RegisterBooleanPref( 78 registry->RegisterBooleanPref(
81 prefs::kMultiProfileNeverShowIntro, 79 prefs::kMultiProfileNeverShowIntro,
82 false, 80 false,
83 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 81 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
84 registry->RegisterBooleanPref( 82 registry->RegisterBooleanPref(
85 prefs::kMultiProfileWarningShowDismissed, 83 prefs::kMultiProfileWarningShowDismissed,
86 false, 84 false,
87 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 85 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
88 } 86 }
89 87
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } else { 231 } else {
234 const std::string behavior = 232 const std::string behavior =
235 prefs->GetString(prefs::kMultiProfileUserBehavior); 233 prefs->GetString(prefs::kMultiProfileUserBehavior);
236 SetCachedValue(user_email, behavior); 234 SetCachedValue(user_email, behavior);
237 } 235 }
238 236
239 CheckSessionUsers(); 237 CheckSessionUsers();
240 } 238 }
241 239
242 } // namespace chromeos 240 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.cc ('k') | chrome/browser/chromeos/net/proxy_config_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698