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

Unified Diff: chrome/browser/profiles/profiles_state.cc

Issue 518063002: Settings to control Add Person and Browse as Guest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Completely move prefs Created 6 years, 3 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
Index: chrome/browser/profiles/profiles_state.cc
diff --git a/chrome/browser/profiles/profiles_state.cc b/chrome/browser/profiles/profiles_state.cc
index 03fa429d80955faee1955633cabad9595b3f34c4..068ddff1a6900fd5b2c3545adc939ed8c9e61c54 100644
--- a/chrome/browser/profiles/profiles_state.cc
+++ b/chrome/browser/profiles/profiles_state.cc
@@ -41,9 +41,14 @@ base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir) {
}
void RegisterPrefs(PrefRegistrySimple* registry) {
+ // Preferences about global profile information.
registry->RegisterStringPref(prefs::kProfileLastUsed, std::string());
registry->RegisterIntegerPref(prefs::kProfilesNumCreated, 1);
registry->RegisterListPref(prefs::kProfilesLastActive);
+
+ // Preferences about the user manager.
+ registry->RegisterBooleanPref(prefs::kBrowserGuestModeEnabled, true);
+ registry->RegisterBooleanPref(prefs::kBrowserAddPersonEnabled, true);
}
base::string16 GetAvatarNameForProfile(const base::FilePath& profile_path) {

Powered by Google App Engine
This is Rietveld 408576698