signin_pref_names.cc revision effb81e5f8246d0db0270817048dc992db66e9fb
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// String the identifies the last user that logged into sync and other 10// google services. As opposed to kGoogleServicesUsername, this value is not 11// cleared on signout, but while the user is signed in the two values will 12// be the same. 13const char kGoogleServicesLastUsername[] = "google.services.last_username"; 14 15// Obfuscated account ID that identifies the current user logged into sync and 16// other google services. 17const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; 18 19// String that identifies the current user logged into sync and other google 20// services. 21const char kGoogleServicesUsername[] = "google.services.username"; 22 23// Local state pref containing a string regex that restricts which accounts 24// can be used to log in to chrome (e.g. "*@google.com"). If missing or blank, 25// all accounts are allowed (no restrictions). 26const char kGoogleServicesUsernamePattern[] = 27 "google.services.username_pattern"; 28 29// Boolean which stores if the user is allowed to signin to chrome. 30const char kSigninAllowed[] = "signin.allowed"; 31 32} // namespace prefs 33