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