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 // An integer property indicating the state of account id migration from | 9 // An integer property indicating the state of account id migration from |
10 // email to gaia id for the the profile. See account_tracker_service.h | 10 // email to gaia id for the the profile. See account_tracker_service.h |
11 // for possible values. | 11 // for possible values. |
12 const char kAccountIdMigrationState[] = "account_id_migration_state"; | 12 const char kAccountIdMigrationState[] = "account_id_migration_state"; |
13 | 13 |
14 // Boolean identifying whether reverse auto-login is enabled. | 14 // Boolean identifying whether reverse auto-login is enabled. |
15 const char kAutologinEnabled[] = "autologin.enabled"; | 15 const char kAutologinEnabled[] = "autologin.enabled"; |
16 | 16 |
| 17 |
17 // The profile's hosted domain; empty if unset; | 18 // The profile's hosted domain; empty if unset; |
18 // AccountTrackerService::kNoHostedDomainFound if there is none. | 19 // AccountTrackerService::kNoHostedDomainFound if there is none. |
| 20 |
| 21 const char kGoogleServicesAccountId[] = "google.services.account_id"; |
| 22 |
| 23 // The profile's hosted domain; empty if unset; Profile::kNoHostedDomainFound |
| 24 // if there is none. |
19 const char kGoogleServicesHostedDomain[] = "google.services.hosted_domain"; | 25 const char kGoogleServicesHostedDomain[] = "google.services.hosted_domain"; |
20 | 26 |
21 // String the identifies the last user that logged into sync and other | 27 // String the identifies the last user that logged into sync and other |
22 // google services. As opposed to kGoogleServicesUsername, this value is not | 28 // google services. As opposed to kGoogleServicesUsername, this value is not |
23 // cleared on signout, but while the user is signed in the two values will | 29 // cleared on signout, but while the user is signed in the two values will |
24 // be the same. | 30 // be the same. |
| 31 const char kGoogleServicesLastAccountId[] = "google.services.last_account_id"; |
| 32 |
| 33 // String the identifies the last user that logged into sync and other |
| 34 // google services. As opposed to kGoogleServicesUsername, this value is not |
| 35 // cleared on signout, but while the user is signed in the two values will |
| 36 // be the same. This pref remains in order to pre-fill the sign in page when |
| 37 // reconnecting a profile, but programmatic checks to see if a given account |
| 38 // is the same as the last account should use kGoogleServicesLastAccountId |
| 39 // instead. |
25 const char kGoogleServicesLastUsername[] = "google.services.last_username"; | 40 const char kGoogleServicesLastUsername[] = "google.services.last_username"; |
26 | 41 |
27 // Int64 as time from epoch of when next RefreshTokenAnnotationRequest should be | 42 // Int64 as time from epoch of when next RefreshTokenAnnotationRequest should be |
28 // sent. | 43 // sent. |
29 const char kGoogleServicesRefreshTokenAnnotateScheduledTime[] = | 44 const char kGoogleServicesRefreshTokenAnnotateScheduledTime[] = |
30 "google.services.refresh_token_annotate_scheduled_time"; | 45 "google.services.refresh_token_annotate_scheduled_time"; |
31 | 46 |
32 // Device id scoped to single signin. This device id will be regenerated if user | 47 // Device id scoped to single signin. This device id will be regenerated if user |
33 // signs out and signs back in. When refresh token is requested for this user it | 48 // signs out and signs back in. When refresh token is requested for this user it |
34 // will be annotated with this device id. | 49 // will be annotated with this device id. |
35 const char kGoogleServicesSigninScopedDeviceId[] = | 50 const char kGoogleServicesSigninScopedDeviceId[] = |
36 "google.services.signin_scoped_device_id"; | 51 "google.services.signin_scoped_device_id"; |
37 | 52 |
38 // Obfuscated account ID that identifies the current user logged into sync and | 53 // Obfuscated account ID that identifies the current user logged into sync and |
39 // other google services. | 54 // other google services. |
40 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; | 55 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; |
41 | 56 |
42 // String that identifies the current user logged into sync and other google | 57 // String that identifies the current user logged into sync and other google |
43 // services. | 58 // services. |
| 59 // DEPRECATED. |
44 const char kGoogleServicesUsername[] = "google.services.username"; | 60 const char kGoogleServicesUsername[] = "google.services.username"; |
45 | 61 |
46 // Local state pref containing a string regex that restricts which accounts | 62 // Local state pref containing a string regex that restricts which accounts |
47 // can be used to log in to chrome (e.g. "*@google.com"). If missing or blank, | 63 // can be used to log in to chrome (e.g. "*@google.com"). If missing or blank, |
48 // all accounts are allowed (no restrictions). | 64 // all accounts are allowed (no restrictions). |
49 const char kGoogleServicesUsernamePattern[] = | 65 const char kGoogleServicesUsernamePattern[] = |
50 "google.services.username_pattern"; | 66 "google.services.username_pattern"; |
51 | 67 |
52 // Boolean identifying whether reverse auto-logins is enabled. | 68 // Boolean identifying whether reverse auto-logins is enabled. |
53 const char kReverseAutologinEnabled[] = "reverse_autologin.enabled"; | 69 const char kReverseAutologinEnabled[] = "reverse_autologin.enabled"; |
(...skipping 14 matching lines...) Expand all Loading... |
68 // accounts. | 84 // accounts. |
69 const char kTokenServiceExcludeAllSecondaryAccounts[] = | 85 const char kTokenServiceExcludeAllSecondaryAccounts[] = |
70 "token_service.exclude_all_secondary_accounts"; | 86 "token_service.exclude_all_secondary_accounts"; |
71 | 87 |
72 // List that identifies the account id that should be ignored by the token | 88 // List that identifies the account id that should be ignored by the token |
73 // service. | 89 // service. |
74 const char kTokenServiceExcludedSecondaryAccounts[] = | 90 const char kTokenServiceExcludedSecondaryAccounts[] = |
75 "token_service.excluded_secondary_accounts"; | 91 "token_service.excluded_secondary_accounts"; |
76 | 92 |
77 } // namespace prefs | 93 } // namespace prefs |
OLD | NEW |