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

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

Issue 23444077: Started measuring time for session restore process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/oauth2_login_manager.cc
diff --git a/chrome/browser/chromeos/login/oauth2_login_manager.cc b/chrome/browser/chromeos/login/oauth2_login_manager.cc
index e093f4254bbb326f734ec2f38c604bdd8348276c..4491b2443aadd968f86a28ffd876ae63e957ced1 100644
--- a/chrome/browser/chromeos/login/oauth2_login_manager.cc
+++ b/chrome/browser/chromeos/login/oauth2_login_manager.cc
@@ -216,6 +216,14 @@ void OAuth2LoginManager::SetSessionRestoreState(
return;
state_ = state;
+ if (state == OAuth2LoginManager::SESSION_RESTORE_FAILED) {
+ UMA_HISTOGRAM_TIMES("OAuth2Login.SessionRestoreTimeToFailure",
+ base::Time::Now() - session_restore_start_);
+ } else if (state == OAuth2LoginManager::SESSION_RESTORE_DONE) {
+ UMA_HISTOGRAM_TIMES("OAuth2Login.SessionRestoreTimeToSuccess",
+ base::Time::Now() - session_restore_start_);
+ }
+
FOR_EACH_OBSERVER(Observer, observer_list_,
OnSessionRestoreStateChanged(user_profile_, state_));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698