Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: components/signin/core/common/signin_pref_names.cc

Issue 964563002: Replace SetAuthenticatedUsername with SetAuthenticatedAccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@priv
Patch Set: rebased Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/signin/core/common/signin_pref_names.h" 5 #include "components/signin/core/common/signin_pref_names.h"
6 6
7 namespace prefs { 7 namespace prefs {
8 8
9 // An integer property indicating the state of account id migration from 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 10 // email to gaia id for the the profile. See account_tracker_service.h
11 // for possible values. 11 // for possible values.
12 const char kAccountIdMigrationState[] = "account_id_migration_state"; 12 const char kAccountIdMigrationState[] = "account_id_migration_state";
13 13
14 // Boolean identifying whether reverse auto-login is enabled. 14 // Boolean identifying whether reverse auto-login is enabled.
15 const char kAutologinEnabled[] = "autologin.enabled"; 15 const char kAutologinEnabled[] = "autologin.enabled";
16 16
17
17 // The profile's hosted domain; empty if unset; 18 // The profile's hosted domain; empty if unset;
18 // AccountTrackerService::kNoHostedDomainFound if there is none. 19 // AccountTrackerService::kNoHostedDomainFound if there is none.
20
21 const char kGoogleServicesAccountId[] = "google.services.account_id";
22
23 // The profile's hosted domain; empty if unset; Profile::kNoHostedDomainFound
24 // if there is none.
19 const char kGoogleServicesHostedDomain[] = "google.services.hosted_domain"; 25 const char kGoogleServicesHostedDomain[] = "google.services.hosted_domain";
20 26
21 // String the identifies the last user that logged into sync and other 27 // String the identifies the last user that logged into sync and other
22 // google services. As opposed to kGoogleServicesUsername, this value is not 28 // google services. As opposed to kGoogleServicesUsername, this value is not
23 // cleared on signout, but while the user is signed in the two values will 29 // cleared on signout, but while the user is signed in the two values will
24 // be the same. 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.
25 const char kGoogleServicesLastUsername[] = "google.services.last_username"; 34 const char kGoogleServicesLastUsername[] = "google.services.last_username";
26 35
27 // Int64 as time from epoch of when next RefreshTokenAnnotationRequest should be 36 // Int64 as time from epoch of when next RefreshTokenAnnotationRequest should be
28 // sent. 37 // sent.
29 const char kGoogleServicesRefreshTokenAnnotateScheduledTime[] = 38 const char kGoogleServicesRefreshTokenAnnotateScheduledTime[] =
30 "google.services.refresh_token_annotate_scheduled_time"; 39 "google.services.refresh_token_annotate_scheduled_time";
31 40
32 // Device id scoped to single signin. This device id will be regenerated if user 41 // Device id scoped to single signin. This device id will be regenerated if user
33 // signs out and signs back in. When refresh token is requested for this user it 42 // signs out and signs back in. When refresh token is requested for this user it
34 // will be annotated with this device id. 43 // will be annotated with this device id.
35 const char kGoogleServicesSigninScopedDeviceId[] = 44 const char kGoogleServicesSigninScopedDeviceId[] =
36 "google.services.signin_scoped_device_id"; 45 "google.services.signin_scoped_device_id";
37 46
38 // Obfuscated account ID that identifies the current user logged into sync and 47 // Obfuscated account ID that identifies the current user logged into sync and
39 // other google services. 48 // other google services.
40 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id"; 49 const char kGoogleServicesUserAccountId[] = "google.services.user_account_id";
41 50
42 // String that identifies the current user logged into sync and other google 51 // String that identifies the current user logged into sync and other google
43 // services. 52 // services.
53 // DEPRECATED.
44 const char kGoogleServicesUsername[] = "google.services.username"; 54 const char kGoogleServicesUsername[] = "google.services.username";
45 55
46 // Local state pref containing a string regex that restricts which accounts 56 // Local state pref containing a string regex that restricts which accounts
47 // can be used to log in to chrome (e.g. "*@google.com"). If missing or blank, 57 // can be used to log in to chrome (e.g. "*@google.com"). If missing or blank,
48 // all accounts are allowed (no restrictions). 58 // all accounts are allowed (no restrictions).
49 const char kGoogleServicesUsernamePattern[] = 59 const char kGoogleServicesUsernamePattern[] =
50 "google.services.username_pattern"; 60 "google.services.username_pattern";
51 61
52 // Boolean identifying whether reverse auto-logins is enabled. 62 // Boolean identifying whether reverse auto-logins is enabled.
53 const char kReverseAutologinEnabled[] = "reverse_autologin.enabled"; 63 const char kReverseAutologinEnabled[] = "reverse_autologin.enabled";
(...skipping 14 matching lines...) Expand all
68 // accounts. 78 // accounts.
69 const char kTokenServiceExcludeAllSecondaryAccounts[] = 79 const char kTokenServiceExcludeAllSecondaryAccounts[] =
70 "token_service.exclude_all_secondary_accounts"; 80 "token_service.exclude_all_secondary_accounts";
71 81
72 // List that identifies the account id that should be ignored by the token 82 // List that identifies the account id that should be ignored by the token
73 // service. 83 // service.
74 const char kTokenServiceExcludedSecondaryAccounts[] = 84 const char kTokenServiceExcludedSecondaryAccounts[] =
75 "token_service.excluded_secondary_accounts"; 85 "token_service.excluded_secondary_accounts";
76 86
77 } // namespace prefs 87 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698