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
3 // found in the LICENSE file.
5 #include "components/signin/core/common/signin_pref_names.h"
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
11 // for possible values.
12 const char kAccountIdMigrationState
[] = "account_id_migration_state";
14 // Boolean identifying whether reverse auto-login is enabled.
15 const char kAutologinEnabled
[] = "autologin.enabled";
17 // The profile's hosted domain; empty if unset;
18 // AccountTrackerService::kNoHostedDomainFound if there is none.
19 const char kGoogleServicesHostedDomain
[] = "google.services.hosted_domain";
21 // String the identifies the last user that logged into sync and other
22 // 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
25 const char kGoogleServicesLastUsername
[] = "google.services.last_username";
27 // Int64 as time from epoch of when next RefreshTokenAnnotationRequest should be
29 const char kGoogleServicesRefreshTokenAnnotateScheduledTime
[] =
30 "google.services.refresh_token_annotate_scheduled_time";
32 // 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
34 // will be annotated with this device id.
35 const char kGoogleServicesSigninScopedDeviceId
[] =
36 "google.services.signin_scoped_device_id";
38 // Obfuscated account ID that identifies the current user logged into sync and
39 // other google services.
40 const char kGoogleServicesUserAccountId
[] = "google.services.user_account_id";
42 // String that identifies the current user logged into sync and other google
44 const char kGoogleServicesUsername
[] = "google.services.username";
46 // 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,
48 // all accounts are allowed (no restrictions).
49 const char kGoogleServicesUsernamePattern
[] =
50 "google.services.username_pattern";
52 // Boolean identifying whether reverse auto-logins is enabled.
53 const char kReverseAutologinEnabled
[] = "reverse_autologin.enabled";
55 // List to keep track of emails for which the user has rejected one-click
57 const char kReverseAutologinRejectedEmailList
[] =
58 "reverse_autologin.rejected_email_list";
60 // Int64 which tracks, as time from epoch, when last time the user signed in
62 const char kSignedInTime
[] = "signin.signedin_time";
64 // Boolean which stores if the user is allowed to signin to chrome.
65 const char kSigninAllowed
[] = "signin.allowed";
67 // Boolean which stores if the OAuth2TokenService should ignore secondary
69 const char kTokenServiceExcludeAllSecondaryAccounts
[] =
70 "token_service.exclude_all_secondary_accounts";
72 // List that identifies the account id that should be ignored by the token
74 const char kTokenServiceExcludedSecondaryAccounts
[] =
75 "token_service.excluded_secondary_accounts";