Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_REAUTH_STATS_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_REAUTH_STATS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 // Track all the ways a user may be sent through the re-auth flow. | |
|
Ilya Sherman
2015/04/28 20:07:18
Please document that this enum is used to back a h
Ivan Podogov
2015/04/29 10:34:24
Done.
| |
| 13 enum ReauthReason { | |
| 14 // Default value: no reauth reasons were detected so far, or the reason was | |
| 15 // already reported. | |
| 16 NONE = 0, | |
| 17 // Password changed, revoked credentials, account deleted. | |
|
Nikita (slow)
2015/04/29 09:21:46
nit: insert empty line before comment here and bel
Ivan Podogov
2015/04/29 10:34:24
Done.
| |
| 18 INVALID_TOKEN_HANDLE, | |
|
Nikita (slow)
2015/04/29 09:21:46
Set explicit int value for each of these enum cons
Ivan Podogov
2015/04/29 10:34:24
Done.
| |
| 19 // Incorrect password entered 3 times at the user pod. | |
| 20 INCORRECT_PASSWORD_ENTERED, | |
| 21 // Incorrect password entered by a SAML user once. | |
| 22 // OS would show a tooltip offering user to complete the online sign-in. | |
| 23 INCORRECT_SAML_PASSWORD_ENTERED, | |
| 24 // Device policy is set not to show user pods, which requires re-auth on every | |
| 25 // login. | |
| 26 SAML_REAUTH_POLICY, | |
| 27 // Cryptohome is missing, most likely due to deletion during garbage | |
| 28 // collection. | |
| 29 MISSING_CRYPTOHOME, | |
| 30 // During last login OS failed to connect to the sync with the existing RT. | |
| 31 // This could be due to account deleted, password changed, account revoked, | |
| 32 // etc. | |
| 33 SYNC_FAILED, | |
| 34 // User cancelled the password change prompt when prompted by Chrome OS. | |
| 35 PASSWORD_UPDATE_SKIPPED, | |
| 36 // Legacy profile holders. | |
| 37 OTHER, | |
|
Ilya Sherman
2015/04/28 20:07:18
nit: It's typically best to list "other" at the be
Ivan Podogov
2015/04/29 10:34:24
Done.
| |
| 38 // Must be the last value in this list. | |
| 39 NUM_REAUTH_FLOW_REASONS, | |
| 40 }; | |
| 41 | |
| 42 void RecordReauthReason(const std::string& user_id, ReauthReason reason); | |
| 43 void SendReauthReason(const std::string& user_id); | |
| 44 | |
| 45 } // namespace chromeos | |
| 46 | |
| 47 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_REAUTH_STATS_H_ | |
| OLD | NEW |