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

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

Issue 813133003: New Profile metric for Auth Errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ChromeSigninClient handles no ProfileManager for tests Created 5 years, 11 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
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 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 UMA_HISTOGRAM_TIMES( 90 UMA_HISTOGRAM_TIMES(
91 "Signin.Reconciler.ExternalCcResultTime.Completed", 91 "Signin.Reconciler.ExternalCcResultTime.Completed",
92 time_to_check_connections); 92 time_to_check_connections);
93 } else { 93 } else {
94 UMA_HISTOGRAM_TIMES( 94 UMA_HISTOGRAM_TIMES(
95 "Signin.Reconciler.ExternalCcResultTime.NotCompleted", 95 "Signin.Reconciler.ExternalCcResultTime.NotCompleted",
96 time_to_check_connections); 96 time_to_check_connections);
97 } 97 }
98 } 98 }
99 99
100 void LogAuthError(GoogleServiceAuthError::State auth_error) {
101 UMA_HISTOGRAM_ENUMERATION("Signin.AuthError", auth_error,
102 GoogleServiceAuthError::State::NUM_STATES);
103 }
104
100 } // namespace signin_metrics 105 } // namespace signin_metrics
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698