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

Side by Side Diff: components/signin/core/browser/signin_metrics.cc

Issue 338993007: Track when and how a profile is signed out via UMA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove tracking android in separate UMA bucket Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/signin/core/browser/signin_metrics.h" 5 #include "components/signin/core/browser/signin_metrics.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/metrics/user_metrics.h" 9 #include "base/metrics/user_metrics.h"
10 10
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 void LogSigninAddAccount() { 40 void LogSigninAddAccount() {
41 // Account signin may fail for a wide variety of reasons. There is no 41 // Account signin may fail for a wide variety of reasons. There is no
42 // explicit false, but one can compare this value with the various UI 42 // explicit false, but one can compare this value with the various UI
43 // flows that lead to account sign-in, and deduce that the difference 43 // flows that lead to account sign-in, and deduce that the difference
44 // counts the failures. 44 // counts the failures.
45 UMA_HISTOGRAM_BOOLEAN("Signin.AddAccount", true); 45 UMA_HISTOGRAM_BOOLEAN("Signin.AddAccount", true);
46 } 46 }
47 47
48 void LogSignout(ProfileSignout metric) {
49 UMA_HISTOGRAM_ENUMERATION("Signin.SignoutProfile", metric,
50 NUM_PROFILE_SIGNOUT_METRICS);
51 }
52
48 } // namespace signin_metrics 53 } // namespace signin_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698