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

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

Issue 2902373002: Add Login.PromptToLoginTime UMA metric (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/existing_user_controller.cc
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
index c24adb98a5d5c9437de72c4abe6193d015ea3ea6..9a051eda58514c4bf1478935f02f9e1335c4bf70 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -517,6 +517,11 @@ void ExistingUserController::PerformLogin(
}
SendAccessibilityAlert(
l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNING_IN));
+ if (!time_init_.is_null()) {
+ base::TimeDelta delta = base::Time::Now() - time_init_;
+ UMA_HISTOGRAM_MEDIUM_TIMES("Login.PromptToLoginTime", delta);
+ time_init_ = base::Time(); // Reset to null.
+ }
}
void ExistingUserController::ContinuePerformLogin(
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698