signin_pref_names.cc revision 6e8cce623b6e4fe0c9e4af605d675dd9d0338c38
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.
4
5#include "components/signin/core/common/signin_pref_names.h"
6
7namespace prefs {
8
9// Boolean identifying whether reverse auto-login is enabled.
10const char kAutologinEnabled[] = "autologin.enabled";
11
12// String the identifies the last user that logged into sync and other
13// google services. As opposed to kGoogleServicesUsername, this value is not
14// cleared on signout, but while the user is signed in the two values will
15// be the same.
16const char kGoogleServicesLastUsername[] = "google.services.last_username";
17
18// Obfuscated account ID that identifies the current user logged into sync and
19// other google services.
20const char kGoogleServicesUserAccountId[] = "google.services.user_account_id";
21
22// String that identifies the current user logged into sync and other google
23// services.
24const char kGoogleServicesUsername[] = "google.services.username";
25
26// Device id scoped to single signin. This device id will be regenerated if user
27// signs out and signs back in. When refresh token is requested for this user it
28// will be annotated with this device id.
29const char kGoogleServicesSigninScopedDeviceId[] =
30    "google.services.signin_scoped_device_id";
31
32// Local state pref containing a string regex that restricts which accounts
33// can be used to log in to chrome (e.g. "*@google.com"). If missing or blank,
34// all accounts are allowed (no restrictions).
35const char kGoogleServicesUsernamePattern[] =
36    "google.services.username_pattern";
37
38// Boolean identifying whether reverse auto-logins is enabled.
39const char kReverseAutologinEnabled[] = "reverse_autologin.enabled";
40
41// List to keep track of emails for which the user has rejected one-click
42// sign-in.
43const char kReverseAutologinRejectedEmailList[] =
44    "reverse_autologin.rejected_email_list";
45
46// Int64 which tracks, as time from epoch, when last time the user signed in
47// to the browser.
48const char kSignedInTime[] = "signin.signedin_time";
49
50// Boolean which stores if the user is allowed to signin to chrome.
51const char kSigninAllowed[] = "signin.allowed";
52
53}  // namespace prefs
54