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

Unified Diff: chrome/browser/chromeos/login/reauth_stats.h

Issue 1114543002: UMA to track the reason for re-auth (draft). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename histogram. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/reauth_stats.h
diff --git a/chrome/browser/chromeos/login/reauth_stats.h b/chrome/browser/chromeos/login/reauth_stats.h
new file mode 100644
index 0000000000000000000000000000000000000000..c05e8cb0b477996f9bc15d60925dbd547cb02662
--- /dev/null
+++ b/chrome/browser/chromeos/login/reauth_stats.h
@@ -0,0 +1,47 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_REAUTH_STATS_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_REAUTH_STATS_H_
+
+#include <string>
+
+namespace chromeos {
+
+// 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.
+enum ReauthReason {
+ // Default value: no reauth reasons were detected so far, or the reason was
+ // already reported.
+ NONE = 0,
+ // 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.
+ 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.
+ // Incorrect password entered 3 times at the user pod.
+ INCORRECT_PASSWORD_ENTERED,
+ // Incorrect password entered by a SAML user once.
+ // OS would show a tooltip offering user to complete the online sign-in.
+ INCORRECT_SAML_PASSWORD_ENTERED,
+ // Device policy is set not to show user pods, which requires re-auth on every
+ // login.
+ SAML_REAUTH_POLICY,
+ // Cryptohome is missing, most likely due to deletion during garbage
+ // collection.
+ MISSING_CRYPTOHOME,
+ // During last login OS failed to connect to the sync with the existing RT.
+ // This could be due to account deleted, password changed, account revoked,
+ // etc.
+ SYNC_FAILED,
+ // User cancelled the password change prompt when prompted by Chrome OS.
+ PASSWORD_UPDATE_SKIPPED,
+ // Legacy profile holders.
+ 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.
+ // Must be the last value in this list.
+ NUM_REAUTH_FLOW_REASONS,
+};
+
+void RecordReauthReason(const std::string& user_id, ReauthReason reason);
+void SendReauthReason(const std::string& user_id);
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_REAUTH_STATS_H_

Powered by Google App Engine
This is Rietveld 408576698