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; Profile::kNoHostedDomainFound
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 // Obfuscated account ID that identifies the current user logged into sync and
28 // other google services.
29 const char kGoogleServicesUserAccountId
[] = "google.services.user_account_id";
31 // String that identifies the current user logged into sync and other google
33 const char kGoogleServicesUsername
[] = "google.services.username";
35 // Device id scoped to single signin. This device id will be regenerated if user
36 // signs out and signs back in. When refresh token is requested for this user it
37 // will be annotated with this device id.
38 const char kGoogleServicesSigninScopedDeviceId
[] =
39 "google.services.signin_scoped_device_id";
41 // Local state pref containing a string regex that restricts which accounts
42 // can be used to log in to chrome (e.g. "*@google.com"). If missing or blank,
43 // all accounts are allowed (no restrictions).
44 const char kGoogleServicesUsernamePattern
[] =
45 "google.services.username_pattern";
47 // Boolean identifying whether reverse auto-logins is enabled.
48 const char kReverseAutologinEnabled
[] = "reverse_autologin.enabled";
50 // List to keep track of emails for which the user has rejected one-click
52 const char kReverseAutologinRejectedEmailList
[] =
53 "reverse_autologin.rejected_email_list";
55 // Int64 which tracks, as time from epoch, when last time the user signed in
57 const char kSignedInTime
[] = "signin.signedin_time";
59 // Boolean which stores if the user is allowed to signin to chrome.
60 const char kSigninAllowed
[] = "signin.allowed";