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 // Boolean identifying whether reverse auto-login is enabled. 10 const 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. 16 const char kGoogleServicesLastUsername[] = "google.services.last_username"; 17 18 // Obfuscated account ID that identifies the current user logged into sync and 19 // other google services. 20 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; 21 22 // String that identifies the current user logged into sync and other google 23 // services. 24 const char kGoogleServicesUsername[] = "google.services.username"; 25 26 // Local state pref containing a string regex that restricts which accounts 27 // can be used to log in to chrome (e.g. "*@google.com"). If missing or blank, 28 // all accounts are allowed (no restrictions). 29 const char kGoogleServicesUsernamePattern[] = 30 "google.services.username_pattern"; 31 32 // Boolean identifying whether reverse auto-logins is enabled. 33 const char kReverseAutologinEnabled[] = "reverse_autologin.enabled"; 34 35 // List to keep track of emails for which the user has rejected one-click 36 // sign-in. 37 const char kReverseAutologinRejectedEmailList[] = 38 "reverse_autologin.rejected_email_list"; 39 40 // Boolean which stores if the user is allowed to signin to chrome. 41 const char kSigninAllowed[] = "signin.allowed"; 42 43 } // namespace prefs 44