OLD | NEW |
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/profiles/profiles_state.h" | 5 #include "chrome/browser/profiles/profiles_state.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 void RegisterPrefs(PrefRegistrySimple* registry) { | 53 void RegisterPrefs(PrefRegistrySimple* registry) { |
54 // Preferences about global profile information. | 54 // Preferences about global profile information. |
55 registry->RegisterStringPref(prefs::kProfileLastUsed, std::string()); | 55 registry->RegisterStringPref(prefs::kProfileLastUsed, std::string()); |
56 registry->RegisterIntegerPref(prefs::kProfilesNumCreated, 1); | 56 registry->RegisterIntegerPref(prefs::kProfilesNumCreated, 1); |
57 registry->RegisterListPref(prefs::kProfilesLastActive); | 57 registry->RegisterListPref(prefs::kProfilesLastActive); |
58 | 58 |
59 // Preferences about the user manager. | 59 // Preferences about the user manager. |
60 registry->RegisterBooleanPref(prefs::kBrowserGuestModeEnabled, true); | 60 registry->RegisterBooleanPref(prefs::kBrowserGuestModeEnabled, true); |
61 registry->RegisterBooleanPref(prefs::kBrowserAddPersonEnabled, true); | 61 registry->RegisterBooleanPref(prefs::kBrowserAddPersonEnabled, true); |
| 62 registry->RegisterBooleanPref(prefs::kForceBrowserSignin, false); |
62 | 63 |
63 registry->RegisterBooleanPref( | 64 registry->RegisterBooleanPref( |
64 prefs::kProfileAvatarRightClickTutorialDismissed, false); | 65 prefs::kProfileAvatarRightClickTutorialDismissed, false); |
65 } | 66 } |
66 | 67 |
67 base::string16 GetAvatarNameForProfile(const base::FilePath& profile_path) { | 68 base::string16 GetAvatarNameForProfile(const base::FilePath& profile_path) { |
68 base::string16 display_name; | 69 base::string16 display_name; |
69 | 70 |
70 if (profile_path == ProfileManager::GetGuestProfilePath()) { | 71 if (profile_path == ProfileManager::GetGuestProfilePath()) { |
71 display_name = l10n_util::GetStringUTF16(IDS_GUEST_PROFILE_NAME); | 72 display_name = l10n_util::GetStringUTF16(IDS_GUEST_PROFILE_NAME); |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 at_least_one_regular_profile_present = true; | 272 at_least_one_regular_profile_present = true; |
272 | 273 |
273 if (!entry->IsSigninRequired()) | 274 if (!entry->IsSigninRequired()) |
274 return false; | 275 return false; |
275 } | 276 } |
276 } | 277 } |
277 return at_least_one_regular_profile_present; | 278 return at_least_one_regular_profile_present; |
278 } | 279 } |
279 | 280 |
280 } // namespace profiles | 281 } // namespace profiles |
OLD | NEW |