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

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

Issue 2692163003: cros: Add enterprise user session metrics (Closed)
Patch Set: update sparse histogram comment Created 3 years, 10 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/existing_user_controller.h
diff --git a/chrome/browser/chromeos/login/existing_user_controller.h b/chrome/browser/chromeos/login/existing_user_controller.h
index ab77a45626fea18d2a5f9680234306825baa24d1..6a32f38dc573b91b98ebaf631bc5938a80317f5f 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.h
+++ b/chrome/browser/chromeos/login/existing_user_controller.h
@@ -143,6 +143,8 @@ class ExistingUserController
friend class ExistingUserControllerPublicSessionTest;
friend class MockLoginPerformerDelegate;
+ FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin);
+
void LoginAsGuest();
void LoginAsPublicSession(const UserContext& user_context);
void LoginAsKioskApp(const std::string& app_id, bool diagnostic_mode);
@@ -289,6 +291,9 @@ class ExistingUserController
// AccountId of the last login attempt.
AccountId last_login_attempt_account_id_ = EmptyAccountId();
+ // Whether the last login attempt was an auto login.
+ bool last_login_attempt_was_auto_login_ = false;
+
// OOBE/login display host.
LoginDisplayHost* host_;
@@ -370,8 +375,6 @@ class ExistingUserController
std::unique_ptr<TokenHandleUtil> token_handle_util_;
- FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin);
-
// Factory of callbacks.
base::WeakPtrFactory<ExistingUserController> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698