cros: Add enterprise user session metrics

Desktop / Chromium - xiyuan [chromium.org] - 16 February 2017 15:18 EST

- Add a "Enterprise.UserSession.Logins" enum UMA to track the following user session starts (aka login):- Regular user,- Manual public session,- Auto public session,- Manual kiosk,- Auto kiosk;- Tracks user session length of regular user session and public seission in "Enterprise.RegularUserSEssion.SessionLength" and "Enterprise.PublicSession.SessionLength".

BUG=683306

Review-Url: https://codereview.chromium.org/2692163003 Cr-Commit-Position: refs/heads/master@{#451079}

f59c187 cros: Add enterprise user session metrics
chrome/browser/chromeos/BUILD.gn | 3 +-
.../chromeos/login/app_launch_controller.cc | 14 ++-
.../login/enterprise_user_session_metrics.cc | 120 +++++++++++++++++++++
.../login/enterprise_user_session_metrics.h | 60 +++++++++++
.../chromeos/login/existing_user_controller.cc | 18 +++-
.../chromeos/login/existing_user_controller.h | 7 +-
chrome/browser/chromeos/login/signin_specifics.cc | 13 ---
chrome/browser/chromeos/login/signin_specifics.h | 12 ++-
.../login/users/chrome_user_manager_impl.cc | 17 +++
chrome/browser/chromeos/session_length_limiter.cc | 7 ++
chrome/browser/chromeos/session_length_limiter.h | 4 +
chrome/common/pref_names.cc | 8 ++
chrome/common/pref_names.h | 2 +
tools/metrics/histograms/histograms.xml | 45 ++++++++
14 files changed, 304 insertions(+), 26 deletions(-)

Upstream: git.chromium.org


  • Share