OLD | NEW |
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 "components/signin/core/common/signin_pref_names.h" | 5 #include "components/signin/core/common/signin_pref_names.h" |
6 | 6 |
7 namespace prefs { | 7 namespace prefs { |
8 | 8 |
9 // String the identifies the last user that logged into sync and other | 9 // String the identifies the last user that logged into sync and other |
10 // google services. As opposed to kGoogleServicesUsername, this value is not | 10 // google services. As opposed to kGoogleServicesUsername, this value is not |
11 // cleared on signout, but while the user is signed in the two values will | 11 // cleared on signout, but while the user is signed in the two values will |
12 // be the same. | 12 // be the same. |
13 const char kGoogleServicesLastUsername[] = "google.services.last_username"; | 13 const char kGoogleServicesLastUsername[] = "google.services.last_username"; |
14 | 14 |
15 // Obfuscated account ID that identifies the current user logged into sync and | 15 // Obfuscated account ID that identifies the current user logged into sync and |
16 // other google services. | 16 // other google services. |
17 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; | 17 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; |
18 | 18 |
19 // String that identifies the current user logged into sync and other google | 19 // String that identifies the current user logged into sync and other google |
20 // services. | 20 // services. |
21 const char kGoogleServicesUsername[] = "google.services.username"; | 21 const char kGoogleServicesUsername[] = "google.services.username"; |
22 | 22 |
| 23 // Local state pref containing a string regex that restricts which accounts |
| 24 // can be used to log in to chrome (e.g. "*@google.com"). If missing or blank, |
| 25 // all accounts are allowed (no restrictions). |
| 26 const char kGoogleServicesUsernamePattern[] = |
| 27 "google.services.username_pattern"; |
| 28 |
23 // Boolean which stores if the user is allowed to signin to chrome. | 29 // Boolean which stores if the user is allowed to signin to chrome. |
24 const char kSigninAllowed[] = "signin.allowed"; | 30 const char kSigninAllowed[] = "signin.allowed"; |
25 | 31 |
26 } // namespace prefs | 32 } // namespace prefs |
OLD | NEW |