Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / signin / core / common / signin_pref_names.cc
blob38496dcbaff9054f262d5f231e631e058f5d0a97
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"
7 namespace prefs {
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";
18 // The profile's hosted domain; empty if unset;
19 // AccountTrackerService::kNoHostedDomainFound if there is none.
21 const char kGoogleServicesAccountId[] = "google.services.account_id";
23 // The profile's hosted domain; empty if unset; Profile::kNoHostedDomainFound
24 // if there is none.
25 const char kGoogleServicesHostedDomain[] = "google.services.hosted_domain";
27 // String the identifies the last user that logged into sync and other
28 // google services. As opposed to kGoogleServicesUsername, this value is not
29 // cleared on signout, but while the user is signed in the two values will
30 // be the same. This pref remains in order to pre-fill the sign in page when
31 // reconnecting a profile, but programmatic checks to see if a given account
32 // is the same as the last account should use kGoogleServicesLastAccountId
33 // instead.
34 const char kGoogleServicesLastUsername[] = "google.services.last_username";
36 // Int64 as time from epoch of when next RefreshTokenAnnotationRequest should be
37 // sent.
38 const char kGoogleServicesRefreshTokenAnnotateScheduledTime[] =
39 "google.services.refresh_token_annotate_scheduled_time";
41 // Device id scoped to single signin. This device id will be regenerated if user
42 // signs out and signs back in. When refresh token is requested for this user it
43 // will be annotated with this device id.
44 const char kGoogleServicesSigninScopedDeviceId[] =
45 "google.services.signin_scoped_device_id";
47 // Obfuscated account ID that identifies the current user logged into sync and
48 // other google services.
49 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id";
51 // String that identifies the current user logged into sync and other google
52 // services.
53 // DEPRECATED.
54 const char kGoogleServicesUsername[] = "google.services.username";
56 // Local state pref containing a string regex that restricts which accounts
57 // can be used to log in to chrome (e.g. "*@google.com"). If missing or blank,
58 // all accounts are allowed (no restrictions).
59 const char kGoogleServicesUsernamePattern[] =
60 "google.services.username_pattern";
62 // Boolean identifying whether reverse auto-logins is enabled.
63 const char kReverseAutologinEnabled[] = "reverse_autologin.enabled";
65 // List to keep track of emails for which the user has rejected one-click
66 // sign-in.
67 const char kReverseAutologinRejectedEmailList[] =
68 "reverse_autologin.rejected_email_list";
70 // Int64 which tracks, as time from epoch, when last time the user signed in
71 // to the browser.
72 const char kSignedInTime[] = "signin.signedin_time";
74 // Boolean which stores if the user is allowed to signin to chrome.
75 const char kSigninAllowed[] = "signin.allowed";
77 // Boolean which stores if the OAuth2TokenService should ignore secondary
78 // accounts.
79 const char kTokenServiceExcludeAllSecondaryAccounts[] =
80 "token_service.exclude_all_secondary_accounts";
82 // List that identifies the account id that should be ignored by the token
83 // service.
84 const char kTokenServiceExcludedSecondaryAccounts[] =
85 "token_service.excluded_secondary_accounts";
87 } // namespace prefs